This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

gold patch committed: Change duplicate wildcard to warning


Building gcc with the new version of gold revealed that the libstdc++
version script has two different wildcards, even though that doesn't
make sense.  I changed the report about duplicate wildcards from an
error to a warning.

Ian


2010-01-11  Ian Lance Taylor  <iant@google.com>

	* script.cc (Version_script_info::build_expression_list_lookup):
	Change complaing about duplicate wildcard match from error to
	warning.


Index: script.cc
===================================================================
RCS file: /cvs/src/src/gold/script.cc,v
retrieving revision 1.67
diff -p -u -r1.67 script.cc
--- script.cc	12 Jan 2010 06:41:36 -0000	1.67
+++ script.cc	12 Jan 2010 06:52:25 -0000
@@ -2145,9 +2145,9 @@ Version_script_info::build_expression_li
 	{
 	  if (this->default_version_ != NULL
 	      && this->default_version_->tag != v->tag)
-	    gold_error(_("wildcard match appears in both version '%s' "
-			 "and '%s' in script"),
-		       this->default_version_->tag.c_str(), v->tag.c_str());
+	    gold_warning(_("wildcard match appears in both version '%s' "
+			   "and '%s' in script"),
+			 this->default_version_->tag.c_str(), v->tag.c_str());
 	  else if (this->default_version_ != NULL
 		   && this->default_is_global_ != is_global)
 	    gold_error(_("wildcard match appears as both global and local "

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