From: Rainer Orth Date: Tue, 3 Jul 2001 12:35:01 +0000 (+0000) Subject: sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c19113468ccaa47b22f3448643194cfb2625e143;p=gcc.git sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275. From-SVN: r43729 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39da80dfe4a..c84ae0edf94 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-03 Rainer Orth + + * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. + Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275. + 2001-07-03 Joseph S. Myers * doc/cppinternals.texi: Improve formatting and logical markup. diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 6d15ec4c024..4a1883913ee 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -61,6 +61,14 @@ Boston, MA 02111-1307, USA. */ #define FORCE_INIT_SECTION_ALIGN asm (ALIGN_ASM_OP ## "16") #define FORCE_FINI_SECTION_ALIGN FORCE_INIT_SECTION_ALIGN +/* Select a format to encode pointers in exception handling data. CODE + is 0 for data, 1 for code labels, 2 for function pointers. GLOBAL is + true if the symbol may be affected by dynamic relocations. */ +#undef ASM_PREFERRED_EH_DATA_FORMAT +#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \ + (flag_pic ? (GLOBAL ? DW_EH_PE_indirect : 0) | DW_EH_PE_datarel \ + : DW_EH_PE_absptr) + /* Add "sun" to the list of symbols defined for SVR4. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES \