]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR gas/5026
authorAlan Modra <amodra@gmail.com>
Tue, 18 Sep 2007 01:05:44 +0000 (01:05 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Sep 2007 01:05:44 +0000 (01:05 +0000)
* read.c (emit_expr): Only use long long if required and available.

gas/ChangeLog
gas/read.c

index 81b5fdc4d21db3445396281e0310731a473dfaa7..e3fd86e4c068aab578f94454c6527b31cc85cfc4 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-18  Alan Modra  <amodra@bigpond.net.au>
+
+       PR gas/5026
+       * read.c (emit_expr): Only use long long if required and available.
+
 2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-i386.c (baseindex): Removed.
index 19b434f30b94eb90e2e54bb9feb732fe4c4016b5..4c13d874ede08d42d85b6fa62298645c8d6ab5d5 100644 (file)
@@ -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);