public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
@ 2010-11-13 14:15 zsojka at seznam dot cz
2010-11-13 15:43 ` [Bug middle-end/46461] " hjl.tools at gmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-11-13 14:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461
Summary: [4.6 Regression] ICE: invalid argument to gimple call
at -O with __builtin_memset()
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
----- testcase.c -----
void
foo (char *c)
{
c[7] = 0xff;
__builtin_memset (c + 8, 0xff, 8);
}
----------------------
Compiler output:
$ gcc -O testcase.c
testcase.c: In function 'foo':
testcase.c:6:1: error: invalid argument to gimple call
&MEM[(char *)c_1(D) + 7B]
Strangely, no regular ICE message i s given.
With -foptimize-sibling-calls, there is the message:
$ gcc -O -foptimize-sibling-calls testcase.c
testcase.c: In function 'foo':
testcase.c:6:1: error: invalid argument to gimple call
&MEM[(char *)c_1(D) + 7B]
testcase.c:6:1: internal compiler error: in refs_may_alias_p_1, at
tree-ssa-alias.c:989
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
Tested revisions:
r166604 - crash
r166509 - crash
r163636 - OK
4.5 r166509 - OK
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
2010-11-13 14:15 [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset() zsojka at seznam dot cz
@ 2010-11-13 15:43 ` hjl.tools at gmail dot com
2010-11-13 17:49 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-13 15:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.11.13 15:07:08
CC| |jakub at redhat dot com
Target Milestone|--- |4.6.0
Ever Confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-13 15:07:08 UTC ---
This is caused by revision 165401:
http://gcc.gnu.org/ml/gcc-cvs/2010-10/msg00585.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
2010-11-13 14:15 [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset() zsojka at seznam dot cz
2010-11-13 15:43 ` [Bug middle-end/46461] " hjl.tools at gmail dot com
@ 2010-11-13 17:49 ` jakub at gcc dot gnu.org
2010-11-13 18:11 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-13 17:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
2010-11-13 14:15 [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset() zsojka at seznam dot cz
2010-11-13 15:43 ` [Bug middle-end/46461] " hjl.tools at gmail dot com
2010-11-13 17:49 ` jakub at gcc dot gnu.org
@ 2010-11-13 18:11 ` jakub at gcc dot gnu.org
2010-11-15 10:51 ` [Bug tree-optimization/46461] " jakub at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-13 18:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC|jakub at redhat dot com |jakub at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-13 17:44:22 UTC ---
Mine then.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
2010-11-13 14:15 [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset() zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-11-13 18:11 ` jakub at gcc dot gnu.org
@ 2010-11-15 10:51 ` jakub at gcc dot gnu.org
2010-11-15 22:33 ` jakub at gcc dot gnu.org
2010-11-15 23:44 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-15 10:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-15 10:45:18 UTC ---
Created attachment 22396
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22396
gcc46-pr46461.patch
Untested patch.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
2010-11-13 14:15 [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset() zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-11-15 10:51 ` [Bug tree-optimization/46461] " jakub at gcc dot gnu.org
@ 2010-11-15 22:33 ` jakub at gcc dot gnu.org
2010-11-15 23:44 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-15 22:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-15 22:30:24 UTC ---
Author: jakub
Date: Mon Nov 15 22:30:15 2010
New Revision: 166776
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166776
Log:
PR tree-optimization/46461
* tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
a gimple val.
* gcc.c-torture/compile/pr46461.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr46461.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-forwprop.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/46461] [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
2010-11-13 14:15 [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset() zsojka at seznam dot cz
` (4 preceding siblings ...)
2010-11-15 22:33 ` jakub at gcc dot gnu.org
@ 2010-11-15 23:44 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-15 23:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46461
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-15 22:43:22 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-15 23:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-13 14:15 [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset() zsojka at seznam dot cz
2010-11-13 15:43 ` [Bug middle-end/46461] " hjl.tools at gmail dot com
2010-11-13 17:49 ` jakub at gcc dot gnu.org
2010-11-13 18:11 ` jakub at gcc dot gnu.org
2010-11-15 10:51 ` [Bug tree-optimization/46461] " jakub at gcc dot gnu.org
2010-11-15 22:33 ` jakub at gcc dot gnu.org
2010-11-15 23:44 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).