From: Jakub Jelinek Date: Thu, 6 Oct 2022 22:16:11 +0000 (+0200) Subject: libgcc, arc: Fix build X-Git-Tag: basepoints/gcc-14~4066 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20462a14d8c0efdb31385c89b15523d1ee85e9b5;p=thirdparty%2Fgcc.git libgcc, arc: Fix build Missed one spot in the r13-3108-g146e45914032 change (my sed script didn't expect nested []s). 2022-10-07 Jakub Jelinek * config/arc/linux-unwind.h (arc_fallback_frame_state): Use fs->regs.how[X] instead of fs->regs.reg[X].how. --- diff --git a/libgcc/config/arc/linux-unwind.h b/libgcc/config/arc/linux-unwind.h index 231971a7ccce..b3f2dde5476d 100644 --- a/libgcc/config/arc/linux-unwind.h +++ b/libgcc/config/arc/linux-unwind.h @@ -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; }