From 8f7c06df424fffa88422f83ba0a7c58576ae3d91 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 11 Jul 2024 16:07:06 -0700 Subject: libbacktrace: fix testsuite for clang * btest.c (test1, test3): Add optnone attribute. * edtest.c (test1): Likewise. * mtest.c (test1, test3): Likewise. * configure.ac: Use -Wno-attributes and -Wno-unknown-attributes. * configure: Regenerate. --- libbacktrace/mtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbacktrace/mtest.c') diff --git a/libbacktrace/mtest.c b/libbacktrace/mtest.c index 9afe708..f793391 100644 --- a/libbacktrace/mtest.c +++ b/libbacktrace/mtest.c @@ -47,7 +47,7 @@ POSSIBILITY OF SUCH DAMAGE. */ #include "testlib.h" -static int test1 (void) __attribute__ ((noinline, noclone, unused)); +static int test1 (void) __attribute__ ((noinline, noclone, optnone, unused)); static int f2 (int) __attribute__ ((noinline, noclone)); static int f3 (int, int) __attribute__ ((noinline, noclone)); @@ -211,7 +211,7 @@ f3 (int f1line __attribute__ ((unused)), int f2line __attribute__ ((unused))) /* Test the backtrace_simple function with non-inlined functions. */ -static int test3 (void) __attribute__ ((noinline, noclone, unused)); +static int test3 (void) __attribute__ ((noinline, noclone, optnone, unused)); static int f22 (int) __attribute__ ((noinline, noclone)); static int f23 (int, int) __attribute__ ((noinline, noclone)); -- cgit v1.1