From patchwork Sun Dec 22 00:04:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 852901 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2775631wrq; Sat, 21 Dec 2024 16:39:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6T6o6yicwfl+4aV0Uih89YEcVNlL5PcV4+sdzAXIp5J4nM+KtBHXVbhYveMQm/1uKiF9eGw==@linaro.org X-Google-Smtp-Source: AGHT+IEeSPDo9Fi1WOSz83jotvGMV3dFxDi/Tc0XWEAVcORH7C8fy6Y876eSIWEjO4jn2kmHUSSd X-Received: by 2002:a05:620a:1a8b:b0:7b6:dac1:cb81 with SMTP id af79cd13be357-7b9ba6ef9b2mr1465570985a.1.1734827980839; Sat, 21 Dec 2024 16:39:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734827980; cv=pass; d=google.com; s=arc-20240605; b=MJjSmiUvlUnLTqY5WDyvaXDbIXJYROmke3+O+5XWNMxNDJdUQFOjAnaqWAzEVYqznJ gR/1/8OLTEZRnMOGHd01O83XxKoIrjX7vVt3NySUFRHGEcL+0oB7w5laz5xJnqEJEBWQ RYOfj9rg/n2Ai+biIKvm6HFV/+llxS4qqUbeAyhPZnX3DOIPDSUH38jkVKTGtm+TvZSr 3HA0lW+Iz5kpEnvXtcyvkomilguROjAxbfzw7+z0lm+injc85/qsnmb4IE0PEPcYV5vM Q1iC+8HOHya/DkDXmaOSlTymygRkYnnxZZ6P60cMTKJvblRupV6VVN00DheHjgk8xgcZ UEkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter:arc-filter:dmarc-filter :delivered-to:dkim-filter; bh=Nnyy37DidKBZpeLUQfLq5zNp+2I6AnnPaa8y5rDe8t4=; fh=uKlFkH9AUukvL1xmvBA9M7Oe4ntiJIR8HCR4+3TPd4w=; b=Rkljv7zzeq/e04x+u9c411BhVTACCw/bQZvPgbZwGZVHBPFwg9oa/NeEeh46LJ+bmW QfnZ2WcNssXabkQX1VWXrXOUxUv/z/Tl/I5J3jvO4xYwIAcl00bqvzUlJbMpGG8eizk6 t71E5aAhrw14NlUUBstPKpLYI7xpmP0TMMoGqK4mvUzGvTj4ZIy8LgOBnM00911hxi3y oJ3Dryarqzt/oJlVOY11tt23KZTY4ottfcfFIRCMsHzSAjSJXHePIUqHVLzFvDRTKAtJ E9qU7UDS2CgIeNpiNyrK9zoPwzJUYXlP5xl50oG/qTDqBqcv7IhWYVNBeNe0LEAs6mca 6PfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KHftbdA2; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id af79cd13be357-7b9ac4f106asi841471085a.493.2024.12.21.16.39.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:39:40 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KHftbdA2; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 414813858408 for ; Sun, 22 Dec 2024 00:39:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 414813858408 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=KHftbdA2 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id 8DCD13857C5F for ; Sun, 22 Dec 2024 00:05:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8DCD13857C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8DCD13857C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825930; cv=none; b=BgoQ8GmmL12gZGgb+beu6D3WhReS4fJ1lL2sAhqIfe3NTpEfhUSM1iYVaZAkWdJO8U+P8FwSsditqhnZoC86WIHwlVTZM6NO8A7mNwzykRwrggiEL/iWGdM3OVo6gXEIVQLGBGDOvKe2hVheTFiRlm8i/n/Ja3jQ65U+W8IL7aU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825930; c=relaxed/simple; bh=v0xnv8zDwhqlL8/03qQ7DdNPdC+/GjUkNhhy8EuN92g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=uphERj0TYGyYQN3tT/f63zjxkqVgIGc4NjzA2JaUF2pTzJ2Qsgb7D3p+hc/uQqvuX8OvPUtOix1QjD5+bwD6pWSA3lh+P2Iv1Udwib/Lbink/pHqaou9lySEzhKbMn3hwwonzieuYuPqVH2+kVta0w58BGV7XjdTbro+KFpFBzo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DCD13857C5F Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-216401de828so27153645ad.3 for ; Sat, 21 Dec 2024 16:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734825923; x=1735430723; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Nnyy37DidKBZpeLUQfLq5zNp+2I6AnnPaa8y5rDe8t4=; b=KHftbdA2/nkGlribcnUovbMKvOvEUflF9KI3Veaes1Cv2O25RW2N03H0Wewk1PKQvg NnYdCfFeEU5tTj2HzEvLzdbP36UvQeKH/mtsRBNwMTGDBwRJ6f4IRWwG2lHA9bZoiRp9 Y21f4YDXFKySbWcSg6/JoE20mfHBAu/WBnvULrk+xWyi171E1GqTO+ax5u/N/qOWiDQ5 jb7fbkLPkMWFt8xtCIASvORZdXMEg030JJolTdF1ElBPFglXUPuMB1YihO/t51WRJ4K2 XSrYSOs1HxA1TqB76/Cj3DZGky/wYmTA0r5PzPjeMIIEWBvGKta94VvY6LGKhCawTxBi t6tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734825923; x=1735430723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nnyy37DidKBZpeLUQfLq5zNp+2I6AnnPaa8y5rDe8t4=; b=oGoCHyYMopbBKo+UYCB0oYNOo0xY7F0qR4MU2y+acDipNHqYgjxFAw3JG5ybBdw2ju Wphiluus652coqry3NbFI/qBTIqjH8E+0CcPEaznyAik+tUnn3bc58AKYzzW6/EzthHT xISqGg7OY47zUhFltcX7bJckCdybMtmSLvNlK4caoJaSnb8EFX2lc8VtbSUMC1XOOEqi RclIt3PozXESb+I0XFY0W3MqSQ4/RnEa8Xygq63U+yPrAsuDpznRXrxyw8/Q1sRSBOlF mG9ncvGh46vVXB3PFROF/oMncEqBaR1eJKCo+JSsLHeVgyRmMqhJiC+r6isr4hrl+gRU qpbw== X-Gm-Message-State: AOJu0YwrpZUHesGsc0WjzuoulZ3jrfSmvAIxtuETabT5E5hzwj+BjQPJ qjs5RD48cpBaORm84fbw+horHGBs6Abg4euRAdcmgy0jbPdydkqlNKneEgmi6rY6dw== X-Gm-Gg: ASbGnctT496jCdhd9hQ87BEspXIXFhR2mtFCnmg4OPNz952Hd6qVJu2a5nn4vBj5LNf UDhqGPMH7aYkomRGgjMjGmblRsFWEyhmUg/rCLkbJV4CMp42CrHLwPL+PFQV532Or3XXU8DE1CK pVUhPsgIgXvBcFuicIzLsFX+arrwe97z2A8sf0L9WAPNy0+C+WkZskp/ikhJolgzuF6pDCSMiCL FgvffmCUsWr0de3VwvrhK2/wvhCNe/X6w25ecO/90HGeSOd+0bXPYaSg36jyISIIDAHVJ4= X-Received: by 2002:a17:902:f607:b0:212:5786:7bbe with SMTP id d9443c01a7336-219e6ea1baamr120847085ad.24.1734825922933; Sat, 21 Dec 2024 16:05:22 -0800 (PST) Received: from gnu-tgl-3.localdomain ([120.204.185.181]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9cde50sm48831895ad.154.2024.12.21.16.05.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:05:22 -0800 (PST) Received: from gnu-tgl-3.lan (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id D7741C0757; Sun, 22 Dec 2024 08:05:14 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: sam@gentoo.org, Adhemerval Zanella Subject: [PATCH 16/39] tst-printf-bz18872.sh: stdio: Use __attribute__ ((optnone)) for Clang Date: Sun, 22 Dec 2024 08:04:39 +0800 Message-ID: <20241222000509.2205895-17-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241222000509.2205895-1-hjl.tools@gmail.com> References: <20241222000509.2205895-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org From: Adhemerval Zanella Use __attribute__ ((optnone)) instead of __attribute__ ((optimize ("-O0"))) to disable optimization for Clang. Co-Authored-By: H.J. Lu Reviewed-by: Sam James --- stdio-common/tst-printf-bz18872.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh index 3b283f49a6..ade4b61f85 100644 --- a/stdio-common/tst-printf-bz18872.sh +++ b/stdio-common/tst-printf-bz18872.sh @@ -31,7 +31,11 @@ cat <<'EOF' Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396 */ +#ifdef __clang__ +__attribute__ ((optnone)) +#else __attribute__ ((optimize ("-O0"))) +#endif int do_test (void) { mtrace ();