Commit a62eb16f by Jim Wilson

(FUNCTION_PROFILER, FUNCTION_BLOCK_PROFILER,

BLOCK_PROFILER): Use multiple fputs/fprintf calls instead of ANSI
C concatenated strings.

From-SVN: r7642
parent 62a66e07
...@@ -911,9 +911,9 @@ extern char *alpha_function_name; ...@@ -911,9 +911,9 @@ extern char *alpha_function_name;
#define FUNCTION_PROFILER(FILE, LABELNO) \ #define FUNCTION_PROFILER(FILE, LABELNO) \
do { \ do { \
fputs ("\tlda $27,_mcount\n" \ fputs ("\tlda $27,_mcount\n", (FILE)); \
"\tjsr $27,($27),_mcount\n" \ fputs ("\tjsr $27,($27),_mcount\n", (FILE)); \
"\tldgp $29,0($26)\n", (FILE)); \ fputs ("\tldgp $29,0($26)\n", (FILE)); \
} while (0); } while (0);
...@@ -924,13 +924,13 @@ extern char *alpha_function_name; ...@@ -924,13 +924,13 @@ extern char *alpha_function_name;
#define FUNCTION_BLOCK_PROFILER(FILE, LABELNO) \ #define FUNCTION_BLOCK_PROFILER(FILE, LABELNO) \
do { \ do { \
ASM_OUTPUT_REG_PUSH (FILE, 16); \ ASM_OUTPUT_REG_PUSH (FILE, 16); \
fputs ( "\tlda $16,$PBX32\n" \ fputs ("\tlda $16,$PBX32\n", (FILE)); \
"\tldq $26,0($16)\n" \ fputs ("\tldq $26,0($16)\n", (FILE)); \
"\tbne $26,1f\n" \ fputs ("\tbne $26,1f\n", (FILE)); \
"\tlda $27,__bb_init_func\n" \ fputs ("\tlda $27,__bb_init_func\n", (FILE)); \
"\tjsr $26,($27),__bb_init_func\n" \ fputs ("\tjsr $26,($27),__bb_init_func\n", (FILE)); \
"\tldgp $29,0($26)\n" \ fputs ("\tldgp $29,0($26)\n", (FILE)); \
"1:\n", (FILE)); \ fputs ("1:\n", (FILE)); \
ASM_OUTPUT_REG_POP (FILE, 16); \ ASM_OUTPUT_REG_POP (FILE, 16); \
} while (0); } while (0);
...@@ -940,17 +940,16 @@ extern char *alpha_function_name; ...@@ -940,17 +940,16 @@ extern char *alpha_function_name;
#define BLOCK_PROFILER(FILE, BLOCKNO) \ #define BLOCK_PROFILER(FILE, BLOCKNO) \
do { \ do { \
int blockn = (BLOCKNO); \ int blockn = (BLOCKNO); \
fprintf (FILE, \ fputs ("\tsubq $30,16,$30\n", (FILE)); \
"\tsubq $30,16,$30\n" \ fputs ("\tstq $0,0($30)\n", (FILE)); \
"\tstq $0,0($30)\n" \ fputs ("\tstq $1,8($30)\n", (FILE)); \
"\tstq $1,8($30)\n" \ fputs ("\tlda $0,$PBX34\n", (FILE)); \
"\tlda $0,$PBX34\n" \ fprintf ((FILE), "\tldq $1,%d($0)\n", 8*blockn); \
"\tldq $1,%d($0)\n" \ fputs ("\taddq $1,1,$1\n", (FILE)); \
"\taddq $1,1,$1\n" \ fprintf ((FILE), "\tstq $1,%d($0)\n", 8*blockn); \
"\tstq $1,%d($0)\n" \ fputs ("\tldq $0,0($30)\n", (FILE)); \
"\tldq $0,0($30)\n" \ fputs ("\tldq $1,8($30)\n", (FILE)); \
"\tldq $1,8($30)\n" \ fputs ("\taddq $30,16,$30\n", (FILE)); \
"\taddq $30,16,$30\n", 8*blockn, 8*blockn); \
} while (0) } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment