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
7802250d
Commit
7802250d
authored
19 years ago
by
Steven Bosscher
Committed by
Steven Bosscher
19 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
From-SVN: r105691
parent
cdcba1ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
gcc/ChangeLog
+4
-0
gcc/tree-cfg.c
+1
-1
No files found.
gcc/ChangeLog
View file @
7802250d
2005
-
10
-
20
Steven
Bosscher
<
stevenb
@suse
.
de
>
*
tree
-
cfg
.
c
(
tree_find_edge_insert_loc
)
:
Handle
naked
RETURN_EXPR
.
2005
-
10
-
20
Alexandre
Oliva
<
aoliva
@redhat
.
com
>
PR
middle
-
end
/
24295
...
...
This diff is collapsed.
Click to expand it.
gcc/tree-cfg.c
View file @
7802250d
...
...
@@ -2937,7 +2937,7 @@ tree_find_edge_insert_loc (edge e, block_stmt_iterator *bsi,
if
(
TREE_CODE
(
tmp
)
==
RETURN_EXPR
)
{
tree
op
=
TREE_OPERAND
(
tmp
,
0
);
if
(
!
is_gimple_val
(
op
))
if
(
op
&&
!
is_gimple_val
(
op
))
{
gcc_assert
(
TREE_CODE
(
op
)
==
MODIFY_EXPR
);
bsi_insert_before
(
bsi
,
op
,
BSI_NEW_STMT
);
...
...
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