From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21498 invoked by alias); 14 Oct 2003 14:44:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21481 invoked by alias); 14 Oct 2003 14:44:26 -0000 Date: Tue, 14 Oct 2003 14:44:00 -0000 Message-ID: <20031014144426.21480.qmail@sources.redhat.com> From: "falk dot hueffner at student dot uni-tuebingen dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030604081727.11087.marcus@jet.franken.de> References: <20030604081727.11087.marcus@jet.franken.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/11087] gcc miscompiles raid1.c from linux kernel X-Bugzilla-Reason: CC X-SW-Source: 2003-10/txt/msg00966.txt.bz2 List-Id: 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" 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.