[libgcc] Fixup _UnwindGetGR for function argument rename

Message ID CAFULd4ai=zryzBfuw8QOxHrfMM_h6ijO5mttsNt9=+R7sWjjBA@mail.gmail.com
State New
Headers show
  • [libgcc] Fixup _UnwindGetGR for function argument rename
Related show

Commit Message

Uros Bizjak Feb. 19, 2019, 4:36 p.m.
Revision 256615 (SVE unwinding) renamed _UnwindGetGR function
argument, but forgot to update part under #ifdef DWARF_ZERO_REG.

2019-02-19  UroŇ° Bizjak  <ubizjak@gmail.com>

    * unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare
    regno instead of index to DWARF_ZERO_REG.

Bootstrapped on alphaev68-linux-gnu and committed to mainline and
gcc-8 as obvious.



diff --git a/libgcc/unwind-dw2.c b/libgcc/unwind-dw2.c
index bd88df963957..e6130af2fb54 100644
--- a/libgcc/unwind-dw2.c
+++ b/libgcc/unwind-dw2.c
@@ -225,7 +225,7 @@  _Unwind_GetGR (struct _Unwind_Context *context, int regno)
   _Unwind_Context_Reg_Val val;
-  if (index == DWARF_ZERO_REG)
+  if (regno == DWARF_ZERO_REG)
     return 0;