summaryrefslogtreecommitdiff
path: root/gcc/dwarf2asm.c
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-25 19:12:50 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-25 19:12:50 +0000
commit083659692e38253d70e2c465e2c896460df2b43e (patch)
tree021e9f53f87cdd8f3de619df53aebfd7ab4d91d9 /gcc/dwarf2asm.c
parentcf76bf1ebf3ae703bdc6db93fa3b80517573138a (diff)
downloadgcc-083659692e38253d70e2c465e2c896460df2b43e.tar.gz
* dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
to print an integer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r--gcc/dwarf2asm.c6
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)
{