From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id A04CC3858C62; Wed, 17 Apr 2024 20:14:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A04CC3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384872; bh=eojC37iET69Wbf5CJR24ZPDbewAa3lXAzPmLOeNuQmA=; h=From:To:Subject:Date:From; b=p0EdmWWsBM2ITq+jfnkG6ziU5TnBLFoTpJhhAJ5O9Q1EdvlDfsu8Vgcbr+VmgwlNC BqkRlKXOEY06xfSFI/qvzJRe5j6/exQB4o91hU7WZR39Fdli6fsoaOZAXNt1d2bRrR SRx+d1J6or4iNtkCqEhZryZQHiE2vmxDiz9xX20s= 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: 2cebb84d7e5858ac3f0c987a4e73e12f0bd406d8 X-Git-Newrev: c1877f3da50288ed39c3717a88b548bd9c93fea0 Message-Id: <20240417201432.A04CC3858C62@sourceware.org> Date: Wed, 17 Apr 2024 20:14:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c1877f3da50288ed39c3717a88b548bd9c93fea0 commit c1877f3da50288ed39c3717a88b548bd9c93fea0 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;