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
ee2897ef
Commit
ee2897ef
authored
May 12, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust number of shift/reduce conflicts.
(parm): Support attributes. From-SVN: r9638
parent
3232050c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
gcc/c-parse.in
+23
-12
No files found.
gcc/c-parse.in
View file @
ee2897ef
...
...
@@ -27,10 +27,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
written by AT&T, but I have never seen it. */
ifobjc
%
expect
4
2
%
expect
4
6
end
ifobjc
ifc
%
expect
3
0
%
expect
3
4
/* These are the 23 conflicts you should get in parse.output;
the state numbers may vary if minor changes in the grammar are made.
...
...
@@ -2118,16 +2118,27 @@ parms:
/* A single parameter declaration or parameter type name,
as found in a parmlist. */
parm
:
typed_declspecs
parm_declarator
{
$$
=
build_tree_list
(
$
1
,
$
2
)
;
}
|
typed_declspecs
notype_declarator
{
$$
=
build_tree_list
(
$
1
,
$
2
)
;
}
|
typed_declspecs
absdcl
{
$$
=
build_tree_list
(
$
1
,
$
2
);
}
|
declmods
notype_declarator
{
$$
=
build_tree_list
(
$
1
,
$
2
)
;
}
|
declmods
absdcl
{
$$
=
build_tree_list
(
$
1
,
$
2
);
}
typed_declspecs
parm_declarator
maybe_attribute
{
$$
=
build_tree_list
(
build_tree_list
(
$
1
,
$
2
),
build_tree_list
(
prefix_attributes
,
$
3
));
}
|
typed_declspecs
notype_declarator
maybe_attribute
{
$$
=
build_tree_list
(
build_tree_list
(
$
1
,
$
2
),
build_tree_list
(
prefix_attributes
,
$
3
));
}
|
typed_declspecs
absdcl
maybe_attribute
{
$$
=
build_tree_list
(
build_tree_list
(
$
1
,
$
2
),
build_tree_list
(
prefix_attributes
,
$
3
));
}
|
declmods
notype_declarator
maybe_attribute
{
$$
=
build_tree_list
(
build_tree_list
(
$
1
,
$
2
),
build_tree_list
(
prefix_attributes
,
$
3
));
}
|
declmods
absdcl
maybe_attribute
{
$$
=
build_tree_list
(
build_tree_list
(
$
1
,
$
2
),
build_tree_list
(
prefix_attributes
,
$
3
));
}
;
/* This is used in a function definition
...
...
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