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]

[PATCH 4/7] ld: Rename wildcard_spec to section_name_spec in grammar


Rename rule wildcard_spec to section_name_spec, part of an effort to
highlight (and enforce) the differences between parsing a filename
wildcard and a section wildcard.

There should be no user visible change after this commit.

ld/ChangeLog:

	* ldgram.y (wildcard_spec): Rename to...
	(section_name_spec): ...this.
---
 ld/ChangeLog | 5 +++++
 ld/ldgram.y  | 8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ld/ldgram.y b/ld/ldgram.y
index 87c75c5c453..662c161521f 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -98,7 +98,7 @@ static int error_index;
 %type <name> memspec_opt casesymlist
 %type <name> memspec_at_opt
 %type <cname> wildcard_name
-%type <wildcard> wildcard_spec filename_spec wildcard_maybe_exclude
+%type <wildcard> section_name_spec filename_spec wildcard_maybe_exclude
 %token <bigint> INT
 %token <name> NAME LNAME
 %type <integer> length
@@ -478,7 +478,7 @@ filename_spec:
 			}
 	;
 
-wildcard_spec:
+section_name_spec:
 		wildcard_name
 			{
 			  $$.name = $1;
@@ -630,7 +630,7 @@ exclude_name_list:
 	;
 
 section_NAME_list:
-		section_NAME_list opt_comma wildcard_spec
+		section_NAME_list opt_comma section_name_spec
 			{
 			  struct wildcard_list *tmp;
 			  tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
@@ -639,7 +639,7 @@ section_NAME_list:
 			  $$ = tmp;
 			}
 	|
-		wildcard_spec
+		section_name_spec
 			{
 			  struct wildcard_list *tmp;
 			  tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
-- 
2.13.3


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