http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47598
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-03 15:52:50
UTC ---
(In reply to comment #0)
> Enabling -fgraphite at -O2 with...
>
> /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./prev-gcc/xgcc
> -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./prev-gcc/
> -B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/bin/
> -B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/bin/
> -B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/lib/ -isystem
> /sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/include -isystem
> /sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/sys-include -c -DHAVE_CONFIG_H -g
> -O2 -mdynamic-no-pic -flto=jobserver -frandom-seed=1 -fprofile-use -I.
> -I../../gcc-4.6-20110202/libiberty/../include -W -Wall -Wwrite-strings
> -Wc++-compat -Wstrict-prototypes -pedantic
> ../../gcc-4.6-20110202/libiberty/cp-demangle.c -o cp-demangle.o
> ../../gcc-4.6-20110202/libiberty/cp-demangle.c: In function 'd_print_comp':
> ../../gcc-4.6-20110202/libiberty/cp-demangle.c:4350:1: error: insn does not
> satisfy its constraints:
> (insn 1855 310 311 39 (parallel [
> (set (reg/f:DI 4 si [orig:719 dpi_17(D)->modifiers ] [719])
> (plus:DI (reg:DI 4 si [486])
> (plus:DI (reg/f:DI 7 sp)
> (const_int 0 [0]))))
> (clobber (reg:CC 17 flags))
> ]) ../../gcc-4.6-20110202/libiberty/cp-demangle.c:3611 253 {*adddi_1}
> (nil))
> ../../gcc-4.6-20110202/libiberty/cp-demangle.c:4350:1: internal compiler
> error:
> in reload_cse_simplify_operands, at postreload.c:401
Can you create a standalone testcase to show this -fgraphite-identity -O2 bug?