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
77912476
Commit
77912476
authored
Sep 29, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(yylex): Add new arg, TYPE, to call to build_complex.
From-SVN: r12864
parent
b217d7fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/c-lex.c
+5
-3
No files found.
gcc/c-lex.c
View file @
77912476
...
...
@@ -1465,7 +1465,8 @@ yylex ()
/* Create a node with determined type and value. */
if
(
imag
)
yylval
.
ttype
=
build_complex
(
convert
(
type
,
integer_zero_node
),
yylval
.
ttype
=
build_complex
(
NULL_TREE
,
convert
(
type
,
integer_zero_node
),
build_real
(
type
,
value
));
else
yylval
.
ttype
=
build_real
(
type
,
value
);
...
...
@@ -1634,8 +1635,9 @@ yylex ()
if
(
TYPE_PRECISION
(
type
)
<=
TYPE_PRECISION
(
integer_type_node
))
yylval
.
ttype
=
build_complex
(
integer_zero_node
,
convert
(
integer_type_node
,
yylval
.
ttype
));
=
build_complex
(
NULL_TREE
,
integer_zero_node
,
convert
(
integer_type_node
,
yylval
.
ttype
));
else
error
(
"complex integer constant is too wide for `complex int'"
);
}
...
...
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