public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] debug: Avoid clang optimize away required function on tst-ssp1.c
Date: Mon, 29 Jan 2024 18:04:46 +0000 (GMT)	[thread overview]
Message-ID: <20240129180446.70D433858422@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2b9ba62cd3bc4dc67806ae756f68e0f0bdfacf00

commit 2b9ba62cd3bc4dc67806ae756f68e0f0bdfacf00
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Wed Jan 17 15:50:04 2024 -0300

    debug: Avoid clang optimize away required function on tst-ssp1.c

Diff:
---
 debug/tst-ssp-1.c | 4 ++++
 1 file changed, 4 insertions(+)

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;

             reply	other threads:[~2024-01-29 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-29 18:04 Adhemerval Zanella [this message]
2024-02-07 14:14 Adhemerval Zanella
2024-02-09 17:39 Adhemerval Zanella
2024-04-02 16:00 Adhemerval Zanella
2024-04-17 20:14 Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240129180446.70D433858422@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).