This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/3155] New: ppc32: __lrint(): illegal accesses below SP


>From a vanilla glibc-2.4 tarball:
sysdeps/powerpc/powerpc32/fpu/s_lrint.S accesses below r1.
This is not allowed by the ELF ppc32 ABI.  (note the 32-bit
and 64-bit ABIs differ on this point; the same code is valid
in 64-bit mode.)

ENTRY (__lrint)
        fctiw   fp13,fp1
        stfd    fp13,-8(r1)  <- *** HERE
        nop
        nop
        nop
        lwz     r3,-4(r1)    <- *** HERE
        blr
        END (__lrint)

-- 
           Summary: ppc32: __lrint(): illegal accesses below SP
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: jseward at acm dot org
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: powerpc32-unknown-linux
  GCC host triplet: powerpc32-unknown-linux
GCC target triplet: powerpc32-unknown-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=3155

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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