This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gas produces a syntax error under sh (cc -pg)
- To: gcc-patches at gcc dot gnu dot org
- Subject: gas produces a syntax error under sh (cc -pg)
- From: SAITOH Masanobu <masanobu at iij dot ad dot jp>
- Date: Thu, 03 Aug 2000 12:24:47 +0900
- Cc: SAITOH Masanobu <masanobu at iij dot ad dot jp>
gcc for Super-H with "-pg" produces a invalid addressing mode.
It caused syntax error when assembling.
It seems a typo. Trivial patches:
--- 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)