diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-01-17 15:50:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:41 -0300 |
commit | c1877f3da50288ed39c3717a88b548bd9c93fea0 (patch) | |
tree | 7490b06f82534d82c6760263cfa8cfe1f3e17bf5 | |
parent | 2cebb84d7e5858ac3f0c987a4e73e12f0bd406d8 (diff) | |
download | glibc-c1877f3da50288ed39c3717a88b548bd9c93fea0.tar.gz glibc-c1877f3da50288ed39c3717a88b548bd9c93fea0.tar.xz glibc-c1877f3da50288ed39c3717a88b548bd9c93fea0.zip |
debug: Avoid clang optimize away required function on tst-ssp1.c
-rw-r--r-- | debug/tst-ssp-1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debug/tst-ssp-1.c b/debug/tst-ssp-1.c index 27f10edc56..671e9a5007 100644 --- a/debug/tst-ssp-1.c +++ b/debug/tst-ssp-1.c @@ -22,6 +22,10 @@ static void __attribute__ ((noinline)) __attribute_noclone__ +#ifdef __clang__ +/* Avoid clang optimize it away. */ +__attribute__ ((optnone)) +#endif test (char *foo) { int i; |