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 -mshstk instead of '#pragma GCC target'
Date: Thu, 21 Dec 2023 19:00:42 +0000 (GMT)	[thread overview]
Message-ID: <20231221190042.04200386EC3C@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8abac0b9f79f5585b3a24816843fec9334620477

commit 8abac0b9f79f5585b3a24816843fec9334620477
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Wed Dec 20 11:11:48 2023 -0300

    x86: Use -mshstk instead of '#pragma GCC target'

Diff:
---
 sysdeps/x86/Makefile                    | 4 ++--
 sysdeps/x86/tst-cet-legacy-10a-static.c | 1 -
 sysdeps/x86/tst-cet-legacy-10a.c        | 1 -
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
index 0aafd2afeb..9bb6a9c736 100644
--- a/sysdeps/x86/Makefile
+++ b/sysdeps/x86/Makefile
@@ -246,8 +246,8 @@ CFLAGS-tst-cet-legacy-mod-6c.c += -fcf-protection
 CFLAGS-tst-cet-legacy-7.c += -fcf-protection=none
 CFLAGS-tst-cet-legacy-10.c += -mshstk
 CFLAGS-tst-cet-legacy-10-static.c += -mshstk
-CFLAGS-tst-cet-legacy-10a.c += -fcf-protection=none
-CFLAGS-tst-cet-legacy-10a-static.c += -fcf-protection=none
+CFLAGS-tst-cet-legacy-10a.c += -fcf-protection=none -mshstk
+CFLAGS-tst-cet-legacy-10a-static.c += -fcf-protection=none -mshstk
 
 CFLAGS-tst-shstk-legacy-1a.c += -fcf-protection=none
 CFLAGS-tst-shstk-legacy-1a-static.c += -fcf-protection=none
diff --git a/sysdeps/x86/tst-cet-legacy-10a-static.c b/sysdeps/x86/tst-cet-legacy-10a-static.c
index 05073a5d1e..ecc1208e35 100644
--- a/sysdeps/x86/tst-cet-legacy-10a-static.c
+++ b/sysdeps/x86/tst-cet-legacy-10a-static.c
@@ -1,2 +1 @@
-#pragma GCC target ("shstk")
 #include "tst-cet-legacy-10.c"
diff --git a/sysdeps/x86/tst-cet-legacy-10a.c b/sysdeps/x86/tst-cet-legacy-10a.c
index 05073a5d1e..ecc1208e35 100644
--- a/sysdeps/x86/tst-cet-legacy-10a.c
+++ b/sysdeps/x86/tst-cet-legacy-10a.c
@@ -1,2 +1 @@
-#pragma GCC target ("shstk")
 #include "tst-cet-legacy-10.c"

             reply	other threads:[~2023-12-21 19:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-21 19:00 Adhemerval Zanella [this message]
2024-01-29 18:04 Adhemerval Zanella
2024-02-07 14:13 Adhemerval Zanella
2024-02-09 17:38 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=20231221190042.04200386EC3C@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).