diff options
author | Geoffrey Keating <geoffk@apple.com> | 2006-04-25 19:12:50 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2006-04-25 19:12:50 +0000 |
commit | d61772b25d07c437eca62171fb0ee55642abfe22 (patch) | |
tree | 021e9f53f87cdd8f3de619df53aebfd7ab4d91d9 /gcc/dwarf2asm.c | |
parent | cfa81d8af3b4e93ed7b9e3988dc50058a9ffe834 (diff) | |
download | gcc-d61772b25d07c437eca62171fb0ee55642abfe22.tar.gz |
dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just to print an integer.
* dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
to print an integer.
From-SVN: r113254
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r-- | gcc/dwarf2asm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c index 255daf02e21..59c5e29c2f9 100644 --- a/gcc/dwarf2asm.c +++ b/gcc/dwarf2asm.c @@ -69,13 +69,17 @@ dw2_asm_output_data (int size, unsigned HOST_WIDE_INT value, const char *comment, ...) { va_list ap; + const char *op = integer_asm_op (size, FALSE); va_start (ap, comment); if (size * 8 < HOST_BITS_PER_WIDE_INT) value &= ~(~(unsigned HOST_WIDE_INT) 0 << (size * 8)); - dw2_assemble_integer (size, GEN_INT (value)); + if (op) + fprintf (asm_out_file, "%s" HOST_WIDE_INT_PRINT_HEX, op, value); + else + assemble_integer (GEN_INT (value), size, BITS_PER_UNIT, 1); if (flag_debug_asm && comment) { |