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/hwint.h | |
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/hwint.h')
-rw-r--r-- | gcc/hwint.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/hwint.h b/gcc/hwint.h index 9589c321a78..2c143799018 100644 --- a/gcc/hwint.h +++ b/gcc/hwint.h @@ -73,13 +73,16 @@ # if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT # define HOST_WIDE_INT_PRINT_DEC "%d" # define HOST_WIDE_INT_PRINT_DEC_C "%d" +# define HOST_WIDE_INT_PRINT_DEC_SPACE "% *d" # else # if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG # define HOST_WIDE_INT_PRINT_DEC "%ld" # define HOST_WIDE_INT_PRINT_DEC_C "%ldL" +# define HOST_WIDE_INT_PRINT_DEC_SPACE "% *ld" # else # define HOST_WIDE_INT_PRINT_DEC "%lld" # define HOST_WIDE_INT_PRINT_DEC_C "%lldLL" +# define HOST_WIDE_INT_PRINT_DEC_SPACE "% *lld" # endif # endif #endif /* ! HOST_WIDE_INT_PRINT_DEC */ @@ -87,11 +90,14 @@ #ifndef HOST_WIDE_INT_PRINT_UNSIGNED # if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT # define HOST_WIDE_INT_PRINT_UNSIGNED "%u" +# define HOST_WIDE_INT_PRINT_UNSIGNED_SPACE "% *u" # else # if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG # define HOST_WIDE_INT_PRINT_UNSIGNED "%lu" +# define HOST_WIDE_INT_PRINT_UNSIGNED_SPACE "% *lu" # else # define HOST_WIDE_INT_PRINT_UNSIGNED "%llu" +# define HOST_WIDE_INT_PRINT_UNSIGNED_SPACE "% *llu" # endif # endif #endif /* ! HOST_WIDE_INT_PRINT_UNSIGNED */ @@ -142,13 +148,17 @@ # define HOST_BITS_PER_WIDEST_INT HOST_BITS_PER_LONGLONG # define HOST_WIDEST_INT long long # define HOST_WIDEST_INT_PRINT_DEC "%lld" +# define HOST_WIDEST_INT_PRINT_DEC_SPACE "% *lld" # define HOST_WIDEST_INT_PRINT_UNSIGNED "%llu" +# define HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE "% *llu" # define HOST_WIDEST_INT_PRINT_HEX "0x%llx" # else # define HOST_BITS_PER_WIDEST_INT HOST_BITS_PER_LONG # define HOST_WIDEST_INT long # define HOST_WIDEST_INT_PRINT_DEC "%ld" +# define HOST_WIDEST_INT_PRINT_DEC_SPACE "% *ld" # define HOST_WIDEST_INT_PRINT_UNSIGNED "%lu" +# define HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE "% *lu" # define HOST_WIDEST_INT_PRINT_HEX "0x%lx" # endif /* long long wider than long */ #endif /* ! HOST_WIDEST_INT */ |