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
eca93b05
Commit
eca93b05
authored
Dec 05, 2000
by
Richard Henderson
Committed by
Richard Henderson
Dec 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stmt.c (warn_if_unused_value): Move side effects test earlier.
From-SVN: r38030
parent
7d361583
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
gcc/ChangeLog
+4
-0
gcc/stmt.c
+4
-4
No files found.
gcc/ChangeLog
View file @
eca93b05
2000-12-05 Richard Henderson <rth@redhat.com>
* stmt.c (warn_if_unused_value): Move side effects test earlier.
2000-12-05 Alan Modra <alan@linuxcare.com.au>
* bb-reorder.c (reorder_basic_blocks): Do check for EH edges even
...
...
gcc/stmt.c
View file @
eca93b05
...
...
@@ -1983,6 +1983,10 @@ warn_if_unused_value (exp)
if
(
VOID_TYPE_P
(
TREE_TYPE
(
exp
)))
return
0
;
/* If this is an expression with side effects, don't warn. */
if
(
TREE_SIDE_EFFECTS
(
exp
))
return
0
;
switch
(
TREE_CODE
(
exp
))
{
case
PREINCREMENT_EXPR
:
...
...
@@ -2058,10 +2062,6 @@ warn_if_unused_value (exp)
&&
TREE_THIS_VOLATILE
(
exp
))
return
0
;
/* If this is an expression with side effects, don't warn. */
if
(
TREE_SIDE_EFFECTS
(
exp
))
return
0
;
/* If this is an expression which has no operands, there is no value
to be unused. There are no such language-independent codes,
but front ends may define such. */
...
...
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