This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix build on Solaris (2)


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.


-- 
Eric Botcazou
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/);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]