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
58cee643
Commit
58cee643
authored
May 31, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(truthvalue_conversion, BIT_AND_EXPR): Make sure that the result has
boolean_type_node. From-SVN: r9844
parent
a0ab0422
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gcc/c-common.c
+5
-2
No files found.
gcc/c-common.c
View file @
58cee643
...
...
@@ -2103,8 +2103,11 @@ truthvalue_conversion (expr)
TREE_OPERAND
(
expr
,
1
))),
1
);
case
BIT_AND_EXPR
:
if
(
integer_onep
(
TREE_OPERAND
(
expr
,
1
)))
return
expr
;
if
(
integer_onep
(
TREE_OPERAND
(
expr
,
1
))
&&
TREE_TYPE
(
expr
)
!=
boolean_type_node
)
/* Using convert here would cause infinite recursion. */
return
build1
(
NOP_EXPR
,
boolean_type_node
,
expr
);
break
;
case
MODIFY_EXPR
:
if
(
warn_parentheses
&&
C_EXP_ORIGINAL_CODE
(
expr
)
==
MODIFY_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