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

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).