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
71a81095
Commit
71a81095
authored
Feb 18, 1995
by
Mike Stump
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rs6000 exception handling support
From-SVN: r8970
parent
1e58f107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
gcc/libgcc2.c
+18
-0
No files found.
gcc/libgcc2.c
View file @
71a81095
...
...
@@ -2277,6 +2277,24 @@ __unwind_function(void *ptr)
asm
(
"ret"
);
}
#endif
#if #machine(rs6000)
__unwind_function
(
void
*
ptr
)
{
asm
(
"mr 31,1"
);
asm
(
"l 1,0(1)"
);
asm
(
"l 31,-4(1)"
);
asm
(
"# br"
);
asm
(
"mr 31,1"
);
asm
(
"l 1,0(1)"
);
/* use 31 as a scratch register to restore the link register. */
asm
(
"l 31, 8(1);mtlr 31 # l lr,8(1)"
);
asm
(
"l 31,-4(1)"
);
asm
(
"# br"
);
asm
(
"mtctr 3;bctr # b 3"
);
}
#endif
#endif
/* L_eh */
#ifdef L_pure
...
...
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