http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47598
Summary: -fgraphite-identity at -O2 breaks profiledbootstrap
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: [email protected]
ReportedBy: [email protected]
Enabling -fgraphite at -O2 with...
Index: gcc/opts.c
===================================================================
--- gcc/opts.c (revision 169776)
+++ gcc/opts.c (working copy)
@@ -459,6 +459,9 @@ static const struct default_options defa
{ OPT_LEVELS_1_PLUS, OPT_fcompare_elim, NULL, 1 },
/* -O2 optimizations. */
+#ifdef HAVE_cloog
+ { OPT_LEVELS_2_PLUS, OPT_fgraphite_identity, NULL, 1 },
+#endif
{ OPT_LEVELS_2_PLUS, OPT_finline_small_functions, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_findirect_inlining, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_fpartial_inlining, NULL, 1 },
breaks the profiledbootstrap at...
/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