(FUNCTION_PROFILER, FUNCTION_BLOCK_PROFILER,
authorJim Wilson <wilson@gcc.gnu.org>
Sat, 2 Jul 1994 22:57:01 +0000 (15:57 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Sat, 2 Jul 1994 22:57:01 +0000 (15:57 -0700)
BLOCK_PROFILER): Use multiple fputs/fprintf calls instead of ANSI
C concatenated strings.

From-SVN: r7642

gcc/config/alpha/alpha.h

index a718d0bbc76c457bdb3b6037ddb3530dcb6926e0..f8b1c125d7e2040a6292fb0f2487b892d2a3765e 100644 (file)
@@ -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)