aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-01-17 15:50:04 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-09 10:29:18 -0300
commita29972e91b4ec18300af6db982308dcb11021128 (patch)
treedf354fe39ffae05411a579553b38ad068feaa6e7
parent59c270c3e59a859ced1204d2be03510539a32925 (diff)
downloadglibc-a29972e91b4ec18300af6db982308dcb11021128.tar
glibc-a29972e91b4ec18300af6db982308dcb11021128.tar.gz
glibc-a29972e91b4ec18300af6db982308dcb11021128.tar.bz2
glibc-a29972e91b4ec18300af6db982308dcb11021128.zip
debug: Avoid clang optimize away required function on tst-ssp1.c
-rw-r--r--debug/tst-ssp-1.c4
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;