From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 5B07D38582A3; Wed, 7 Feb 2024 14:14:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B07D38582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707315260; bh=DsK7xKqPqF5BrqmX/qx2rjlTc9KdYKR9ihWL2u/yPpc=; h=From:To:Subject:Date:From; b=Vj3yZV54JoBD/rORsDIeXVCpmyX+KnCSe01OnOTSFzCjIr20cQtg46kj+qbQFzE83 SAsatB1gwMudAZv+2BNK+BdQHgcOIu45oW5I+wlNFXoOsh//Vk0c9EV6q+P969YXjM bHabCeKlyiFMz06hzepUOmuZL6999Ju73KM55Ql8= 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: 72ad590b4753e4fdb2cbef321a08e8155dc6c946 X-Git-Newrev: 0cd3a84beb01df4cf16d976d4e10e33e28b74171 Message-Id: <20240207141420.5B07D38582A3@sourceware.org> Date: Wed, 7 Feb 2024 14:14:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0cd3a84beb01df4cf16d976d4e10e33e28b74171 commit 0cd3a84beb01df4cf16d976d4e10e33e28b74171 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;