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
4d7b7706
Commit
4d7b7706
authored
Sep 14, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix defer/recover at high optimization levels.
From-SVN: r178859
parent
ebb077fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gcc/go/gofrontend/gogo-tree.cc
+5
-2
No files found.
gcc/go/gofrontend/gogo-tree.cc
View file @
4d7b7706
...
@@ -1159,8 +1159,11 @@ Function::get_or_make_decl(Gogo* gogo, Named_object* no, tree id)
...
@@ -1159,8 +1159,11 @@ Function::get_or_make_decl(Gogo* gogo, Named_object* no, tree id)
// If a function calls the predeclared recover function, we
// If a function calls the predeclared recover function, we
// can't inline it, because recover behaves differently in a
// can't inline it, because recover behaves differently in a
// function passed directly to defer.
// function passed directly to defer. If this is a recover
if
(
this
->
calls_recover_
&&
!
this
->
is_recover_thunk_
)
// thunk that we built to test whether a function can be
// recovered, we can't inline it, because that will mess up
// our return address comparison.
if
(
this
->
calls_recover_
||
this
->
is_recover_thunk_
)
DECL_UNINLINABLE
(
decl
)
=
1
;
DECL_UNINLINABLE
(
decl
)
=
1
;
// If this is a thunk created to call a function which calls
// If this is a thunk created to call a function which calls
...
...
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