1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* scripts/lib-names.awk: Always print WORDSIZE32 section first when

doing two.
This commit is contained in:
Roland McGrath
2005-02-10 10:29:53 +00:00
parent 1d3be03848
commit 0a38b83521
2 changed files with 16 additions and 13 deletions

View File

@ -1,3 +1,8 @@
2005-02-10 Roland McGrath <roland@redhat.com>
* scripts/lib-names.awk: Always print WORDSIZE32 section first when
doing two.
2005-02-10 Jakub Jelinek <jakub@redhat.com> 2005-02-10 Jakub Jelinek <jakub@redhat.com>
* sysdeps/powerpc/powerpc32/bits/link.h: Removed. * sysdeps/powerpc/powerpc32/bits/link.h: Removed.

View File

@ -43,24 +43,22 @@ END {
lines[x[1]] = line; lines[x[1]] = line;
} }
default_lines = lines["DEFAULT"];
delete lines["DEFAULT"];
if (multi) { if (multi) {
# Print these in a fixed order so the result is identical
# on both sides of the coin.
if (!("WORDSIZE32" in lines))
lines["WORDSIZE32"] = lines["DEFAULT"];
if (!("WORDSIZE64" in lines))
lines["WORDSIZE64"] = lines["DEFAULT"];
print "#include <bits/wordsize.h>\n"; print "#include <bits/wordsize.h>\n";
pfx = "#if"; print "#if __WORDSIZE == 32";
for (kind in lines) { cmd = "LC_ALL=C sort"; print lines["WORDSIZE32"] | cmd; close(cmd);
l = lines[kind]; print "#else"
sub(/WORDSIZE/, "", kind); cmd = "LC_ALL=C sort"; print lines["WORDSIZE64"] | cmd; close(cmd);
print pfx, "__WORDSIZE", "==", kind;
cmd = "LC_ALL=C sort"; print l | cmd; close(cmd);
pfx = "#elif";
}
print "#else";
cmd = "LC_ALL=C sort"; print default_lines | cmd; close(cmd);
print "#endif"; print "#endif";
} }
else { else {
cmd = "LC_ALL=C sort"; print default_lines | cmd; close(cmd); cmd = "LC_ALL=C sort"; print lines["DEFAULT"] | cmd; close(cmd);
} }
print ""; print "";