[Bug target/70947] New: regrename Go breakage on powerpc64

amodra at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed May 4 12:28:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70947

            Bug ID: 70947
           Summary: regrename Go breakage on powerpc64
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

Instructions around a __morestack call typically have r0, used to save and
restore lr, replaced with other regs by regrename.  This trashes the current
function parameter and return regs.

=> 0x0000000010001550 <+112>:   mflr    r3              # argc trashed
   0x0000000010001554 <+116>:   std     r3,16(r1)
   0x0000000010001558 <+120>:   bl      0x10001818 <__morestack>
   0x000000001000155c <+124>:   ld      r4,16(r1)
   0x0000000010001560 <+128>:   mtlr    r4
   0x0000000010001564 <+132>:   blr
   0x0000000010001568 <+136>:   b       0x100014fc <main+28>


More information about the Gcc-bugs mailing list