OSDN Git Service

* config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jul 2001 12:35:01 +0000 (12:35 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jul 2001 12:35:01 +0000 (12:35 +0000)
Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43729 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/sol2.h

index 39da80d..c84ae0e 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
+       Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
+
 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * doc/cppinternals.texi: Improve formatting and logical markup.
index 6d15ec4..4a18839 100644 (file)
@@ -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 \