]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: dw2gencfi: move some tc_* defines to the header file
authorIndu Bhagat <indu.bhagat@oracle.com>
Mon, 15 Jan 2024 08:59:55 +0000 (00:59 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 15 Jan 2024 11:31:35 +0000 (03:31 -0800)
Move the following three defines to the header file, so the SCFI
machinery can use them:
 - tc_cfi_frame_initial_instructions
 - tc_cfi_startproc
 - tc_cfi_endproc

gas/
        * dw2gencfi.c: Move from ...
* dw2gencfi.h: ... to here.

gas/dw2gencfi.c
gas/dw2gencfi.h

index 216da39803f6f65ecd2beb1694c4e30731d5194e..2ba721c2955ebb6bcf86da2438f10e2532223091 100644 (file)
 #define EH_FRAME_ALIGNMENT (bfd_get_arch_size (stdoutput) == 64 ? 3 : 2)
 #endif
 
-#ifndef tc_cfi_frame_initial_instructions
-#define tc_cfi_frame_initial_instructions() ((void)0)
-#endif
-
-#ifndef tc_cfi_startproc
-# define tc_cfi_startproc() ((void)0)
-#endif
-
-#ifndef tc_cfi_endproc
-# define tc_cfi_endproc(fde) ((void) (fde))
-#endif
-
 #define EH_FRAME_LINKONCE (SUPPORT_FRAME_LINKONCE || compact_eh \
                           || TARGET_MULTIPLE_EH_FRAME_SECTIONS)
 
index ff52add764cd9442e43a66a3039dd75f130f2a14..2e1f175e22fbf6ff7f1a2a13f5ce41db4a868bae 100644 (file)
@@ -29,6 +29,18 @@ struct fde_entry;
 
 extern const pseudo_typeS cfi_pseudo_table[];
 
+#ifndef tc_cfi_frame_initial_instructions
+#define tc_cfi_frame_initial_instructions() ((void)0)
+#endif
+
+#ifndef tc_cfi_startproc
+# define tc_cfi_startproc() ((void)0)
+#endif
+
+#ifndef tc_cfi_endproc
+# define tc_cfi_endproc(fde) ((void) (fde))
+#endif
+
 /* cfi_finish() is called at the end of file. It will complain if
    the last CFI wasn't properly closed by .cfi_endproc.  */
 extern void cfi_finish (void);