From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 5D24D3858C39; Fri, 9 Feb 2024 17:35:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D24D3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707500141; bh=FwpwJF1dhVttshFnchp+tQGwPiSVe18AsdjO5zQKroY=; h=From:To:Subject:Date:From; b=lBXKSdH6D/8H9ug9PnC9ZzXU72yY7SxG/yNYYUaeifqxJ0PSeymwFH7HjTU5pergo DkKt58qzmXhfzoGHEHrxv3x0mJKBKu3wlWCG4iXshP0loMo/TVpbAVf5Sm1tty54IS P5y1eUvp0R8AkK/GVkQRjQS2tjblPqetn6xeuGG8= 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: dc41807ca0583fcbe4ec5c30f3b709db8925d5cb X-Git-Newrev: cf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5 Message-Id: <20240209173541.5D24D3858C39@sourceware.org> Date: Fri, 9 Feb 2024 17:35:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5 commit cf7b9956c9d014d1d4f77c1ffc72aa5b1a25a7f5 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 dc79d260ca..b1f28ef2e1 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 ())