diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2024-01-15 00:59:55 -0800 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2024-01-15 03:31:35 -0800 |
commit | 4c5e0261cf4ae9ef4e86fd9bfe6cb19581d5cff6 (patch) | |
tree | c1798cddc65a8ba95a7287da344c6fcfe07fc260 /gas | |
parent | 040622a7299dbf3d037490093a5506e08369ee96 (diff) | |
download | gdb-4c5e0261cf4ae9ef4e86fd9bfe6cb19581d5cff6.zip gdb-4c5e0261cf4ae9ef4e86fd9bfe6cb19581d5cff6.tar.gz gdb-4c5e0261cf4ae9ef4e86fd9bfe6cb19581d5cff6.tar.bz2 |
gas: dw2gencfi: move some tc_* defines to the header file
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/dw2gencfi.c | 12 | ||||
-rw-r--r-- | gas/dw2gencfi.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c index 216da39..2ba721c 100644 --- a/gas/dw2gencfi.c +++ b/gas/dw2gencfi.c @@ -64,18 +64,6 @@ #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) diff --git a/gas/dw2gencfi.h b/gas/dw2gencfi.h index ff52add..2e1f175 100644 --- a/gas/dw2gencfi.h +++ b/gas/dw2gencfi.h @@ -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); |