public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/42528]  New: ICE with -flto and -fsigned-char
@ 2009-12-28 22:58 anton at samba dot org
  2009-12-31 15:09 ` [Bug lto/42528] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: anton at samba dot org @ 2009-12-28 22:58 UTC (permalink / raw)
  To: gcc-bugs

A gcc build from svn today (20091228) gets an ICE on the following code when
using -flto and -fsigned-char:

char *foo;
int main()
{
        foo = "bar";
}

# /gcc-test/bin/gcc -flto -fsigned-char foo.c
In function 'main':
lto1: error: type mismatch in address expression
<unnamed-unsigned:8> *

<unnamed-signed:8>

foo = &"bar"[0];

lto1: internal compiler error: verify_stmts failed


It passes with either option on its own.


-- 
           Summary: ICE with -flto and -fsigned-char
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at samba dot org
GCC target triplet: powerpc64-linux-gnu-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42528


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-01-08 16:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-28 22:58 [Bug lto/42528] New: ICE with -flto and -fsigned-char anton at samba dot org
2009-12-31 15:09 ` [Bug lto/42528] " rguenth at gcc dot gnu dot org
2010-01-03 14:33 ` rguenth at gcc dot gnu dot org
2010-01-03 17:31 ` rguenth at gcc dot gnu dot org
2010-01-03 18:12 ` rguenth at gcc dot gnu dot org
2010-01-03 18:21 ` rguenth at gcc dot gnu dot org
2010-01-07 11:01 ` anton at samba dot org
2010-01-08 16:58 ` rguenth at gcc dot gnu dot org
2010-01-08 16:58 ` rguenth at gcc dot gnu dot 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).