This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11631] [3.3-hammer regression] zsh/kernel miscompilation
- From: "matz at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2003 15:57:15 -0000
- Subject: [Bug optimization/11631] [3.3-hammer regression] zsh/kernel miscompilation
- References: <20030722141202.11631.gbeauchesne@mandrakesoft.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11631
------- Additional Comments From matz at suse dot de 2003-07-22 15:57 -------
Subject: Re: New: [3.3-hammer regression] zsh/kernel
miscompilation
> The following program fails at -O2 but is OK at -Os.
In which sense does it fail? It aborts()? I ask because I can't
reproduce it with a clean hammer branch checkout (i.e. no local SuSE
patches):
% cvs -z2 -q up
% cd ../devel
% make
... make output ...
% ./gcc/xgcc -B./gcc/ -O2 pr11631.c
% ./a.out
% echo $?
0
Also some other flag combinations (-O3, -fPIC) didn't make it fail.
I admit that this isn't with a bootstrapped compiler, but instead just
with a simple 'make''d one. I tested this on i686-pc-linux-gnu. Could
you verify?