This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]