Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Thorsten Kranzkowski <dl8bcu@Marvin.DL8BCU.ampr.org>
To: axp-list@redhat.com
Cc: Richard Henderson <rth@cygnus.com>,
	linux-alpha mailing list <linux-alpha@vger.rutgers.edu>
Subject: Re: unaligned access sin sys_swapon()
Date: Tue, 18 Apr 2000 20:47:48 +0000	[thread overview]
Message-ID: <20000418204748.C7513@Marvin.DL8BCU.ampr.org> (raw)
In-Reply-To: <20000418142041.A26481@jurassic.park.msu.ru>; from ink@jurassic.park.msu.ru on Tue, Apr 18, 2000 at 02:20:41PM +0400

On Tue, Apr 18, 2000 at 02:20:41PM +0400, Ivan Kokshaysky wrote:
> 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;
> }

Alpha AXPpci33, ev4 - bo BWX at all :-) ......
20000410 snapshot

Marvin:~/src$ gcc -o foo foo.c
Marvin:~/src$ ./foo
4
Marvin:~/src$ gcc -O -o foo foo.c
Marvin:~/src$ ./foo
0
Marvin:~/src$


Bye,
Thorsten

-- 
| Thorsten Kranzkowski        Internet: dl8bcu@gmx.net                        |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |


      reply	other threads:[~2000-04-18 21:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-15  1:11 unaligned access sin sys_swapon() Thorsten Kranzkowski
2000-04-16 20:11 ` Richard Henderson
2000-04-18 10:20   ` Ivan Kokshaysky
2000-04-18 20:47     ` Thorsten Kranzkowski [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox