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
3f783329
Commit
3f783329
authored
Oct 08, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(invert_truthvalue): Never alter ARG.
From-SVN: r2365
parent
abd09f97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
gcc/fold-const.c
+4
-6
No files found.
gcc/fold-const.c
View file @
3f783329
...
@@ -1979,8 +1979,8 @@ omit_one_operand (type, result, omitted)
...
@@ -1979,8 +1979,8 @@ omit_one_operand (type, result, omitted)
return
t
;
return
t
;
}
}
/* Return a simplified tree node for the truth-negation of ARG
/* Return a simplified tree node for the truth-negation of ARG
. This
(perhaps by altering ARG). It is known
that ARG is an operation that
never alters ARG itself. We assume
that ARG is an operation that
returns a truth value (0 or 1). */
returns a truth value (0 or 1). */
tree
tree
...
@@ -2000,10 +2000,8 @@ invert_truthvalue (arg)
...
@@ -2000,10 +2000,8 @@ invert_truthvalue (arg)
&&
code
!=
NE_EXPR
&&
code
!=
EQ_EXPR
)
&&
code
!=
NE_EXPR
&&
code
!=
EQ_EXPR
)
return
build1
(
TRUTH_NOT_EXPR
,
type
,
arg
);
return
build1
(
TRUTH_NOT_EXPR
,
type
,
arg
);
else
else
{
return
build
(
invert_tree_comparison
(
code
),
TREE_SET_CODE
(
arg
,
invert_tree_comparison
(
code
));
TREE_OPERAND
(
arg
,
0
),
TREE_OPERAND
(
arg
,
1
));
return
arg
;
}
}
}
switch
(
code
)
switch
(
code
)
...
...
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