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
72acf258
Commit
72acf258
authored
Jan 07, 1997
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
From-SVN: r13478
parent
a88498e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
gcc/c-parse.in
+16
-6
No files found.
gcc/c-parse.in
View file @
72acf258
...
...
@@ -31,7 +31,7 @@ ifobjc
%
expect
66
end
ifobjc
ifc
%
expect
4
5
%
expect
4
6
/* These are the 23 conflicts you should get in parse.output;
the state numbers may vary if minor changes in the grammar are made.
...
...
@@ -309,6 +309,8 @@ end ifobjc
assemble_asm
(
$
3
);
else
error
(
"argument of `asm' is not a constant string"
);
}
|
extension
extdef
{
pedantic
=
$
<
itype
>
1
;
}
;
datadef
:
...
...
@@ -447,11 +449,8 @@ unary_expr:
|
'*'
cast_expr
%
prec
UNARY
{
$$
=
build_indirect_ref
(
$
2
,
"unary *"
);
}
/* __extension__ turns off -pedantic for following primary. */
|
EXTENSION
{
$
<
itype
>
1
=
pedantic
;
pedantic
=
0
;
}
cast_expr
%
prec
UNARY
{
$$
=
$
3
;
|
extension
cast_expr
%
prec
UNARY
{
$$
=
$
2
;
pedantic
=
$
<
itype
>
1
;
}
|
unop
cast_expr
%
prec
UNARY
{
$$
=
build_unary_op
(
$
1
,
$
2
,
0
);
...
...
@@ -1012,6 +1011,8 @@ decl:
{
shadow_tag
(
$
1
);
}
|
declmods
';'
{
pedwarn
(
"empty declaration"
);
}
|
extension
decl
{
pedantic
=
$
<
itype
>
1
;
}
;
/* Declspecs which contain at least one type specifier or typedef name.
...
...
@@ -1564,6 +1565,9 @@ component_decl:
$$
=
NULL_TREE
;
}
|
error
{
$$
=
NULL_TREE
;
}
|
extension
component_decl
{
$$
=
$
2
;
pedantic
=
$
<
itype
>
1
;
}
;
components
:
...
...
@@ -2357,6 +2361,12 @@ identifiers_or_typenames:
|
identifiers_or_typenames
','
identifier
{
$$
=
chainon
(
$
1
,
build_tree_list
(
NULL_TREE
,
$
3
));
}
;
extension
:
EXTENSION
{
$
<
itype
>
$
=
pedantic
;
pedantic
=
0
;
}
;
ifobjc
/* Objective-C productions. */
...
...
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