aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m32c/m32c.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-01-25 16:00:56 -0500
committerDJ Delorie <dj@gcc.gnu.org>2008-01-25 16:00:56 -0500
commit0288980fc42c88cc56587b68d51e00b8c1f77fda (patch)
tree9aea1a6f83aa70ff82a7b7fa53f00215a793d018 /gcc/config/m32c/m32c.h
parent8d8da227888f95418be8d0c90fcec2ff1a2c8438 (diff)
downloadgcc-0288980fc42c88cc56587b68d51e00b8c1f77fda.zip
gcc-0288980fc42c88cc56587b68d51e00b8c1f77fda.tar.gz
gcc-0288980fc42c88cc56587b68d51e00b8c1f77fda.tar.bz2
* config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
From-SVN: r131836
Diffstat (limited to 'gcc/config/m32c/m32c.h')
-rw-r--r--gcc/config/m32c/m32c.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h
index b48059d..2fb636a 100644
--- a/gcc/config/m32c/m32c.h
+++ b/gcc/config/m32c/m32c.h
@@ -458,6 +458,12 @@ enum reg_class
#define DWARF_FRAME_REGNUM(N) m32c_dwarf_frame_regnum (N)
#define DBX_REGISTER_NUMBER(N) m32c_dwarf_frame_regnum (N)
+#undef ASM_PREFERRED_EH_DATA_FORMAT
+/* This is the same as the default in practice, except that by making
+ it explicit we tell binutils what size pointers to use. */
+#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \
+ (TARGET_A16 ? DW_EH_PE_udata2 : DW_EH_PE_udata4)
+
/* Eliminating Frame Pointer and Arg Pointer */
/* If the frame pointer isn't used, we detect it manually. But the