Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d8a6c3eb
Commit
d8a6c3eb
authored
Mar 19, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(attrib): Use `identifier' instead of `IDENTIFIER' since names that
are (e.g.) typedef names are still OK. From-SVN: r6828
parent
eedd251f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/c-parse.in
+5
-5
No files found.
gcc/c-parse.in
View file @
d8a6c3eb
...
...
@@ -1064,14 +1064,14 @@ attribute_list
;
attrib
:
IDENTIFIER
:
identifier
{
if
(
strcmp
(
IDENTIFIER_POINTER
(
$
1
),
"packed"
)
&&
strcmp
(
IDENTIFIER_POINTER
(
$
1
),
"noreturn"
))
warning
(
"`%s' attribute directive ignored"
,
IDENTIFIER_POINTER
(
$
1
));
$$
=
$
1
;
}
|
TYPE_QUAL
|
IDENTIFIER
'('
IDENTIFIER
')'
|
identifier
'('
identifier
')'
{
/* If not "mode (m)" or "aligned", then issue warning.
If "aligned", this will later produce an error in decl_attributes
since an identifier is not a valid constant, but we want to give
...
...
@@ -1086,7 +1086,7 @@ attrib
}
else
$$
=
tree_cons
(
$
1
,
$
3
,
NULL_TREE
);
}
|
IDENTIFIER
'('
expr_no_commas
')'
|
identifier
'('
expr_no_commas
')'
{
/* if not "aligned(n)", then issue warning */
if
(
strcmp
(
IDENTIFIER_POINTER
(
$
1
),
"aligned"
)
!=
0
)
{
...
...
@@ -1096,7 +1096,7 @@ attrib
}
else
$$
=
tree_cons
(
$
1
,
$
3
,
NULL_TREE
);
}
|
IDENTIFIER
'('
IDENTIFIER
','
expr_no_commas
','
expr_no_commas
')'
|
identifier
'('
identifier
','
expr_no_commas
','
expr_no_commas
')'
{
/* if not "format(...)", then issue warning */
if
(
strcmp
(
IDENTIFIER_POINTER
(
$
1
),
"format"
)
!=
0
)
{
...
...
@@ -1110,7 +1110,7 @@ attrib
tree_cons
(
$
5
,
$
7
,
NULL_TREE
),
NULL_TREE
),
NULL_TREE
);
}
|
IDENTIFIER
'('
STRING
')'
|
identifier
'('
STRING
')'
{
/* If not "section (name)", then issue warning. */
if
(
strcmp
(
IDENTIFIER_POINTER
(
$
1
),
"section"
)
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment