[Bug lto/42528] New: ICE with -flto and -fsigned-char
anton at samba dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 28 22:58:00 GMT 2009
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
More information about the Gcc-bugs
mailing list