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
1180eb10
Commit
1180eb10
authored
29 years ago
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r9801
parent
103894f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/c-common.c
+1
-0
gcc/fold-const.c
+5
-1
No files found.
gcc/c-common.c
View file @
1180eb10
...
...
@@ -2019,6 +2019,7 @@ truthvalue_conversion (expr)
case
TRUTH_AND_EXPR
:
case
TRUTH_OR_EXPR
:
case
TRUTH_XOR_EXPR
:
case
TRUTH_NOT_EXPR
:
TREE_TYPE
(
expr
)
=
boolean_type_node
;
return
expr
;
...
...
This diff is collapsed.
Click to expand it.
gcc/fold-const.c
View file @
1180eb10
...
...
@@ -4201,7 +4201,11 @@ fold (expr)
and its values must be 0 or 1.
("true" is a fixed value perhaps depending on the language,
but we don't handle values other than 1 correctly yet.) */
return
invert_truthvalue
(
arg0
);
tem
=
invert_truthvalue
(
arg0
);
/* Avoid infinite recursion. */
if
(
TREE_CODE
(
tem
)
==
TRUTH_NOT_EXPR
)
return
t
;
return
convert
(
type
,
tem
);
case
TRUTH_ANDIF_EXPR
:
/* Note that the operands of this must be ints
...
...
This diff is collapsed.
Click to expand it.
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