From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 70D433858422; Mon, 29 Jan 2024 18:04:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70D433858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706551486; bh=XTajHoA+iv95q1FufhhdS5YNWLCyjHupO6qfDPwGCQM=; h=From:To:Subject:Date:From; b=fK37xhmjd7eq4VfDYNmS8faK2PJgFazLi3AYc9nxJ51FMjXpSVEROlpfnuvL52OoR soiZyFdVxOiSuYdlCxPtftvu0J0c7UKkyLxhdLvenFKIaI5LdN3Q6sZDYbB+6+PL8X rx52tyD5OSAVHK2bt+3JBI1DQtLDOXGLVpTd6wp0= 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] debug: Avoid clang optimize away required function on tst-ssp1.c X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 64ccce622fe2ac176863b5935c2cdd6561d95da8 X-Git-Newrev: 2b9ba62cd3bc4dc67806ae756f68e0f0bdfacf00 Message-Id: <20240129180446.70D433858422@sourceware.org> Date: Mon, 29 Jan 2024 18:04:46 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2b9ba62cd3bc4dc67806ae756f68e0f0bdfacf00 commit 2b9ba62cd3bc4dc67806ae756f68e0f0bdfacf00 Author: Adhemerval Zanella Date: Wed Jan 17 15:50:04 2024 -0300 debug: Avoid clang optimize away required function on tst-ssp1.c Diff: --- debug/tst-ssp-1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debug/tst-ssp-1.c b/debug/tst-ssp-1.c index 27f10edc56..671e9a5007 100644 --- a/debug/tst-ssp-1.c +++ b/debug/tst-ssp-1.c @@ -22,6 +22,10 @@ static void __attribute__ ((noinline)) __attribute_noclone__ +#ifdef __clang__ +/* Avoid clang optimize it away. */ +__attribute__ ((optnone)) +#endif test (char *foo) { int i;