aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2008-04-15 19:56:20 +0000
committerDoug Kwan <dougkwan@gcc.gnu.org>2008-04-15 19:56:20 +0000
commit3d57d7cee73c4606a1c2fd7a936285b8496eb41a (patch)
treed834560ba814bbd7a2a3e597e31030c651b67b9d /gcc/final.c
parentd98c89de9bb0530cb4aeb91771d88b82bce5dba1 (diff)
downloadgcc-3d57d7cee73c4606a1c2fd7a936285b8496eb41a.zip
gcc-3d57d7cee73c4606a1c2fd7a936285b8496eb41a.tar.gz
gcc-3d57d7cee73c4606a1c2fd7a936285b8496eb41a.tar.bz2
dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT for hex printing.
2008-04-15 Doug Kwan <dougkwan@google.com> * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT for hex printing. * tree-pretty-print.c (dump_generic_node): Ditto. * final.c (output_addr_const): Ditto. * dwarf2out.c (output_cfi): Ditto. * c-pretty-print.c (pp_c_integer_constant): Ditto. * print-rtl.c (print_rtx): Ditto. * print-tree.c (print_node_brief, print_node): Ditto. * c-common.c (match_case_to_enum_1): Ditto. * sched-vis.c (print_value): Ditto. * config/i386/i386.c (print_operand): Cast to long unsigned int for hex printing. From-SVN: r134331
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 9816624..6d861c7 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -3416,9 +3416,11 @@ output_addr_const (FILE *file, rtx x)
/* We can use %d if the number is one word and positive. */
if (CONST_DOUBLE_HIGH (x))
fprintf (file, HOST_WIDE_INT_PRINT_DOUBLE_HEX,
- CONST_DOUBLE_HIGH (x), CONST_DOUBLE_LOW (x));
+ (unsigned HOST_WIDE_INT) CONST_DOUBLE_HIGH (x),
+ (unsigned HOST_WIDE_INT) CONST_DOUBLE_LOW (x));
else if (CONST_DOUBLE_LOW (x) < 0)
- fprintf (file, HOST_WIDE_INT_PRINT_HEX, CONST_DOUBLE_LOW (x));
+ fprintf (file, HOST_WIDE_INT_PRINT_HEX,
+ (unsigned HOST_WIDE_INT) CONST_DOUBLE_LOW (x));
else
fprintf (file, HOST_WIDE_INT_PRINT_DEC, CONST_DOUBLE_LOW (x));
}
@@ -3429,7 +3431,8 @@ output_addr_const (FILE *file, rtx x)
break;
case CONST_FIXED:
- fprintf (file, HOST_WIDE_INT_PRINT_HEX, CONST_FIXED_VALUE_LOW (x));
+ fprintf (file, HOST_WIDE_INT_PRINT_HEX,
+ (unsigned HOST_WIDE_INT) CONST_FIXED_VALUE_LOW (x));
break;
case PLUS: