aboutsummaryrefslogtreecommitdiff
path: root/gcc/hwint.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-07-22 17:11:57 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-07-22 17:11:57 +0000
commitc2ae8aef4e37a4e43565aafc552d62bb4a485431 (patch)
tree8a6e326d1ca8bf4b8f06e780159256d88db6ff61 /gcc/hwint.h
parenteab2120d5efebd6b7c29730692ff165b471b7eac (diff)
downloadgcc-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/hwint.h')
-rw-r--r--gcc/hwint.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/hwint.h b/gcc/hwint.h
index 9589c32..2c14379 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 */