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
ddbe9812
Commit
ddbe9812
authored
Apr 17, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r761
parent
935e11b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
gcc/stmt.c
+17
-2
No files found.
gcc/stmt.c
View file @
ddbe9812
...
...
@@ -1206,8 +1206,18 @@ expand_expr_stmt (exp)
if
(
TYPE_MODE
(
TREE_TYPE
(
exp
))
!=
BLKmode
)
copy_to_reg
(
last_expr_value
);
else
/* This case needs to be written. */
abort
();
{
rtx
lab
=
gen_label_rtx
();
/* Compare the value with itself to reference it. */
emit_cmp_insn
(
last_expr_value
,
last_expr_value
,
EQ
,
expand_expr
(
TYPE_SIZE
(
last_expr_type
),
0
,
VOIDmode
,
0
),
BLKmode
,
0
,
TYPE_ALIGN
(
last_expr_type
)
/
BITS_PER_UNIT
);
emit_jump_insn
((
*
bcc_gen_fctn
[(
int
)
EQ
])
(
lab
));
emit_label
(
lab
);
}
}
/* If this expression is part of a ({...}) and is in memory, we may have
...
...
@@ -1291,6 +1301,11 @@ warn_if_unused_value (exp)
return
0
;
default
:
/* Referencing a volatile value is a side effect, so don't warn. */
if
((
TREE_CODE_CLASS
(
TREE_CODE
(
exp
))
==
'd'
||
TREE_CODE_CLASS
(
TREE_CODE
(
exp
))
==
'r'
)
&&
TREE_THIS_VOLATILE
(
exp
))
return
0
;
warning_with_file_and_line
(
emit_filename
,
emit_lineno
,
"value computed is not used"
);
return
1
;
...
...
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