aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-01-28 12:02:44 -0500
committerChris Metcalf <cmetcalf@tilera.com>2012-01-28 12:02:44 -0500
commite034841eac8e96fa255c52864be06352ee7981ae (patch)
tree2898d2adb43a326af88deadd13172c3dd82d60b2
parent73139a7628c424c82eb9297ccb5505c0bc5b65aa (diff)
downloadglibc-e034841eac8e96fa255c52864be06352ee7981ae.zip
glibc-e034841eac8e96fa255c52864be06352ee7981ae.tar.gz
glibc-e034841eac8e96fa255c52864be06352ee7981ae.tar.bz2
Fix bug in firstversions.awk version range handling.
-rw-r--r--ChangeLog4
-rw-r--r--scripts/firstversions.awk8
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fbc611b..bf484fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-28 Chris Metcalf <cmetcalf@tilera.com>
+
+ * scripts/firstversions.awk: Fix bug in version range handling.
+
2012-01-28 Ulrich Drepper <drepper@gmail.com>
* sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
diff --git a/scripts/firstversions.awk b/scripts/firstversions.awk
index 4a20fc0..ccde4b5 100644
--- a/scripts/firstversions.awk
+++ b/scripts/firstversions.awk
@@ -54,9 +54,13 @@ $1 == "}" {
while (vers_compare($1, v) >= 0) {
delete firstversion[thislib, idx[thislib]];
idx[thislib]++;
- if ((thislib, idx[thislib]) in firstversion)
+ if ((thislib, idx[thislib]) in firstversion) {
+ # If we're skipping a referenced version to jump ahead to a
+ # later version, synthesize the earlier referenced version now.
+ if (v != $1 && (thislib, v) in usedversion)
+ print " " v;
v = firstversion[thislib, idx[thislib]];
- else
+ } else
break;
}
if ($1 == v || $1 == f)