From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3761 invoked from network); 18 Apr 2000 10:19:43 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Apr 2000 10:19:42 -0000 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id GAA12430 for ; Tue, 18 Apr 2000 06:19:38 -0400 Received: (from ink@localhost) by jurassic.park.msu.ru (8.9.3/8.9.3) id OAA26497; Tue, 18 Apr 2000 14:20:41 +0400 Date: Tue, 18 Apr 2000 14:20:41 +0400 From: Ivan Kokshaysky To: axp-list@redhat.com Cc: Richard Henderson , linux-alpha mailing list Subject: Re: unaligned access sin sys_swapon() Message-ID: <20000418142041.A26481@jurassic.park.msu.ru> References: <20000415011135.A980@Marvin.DL8BCU.ampr.org> <20000416131121.A9167@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000416131121.A9167@twiddle.net>; from rth@twiddle.net on Sun, Apr 16, 2000 at 01:11:21PM -0700 On Sun, Apr 16, 2000 at 01:11:21PM -0700, Richard Henderson wrote: > It sure appears to be a gcc problem. I'll look into it. > I don't know is it related bug or no, but the example below prints "0" if compiled without BWX. The bug still present in the 20000417 snapshot. Ivan. void foo(void * aaa) { } int main() { short tst[4] = { 1,2,3,4 }; foo(tst); printf("%d\n", tst[3]); return 0; }