[Bug target/19247] New: gfortran.dg/g77/6177.f is miscompiled on sparc-linux

phython at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 3 23:00:00 GMT 2005


The testcase 6177.f seems to be miscompiled.  The assembly output from this file
, at -O2, is
MAIN__:
        save    %sp, -112, %sp
        st      %g0, [%fp-16]
        st      %g0, [%fp-12]
        call    cabsf, 0
         add    %fp, -16, %o0
         ^^^^  This should be an ld.

        sethi   %hi(.LLC1), %g1
        ld      [%g1+%lo(.LLC1)], %f8
        fcmpes  %f0, %f8
        nop
        fbg     .LL7
         nop
        jmp     %i7+8
         restore
.LL7:
        call    _gfortran_abort, 0
         restore
        nop

 Changing the add above to an ld fixes the runtime failure.
I have no clue what is causing this.

-- 
           Summary: gfortran.dg/g77/6177.f is miscompiled on sparc-linux
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phython at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-linux
  GCC host triplet: sparc-linux
GCC target triplet: sparc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19247



More information about the Gcc-bugs mailing list