fortran/6138: Incorrect access of integer*1 variables on PA
John David Anglin
dave@hiauly1.hia.nrc.ca
Sat Apr 6 12:58:00 GMT 2002
> Unfortunately, after half a day of fiddling, I'm not sure if the reason
> this fails on HPPA is the same as the reason it fails on POWERPC.
On the PA, I am fairly certain the problem is in the "conversion" from
INTEGER*2 to INTEGER*1.
> On the latter, even the following is incorrect:
>
> INTEGER*1 I
> I = -9
> PRINT*,I
> END
>
> which prints 247 ;-)
OK under hppa-linux. What's the assembly code look like? The problems
still could be related. I would guess the wrong location for I is being
passed.
> Welllllll, perhaps this means that this afternoon multiplied one problem
> into two :-(
Sorry.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-bugs
mailing list