[Fortran, committed to trunk] Fixed powerpc "unsigned" printing of
Toon Moene
toon@moene.indiv.nluug.nl
Thu Apr 11 14:16:00 GMT 2002
John David Anglin wrote:
>
> > > 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?
Nope - it was a fix in the run-time library - which isn't involved in
this problem at all :-)
> 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.
Thanks ! I hope to have some time this weekend to dive into the
problem.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
More information about the Gcc-bugs
mailing list