This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11631] [3.4/3.3-hammer regression] zsh/kernel miscompilation
- From: "gbeauchesne at mandrakesoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2003 16:43:35 -0000
- Subject: [Bug optimization/11631] [3.4/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 gbeauchesne at mandrakesoft dot com 2003-07-22 16:43 -------
Subject: Re: [3.3-hammer regression] zsh/kernel
miscompilation
On Tue, 22 Jul 2003, matz at suse dot de wrote:
> > The following program fails at -O2 but is OK at -Os.
>
> In which sense does it fail? It aborts()?
Yes.
> I ask because I can't reproduce it with a clean hammer branch checkout
> (i.e. no local SuSE patches):
Likewise to here. But with recent 3.3-hammer you have to add
-fno-unit-at-a-time since that's enabled on the branch.
Just ./contrib/gcc_update -d as of today:
[gb@hp6 gcc]$ ./xgcc -B $PWD ~/vrac/zsh-bug.c -O2 -fno-unit-at-a-time
[gb@hp6 gcc]$ ./a.out
Aborted
GNU C version 3.3.1-hammer 20030703 (prerelease) (i686-pc-linux-gnu)
actually refered to co from 20030708, according to ChangeLog.hammer.