]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Use inhibit_stack_protector on tst-ifunc-isa.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 25 Aug 2022 12:48:57 +0000 (09:48 -0300)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 22 Dec 2024 05:19:12 +0000 (13:19 +0800)
Co-Authored-By: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
sysdeps/x86/tst-ifunc-isa.h

index dc79d260ca0292e33e0e5608f850eb9e895a967e..c9451ad874c794e930a84c220a64ba5623550ca4 100644 (file)
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#include <libc-misc.h>
 #include <sys/platform/x86.h>
 
 enum isa
@@ -29,7 +30,7 @@ enum isa
 };
 
 enum isa
-__attribute__ ((__optimize__ ("-fno-stack-protector")))
+test_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")))
+test_inhibit_stack_protector
 foo_ifunc (void)
 {
   switch (get_isa ())