diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-21 20:06:37 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-21 20:06:37 +0000 |
commit | f5bbc09d23910c2632a70ace9d17e8d981051c39 (patch) | |
tree | c9f0a31a5ee4dac6302240cee22816afe783d6e6 | |
parent | ee8234bf23e9f22a25eac82c1eead05003230be9 (diff) | |
download | gcc-f5bbc09d23910c2632a70ace9d17e8d981051c39.zip gcc-f5bbc09d23910c2632a70ace9d17e8d981051c39.tar.gz gcc-f5bbc09d23910c2632a70ace9d17e8d981051c39.tar.bz2 |
(CPP_PREDEFINES): Add -D__svr4__.
(ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL):
New override definitions.
From-SVN: r4532
-rw-r--r-- | gcc/config/m68k/amix.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gcc/config/m68k/amix.h b/gcc/config/m68k/amix.h index 567e458..40e48bf 100644 --- a/gcc/config/m68k/amix.h +++ b/gcc/config/m68k/amix.h @@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES \ - "-Dm68k -Dunix -DAMIX -Amachine(m68k) -Acpu(m68k) -Asystem(unix) -Alint(off)" + "-Dm68k -Dunix -DAMIX -D__svr4__ -Amachine(m68k) -Acpu(m68k) -Asystem(unix) -Alint(off)" /* At end of a switch table, define LDnnn iff the symbol LInnn was defined. Some SGS assemblers have a bug such that "Lnnn-LInnn-2.b(pc,d0.l*2)" @@ -121,3 +121,22 @@ do { \ } while (sp < (LEN)); \ putc ('\n', (FILE)); \ } + +/* Override these for the sake of an assembler bug: the Amix + assembler can't handle .LC0@GOT syntax. This pollutes the final + table for shared librarys but what's a poor soul to do; sigh... RFH */ + +#undef ASM_GENERATE_INTERNAL_LABEL +#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ + if (flag_pic && !strcmp(PREFIX,"LC")) \ + sprintf (LABEL, "*%s%%%d", PREFIX, NUM); \ + else \ + sprintf (LABEL, "*%s%s%d", LOCAL_LABEL_PREFIX, PREFIX, NUM) + +#undef ASM_OUTPUT_INTERNAL_LABEL +#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ + if (flag_pic && !strcmp(PREFIX,"LC")) \ + asm_fprintf (FILE, "%s%%%d:\n", PREFIX, NUM); \ + else \ + asm_fprintf (FILE, "%0L%s%d:\n", PREFIX, NUM) + |