Small patch for 1.0.2 (m68k-motorola-sysv config.)
Manfred Hollstein
manfred@s-direktnet.de
Sat Mar 14 06:27:00 GMT 1998
I believe the following patch should go into the 1.0.2 release. It's
reasonably safe (actually, I tested it since Oct last year and it's in
the main trunk and even in gcc-2.8.1) and correct bugs on a
m68k-motorola-sysv configuration.
Thu Oct 9 17:03:37 1997 Manfred Hollstein <manfred@s-direktnet.de>
* config/m68k/mot3300.h (ASM_BYTE_OP): Don't include '\t' in the
definition.
(ASM_OUTPUT_ASCII): Prefix ASM_BYTE_OP by one single '\t'.
diff -rup -x CVS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-1.0.2-980313.orig/gcc/config/m68k/mot3300.h egcs-1.0.2-980313/gcc/config/m68k/mot3300.h
--- egcs-1.0.2-980313.orig/gcc/config/m68k/mot3300.h Wed Nov 19 20:51:48 1997
+++ egcs-1.0.2-980313/gcc/config/m68k/mot3300.h Sat Mar 14 12:28:31 1998
@@ -356,7 +356,7 @@ dtors_section () \
#undef ASM_BYTE
#define ASM_BYTE ".byte"
#undef ASM_BYTE_OP
-#define ASM_BYTE_OP "\t.byte"
+#define ASM_BYTE_OP ".byte"
#else
#undef ASM_LONG
#define ASM_LONG "long"
@@ -367,7 +367,7 @@ dtors_section () \
#undef ASM_BYTE
#define ASM_BYTE "byte"
#undef ASM_BYTE_OP
-#define ASM_BYTE_OP "\tbyte"
+#define ASM_BYTE_OP "byte"
#endif /* USE_GAS */
/* The sysV68 as doesn't know about double's and float's. */
@@ -476,7 +476,7 @@ do { long l; \
#undef ASM_OUTPUT_ASCII
#define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \
do { register int sp = 0, lp = 0; \
- fprintf ((FILE), "%s\t", ASM_BYTE_OP); \
+ fprintf ((FILE), "\t%s\t", ASM_BYTE_OP); \
loop: \
if ((PTR)[sp] > ' ' && ! ((PTR)[sp] & 0x80) && (PTR)[sp] != '\\') \
{ lp += 3; \
More information about the Gcc-bugs
mailing list