diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-22 17:11:57 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-22 17:11:57 +0000 |
commit | 8397f403aafc95b8141c47590f26321f040c69ef (patch) | |
tree | 8a6e326d1ca8bf4b8f06e780159256d88db6ff61 /gcc/ra-debug.c | |
parent | 7aee3c57c1829894884f0232772dab762012f116 (diff) | |
download | gcc-8397f403aafc95b8141c47590f26321f040c69ef.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55652 138bc75d-0d04-0410-961f-82ee72b054a4
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 a96d708d9b2..a20e9901ae5 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 |