From: Eric Botcazou Date: Mon, 8 Nov 2010 11:17:18 +0000 (+0000) Subject: make_sunver.pl: Ignore entries without symbol name first. X-Git-Tag: releases/gcc-4.6.0~2834 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79770339d5fec4830d342c46814d4029e9626254;p=thirdparty%2Fgcc.git make_sunver.pl: Ignore entries without symbol name first. * make_sunver.pl: Ignore entries without symbol name first. Then do not ignore symbols marked as 'R'. From-SVN: r166432 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 4d46888e6ae7..614781539155 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2010-11-08 Eric Botcazou + + * make_sunver.pl: Ignore entries without symbol name first. Then do + not ignore symbols marked as 'R'. + 2010-10-18 Andi Kleen * gccbug.el: Remove. diff --git a/contrib/make_sunver.pl b/contrib/make_sunver.pl index d0875781dc68..bb45004c283c 100644 --- a/contrib/make_sunver.pl +++ b/contrib/make_sunver.pl @@ -58,9 +58,11 @@ while () { # nm prints out stuff at the start, ignore it. next if (/^$/); 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]+/); + # Ignore entries without symbol name. Sun nm emits those for local, .bss + # or scratch register (SPARC only) symbols for example. + next if (/^ /); + # Ignore undefined and local symbols. + next if (/^[^ ]+[ \t]+[Ua-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/);