diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-07-02 15:57:01 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-07-02 15:57:01 -0700 |
commit | a62eb16fe19e03e8b123dd15e203c573abbeac55 (patch) | |
tree | 416898f584bb7c49e15beb65b258bbf844d0f82b | |
parent | 62a66e0735bc34971c54fcc1a1df854afa333ec4 (diff) | |
download | gcc-a62eb16fe19e03e8b123dd15e203c573abbeac55.zip gcc-a62eb16fe19e03e8b123dd15e203c573abbeac55.tar.gz gcc-a62eb16fe19e03e8b123dd15e203c573abbeac55.tar.bz2 |
(FUNCTION_PROFILER, FUNCTION_BLOCK_PROFILER,
BLOCK_PROFILER): Use multiple fputs/fprintf calls instead of ANSI
C concatenated strings.
From-SVN: r7642
-rw-r--r-- | gcc/config/alpha/alpha.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index a718d0b..f8b1c12 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -911,9 +911,9 @@ extern char *alpha_function_name; #define FUNCTION_PROFILER(FILE, LABELNO) \ do { \ - fputs ("\tlda $27,_mcount\n" \ - "\tjsr $27,($27),_mcount\n" \ - "\tldgp $29,0($26)\n", (FILE)); \ + fputs ("\tlda $27,_mcount\n", (FILE)); \ + fputs ("\tjsr $27,($27),_mcount\n", (FILE)); \ + fputs ("\tldgp $29,0($26)\n", (FILE)); \ } while (0); @@ -924,13 +924,13 @@ extern char *alpha_function_name; #define FUNCTION_BLOCK_PROFILER(FILE, LABELNO) \ do { \ ASM_OUTPUT_REG_PUSH (FILE, 16); \ - fputs ( "\tlda $16,$PBX32\n" \ - "\tldq $26,0($16)\n" \ - "\tbne $26,1f\n" \ - "\tlda $27,__bb_init_func\n" \ - "\tjsr $26,($27),__bb_init_func\n" \ - "\tldgp $29,0($26)\n" \ - "1:\n", (FILE)); \ + fputs ("\tlda $16,$PBX32\n", (FILE)); \ + fputs ("\tldq $26,0($16)\n", (FILE)); \ + fputs ("\tbne $26,1f\n", (FILE)); \ + fputs ("\tlda $27,__bb_init_func\n", (FILE)); \ + fputs ("\tjsr $26,($27),__bb_init_func\n", (FILE)); \ + fputs ("\tldgp $29,0($26)\n", (FILE)); \ + fputs ("1:\n", (FILE)); \ ASM_OUTPUT_REG_POP (FILE, 16); \ } while (0); @@ -940,17 +940,16 @@ extern char *alpha_function_name; #define BLOCK_PROFILER(FILE, BLOCKNO) \ do { \ int blockn = (BLOCKNO); \ - fprintf (FILE, \ - "\tsubq $30,16,$30\n" \ - "\tstq $0,0($30)\n" \ - "\tstq $1,8($30)\n" \ - "\tlda $0,$PBX34\n" \ - "\tldq $1,%d($0)\n" \ - "\taddq $1,1,$1\n" \ - "\tstq $1,%d($0)\n" \ - "\tldq $0,0($30)\n" \ - "\tldq $1,8($30)\n" \ - "\taddq $30,16,$30\n", 8*blockn, 8*blockn); \ + fputs ("\tsubq $30,16,$30\n", (FILE)); \ + fputs ("\tstq $0,0($30)\n", (FILE)); \ + fputs ("\tstq $1,8($30)\n", (FILE)); \ + fputs ("\tlda $0,$PBX34\n", (FILE)); \ + fprintf ((FILE), "\tldq $1,%d($0)\n", 8*blockn); \ + fputs ("\taddq $1,1,$1\n", (FILE)); \ + fprintf ((FILE), "\tstq $1,%d($0)\n", 8*blockn); \ + fputs ("\tldq $0,0($30)\n", (FILE)); \ + fputs ("\tldq $1,8($30)\n", (FILE)); \ + fputs ("\taddq $30,16,$30\n", (FILE)); \ } while (0) |