]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* scripts/gen-as-const.awk: Add cast to long to avoid int promotion
authorUlrich Drepper <drepper@redhat.com>
Fri, 19 Jan 2007 01:02:19 +0000 (01:02 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 19 Jan 2007 01:02:19 +0000 (01:02 +0000)
of values on 64-bit platforms which are too large.

ChangeLog
scripts/gen-as-const.awk

index 8e339653ac26718d0d75c7f0282036dd55937212..51d53121d53572af032639d76fe2c22c3a893a0b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-18  Ulrich Drepper  <drepper@redhat.com>
+
+       * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
+       of values on 64-bit platforms which are too large.
+
 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
            Joe Kerian  <jkerian@us.us.ibm.com>
 
index c529fa42c88200799c2aeb467b5d6f74814e5753..bc3c47fb73dbfd78801e2b318141ec90059e801b 100644 (file)
@@ -38,7 +38,7 @@ NF > 1 {
   if (test)
     print "  TEST (" name ", \"" FILENAME ":" FNR "\", " $0 ")";
   else
-    printf "asm (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" (%s));\n",
+    printf "asm (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" ((long) %s));\n",
       name, $0;
 }