(ASM_OUTPUT_NEWLINE): New default for new macro.
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 24 Jan 1994 22:52:18 +0000 (14:52 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 24 Jan 1994 22:52:18 +0000 (14:52 -0800)
(ASM_OUTPUT_ASCII): Use ASM_OUTPUT_NEWLINE.

From-SVN: r6423

gcc/config/mips/mips.h

index efd6d00c964649f13fd41d92b1af26b3cebe5a37..f3866e85a4bb130e93e1b36ff2a24289962438e5 100644 (file)
@@ -3342,6 +3342,13 @@ do {                                                                     \
   fprintf (STREAM, "\t.space\t%u\n", (SIZE))
 
 
+/* Some RISCOS assemblers don't correctly handle \n in a .ascii directive,
+   so we have separated out this part so that it can be machine dependent.  */
+#ifndef ASM_OUTPUT_NEWLINE
+#define ASM_OUTPUT_NEWLINE(STREAM) \
+  fputs ("\\n", (STREAM));
+#endif
+
 /* This is how to output a string.  */
 #define ASM_OUTPUT_ASCII(STREAM, STRING, LEN)                          \
 do {                                                                   \
@@ -3362,7 +3369,7 @@ do {                                                                      \
          break;                                                        \
                                                                        \
        case TARGET_NEWLINE:                                            \
-         fputs ("\\n", (STREAM));                                      \
+         ASM_OUTPUT_NEWLINE (STREAM);                                  \
          if (i+1 < len                                                 \
              && (((c = string[i+1]) >= '\040' && c <= '~')             \
                  || c == TARGET_TAB))                                  \