From patchwork Thu Jul 8 19:15:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix build on Solaris (2) Date: Thu, 08 Jul 2010 09:15:34 -0000 From: Eric Botcazou X-Patchwork-Id: 58269 Message-Id: <201007082115.34443.ebotcazou@adacore.com> To: gcc-patches@gcc.gnu.org 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 * make_sunver.pl: Remove extra whitespace in regexp. Index: make_sunver.pl =================================================================== --- make_sunver.pl (revision 161944) +++ make_sunver.pl (working copy) @@ -60,7 +60,7 @@ while () { 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/);