From b6ac5419b4d56765a569ed11bfb41d96d713ae9f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 18 Sep 2007 01:05:44 +0000 Subject: PR gas/5026 * read.c (emit_expr): Only use long long if required and available. --- gas/read.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gas/read.c') diff --git a/gas/read.c b/gas/read.c index 19b434f30b..4c13d874ed 100644 --- a/gas/read.c +++ b/gas/read.c @@ -4106,8 +4106,13 @@ emit_expr (expressionS *exp, unsigned int nbytes) && ((get & mask) != mask || (get & hibit) == 0)) { /* Leading bits contain both 0s & 1s. */ +#if defined (BFD64) && BFD_HOST_64BIT_LONG_LONG as_warn (_("value 0x%llx truncated to 0x%llx"), (unsigned long long) get, (unsigned long long) use); +#else + as_warn (_("value 0x%lx truncated to 0x%lx"), + (unsigned long) get, (unsigned long) use); +#endif } /* Put bytes in right order. */ md_number_to_chars (p, use, (int) nbytes); -- cgit v1.2.1