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
139eda62
Commit
139eda62
authored
Oct 29, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(L_eh: __unwind_function): Implement for VAX.
From-SVN: r10539
parent
2c3aa1ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
gcc/libgcc2.c
+16
-0
No files found.
gcc/libgcc2.c
View file @
139eda62
...
@@ -2390,6 +2390,22 @@ __unwind_function(void *ptr)
...
@@ -2390,6 +2390,22 @@ __unwind_function(void *ptr)
asm
(
"# br"
);
asm
(
"# br"
);
asm
(
"mtctr 3;bctr # b 3"
);
asm
(
"mtctr 3;bctr # b 3"
);
}
}
#elif #machine(vax)
__unwind_function
(
void
*
ptr
)
{
__label__
return_again
;
/* Replace our frame's return address with the label below.
During execution, we will first return here instead of to
caller, then second return takes caller's frame off the stack.
Two returns matches two actual calls, so is less likely to
confuse debuggers. `16' corresponds to RETURN_ADDRESS_OFFSET. */
__asm
(
"movl %0,16(fp)"
:
:
"p"
(
&&
return_again
));
return
;
return_again
:
return
;
}
#else
#else
__unwind_function
(
void
*
ptr
)
__unwind_function
(
void
*
ptr
)
{
{
...
...
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