gas produces a syntax error under sh (cc -pg)

SAITOH Masanobu masanobu@iij.ad.jp
Wed Aug 2 19:49:00 GMT 2000


 gcc for Super-H with "-pg" produces a invalid addressing mode.
It caused syntax error when assembling.


--- gcc/config/sh/sh.h.orig	Wed Jun 14 06:47:44 2000
+++ gcc/config/sh/sh.h	Thu Aug  3 11:38:16 2000
@@ -1868,7 +1868,7 @@
 }
 
 #define ASM_OUTPUT_REG_PUSH(file, v) \
-  fprintf ((file), "\tmov.l\tr%d,-@r15\n", (v));
+  fprintf ((file), "\tmov.l\tr%d,@-r15\n", (v));
 
 #define ASM_OUTPUT_REG_POP(file, v) \
   fprintf ((file), "\tmov.l\t@r15+,r%d\n", (v));

----------------------------------------------------------
		SAITOH Masanobu (masanobu@iij.ad.jp
				  msaitoh@netbsd.org)


More information about the Gcc-bugs mailing list