* scripts/gen-as-const.awk: Add cast to long to avoid int promotion

of values on 64-bit platforms which are too large.
This commit is contained in:
Ulrich Drepper 2007-01-19 01:02:19 +00:00
parent 10ccaa5cae
commit 299f7b0ffc
2 changed files with 6 additions and 1 deletions

View File

@ -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>

View 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;
}