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
5abb45f2
Commit
5abb45f2
authored
Feb 02, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(build_conditional_expr): Always convert and check
both result operands even if condition is constant. From-SVN: r3415
parent
e681c5a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/c-typeck.c
+3
-3
No files found.
gcc/c-typeck.c
View file @
5abb45f2
...
...
@@ -3584,9 +3584,6 @@ build_conditional_expr (ifexp, op1, op2)
=
build_type_variant
(
result_type
,
TREE_READONLY
(
op1
)
||
TREE_READONLY
(
op2
),
TREE_THIS_VOLATILE
(
op1
)
||
TREE_THIS_VOLATILE
(
op2
));
if
(
TREE_CODE
(
ifexp
)
==
INTEGER_CST
)
return
convert_and_check
(
result_type
,
integer_zerop
(
ifexp
)
?
op2
:
op1
);
if
(
result_type
!=
TREE_TYPE
(
op1
))
op1
=
convert_and_check
(
result_type
,
op1
);
...
...
@@ -3629,6 +3626,9 @@ build_conditional_expr (ifexp, op1, op2)
}
}
#endif /* 0 */
if
(
TREE_CODE
(
ifexp
)
==
INTEGER_CST
)
return
integer_zerop
(
ifexp
)
?
op2
:
op1
;
return
fold
(
build
(
COND_EXPR
,
result_type
,
ifexp
,
op1
,
op2
));
}
...
...
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