Re: unaligned access sin sys_swapon()

From: Thorsten Kranzkowski (dl8bcu@Marvin.dl8bcu.ampr.org)
Date: Tue Apr 18 2000 - 15:47:48 EST


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] |



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:24 EST