From fe95aee9ce0a163194d4c986d15bd2b8f2abed3d Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 19 Feb 2019 17:10:00 +0100 Subject: [PATCH] unwind-dw2.c (_Unwind_GetGR): Compare regno instead of index to DWARF_ZERO_REG. * unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare regno instead of index to DWARF_ZERO_REG. From-SVN: r269021 --- libgcc/ChangeLog | 5 +++++ libgcc/unwind-dw2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 65cd3f97cdd..c8b59b4814b 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2019-02-19 Uroš Bizjak + + * unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare + regno instead of index to DWARF_ZERO_REG. + 2019-02-15 Eric Botcazou * config/visium/lib2funcs.c (__set_trampoline_parity): Replace diff --git a/libgcc/unwind-dw2.c b/libgcc/unwind-dw2.c index bd88df96395..e6130af2fb5 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; #ifdef DWARF_ZERO_REG - if (index == DWARF_ZERO_REG) + if (regno == DWARF_ZERO_REG) return 0; #endif -- 2.30.2