[v1,4/4,DON'T,COMMIT] error if TC_AARCH64 is not defined on AArch64 target
Checks
Commit Message
---
bfd/elf-eh-frame.c | 2 ++
binutils/dwarf.c | 2 ++
gas/dw2gencfi.c | 4 ++++
gas/gen-sframe.c | 2 ++
include/dwarf2.def | 2 ++
5 files changed, 12 insertions(+)
@@ -361,6 +361,8 @@ skip_cfa_op (bfd_byte **iter, bfd_byte *end, unsigned int encoded_ptr_width)
#if TC_AARCH64
case DW_CFA_AARCH64_negate_ra_state:
case DW_CFA_AARCH64_negate_ra_state_with_pc:
+#else
+#pragma GCC error "TC_AARCH64 is undefined"
#endif /* TC_AARCH64 */
#if TC_SPARC
case DW_CFA_GNU_window_save:
@@ -10362,6 +10362,8 @@ display_debug_frames (struct dwarf_section *section,
if (! do_debug_frames_interp)
printf (" DW_CFA_AARCH64_negate_ra_state_with_pc\n");
break;
+#else
+#pragma GCC error "TC_AARCH64 is undefined"
#endif /* TC_AARCH64 */
#if TC_SPARC
@@ -720,6 +720,8 @@ const pseudo_typeS cfi_pseudo_table[] =
{ "cfi_window_save", dot_cfi, DW_CFA_GNU_window_save },
{ "cfi_negate_ra_state", dot_cfi, DW_CFA_AARCH64_negate_ra_state },
{ "cfi_negate_ra_state_with_pc", dot_cfi, DW_CFA_AARCH64_negate_ra_state_with_pc },
+#else
+#pragma GCC error "TC_AARCH64 is undefined"
#endif /* TC_AARCH64 */
#if TC_SPARC
{ "cfi_window_save", dot_cfi, DW_CFA_GNU_window_save },
@@ -928,6 +930,8 @@ dot_cfi (int arg)
case DW_CFA_AARCH64_negate_ra_state_with_pc:
cfi_add_CFA_insn (DW_CFA_AARCH64_negate_ra_state_with_pc);
break;
+#else
+#pragma GCC error "TC_AARCH64 is undefined"
#endif /* TC_AARCH64 */
#if TC_SPARC
@@ -1297,6 +1297,8 @@ sframe_xlate_do_aarch64_negate_ra_state_with_pc (struct sframe_xlate_ctx *xlate_
return SFRAME_XLATE_ERR_NOTREPRESENTED; /* Not represented. */
}
+#else
+#pragma GCC error "TC_AARCH64 is undefined"
#endif /* TC_AARCH64 */
#if TC_SPARC
@@ -794,6 +794,8 @@ DW_CFA (DW_CFA_AARCH64_negate_ra_state_with_pc, 0x2c)
DW_CFA (DW_CFA_AARCH64_negate_ra_state, 0x2d)
/* NOTE: DW_CFA_GNU_window_save is multiplexed on Sparc and AArch64. */
DW_CFA_DUP (DW_CFA_GNU_window_save, 0x2d)
+#else
+#pragma GCC error "TC_AARCH64 is undefined"
#endif /* TC_AARCH64 */
/* Sparc specific extensions. */