From: DJ Delorie Date: Fri, 25 Jan 2008 21:00:56 +0000 (-0500) Subject: * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. X-Git-Tag: releases/gcc-4.3.0~400 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0288980fc42c88cc56587b68d51e00b8c1f77fda;p=thirdparty%2Fgcc.git * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. From-SVN: r131836 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 516d6855784d..e3223539d69e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-01-25 DJ Delorie + + * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. + 2008-01-25 Joseph Myers * config/c4x: Remove directory. diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h index b48059d9fa33..2fb636a5a305 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