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: Wed,  7 Feb 2024 14:14:20 +0000 (GMT)	[thread overview]
Message-ID: <20240207141420.5B07D38582A3@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0cd3a84beb01df4cf16d976d4e10e33e28b74171

commit 0cd3a84beb01df4cf16d976d4e10e33e28b74171
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-02-07 14:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-07 14:14 Adhemerval Zanella [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:14 Adhemerval Zanella
2024-04-02 16:00 Adhemerval Zanella
2024-02-09 17:39 Adhemerval Zanella
2024-01-29 18:04 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=20240207141420.5B07D38582A3@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).