This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/15584] Ada build with stage1 bootstrap compiler fails.
- From: "gerrit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2004 18:07:08 -0000
- Subject: [Bug rtl-optimization/15584] Ada build with stage1 bootstrap compiler fails.
- References: <20040522084514.15584.gerrit@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gerrit at gcc dot gnu dot org 2004-05-22 18:07 -------
(In reply to comment #4)
> (In reply to comment #3)
> > CAn you try without setting the STAGE1_CFLAGS, most likely what is happening
> > is that stage1 is being miscompiled by the compiler you are starting with.
>
> My first try to build gcc-3.4.0 was with the latest available gcc for cygwin,
> which is gcc-3.3.1, but -O2 instead of -O3. Note that this works fine. Then I
> tried to bootstrap again with the newly created gcc-3.4.0 as system compiler,
> but now with -O3, then I get the failure even before the first stage when the
> system gcc is used to compile the ada files. The third try was to reinstall the
> old gcc-3.3.1 to run the bootstrap, again with -O3 all over the place, then I
> got the same error, but now in stage1 (the problem reported here).
>
> It seems that it is not possible to run the bootstrap with -O3 on Cygwin.
>
> I'll run the bootstrap now with exactly the same flags but -O2 instead of -O3
> and report then after stage1 is completed (or is not completed).
As I already thought, when I build the first xgcc with -O2 it works without
error to compile this ada file.
I reduced the flags which result in the error to
'-O2 -finline-functions -funroll-loops',
other combinations succeed (I didn't tried every possible).
This results in the reported error:
stage1/xgcc.exe -Bstage1/ -B/usr/i686-pc-cygwin/bin/ -c -O2 -finline-functions
-funroll-loops -gnatpg -gnata -I- -I. -Iada -I/gcc/gcc-3.4/gcc-3.4.0-1/gcc/ada
/gcc/gcc-3.4/gcc-3.4.0-1/gcc/ada/sem_prag.adb -o test/sem_prag.o
Gerrit
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584