Bug 45146 - Bootstrap broken at -O3
Summary: Bootstrap broken at -O3
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 20:17 UTC by Sebastian Pop
Modified: 2010-12-22 18:36 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pop 2010-07-30 20:17:34 UTC
trunk@162541 does not bootstrap with BOOT_CFLAGS="-g -O3".

Comparing stages 2 and 3
warning: gcc/cc1plus-checksum.o differs
warning: gcc/cc1-checksum.o differs
Bootstrap comparison failure!
gcc/dbxout.o differs
Comment 1 Sebastian Pop 2010-12-22 16:15:28 UTC
Trunk at r168000 passes bootstrap at -O3.
Comment 2 Jack Howarth 2010-12-22 18:18:16 UTC
At r168176, while I don't see a bootstrap failure at the standard '-g -O2', when I add...

Index: gcc/opts.c
===================================================================
--- gcc/opts.c	(revision 168176)
+++ gcc/opts.c	(working copy)
@@ -458,6 +458,9 @@
     { OPT_LEVELS_1_PLUS, OPT_fcombine_stack_adjustments, 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 },

I do get...


Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1objplus-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
gcc/alias.o differs
gcc/attribs.o differs
gcc/bb-reorder.o differs
gcc/bitmap.o differs
gcc/bt-load.o differs
...

for about every binary.
Comment 3 sebpop@gmail.com 2010-12-22 18:36:31 UTC
We do bootstrap on amd64-linux the graphite branch for every
commit, and that would be the equivalent of your patch.
Please open a new bug for tracking this issue.

Thanks,
Sebastian