aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-01-24 14:52:18 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-01-24 14:52:18 -0800
commitd10b5bca4e8ee60440fcf97e45950b06f6a57cbb (patch)
tree5b4acb6a337e3c7a1d2b2b5263c4592a610b35f9 /gcc
parentde74274fd25d13ccddd8112e588907116582e2ab (diff)
downloadgcc-d10b5bca4e8ee60440fcf97e45950b06f6a57cbb.zip
gcc-d10b5bca4e8ee60440fcf97e45950b06f6a57cbb.tar.gz
gcc-d10b5bca4e8ee60440fcf97e45950b06f6a57cbb.tar.bz2
(ASM_OUTPUT_NEWLINE): New default for new macro.
(ASM_OUTPUT_ASCII): Use ASM_OUTPUT_NEWLINE. From-SVN: r6423
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/mips/mips.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index efd6d00..f3866e8 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -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)) \