diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-07-22 17:11:57 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-07-22 17:11:57 +0000 |
commit | c2ae8aef4e37a4e43565aafc552d62bb4a485431 (patch) | |
tree | 8a6e326d1ca8bf4b8f06e780159256d88db6ff61 /gcc/ra-debug.c | |
parent | eab2120d5efebd6b7c29730692ff165b471b7eac (diff) | |
download | gcc-c2ae8aef4e37a4e43565aafc552d62bb4a485431.zip gcc-c2ae8aef4e37a4e43565aafc552d62bb4a485431.tar.gz gcc-c2ae8aef4e37a4e43565aafc552d62bb4a485431.tar.bz2 |
hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE, [...]): New formatting macros.
* hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
New formatting macros.
* ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
From-SVN: r55652
Diffstat (limited to 'gcc/ra-debug.c')
-rw-r--r-- | gcc/ra-debug.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/gcc/ra-debug.c b/gcc/ra-debug.c index a96d708..a20e990 100644 --- a/gcc/ra-debug.c +++ b/gcc/ra-debug.c @@ -981,16 +981,21 @@ dump_static_insn_cost (file, message, prefix) if (!prefix) prefix = ""; fprintf (file, "static insn cost %s\n", message ? message : ""); - fprintf (file, " %soverall:\tnum=%6d\tcost=%8d\n", prefix, overall.count, - overall.cost); - fprintf (file, " %sloads:\tnum=%6d\tcost=%8d\n", prefix, load.count, - load.cost); - fprintf (file, " %sstores:\tnum=%6d\tcost=%8d\n", prefix, - store.count, store.cost); - fprintf (file, " %sregcopy:\tnum=%6d\tcost=%8d\n", prefix, regcopy.count, - regcopy.cost); - fprintf (file, " %sselfcpy:\tnum=%6d\tcost=%8d\n", prefix, selfcopy.count, - selfcopy.cost); + fprintf (file, " %soverall:\tnum=%6d\tcost=", prefix, overall.count); + fprintf (file, HOST_WIDE_INT_PRINT_DEC_SPACE, 8, overall.cost); + fprintf (file, "\n"); + fprintf (file, " %sloads:\tnum=%6d\tcost=", prefix, load.count); + fprintf (file, HOST_WIDE_INT_PRINT_DEC_SPACE, 8, load.cost); + fprintf (file, "\n"); + fprintf (file, " %sstores:\tnum=%6d\tcost=", prefix, store.count); + fprintf (file, HOST_WIDE_INT_PRINT_DEC_SPACE, 8, store.cost); + fprintf (file, "\n"); + fprintf (file, " %sregcopy:\tnum=%6d\tcost=", prefix, regcopy.count); + fprintf (file, HOST_WIDE_INT_PRINT_DEC_SPACE, 8, regcopy.cost); + fprintf (file, "\n"); + fprintf (file, " %sselfcpy:\tnum=%6d\tcost=", prefix, selfcopy.count); + fprintf (file, HOST_WIDE_INT_PRINT_DEC_SPACE, 8, selfcopy.cost); + fprintf (file, "\n"); } /* Returns nonzero, if WEB1 and WEB2 have some possible |