From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F01E5325710 for ; Mon, 2 Mar 2026 10:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.226.149.38 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772446721; cv=none; b=ucD/jZiqpDulry9CIUbOj4YxMgdqx091p94nRFYMGcv2deQB/rUz+APDvoef/w19MXmiuVOpqcsZPn0CAdxQgLtqP8g7l8Dj4gU6LoCjZJQqF3e21ehGLl1hyimVs92PYMPDo9u6KAYggw7Nudc/8NWACxuFE1YcJmqD6f6AVuY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772446721; c=relaxed/simple; bh=YN8najSXFG6shutiPu+7KfH5wVMqRZEilU00Lyobh/Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Nyj87pRFCbuL8NLb/gwaX5loHOhBJQ/qRCjK8kxhzRsrHlOHKTby8mtR7Z8A5VTXSYMvswsS85WO1jPHqQ3k+O8Lw5YOtkAEIeCFEA4+4S/0lYNYp2lOE8GCnt13kkabmYoSJ9ZNY+Z7GE3LG4FUcdtbrToZlWh0sWNMWnZWFFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=runbox.com; dkim=pass (2048-bit key) header.d=runbox.com header.i=@runbox.com header.b=im0l5kiY; arc=none smtp.client-ip=185.226.149.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=runbox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=runbox.com header.i=@runbox.com header.b="im0l5kiY" Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1vx0M9-003BXX-DH; Mon, 02 Mar 2026 11:18:29 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To :Message-Id:Date:Subject:Cc:To:From; bh=5e+1/ip2QXYVpkzl6Yem7+UNhERpX0Crp3M4DpbkNRs=; b=im0l5kiYRUUpTCXfy6fyvsn0V2 itEHm8+7zL6ZvyCtt3TwVXmb2G4SmRMBgyXmxlo/PJqp+kInfDrOwPZV0puGg4uVrRDzb1mWZnLb6 /U4utsJE+fVg8+EhjsctVeKb6ZfhcxPOUbQLUT+gT+1gzK192aeJmxALpApJIHhiS+sW6TjrRuhgM ny9ChNaIJ4ZIKw1VdqiS1ZGBt1K9Uahrh/zgtyC3i6DH4LJQ4rPvZ/MbsxaAJFmcPT0PJiSre0GiI kVQfXSMUz+RheKrsgsV4hwfJLwVNehp/Ma1PyZ5Fzj6xfLcOB0IFY/RcGZ3IjqVpLNF4v1cANb6VC V1TiGPsQ==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1vx0M9-0002wo-3O; Mon, 02 Mar 2026 11:18:29 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (1493616)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1vx0M8-006y7o-L8; Mon, 02 Mar 2026 11:18:28 +0100 From: david.laight.linux@gmail.com To: Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Cheng Li Cc: David Laight Subject: [PATCH v4 next 01/23] tools/nolibc: Add _NOLIBC_OPTIMIZER_HIDE_VAR() to compiler.h Date: Mon, 2 Mar 2026 10:17:53 +0000 Message-Id: <20260302101815.3043-2-david.laight.linux@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260302101815.3043-1-david.laight.linux@gmail.com> References: <20260302101815.3043-1-david.laight.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: David Laight Needed to stop compiler 'optimisations' bloating code. Equivalent to the definition in include/linux/compiler.h Signed-off-by: David Laight --- Changes for v4: - Remove #if guard tools/include/nolibc/compiler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/include/nolibc/compiler.h b/tools/include/nolibc/compiler.h index a8c7619dcdde..f03f84cfadce 100644 --- a/tools/include/nolibc/compiler.h +++ b/tools/include/nolibc/compiler.h @@ -71,4 +71,7 @@ # define __nolibc_static_assert(_t) #endif +/* Make the optimizer believe the variable can be manipulated arbitrarily. */ +#define _NOLIBC_OPTIMIZER_HIDE_VAR(var) __asm__ ("" : "+r" (var)) + #endif /* _NOLIBC_COMPILER_H */ -- 2.39.5