Re: unaligned access sin sys_swapon()

From: Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Date: Tue Apr 18 2000 - 05:20:41 EST


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;
}



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