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] x86: Use inhibit_stack_protector on tst-ifunc-isa.h
Date: Thu, 28 Sep 2023 17:55:57 +0000 (GMT)	[thread overview]
Message-ID: <20230928175557.0DC7938A908A@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5c7a83308b1f71a7b3235bc8a288978f12dd696c

commit 5c7a83308b1f71a7b3235bc8a288978f12dd696c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Aug 25 09:48:57 2022 -0300

    x86: Use inhibit_stack_protector on tst-ifunc-isa.h

Diff:
---
 sysdeps/x86/tst-ifunc-isa.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sysdeps/x86/tst-ifunc-isa.h b/sysdeps/x86/tst-ifunc-isa.h
index 739388cf09..4160ddc38c 100644
--- a/sysdeps/x86/tst-ifunc-isa.h
+++ b/sysdeps/x86/tst-ifunc-isa.h
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#include <stackprotector.h>
 #include <sys/platform/x86.h>
 
 enum isa
@@ -29,7 +30,7 @@ enum isa
 };
 
 enum isa
-__attribute__ ((__optimize__ ("-fno-stack-protector")))
+inhibit_stack_protector
 get_isa (void)
 {
   if (CPU_FEATURE_ACTIVE (AVX512F))
@@ -84,7 +85,7 @@ isa_none (void)
 int foo (void) __attribute__ ((ifunc ("foo_ifunc")));
 
 void *
-__attribute__ ((__optimize__ ("-fno-stack-protector")))
+inhibit_stack_protector
 foo_ifunc (void)
 {
   switch (get_isa ())

             reply	other threads:[~2023-09-28 17:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-28 17:55 Adhemerval Zanella [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:11 Adhemerval Zanella
2024-04-02 15:57 Adhemerval Zanella
2024-02-09 17:35 Adhemerval Zanella
2024-02-07 14:11 Adhemerval Zanella
2024-01-29 18:01 Adhemerval Zanella
2023-12-21 18:57 Adhemerval Zanella
2023-08-30 12:40 Adhemerval Zanella
2023-02-09 19:52 Adhemerval Zanella
2022-10-28 17:45 Adhemerval Zanella
2022-10-04 13:03 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=20230928175557.0DC7938A908A@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).