diff options
author | Ian Lance Taylor <iant@golang.org> | 2024-07-11 16:07:06 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2024-07-11 16:12:47 -0700 |
commit | 8f7c06df424fffa88422f83ba0a7c58576ae3d91 (patch) | |
tree | f54584a767fc4cecb88e1b7271ed791a0690202c /libbacktrace/mtest.c | |
parent | 43763bd75f1d37189ba08657a322e91d240e8cf3 (diff) | |
download | gcc-8f7c06df424fffa88422f83ba0a7c58576ae3d91.zip gcc-8f7c06df424fffa88422f83ba0a7c58576ae3d91.tar.gz gcc-8f7c06df424fffa88422f83ba0a7c58576ae3d91.tar.bz2 |
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.
Diffstat (limited to 'libbacktrace/mtest.c')
-rw-r--r-- | libbacktrace/mtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |