]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Wed, 5 Sep 2001 14:57:00 +0000 (14:57 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 5 Sep 2001 14:57:00 +0000 (14:57 +0000)
* som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
* pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
UNALIGNED_DOUBLE_INT_ASM_OP): Define

From-SVN: r45414

gcc/ChangeLog
gcc/config/pa/pa.h
gcc/config/pa/som.h

index bc21be5cc13855d253c1f52495e9cec6a575a3cd..3f9abecc779b35322633be3b0551cc3438711be2 100644 (file)
@@ -1,3 +1,9 @@
+2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
+       * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
+       UNALIGNED_DOUBLE_INT_ASM_OP): Define
+
 2001-09-05  Jeffrey A Law  (law@cygnus.com)
            Jason Merrill (jason@redhat.com)
 
index 24f6b41e3117d9159adb5a01761b0f0d5ad27427..4385914347dbe05cbe734edff6efadb6e271f5b3 100644 (file)
@@ -1755,6 +1755,13 @@ while (0)
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
   fprintf (FILE, "\t.byte 0x%x\n", (VALUE))
 
+/* C string constants giving the pseudo-op to use for a sequence of
+   2, 4, and 8 byte unaligned constants.  dwarf2out.c needs these.  */
+
+#define UNALIGNED_SHORT_ASM_OP         (TARGET_GAS ? "\t.half " : NULL)
+#define UNALIGNED_INT_ASM_OP           (TARGET_GAS ? "\t.word " : NULL)
+#define UNALIGNED_DOUBLE_INT_ASM_OP    (TARGET_GAS ? "\t.dword " : NULL)
+
 #define ASM_GLOBALIZE_LABEL(FILE, NAME)                                        \
   do {                                                                 \
     /* We only handle DATA objects here, functions are globalized in   \
index 0d20555e5abd2a4321c5b160eb38b540c3b1be2b..7588b66d9c29ae42884272d432147b6cfbb515b4 100644 (file)
@@ -51,6 +51,15 @@ Boston, MA 02111-1307, USA.  */
   fprintf (FILE,                                                       \
           "\t.stabs \"\",%d,0,0,L$text_end0000\nL$text_end0000:\n", N_SO)
 
+/* 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.  Because
+   the HP assembler does auto alignment, it is necessary to use
+   DW_EH_PE_aligned instead of the default DW_EH_PE_absptr.  */
+
+#define ASM_PREFERRED_EH_DATA_FORMAT(CODE, GLOBAL) \
+  (TARGET_GAS ? DW_EH_PE_absptr : DW_EH_PE_aligned)
+
 /* HPUX has a program 'chatr' to list the dependencies of dynamically
    linked executables and shared libraries.  */
 #define LDD_SUFFIX "chatr"