diff options
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4546,9 +4546,14 @@ emit_expr_with_reloc (expressionS *exp, use = get & unmask; if ((get & mask) != 0 && (-get & mask) != 0) { + char get_buf[128]; + char use_buf[128]; + + /* These buffers help to ease the translation of the warning message. */ + sprintf_vma (get_buf, get); + sprintf_vma (use_buf, use); /* Leading bits contain both 0s & 1s. */ - as_warn (_("value 0x%" BFD_VMA_FMT "x truncated to 0x%" BFD_VMA_FMT "x"), - get, use); + as_warn (_("value 0x%s truncated to 0x%s"), get_buf, use_buf); } /* Put bytes in right order. */ md_number_to_chars (p, use, (int) nbytes); |