The contents of include/dwarf2.def have diverged between the gcc and
the binutils repositories.  Currently, it's impossible to build a combined
tree, as GCC won't build with the binutils version of dwarf2.def and
binutils
won't build with the gcc version.  This patch realigns this file by copying
the definition of DW_CFA_AARCH64_negate_ra_state_with_pc from binutils,
restoring the ability to build a combined source tree.

Tested on x86_64-pc-linux-gnu with "make bootstrap".
Ok for mainline?


2025-02-10  Roger Sayle  <ro...@nextmovesoftware.com>

include/ChangeLog
        * dwarf2.def(DW_CFA_AARCH64_negate_ra_state_with_pc): Define.


Thanks in advance,
Roger
--

diff --git a/include/dwarf2.def b/include/dwarf2.def
index e9acb79df9c..989f078041d 100644
--- a/include/dwarf2.def
+++ b/include/dwarf2.def
@@ -788,6 +788,8 @@ DW_CFA (DW_CFA_hi_user, 0x3f)
 
 /* SGI/MIPS specific.  */
 DW_CFA (DW_CFA_MIPS_advance_loc8, 0x1d)
+/* AArch64 extensions.  */
+DW_CFA (DW_CFA_AARCH64_negate_ra_state_with_pc, 0x2c)
 /* GNU extensions.
    NOTE: DW_CFA_GNU_window_save is multiplexed on Sparc and AArch64.  */
 DW_CFA (DW_CFA_GNU_window_save, 0x2d)

Reply via email to