From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 447EF385E012; Tue, 2 Apr 2024 16:00:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 447EF385E012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712073643; bh=WdDJfhWR8xd3tEwrYVoz0GkyctsS4cHtCN4MgZXLuzE=; h=From:To:Subject:Date:From; b=NIHZ85zJso0FlNI9uF5HUJxEqFLIWHdABq+PZVPiNdxJkxW/DT2dfkWwjHwX8zMB0 m5Zak7L7R3viR00Sz37h+emJtkonO0XXOzgpyjzwbTsMGew8s3Xb7AQLf9VnE5o6Od 3vOuYJ2K1Y72UVVZK7tYBKgRlqj3dwU+s0asQLbE= 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: c551185493dc92d7704fbdabc8bbd8271000fe36 X-Git-Newrev: b12bd2be653ad123e8d3515cbc940ce441c03115 Message-Id: <20240402160043.447EF385E012@sourceware.org> Date: Tue, 2 Apr 2024 16:00:43 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b12bd2be653ad123e8d3515cbc940ce441c03115 commit b12bd2be653ad123e8d3515cbc940ce441c03115 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;