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
12d073e7
Commit
12d073e7
authored
Mar 18, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(REALPART, IMAGPART): New token types.
(unary_expr): Handle REALPART, IMAGPART. From-SVN: r3780
parent
0c9cfa6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
gcc/c-parse.in
+9
-0
No files found.
gcc/c-parse.in
View file @
12d073e7
...
...
@@ -131,6 +131,7 @@ void yyerror ();
%
token
SIZEOF
ENUM
STRUCT
UNION
IF
ELSE
WHILE
DO
FOR
SWITCH
CASE
DEFAULT
%
token
BREAK
CONTINUE
RETURN
GOTO
ASM_KEYWORD
TYPEOF
ALIGNOF
ALIGN
%
token
ATTRIBUTE
EXTENSION
LABEL
%
token
REALPART
IMAGPART
/* Add precedence rules to solve dangling else s/r conflict */
%
nonassoc
IF
...
...
@@ -439,6 +440,14 @@ unary_expr:
{
$$
=
c_alignof_expr
(
$
2
);
}
|
ALIGNOF
'('
typename
')'
%
prec
HYPERUNARY
{
$$
=
c_alignof
(
groktypename
(
$
3
));
}
|
REALPART
unary_expr
%
prec
UNARY
{
$$
=
build_unary_op
(
REALPART_EXPR
,
$
2
,
0
);
}
|
IMAGPART
unary_expr
%
prec
UNARY
{
$$
=
build_unary_op
(
IMAGPART_EXPR
,
$
2
,
0
);
}
|
REALPART
'('
unary_expr
')'
%
prec
HYPERUNARY
{
$$
=
build_unary_op
(
REALPART_EXPR
,
$
3
,
0
);
}
|
IMAGPART
'('
unary_expr
')'
%
prec
HYPERUNARY
{
$$
=
build_unary_op
(
IMAGPART_EXPR
,
$
3
,
0
);
}
;
cast_expr
:
...
...
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