Commit 81d3c538 by Richard Stallman

(output_addr_const): Don't printing leading zeros.

From-SVN: r4466
parent b6526914
...@@ -2293,7 +2293,7 @@ output_addr_const (file, x) ...@@ -2293,7 +2293,7 @@ output_addr_const (file, x)
if (GET_MODE (x) == VOIDmode) if (GET_MODE (x) == VOIDmode)
{ {
/* We can use %d if the number is one word and positive. */ /* We can use %d if the number is one word and positive. */
if (CONST_DOUBLE_HIGH (x) || CONST_DOUBLE_LOW (x) < 0) if (CONST_DOUBLE_HIGH (x))
fprintf (file, fprintf (file,
#if HOST_BITS_PER_WIDE_INT == 64 #if HOST_BITS_PER_WIDE_INT == 64
#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT #if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT
...@@ -2309,6 +2309,14 @@ output_addr_const (file, x) ...@@ -2309,6 +2309,14 @@ output_addr_const (file, x)
#endif #endif
#endif #endif
CONST_DOUBLE_HIGH (x), CONST_DOUBLE_LOW (x)); CONST_DOUBLE_HIGH (x), CONST_DOUBLE_LOW (x));
else if (CONST_DOUBLE_LOW (x) < 0)
fprintf (file,
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
"0x%x",
#else
"0x%lx",
#endif
CONST_DOUBLE_LOW (x));
else else
fprintf (file, fprintf (file,
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT #if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
......
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