* [Bug ada/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
@ 2004-05-23 7:32 ` gerrit at gcc dot gnu dot org
2004-05-23 8:14 ` gerrit at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2004-05-23 7:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gerrit at gcc dot gnu dot org 2004-05-22 08:48 -------
Created an attachment (id=6361)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6361&action=view)
The listet sourcefiles are in this tarball.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
2004-05-23 7:32 ` [Bug ada/15584] " gerrit at gcc dot gnu dot org
@ 2004-05-23 8:14 ` gerrit at gcc dot gnu dot org
2004-05-23 9:28 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2004-05-23 8:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gerrit at gcc dot gnu dot org 2004-05-22 08:50 -------
Configured with:
./configure \
--verbose \
--with-gcc \
--with-gnu-ld \
--with-gnu-as \
--prefix=/usr \
--exec-prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-languages=${languages_to_build} \
--enable-nls \
--without-included-gettext \
--enable-threads=posix \
--enable-libgcj \
--enable-interpreter \
--enable-java-gc=boehm \
--enable-java-awt=xlib \
--enable-sjlj-exceptions \
--with-x --with-system-zlib \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib \
--disable-version-specific-runtime-libs \
--disable-win32-registry \
--with-arch=pentium3
Used this flags:
make BOOT_CFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-ffast-math' \
STAGE1_CFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer
-funroll-loops -ffast-math' \
CFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-ffast-math' \
CXXFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-ffast-math -fno-implicit-templates' \
LIBCFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-ffast-math' \
LIBCXXFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer
-funroll-loops -ffast-math -fno-implicit-templates' \
JCFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-ffast-math' \
GCJFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-ffast-math' \
LIBGCJ_CFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer
-funroll-loops -ffast-math -ffloat-store' \
LIBGCJ_CXXFLAGS='-march=pentium3 -O3 -pipe -fomit-frame-pointer
-funroll-loops -ffast-math -ffloat-store -fno-implicit-templates' \
LDFLAGS='-s -Wl,--stack=0x00800000' \
bootstrap
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
2004-05-23 7:32 ` [Bug ada/15584] " gerrit at gcc dot gnu dot org
2004-05-23 8:14 ` gerrit at gcc dot gnu dot org
@ 2004-05-23 9:28 ` pinskia at gcc dot gnu dot org
2004-05-23 9:49 ` gerrit at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-23 9:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-22 11:48 -------
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.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-05-23 9:28 ` pinskia at gcc dot gnu dot org
@ 2004-05-23 9:49 ` gerrit at gcc dot gnu dot org
2004-05-23 11:18 ` [Bug rtl-optimization/15584] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2004-05-23 9:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gerrit at gcc dot gnu dot org 2004-05-22 14:56 -------
(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).
Gerrit
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-05-23 9:49 ` gerrit at gcc dot gnu dot org
@ 2004-05-23 11:18 ` pinskia at gcc dot gnu dot org
2004-05-23 11:20 ` gerrit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-23 11:18 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Component|ada |rtl-optimization
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2004-05-22 15:29:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-05-23 11:18 ` [Bug rtl-optimization/15584] " pinskia at gcc dot gnu dot org
@ 2004-05-23 11:20 ` gerrit at gcc dot gnu dot org
2005-02-13 18:44 ` neroden at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2004-05-23 11:20 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-05-23 11:20 ` gerrit at gcc dot gnu dot org
@ 2005-02-13 18:44 ` neroden at gcc dot gnu dot org
2005-05-29 3:21 ` gerrit at gcc dot gnu dot org
2005-06-18 23:25 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: neroden at gcc dot gnu dot org @ 2005-02-13 18:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From neroden at gcc dot gnu dot org 2005-02-13 07:19 -------
Looking at the assembly generated for duplicate_insn_chain in cfglayout.c is
the next step. (And the intermediate dumps, of course.)
I'm highly suspicious, given that the code there features a switch inside a
loop, that this is actually an instance of bug #18628.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-02-13 18:44 ` neroden at gcc dot gnu dot org
@ 2005-05-29 3:21 ` gerrit at gcc dot gnu dot org
2005-06-18 23:25 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2005-05-29 3:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gerrit at gcc dot gnu dot org 2005-05-29 02:25 -------
No longer a problem with gcc-3.4.2.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/15584] Ada build with stage1 bootstrap compiler fails.
2004-05-23 7:10 [Bug ada/15584] New: Ada build with stage1 bootstrap compiler fails gerrit at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-05-29 3:21 ` gerrit at gcc dot gnu dot org
@ 2005-06-18 23:25 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-18 23:25 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15584
^ permalink raw reply [flat|nested] 10+ messages in thread