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: [EMAIL PROTECTED]                        |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, [EMAIL PROTECTED] [44.130.8.19] |

Reply via email to