summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-08 11:17:18 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-08 11:17:18 +0000
commitbeeca9ecf7ae0dac6e0da37ddf2dfd9b3b37b3b7 (patch)
tree065515dcbbd88d18dbccbf693fd6617cdab87f4a /contrib
parent8e1b9b76c5977974f02f92516a2006f8b3af629a (diff)
downloadgcc-beeca9ecf7ae0dac6e0da37ddf2dfd9b3b37b3b7.tar.gz
* make_sunver.pl: Ignore entries without symbol name first. Then do
not ignore symbols marked as 'R'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166432 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rw-r--r--contrib/make_sunver.pl8
2 files changed, 10 insertions, 3 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 4d46888e6ae..61478153915 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
+
+ * make_sunver.pl: Ignore entries without symbol name first. Then do
+ not ignore symbols marked as 'R'.
+
2010-10-18 Andi Kleen <ak@linux.intel.com>
* gccbug.el: Remove.
diff --git a/contrib/make_sunver.pl b/contrib/make_sunver.pl
index d0875781dc6..bb45004c283 100644
--- a/contrib/make_sunver.pl
+++ b/contrib/make_sunver.pl
@@ -58,9 +58,11 @@ while (<NM>) {
# 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/);