diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-12-10 21:16:57 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-12-10 21:16:57 +0100 |
commit | 341657bc9c17d3ea4546c6d998e67ca349a78e80 (patch) | |
tree | a04c0d038e35c35ef492f1fd358b4f8b151b8145 /debug/tst-backtrace.h | |
parent | fea34d51e03ec5ebf9b25cb3010751782bf27fb1 (diff) | |
download | glibc-341657bc9c17d3ea4546c6d998e67ca349a78e80.zip glibc-341657bc9c17d3ea4546c6d998e67ca349a78e80.tar.gz glibc-341657bc9c17d3ea4546c6d998e67ca349a78e80.tar.bz2 |
debug: Additional compiler barriers for backtrace tests [BZ #20956]
The new test framework changed the call stacks. The weak attribute
acts as a strong compiler barrier. Some static functions had to be
declared extern as a consequence.
Diffstat (limited to 'debug/tst-backtrace.h')
-rw-r--r-- | debug/tst-backtrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/tst-backtrace.h b/debug/tst-backtrace.h index 1a53048..6a4b200 100644 --- a/debug/tst-backtrace.h +++ b/debug/tst-backtrace.h @@ -33,7 +33,7 @@ volatile int x; /* Use this attribute to prevent inlining, so that all expected frames are present. */ -#define NO_INLINE __attribute__ ((noinline)) +#define NO_INLINE __attribute__ ((noinline, noclone, weak)) /* Look for a match in SYM from backtrace_symbols to NAME, a fragment of a function name. Ignore the filename before '(', but presume |