diff mbox

Fix build on Solaris (2)

Message ID 201007082115.34443.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou July 8, 2010, 7:15 p.m. UTC
The build aborts with Sun ld/GNU nm because make_sunver.pl chockes on

.LLC0 r 00000000

from libgomp/alloc.o.

The attached patchlet is sufficient to restore it and presumably doesn't break 
with Sun nm.  Tested on SPARC/Solaris, installed on the mainline as obvious.


2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>

	* make_sunver.pl: Remove extra whitespace in regexp.
diff mbox

Patch

Index: make_sunver.pl
===================================================================
--- make_sunver.pl	(revision 161944)
+++ make_sunver.pl	(working copy)
@@ -60,7 +60,7 @@  while (<NM>) {
     next if (/:$/);
     # Ignore register (SPARC only), undefined and local symbols.  The
     # symbol name is optional; Sun nm emits none for local or .bss symbols.
-    next if (/^([^ ]+)?[ \t]+[RUa-z][ \t]+ /);
+    next if (/^([^ ]+)?[ \t]+[RUa-z][ \t]+/);
     # Ignore objects without symbol table.  Message goes to stdout with Sun
     # nm, while GNU nm emits the corresponding message to stderr.
     next if (/.* - No symbol table data/);