]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
authorDJ Delorie <dj@redhat.com>
Fri, 25 Jan 2008 21:00:56 +0000 (16:00 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Fri, 25 Jan 2008 21:00:56 +0000 (16:00 -0500)
From-SVN: r131836

gcc/ChangeLog
gcc/config/m32c/m32c.h

index 516d6855784d80173a5a0534708244728aae3425..e3223539d69eb69d8e42961a8c3c0d1b645582d6 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-25  DJ Delorie  <dj@redhat.com>
+
+       * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
+
 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
 
        * config/c4x: Remove directory.
index b48059d9fa33f15b97c87c146933e10ed328a4b0..2fb636a5a305a41d5c7c5add88bd271fde3dac9b 100644 (file)
@@ -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