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
c6e84dc4
Commit
c6e84dc4
authored
Oct 26, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(__unwind_function): Provide a default definition for implementations
that don't yet have a function unwinder. From-SVN: r10524
parent
b030d598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
gcc/libgcc2.c
+10
-9
No files found.
gcc/libgcc2.c
View file @
c6e84dc4
...
...
@@ -2349,18 +2349,16 @@ __unwind_function(void *ptr)
/* This is a test routine, as we have to dynamically probe to find out
what to pop for certain, this is just a guess. */
asm
(
"leal -16(%ebp),%esp"
);
asm
(
"pop %e
ax"
);
/* really for popl %ebx */
asm
(
"pop %e
ax"
);
/* really for popl %esi */
asm
(
"pop %e
ax"
);
/* really for popl %edi */
asm
(
"pop %e
bx"
);
asm
(
"pop %e
si"
);
asm
(
"pop %e
di"
);
asm
(
"movl %ebp,%esp"
);
asm
(
"popl %ebp"
);
asm
(
"movl %ecx,0(%esp)"
);
asm
(
"ret"
);
}
#endif
#if #machine(rs6000)
#elif #machine(rs6000)
__unwind_function
(
void
*
ptr
)
{
asm
(
"mr 31,1"
);
...
...
@@ -2376,9 +2374,7 @@ __unwind_function(void *ptr)
asm
(
"# br"
);
asm
(
"mtctr 3;bctr # b 3"
);
}
#endif
/* rs6000 */
#if #machine(powerpc)
#elif #machine(powerpc)
__unwind_function
(
void
*
ptr
)
{
asm
(
"mr 31,1"
);
...
...
@@ -2394,6 +2390,11 @@ __unwind_function(void *ptr)
asm
(
"# br"
);
asm
(
"mtctr 3;bctr # b 3"
);
}
#else
__unwind_function
(
void
*
ptr
)
{
abort
();
}
#endif
/* powerpc */
#endif
/* L_eh */
...
...
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