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

* scripts/firstversions.awk: When encountering a version newer than

the specified earliest version, be sure to emit the specified earliest
	version first if any renaming of an older version to that has been.
This commit is contained in:
Roland McGrath
2002-08-22 07:22:03 +00:00
parent 90d1d40b27
commit 5015cde4c8
2 changed files with 27 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2002-08-22 Roland McGrath <roland@redhat.com>
* scripts/firstversions.awk: When encountering a version newer than
the specified earliest version, be sure to emit the specified earliest
version first if any renaming of an older version to that has been.
2002-08-21 Roland McGrath <roland@redhat.com> 2002-08-21 Roland McGrath <roland@redhat.com>
* configure.in: Make GCC version check require 3.[2-9]* and no others. * configure.in: Make GCC version check require 3.[2-9]* and no others.

View File

@ -27,20 +27,35 @@ $1 == "}" {
if ((thislib, idx[thislib]) in firstversion) { if ((thislib, idx[thislib]) in firstversion) {
# XXX relative string comparison loses if we ever have multiple digits # XXX relative string comparison loses if we ever have multiple digits
# between dots in GLIBC_x.y[.z] names. # between dots in GLIBC_x.y[.z] names.
f = firstversion[thislib, idx[thislib]]; f = v = firstversion[thislib, idx[thislib]];
v = f;
while ($1 >= v) { while ($1 >= v) {
firstversion[thislib, idx[thislib]] = 0; delete firstversion[thislib, idx[thislib]];
idx[thislib]++; idx[thislib]++;
if ((thislib, idx[thislib]) in firstversion) if ((thislib, idx[thislib]) in firstversion)
v = firstversion[thislib, idx[thislib]]; v = firstversion[thislib, idx[thislib]];
else else
break; break;
} }
if ($1 >= v || $1 == f) if ($1 == v || $1 == f)
# This version was the specified earliest version itself.
print; print;
else else if ($1 < v) {
print $1, "=", v; # This version is older than the specified earliest version.
print " " $1, "=", v;
# Record that V has been referred to, so we will be sure to emit it
# if we hit a later one without hitting V itself.
usedversion[thislib, v] = 1;
}
else {
# This version is newer than the specified earliest version.
# We haven't seen that version itself or else we wouldn't be here
# because we would have removed it from the firstversion array.
# If there were any earlier versions that used that one, emit it now.
if ((thislib, v) in usedversion) {
print " " v;
}
print " " $1;
}
} }
else else
print; print;