This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Fortran, committed to trunk] Fixed powerpc "unsigned" printing of
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: toon at moene dot indiv dot nluug dot nl (Toon Moene)
- Cc: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 11 Apr 2002 16:15:42 -0400 (EDT)
- Subject: Re: [Fortran, committed to trunk] Fixed powerpc "unsigned" printing of
> > On the latter [powerpc-unknown-linux-gnu], even the following is
> > incorrect:
> >
> > INTEGER*1 I
> > I = -9
> > PRINT*,I
> > END
> >
> > which prints 247 ;-)
>
> I fixed this with the attached patch [applied to trunk]. Make bootstrap
> (C and Fortran), make check (Fortran only) and make install on
> powerpc-unknown-linux-gnu.
Did that fix f90-intrinsic-numeric.f on the powerpc?
I did a liitle more digging on the pa. It beginning to look like some
kind of aliasing problem. It important to note that the test passes
at -O0 but not at -O1. At -O0, there are insns that write the i*2
values of j and ja to virtual stack slots. However, at -O1, it appears
the write for ja is deleted and as a result ka is read from an unitialized
slot. I got as far as ffestd_stmt_pass_ in trying to locate the problem.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)