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
b00e5f0d
Commit
b00e5f0d
authored
Jan 02, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(label): Use expr_no_commas instead of expr for case labels.
From-SVN: r3059
parent
b5b7ff2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gcc/c-parse.in
+2
-2
No files found.
gcc/c-parse.in
View file @
b00e5f0d
...
@@ -1698,7 +1698,7 @@ stmt:
...
@@ -1698,7 +1698,7 @@ stmt:
ANSI C accepts labels only before statements, but we allow them
ANSI C accepts labels only before statements, but we allow them
also at the end of a compound statement. */
also at the end of a compound statement. */
label
:
CASE
expr
':'
label
:
CASE
expr
_no_commas
':'
{
register
tree
value
=
check_case_value
(
$
2
);
{
register
tree
value
=
check_case_value
(
$
2
);
register
tree
label
register
tree
label
=
build_decl
(
LABEL_DECL
,
NULL_TREE
,
NULL_TREE
);
=
build_decl
(
LABEL_DECL
,
NULL_TREE
,
NULL_TREE
);
...
@@ -1722,7 +1722,7 @@ label: CASE expr ':'
...
@@ -1722,7 +1722,7 @@ label: CASE expr ':'
error
(
"case label within scope of cleanup or variable array"
);
error
(
"case label within scope of cleanup or variable array"
);
}
}
position_after_white_space
();
}
position_after_white_space
();
}
|
CASE
expr
ELLIPSIS
expr
':'
|
CASE
expr
_no_commas
ELLIPSIS
expr_no_commas
':'
{
register
tree
value1
=
check_case_value
(
$
2
);
{
register
tree
value1
=
check_case_value
(
$
2
);
register
tree
value2
=
check_case_value
(
$
4
);
register
tree
value2
=
check_case_value
(
$
4
);
register
tree
label
register
tree
label
...
...
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