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
bf18d031
Commit
bf18d031
authored
Mar 01, 1995
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clone unwind_function for powerpc
From-SVN: r9103
parent
b099377f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletions
+19
-1
gcc/libgcc2.c
+19
-1
No files found.
gcc/libgcc2.c
View file @
bf18d031
...
...
@@ -2298,7 +2298,25 @@ __unwind_function(void *ptr)
asm
(
"# br"
);
asm
(
"mtctr 3;bctr # b 3"
);
}
#endif
#endif
/* rs6000 */
#if #machine(powerpc)
__unwind_function
(
void
*
ptr
)
{
asm
(
"mr 31,1"
);
asm
(
"lwz 1,0(1)"
);
asm
(
"lwz 31,-4(1)"
);
asm
(
"# br"
);
asm
(
"mr 31,1"
);
asm
(
"lwz 1,0(1)"
);
/* use 31 as a scratch register to restore the link register. */
asm
(
"lwz 31, 8(1);mtlr 31 # l lr,8(1)"
);
asm
(
"lwz 31,-4(1)"
);
asm
(
"# br"
);
asm
(
"mtctr 3;bctr # b 3"
);
}
#endif
/* powerpc */
#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