public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix soversions.awk
@ 2005-02-11 14:55 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2005-02-11 14:55 UTC (permalink / raw)
  To: Roland McGrath, Ulrich Drepper; +Cc: Glibc hackers

Hi!

Current CVS doesn't build e.g. on ppc64.
The problem is that powerpc64-redhat-linux-gnu is matched by both:
powerpc64-.*-.*         WORDSIZE32              powerpc-@VENDOR@-@OS@
powerpc.*-.*-.*         WORDSIZE64              powerpc64-@VENDOR@-@OS@
so we end up with only WORDSIZE{32,64} keywords in first column of
soversions.i and thus e.g. Versions.all generation that looks for
DEFAULT keywords is broken.
The following patch considers only the first matching WORDSIZE32 resp.
WORDSIZE64.

2005-02-11  Jakub Jelinek  <jakub@redhat.com>

	* scripts/soversions.awk: Only record first WORDSIZE{32,64}
	matching line.

--- libc/scripts/soversions.awk.jj	2005-02-11 14:22:01.000000000 +0100
+++ libc/scripts/soversions.awk	2005-02-11 15:01:26.824281128 +0100
@@ -8,7 +8,7 @@ BEGIN {
 { thiscf = $1 }
 
 $2 ~ /WORDSIZE[3264]/ {
-  if (config ~ thiscf) {
+  if ((config ~ thiscf) && !othercf) {
     othercf = $3;
     sub(/@CPU@/, cpu, othercf);
     sub(/@VENDOR@/, vendor, othercf);

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-11 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 14:55 [PATCH] Fix soversions.awk Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).