diff options
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r-- | gcc/rtl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c index a361d4fa891..40538526224 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -233,6 +233,8 @@ cwi_output_hex (FILE *outfile, const_rtx x) int i = CWI_GET_NUM_ELEM (x); gcc_assert (i > 0); if (CWI_ELT (x, i-1) == 0) + /* The HOST_WIDE_INT_PRINT_HEX prepends a 0x only if the val is + non zero. We want all numbers to have a 0x prefix. */ fprintf (outfile, "0x"); fprintf (outfile, HOST_WIDE_INT_PRINT_HEX, CWI_ELT (x, --i)); while (--i >= 0) |