]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
authorRichard Henderson <rth@gcc.gnu.org>
Mon, 21 Jun 1999 20:15:14 +0000 (13:15 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 21 Jun 1999 20:15:14 +0000 (13:15 -0700)
        * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
        (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
        * alpha/elf.h: Undef them again.
        * alpha/vms.h: Remove their definitions.

From-SVN: r27679

gcc/config/alpha/alpha.h
gcc/config/alpha/elf.h
gcc/config/alpha/vms.h

index 85711182a52418a1c301c1272022b61008955704..42599f91acaae82e0bfcec2d1d5a0680a4e0a9a9 100644 (file)
@@ -2145,6 +2145,11 @@ literal_section ()                                               \
   }                                                                          \
   while (0)
 
+/* To get unaligned data, we have to turn off auto alignment.  */
+#define UNALIGNED_SHORT_ASM_OP         ".align 0\n\t.word"
+#define UNALIGNED_INT_ASM_OP           ".align 0\n\t.long"
+#define UNALIGNED_DOUBLE_INT_ASM_OP    ".align 0\n\t.quad"
+
 /* This is how to output an insn to push a register on the stack.
    It need not be very fast code.  */
 
index 0e647ef534ce43458155da0cc15a53b2f44ab527..6cea3da5d5b45d8d32d2f716dfb2a2320f62c7fe 100644 (file)
@@ -526,3 +526,9 @@ do {                                                                        \
 
 /* We support #pragma.  */
 #define HANDLE_SYSV_PRAGMA
+
+/* Undo the auto-alignment stuff from alpha.h.  ELF has unaligned data
+   pseudos natively.  */
+#undef UNALIGNED_SHORT_ASM_OP
+#undef UNALIGNED_INT_ASM_OP
+#undef UNALIGNED_DOUBLE_INT_ASM_OP
index 44cf5bf82dff5093b3068a554c41a477b70f3e93..44388b2cf33df4e1d4413eb58ec87d79c39c50ae 100644 (file)
@@ -439,10 +439,6 @@ extern int vms_valid_decl_attribute_p ();
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
     fprintf (FILE, "\t.align %d\n", LOG);
 
-#define UNALIGNED_SHORT_ASM_OP ".word"
-#define UNALIGNED_INT_ASM_OP   ".long"
-#define UNALIGNED_DOUBLE_INT_ASM_OP    ".quad"
-
 #define ASM_OUTPUT_SECTION(FILE,SECTION)                       \
    (strcmp (SECTION, ".text") == 0)                            \
      ? text_section ()                                         \