diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-05-17 18:44:49 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-05-17 18:44:49 +0000 |
commit | c66257ad31f4115d94bdbd9bbb6fef5c36a4ef34 (patch) | |
tree | 4ae7dac53e680530a75dd992dbc912563ba8a8d1 /gcc/config/mips/iris4.h | |
parent | e66de6672ccebc9439d28415e2d88f1ab0eca59c (diff) | |
download | gcc-c66257ad31f4115d94bdbd9bbb6fef5c36a4ef34.tar.gz |
(ASM_OUTPUT_ASCII): New overriding definition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4489 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/iris4.h')
-rw-r--r-- | gcc/config/mips/iris4.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/mips/iris4.h b/gcc/config/mips/iris4.h index a69456c77ec..2aab3eb6187 100644 --- a/gcc/config/mips/iris4.h +++ b/gcc/config/mips/iris4.h @@ -22,3 +22,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_ATEXIT #include "mips/iris3.h" + +/* Assembler is said to have trouble with .ascii with escape chars. + The quickest way to avoid the problem is not to use .ascii. */ +#undef ASM_OUTPUT_ASCII +#define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ +{ \ + unsigned char *s; \ + int i; \ + for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ + { \ + if ((i % 8) == 0) \ + fputs ("\n\t.byte\t", (FILE)); \ + fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \ + } \ + fputs ("\n", (FILE)); \ +} |