g77.f-torture/execute/alpha1.f is strange
Jeffrey A Law
law@cygnus.com
Sun Nov 2 22:12:00 GMT 1997
In message < m0xRqJB-0004ecC@ocean.lucon.org >you write:
> Here is g77.f-torture/execute/alpha1.f. It may call exit (1) if I
> doesn't happen to be 0. I don't remember what Fortran should be in
> this case. I think I is default to INTEGER. But I don't know if
> it should be initialized to 0. From the x86 asm code, gcc doesn't
> initialize it at all. In any case, I got the exit value 1 on
> linux/x86/glibc 2 and linux/alpha/glibc 2.0.5c.
Thanks. Yes, the initialization needs to be explicit. I've updated
the test.
jeff
More information about the Gcc
mailing list