This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11631] [3.3-hammer regression] zsh/kernel miscompilation


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]