]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc, arc: Fix build
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Oct 2022 22:16:11 +0000 (00:16 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 6 Oct 2022 22:16:11 +0000 (00:16 +0200)
Missed one spot in the r13-3108-g146e45914032 change (my sed script
didn't expect nested []s).

2022-10-07  Jakub Jelinek  <jakub@redhat.com>

* config/arc/linux-unwind.h (arc_fallback_frame_state): Use
fs->regs.how[X] instead of fs->regs.reg[X].how.

libgcc/config/arc/linux-unwind.h

index 231971a7cccee4eada0ac2417c89f8e3cda193aa..b3f2dde5476d18c7c3858351afbbad70c3d57284 100644 (file)
@@ -115,7 +115,7 @@ arc_fallback_frame_state (struct _Unwind_Context *context,
     {
       if (register_id_for_index[i] == -1)
        continue;
-      fs->regs.reg[register_id_for_index[i]].how = REG_SAVED_OFFSET;
+      fs->regs.how[register_id_for_index[i]] = REG_SAVED_OFFSET;
       fs->regs.reg[register_id_for_index[i]].loc.offset
        = ((_Unwind_Ptr) &(regs[i])) - new_cfa;
     }