]> gcc.gnu.org Git - gcc.git/commitdiff
(ASM_OUTPUT_ALIGNED_COMMON): #undef this.
authorRichard Stallman <rms@gnu.org>
Sun, 12 Jul 1992 21:12:57 +0000 (21:12 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 12 Jul 1992 21:12:57 +0000 (21:12 +0000)
(ASM_OUTPUT_ASCII): New overriding definition.
(ASM_OUTPUT_CASE_END): New overriding definition.

From-SVN: r1577

gcc/config/m68k/m68kv4.h

index 69548839c31471cfc2522259f67605abb53652b9..2cf5dc4699ded49dba1cb6f7fc92295c27d5fc8c 100644 (file)
@@ -181,3 +181,52 @@ do {                                                                       \
        
 #undef BIGGEST_ALIGNMENT
 #define BIGGEST_ALIGNMENT 64
+
+/* SVR4 m68k assembler is bitching on the `comm i,1,1' which askes for 
+   1 byte alignment. Don't generate alignment for COMMON seems to be
+   safer until we the assembler is fixed. */
+#undef ASM_OUTPUT_ALIGNED_COMMON
+#undef ASM_OUTPUT_ALIGNED_LOCAL
+
+/* The `string' directive on m68k svr4 does not handle string with
+   escape char (ie., `\') right. Use normal way to output ASCII bytes
+   seems to be safer. */
+#undef ASM_OUTPUT_ASCII
+#define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                         \
+{                                                              \
+  register int sp = 0, lp = 0, ch;                             \
+  fprintf ((FILE), "\t%s ", BYTE_ASM_OP);                      \
+  do {                                                         \
+    ch = (PTR)[sp];                                            \
+    if (ch > ' ' && ! (ch & 0x80) && ch != '\\')               \
+      {                                                                \
+       fprintf ((FILE), "'%c", ch);                            \
+      }                                                                \
+    else                                                       \
+      {                                                                \
+       fprintf ((FILE), "0x%x", ch);                           \
+      }                                                                \
+    if (++sp < (LEN))                                          \
+      {                                                                \
+       if ((sp % 10) == 0)                                     \
+         {                                                     \
+           fprintf ((FILE), "\n\t%s ", BYTE_ASM_OP);           \
+         }                                                     \
+       else                                                    \
+         {                                                     \
+           putc (',', (FILE));                                 \
+         }                                                     \
+      }                                                                \
+  } while (sp < (LEN));                                                \
+  putc ('\n', (FILE));                                         \
+}
+
+/* SVR4 m68k assembler is bitching on the syntax `2.b'. Change
+   it back to use the "LLDnnn-LLnnn" format. */
+
+#undef ASM_OUTPUT_CASE_END
+#define ASM_OUTPUT_CASE_END(FILE,NUM,TABLE)             \
+  if (RTX_INTEGRATED_P (TABLE))                         \
+    asm_fprintf (FILE, "\t%s %LLD%d,%LL%d\n",\
+                 SET_ASM_OP, (NUM), (NUM))
+
This page took 0.057365 seconds and 5 git commands to generate.