diff options
author | Richard Stallman <rms@gnu.org> | 1992-10-30 01:16:23 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-10-30 01:16:23 +0000 |
commit | e28d6e8a917f47a50d6d29c484d6609a75450966 (patch) | |
tree | df8925698646b5b0769c20f72d8fc951ae96fc63 /gcc | |
parent | 7b2b3f1f705c1ea27e9b2ccee7e5f369a0f32b44 (diff) | |
download | gcc-e28d6e8a917f47a50d6d29c484d6609a75450966.zip gcc-e28d6e8a917f47a50d6d29c484d6609a75450966.tar.gz gcc-e28d6e8a917f47a50d6d29c484d6609a75450966.tar.bz2 |
(ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL):
Override, if NO_UNDERSCORES.
From-SVN: r2654
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/gas.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h index a57e2f1..141a857 100644 --- a/gcc/config/i386/gas.h +++ b/gcc/config/i386/gas.h @@ -134,3 +134,25 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Print opcodes the way that GAS expects them. */ #define GAS_MNEMONICS 1 + +#ifdef NO_UNDERSCORES /* If user-symbols don't have underscores, + then it must take more than `L' to identify + a label that should be ignored. */ + +/* This is how to store into the string BUF + the symbol_ref name of an internal numbered label where + PREFIX is the class of label and NUM is the number within the class. + This is suitable for output with `assemble_name'. */ + +#undef ASM_GENERATE_INTERNAL_LABEL +#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ + sprintf ((BUF), ".%s%d", (PREFIX), (NUMBER)) + +/* This is how to output an internal numbered label where + PREFIX is the class of label and NUM is the number within the class. */ + +#undef ASM_OUTPUT_INTERNAL_LABEL +#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ + fprintf (FILE, ".%s%d:\n", PREFIX, NUM) + +#endif /* NO_UNDERSCORES */ |