final.c: Revert back my previous changes.

* final.c: Revert back my previous changes.
        * output.h: Make profile_label_no extern.
        * config/rs6000/rs6000.c (output_profile_hook): Use standard functions
        for generating label.

From-SVN: r39506
This commit is contained in:
Chandrakala Chavva 2001-02-06 20:05:35 -05:00 committed by Chandra Chavva
parent 7739adfb17
commit 8480e4804c
4 changed files with 24 additions and 16 deletions

View File

@ -1,3 +1,10 @@
2001-02-06 Chandrakala Chavva <cchavva@redhat.com>
* final.c: Revert back my previous changes.
* output.h: Make profile_label_no extern.
* config/rs6000/rs6000.c (output_profile_hook): Use standard functions
for generating label.
2001-02-06 Laurynas Biveinis <lauras@softhome.net> 2001-02-06 Laurynas Biveinis <lauras@softhome.net>
* config/i386/djgpp.h: Add comments about standard paths. * config/i386/djgpp.h: Add comments about standard paths.

View File

@ -7118,24 +7118,21 @@ void
output_profile_hook (labelno) output_profile_hook (labelno)
int labelno; int labelno;
{ {
if (DEFAULT_ABI == ABI_AIX)
{
char buf[30];
char *label_name;
rtx fun;
if (profile_flag && DEFAULT_ABI == ABI_AIX) labelno += 1;
{
char *buf;
int length = 0;
rtx fun;
labelno += 1; ASM_GENERATE_INTERNAL_LABEL (buf, "LP", labelno);
buf = permalloc (labelno+6); STRIP_NAME_ENCODING (label_name, ggc_strdup (buf));
fun = gen_rtx_SYMBOL_REF (Pmode, label_name);
ASM_GENERATE_INTERNAL_LABEL (buf, "LP", labelno); emit_library_call (init_one_libfunc (RS6000_MCOUNT), 0, VOIDmode, 1,
fun, Pmode);
fun = gen_rtx_SYMBOL_REF (Pmode, buf+1); }
emit_library_call (init_one_libfunc (RS6000_MCOUNT), 0, VOIDmode, 1,
fun, Pmode, Pmode);
}
} }
/* Write function profiler code. */ /* Write function profiler code. */

View File

@ -205,6 +205,10 @@ char regs_ever_live[FIRST_PSEUDO_REGISTER];
int frame_pointer_needed; int frame_pointer_needed;
/* Assign unique numbers to labels generated for profiling. */
int profile_label_no;
/* Number of unmatched NOTE_INSN_BLOCK_BEG notes we have seen. */ /* Number of unmatched NOTE_INSN_BLOCK_BEG notes we have seen. */
static int block_depth; static int block_depth;

View File

@ -459,4 +459,4 @@ extern const char *user_label_prefix;
#endif #endif
/* Assign unique numbers to labels generated for profiling. */ /* Assign unique numbers to labels generated for profiling. */
int profile_label_no; extern int profile_label_no;