[Bug target/11087] gcc miscompiles raid1.c from linux kernel
falk dot hueffner at student dot uni-tuebingen dot de
gcc-bugzilla@gcc.gnu.org
Tue Oct 14 14:44:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11087
------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de 2003-10-14 14:44 -------
Subject: Re: gcc miscompiles raid1.c from linux kernel
"tst at worldonline dot ch" <gcc-bugzilla@gcc.gnu.org> writes:
> In which version/release the patch is included *and* the tarball is
> verified, that the patch is in?
In no release. It has been added to the 3.3 CVS branch and should
therefore be in the 3.3.2 release tarball when it gets created.
> So i tested gcc 2.95-3, 2.96, 3.3 and the new sources form cvs from
> yesterday (still open). And everyone crashs in raid1.c.
Are you sure the patch was already in when you checked out gcc? Is it
mentioned in the changelog?
> I checked out the raid1.c standalone program, and it *never*
> crashs.
That is weird. It certainly does for me:
falk@juist:/tmp% uname -a Linux juist 2.6.0-test3 #2 Sat Aug 9 20:21:49 CEST 2003 alpha GNU/Linux
falk@juist:/tmp% gcc-3.3 --version
gcc-3.3 (GCC) 3.3.2 20031005 (Debian prerelease)
falk@juist:/tmp% wget --quiet "http://gcc.gnu.org/bugzilla/attachment.cgi?id=4161&action=view" -O raid1.c
falk@juist:/tmp% gcc-3.3 -O2 raid1.c && ./a.out
zsh: segmentation fault (core dumped) ./a.out
The crash goes away with the patch.
More information about the Gcc-bugs
mailing list