Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
abseil-cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Third Party Libraries
abseil-cpp
Commits
92e07e55
Unverified
Commit
92e07e55
authored
6 years ago
by
Derek Mauro
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #152 from clnperez/fix-multi-defines-ppc64le
fix multiple define problem with ppc64le
parents
2125e644
b876d861
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
absl/debugging/internal/stacktrace_powerpc-inl.inc
+6
-3
6 additions, 3 deletions
absl/debugging/internal/stacktrace_powerpc-inl.inc
with
6 additions
and
3 deletions
absl/debugging/internal/stacktrace_powerpc-inl.inc
+
6
−
3
View file @
92e07e55
...
...
@@ -31,6 +31,8 @@
#include <cstdint>
#include <cstdio>
#include "absl/base/attributes.h"
#include "absl/base/optimization.h"
#include "absl/base/port.h"
#include "absl/debugging/stacktrace.h"
#include "absl/debugging/internal/address_is_readable.h"
...
...
@@ -150,8 +152,9 @@ static void **NextStackFrame(void **old_sp, const void *uc) {
}
// This ensures that absl::GetStackTrace sets up the Link Register properly.
void
StacktracePowerPCDummyFunction
()
__attribute__
((
noinline
));
void
StacktracePowerPCDummyFunction
()
{
__asm__
volatile
(
""
);
}
ABSL_ATTRIBUTE_NOINLINE
static
void
AbslStacktracePowerPCDummyFunction
()
{
ABSL_BLOCK_TAIL_CALL_OPTIMIZATION
();
}
template
<
bool
IS_STACK_FRAMES
,
bool
IS_WITH_CONTEXT
>
ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS
// May read random elements from stack.
...
...
@@ -176,7 +179,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count,
// want here. While the compiler will always(?) set up LR for
// subroutine calls, it may not for leaf functions (such as this one).
// This routine forces the compiler (at least gcc) to push it anyway.
StacktracePowerPCDummyFunction
();
Absl
StacktracePowerPCDummyFunction
();
// The LR save area is used by the callee, so the top entry is bogus.
skip_count
++
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment