about summary refs log tree commit diff
path: root/debug/tst-backtrace.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-12-10 21:16:57 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-12-10 21:16:57 +0100
commit341657bc9c17d3ea4546c6d998e67ca349a78e80 (patch)
treea04c0d038e35c35ef492f1fd358b4f8b151b8145 /debug/tst-backtrace.h
parentfea34d51e03ec5ebf9b25cb3010751782bf27fb1 (diff)
downloadglibc-341657bc9c17d3ea4546c6d998e67ca349a78e80.tar.gz
glibc-341657bc9c17d3ea4546c6d998e67ca349a78e80.tar.xz
glibc-341657bc9c17d3ea4546c6d998e67ca349a78e80.zip
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/tst-backtrace.h b/debug/tst-backtrace.h
index 1a53048a49..6a4b200c80 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