diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 693ee507ed5..142c0eca4be 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-11-11 Jie Zhang + + * config/bfin/bfin.h (FUNCTION_PROFILER): Don't use LABELNO. + (NO_PROFILE_COUNTERS): Define as 1. + 2006-11-10 Roger Sayle * fold-const.c (operand_equal_p) : diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index 6f270ce3c62..bd4d9c2b548 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -1210,12 +1210,14 @@ do { \ #define ASM_COMMENT_START "//" -#define FUNCTION_PROFILER(FILE, LABELNO) \ - do {\ - fprintf (FILE, "\tP1.l =LP$%d; P1.h =LP$%d; call mcount;\n", \ - LABELNO, LABELNO);\ +#define FUNCTION_PROFILER(FILE, LABELNO) \ + do { \ + fprintf (FILE, "\tCALL __mcount;\n"); \ } while(0) +#undef NO_PROFILE_COUNTERS +#define NO_PROFILE_COUNTERS 1 + #define ASM_OUTPUT_REG_PUSH(FILE, REGNO) fprintf (FILE, "[SP--] = %s;\n", reg_names[REGNO]) #define ASM_OUTPUT_REG_POP(FILE, REGNO) fprintf (FILE, "%s = [SP++];\n", reg_names[REGNO])