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
b839fb3f
Commit
b839fb3f
authored
Sep 04, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(truthvalue_conversion): A complex value is nonzero if either part is
nonzero, not if both parts are nonzero. From-SVN: r5259
parent
25a1019f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/c-common.c
+3
-3
No files found.
gcc/c-common.c
View file @
b839fb3f
/* Subroutines shared by all languages that are variants of C.
/* Subroutines shared by all languages that are variants of C.
Copyright (C) 1992 Free Software Foundation, Inc.
Copyright (C) 1992
, 1993
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -1026,7 +1026,7 @@ truthvalue_conversion (expr)
...
@@ -1026,7 +1026,7 @@ truthvalue_conversion (expr)
case
COMPLEX_EXPR
:
case
COMPLEX_EXPR
:
return
build_binary_op
((
TREE_SIDE_EFFECTS
(
TREE_OPERAND
(
expr
,
1
))
return
build_binary_op
((
TREE_SIDE_EFFECTS
(
TREE_OPERAND
(
expr
,
1
))
?
TRUTH_
AND_EXPR
:
TRUTH_AND
IF_EXPR
),
?
TRUTH_
OR_EXPR
:
TRUTH_OR
IF_EXPR
),
truthvalue_conversion
(
TREE_OPERAND
(
expr
,
0
)),
truthvalue_conversion
(
TREE_OPERAND
(
expr
,
0
)),
truthvalue_conversion
(
TREE_OPERAND
(
expr
,
1
)),
truthvalue_conversion
(
TREE_OPERAND
(
expr
,
1
)),
0
);
0
);
...
@@ -1096,7 +1096,7 @@ truthvalue_conversion (expr)
...
@@ -1096,7 +1096,7 @@ truthvalue_conversion (expr)
if
(
TREE_CODE
(
TREE_TYPE
(
expr
))
==
COMPLEX_TYPE
)
if
(
TREE_CODE
(
TREE_TYPE
(
expr
))
==
COMPLEX_TYPE
)
return
(
build_binary_op
return
(
build_binary_op
((
TREE_SIDE_EFFECTS
(
expr
)
((
TREE_SIDE_EFFECTS
(
expr
)
?
TRUTH_
AND_EXPR
:
TRUTH_AND
IF_EXPR
),
?
TRUTH_
OR_EXPR
:
TRUTH_OR
IF_EXPR
),
truthvalue_conversion
(
build_unary_op
(
REALPART_EXPR
,
expr
,
0
)),
truthvalue_conversion
(
build_unary_op
(
REALPART_EXPR
,
expr
,
0
)),
truthvalue_conversion
(
build_unary_op
(
IMAGPART_EXPR
,
expr
,
0
)),
truthvalue_conversion
(
build_unary_op
(
IMAGPART_EXPR
,
expr
,
0
)),
0
));
0
));
...
...
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