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
0e32bbcc
Commit
0e32bbcc
authored
Nov 16, 2005
by
Daniel Jacobowitz
Committed by
Daniel Jacobowitz
Nov 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
From-SVN: r107102
parent
6276e725
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
gcc/ChangeLog
+4
-0
gcc/unwind-sjlj.c
+12
-0
No files found.
gcc/ChangeLog
View file @
0e32bbcc
2005
-
11
-
16
Daniel
Jacobowitz
<
dan
@codesourcery
.
com
>
*
unwind
-
sjlj
.
c
(
_Unwind_GetCFA
)
:
Handle
the
builtin_setjmp
case
.
2005
-
11
-
16
Eric
Botcazou
<
ebotcazou
@adacore
.
com
>
*
config
/
alpha
/
alpha
.
c
(
alpha_init_builtins
):
Use
type_for_mode
...
...
gcc/unwind-sjlj.c
View file @
0e32bbcc
...
...
@@ -185,6 +185,18 @@ _Unwind_Word
_Unwind_GetCFA
(
struct
_Unwind_Context
*
context
__attribute__
((
unused
)))
{
/* ??? Ideally __builtin_setjmp places the CFA in the jmpbuf. */
#ifndef DONT_USE_BUILTIN_SETJMP
/* This is a crude imitation of the CFA: the saved stack pointer.
This is roughly the CFA of the frame before CONTEXT. When using the
DWARF-2 unwinder _Unwind_GetCFA returns the CFA of the frame described
by CONTEXT instead; but for DWARF-2 the cleanups associated with
CONTEXT have already been run, and for SJLJ they have not yet been. */
if
(
context
->
fc
!=
NULL
)
return
(
_Unwind_Word
)
context
->
fc
->
jbuf
[
2
];
#endif
/* Otherwise we're out of luck for now. */
return
(
_Unwind_Word
)
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