Commit 34a47f6f by Uros Bizjak Committed by Uros Bizjak

revert: hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string…

revert: hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string placeholder from 0x%x to %#x.

	Revert:
	* hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
	placeholder from 0x%x to %#x.
	(HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
	* config/i386/i386.c (output_pic_addr_const): Ditto.

From-SVN: r158972
parent 35c59d9c
2010-05-02 Uros Bizjak <ubizjak@gmail.com> 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
Revert:
* hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
placeholder from 0x%x to %#x.
(HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
* config/i386/i386.c (output_pic_addr_const): Ditto.
2010-05-02 Uros Bizjak <ubizjak@gmail.com>
* vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
placeholder from 0x%x to %#x. placeholder from 0x%x to %#x.
(ASM_OUTPUT_DEBUG_DATA1): Ditto. (ASM_OUTPUT_DEBUG_DATA1): Ditto.
......
...@@ -10843,7 +10843,7 @@ output_pic_addr_const (FILE *file, rtx x, int code) ...@@ -10843,7 +10843,7 @@ output_pic_addr_const (FILE *file, rtx x, int code)
{ {
/* We can use %d if the number is <32 bits and positive. */ /* We can use %d if the number is <32 bits and positive. */
if (CONST_DOUBLE_HIGH (x) || CONST_DOUBLE_LOW (x) < 0) if (CONST_DOUBLE_HIGH (x) || CONST_DOUBLE_LOW (x) < 0)
fprintf (file, "%#lx%08lx", fprintf (file, "0x%lx%08lx",
(unsigned long) CONST_DOUBLE_HIGH (x), (unsigned long) CONST_DOUBLE_HIGH (x),
(unsigned long) CONST_DOUBLE_LOW (x)); (unsigned long) CONST_DOUBLE_LOW (x));
else else
......
...@@ -82,17 +82,17 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1]; ...@@ -82,17 +82,17 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1];
must be tweaked accordingly. */ must be tweaked accordingly. */
# if HOST_BITS_PER_WIDE_INT == 64 # if HOST_BITS_PER_WIDE_INT == 64
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX \ # define HOST_WIDE_INT_PRINT_DOUBLE_HEX \
"%#" HOST_LONG_FORMAT "x%016" HOST_LONG_FORMAT "x" "0x%" HOST_LONG_FORMAT "x%016" HOST_LONG_FORMAT "x"
# else # else
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX \ # define HOST_WIDE_INT_PRINT_DOUBLE_HEX \
"%#" HOST_LONG_FORMAT "x%08" HOST_LONG_FORMAT "x" "0x%" HOST_LONG_FORMAT "x%08" HOST_LONG_FORMAT "x"
# endif # endif
#else #else
# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT # define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT
# define HOST_WIDE_INT_PRINT_C "LL" # define HOST_WIDE_INT_PRINT_C "LL"
/* We can assume that 'long long' is at least 64 bits. */ /* We can assume that 'long long' is at least 64 bits. */
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX \ # define HOST_WIDE_INT_PRINT_DOUBLE_HEX \
"%#" HOST_LONG_LONG_FORMAT "x%016" HOST_LONG_LONG_FORMAT "x" "0x%" HOST_LONG_LONG_FORMAT "x%016" HOST_LONG_LONG_FORMAT "x"
#endif /* HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG */ #endif /* HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG */
#define HOST_WIDE_INT_PRINT_DEC "%" HOST_WIDE_INT_PRINT "d" #define HOST_WIDE_INT_PRINT_DEC "%" HOST_WIDE_INT_PRINT "d"
...@@ -131,7 +131,7 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1]; ...@@ -131,7 +131,7 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1];
# define HOST_WIDEST_INT_PRINT_UNSIGNED "%" HOST_LONG_LONG_FORMAT "u" # define HOST_WIDEST_INT_PRINT_UNSIGNED "%" HOST_LONG_LONG_FORMAT "u"
# define HOST_WIDEST_INT_PRINT_HEX "%#" HOST_LONG_LONG_FORMAT "x" # define HOST_WIDEST_INT_PRINT_HEX "%#" HOST_LONG_LONG_FORMAT "x"
# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX \ # define HOST_WIDEST_INT_PRINT_DOUBLE_HEX \
"%#" HOST_LONG_LONG_FORMAT "x%016" HOST_LONG_LONG_FORMAT "x" "0x%" HOST_LONG_LONG_FORMAT "x%016" HOST_LONG_LONG_FORMAT "x"
#endif #endif
/* Define HOST_WIDEST_FAST_INT to the widest integer type supported /* Define HOST_WIDEST_FAST_INT to the widest integer type supported
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment