I was trying to bootstrap GCC rev. 158136 with a different BOOT_CFLAGS:

--- a/Makefile.in
+++ b/Makefile.in
@@ -352,7 +352,7 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@

 # Flags to pass to stage2 and later makes.  They are defined
 # here so that they can be overridden by Makefile fragments.
-BOOT_CFLAGS= -g -O2
+BOOT_CFLAGS= -g -O3 -msse2
 BOOT_LDFLAGS=
 BOOT_ADAFLAGS=-gnatpg -gnata

The bootstrap stops during the compilation of builtins.c with this error:

cc1: warnings being treated as errors
../../gcc/builtins.c: In function ‘builtin_strncpy_read_str’:
../../gcc/builtins.c:567:37: error: array subscript is above array bounds

This is error comes from one of VRP's checks.


-- 
           Summary: Bootstrap broken at -O3
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: spop at gcc dot gnu dot org


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

Reply via email to