public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/46461] New: [4.6 Regression] ICE: invalid argument to gimple call at -O with __builtin_memset()
Date: Sat, 13 Nov 2010 14:15:00 -0000	[thread overview]
Message-ID: <bug-46461-4@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2010-11-13 12:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-13 14:15 zsojka at seznam dot cz [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-46461-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).