From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id BF9213858428; Fri, 28 Oct 2022 17:45:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF9213858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666979128; bh=ciMIGx5PnVPyGZSeuQAWDfUPjYAa3+lyfhCZOOtSyOw=; h=From:To:Subject:Date:From; b=pnEKm8gibCBhZEeG7tb06/rjO0xJIBrcqbvxD/RgRH/OafkxFRlIvLQxrJrJqXslC bo1DjofE6/vjeazLvNwMzsfYpJTE1Td2H5znogKVy+lVQhEt8IJohBCDtw/BCjUMjn llYjyXF6MSjHj3FwkwpP/o6EbpJ9KapOhQ1sNTqk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] x86: Use inhibit_stack_protector on tst-ifunc-isa.h X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: fce1ff0930c6faa72800fea94fb99189316c2daa X-Git-Newrev: 12eebb025c357019b7d75d6e7d2823acd96f0fe2 Message-Id: <20221028174528.BF9213858428@sourceware.org> Date: Fri, 28 Oct 2022 17:45:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=12eebb025c357019b7d75d6e7d2823acd96f0fe2 commit 12eebb025c357019b7d75d6e7d2823acd96f0fe2 Author: Adhemerval Zanella 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 7a6ff9a92a..e44277ec10 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 . */ +#include #include 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 ())