diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-01-19 01:02:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-01-19 01:02:19 +0000 |
commit | 299f7b0ffced429e0ff8fc51ce301c3a7d294bbe (patch) | |
tree | c464948a46d0e34d73233475d78e78a3377c4ec3 | |
parent | 10ccaa5caec00dc354379fce317a2dd2f3a448de (diff) | |
download | glibc-299f7b0ffced429e0ff8fc51ce301c3a7d294bbe.tar.gz glibc-299f7b0ffced429e0ff8fc51ce301c3a7d294bbe.tar.xz glibc-299f7b0ffced429e0ff8fc51ce301c3a7d294bbe.zip |
* scripts/gen-as-const.awk: Add cast to long to avoid int promotion
of values on 64-bit platforms which are too large.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | scripts/gen-as-const.awk | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8e339653ac..51d53121d5 100644 --- 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> diff --git a/scripts/gen-as-const.awk b/scripts/gen-as-const.awk index c529fa42c8..bc3c47fb73 100644 --- a/scripts/gen-as-const.awk +++ b/scripts/gen-as-const.awk @@ -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; } |