diff options
author | Doug Evans <dje@gnu.org> | 1996-04-11 01:12:55 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1996-04-11 01:12:55 +0000 |
commit | b5ccf84723cddc99d3800e610b625980d47eecde (patch) | |
tree | dfca1b92f69f6fc72b07dbbd4737915acf66e98f | |
parent | 1fbf41ca128f2e6cde3abcc2e7400919c8103d37 (diff) | |
download | gcc-b5ccf84723cddc99d3800e610b625980d47eecde.zip gcc-b5ccf84723cddc99d3800e610b625980d47eecde.tar.gz gcc-b5ccf84723cddc99d3800e610b625980d47eecde.tar.bz2 |
sparc.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
* sparc/sparc.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
(FUNCTION_PROFILER): Use ASM_GENERATE_INTERNAL_LABEL instead.
From-SVN: r11695
-rw-r--r-- | gcc/config/sparc/sparc.h | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 7aae15f..be31763 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1676,17 +1676,18 @@ extern int leaf_function; #define FUNCTION_PROFILER(FILE, LABELNO) \ do { \ + char buf[20]; \ + ASM_GENERATE_INTERNAL_LABEL (buf, "LP", (LABELNO)); \ if (! TARGET_ARCH64) \ fputs ("\tst %g2,[%fp-4]\n", FILE); \ - fputs ("\tsethi %hi(", (FILE)); \ - ASM_OUTPUT_INTERNAL_LABELREF (FILE, "LP", LABELNO); \ - fputs ("),%o0\n", (FILE)); \ + fputs ("\tsethi %hi(", FILE); \ + assemble_name (FILE, buf); \ + fputs ("),%o0\n", FILE); \ if (TARGET_MEDANY) \ - fprintf (FILE, "\tadd %%o0,%s,%%o0\n", \ - MEDANY_BASE_REG); \ - fputs ("\tcall mcount\n\tadd %lo(", (FILE)); \ - ASM_OUTPUT_INTERNAL_LABELREF (FILE, "LP", LABELNO); \ - fputs ("),%o0,%o0\n", (FILE)); \ + fprintf (FILE, "\tadd %o0,%s,%o0\n", MEDANY_BASE_REG); \ + fputs ("\tcall mcount\n\tadd %o0,%lo(", FILE); \ + assemble_name (FILE, buf); \ + fputs ("),%o0\n", FILE); \ if (! TARGET_ARCH64) \ fputs ("\tld [%fp-4],%g2\n", FILE); \ } while (0) @@ -2803,15 +2804,6 @@ extern struct rtx_def *legitimize_pic_address (); #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ fprintf (FILE, "%s%d:\n", PREFIX, NUM) -/* This is how to output a reference to an internal numbered label where - PREFIX is the class of label and NUM is the number within the class. */ -/* FIXME: This should be used throughout gcc, and documented in the texinfo - files. There is no reason you should have to allocate a buffer and - `sprintf' to reference an internal label (as opposed to defining it). */ - -#define ASM_OUTPUT_INTERNAL_LABELREF(FILE,PREFIX,NUM) \ - fprintf (FILE, "%s%d", PREFIX, NUM) - /* This is how to store into the string LABEL the symbol_ref name of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. |