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 19B9F21D590 for ; Mon, 23 Feb 2026 10:18:29 +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=1771841912; cv=none; b=JMR6CFgyOY9M1NCo/NzjJ69ZB4qoQmMjkZFQIeg29No4kGKuwiWFJImQFg/e4galkebwwqreKQHF1WSmx6Cg8cYqudjd8UV+iMWV/1DR9lllEG4U6+z4WHi6/qv7ZGImcCmKdy88Xbe27YswyONWRCJszJaPJj797wKqgUBvH60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771841912; c=relaxed/simple; bh=3oxPJqFGw6PXcn/4/15ddBROLFqIZnvBKMjY5EbkJXc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=abGoR9dcvkoPsiiL7yVLw/e6DAmo9J/fyuF2Vjy/cHfCFjH2CilM3NQnyPldvvj3EW9BG8+gRHqayyT6onykH6JbKL+UrvnbxMLRmK+CLhPtVk+82KM4r/xwxeuj+U6rWL/CzVEGAMnMgLn86s3X+i4yDKGTWGJSCYGoVUAMWEE= 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=SAmLhjvx; 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="SAmLhjvx" Received: from mailtransmit02.runbox ([10.9.9.162] 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 1vuT1H-00GoES-DG; Mon, 23 Feb 2026 11:18:27 +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=JvXMIvt4OrGnaIUlletELQS6GM9X/V34gZK/+qwksg8=; b=SAmLhjvx+0PVNZW2DZDz2G/UpN bVZxh73K9ptkO6tWVcKoWGOhF8pHYHv65gEJg4R0qjZ54NnA21cC8Rf3jgC1nTITXdQwkaVF6UXKR F2KxTfQcLfKjBeUuUNOKDdvcMwX8VlV9Hfj5xKNsKJUYGmgXpkvQdESeYezYXG1BMwLoA1JVJOg2Q bcLCoMgd/sVjbwsHtXwHOFoVSkbcksS85lAfs1S+ZmwlosfywODKVABoywlS7X7PVGiF2E/1pqbMi RRz7zGrXIXhTfLs9bl0nxnhgZaN3Lgi68tMfXgpO6tyAC9xvg9RZtokjtb7WzlsbpTGK7CUmfL3pR yKTux0jQ==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1vuT1H-0005Qm-3D; Mon, 23 Feb 2026 11:18:27 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (1493616)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1vuT10-006AjD-I1; Mon, 23 Feb 2026 11:18:10 +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 v3 next 01/17] tools/nolibc: Add _NOLIBC_OPTIMIZER_HIDE_VAR() to compiler.h Date: Mon, 23 Feb 2026 10:17:19 +0000 Message-Id: <20260223101735.2922-2-david.laight.linux@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260223101735.2922-1-david.laight.linux@gmail.com> References: <20260223101735.2922-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 --- New patch for v3. tools/include/nolibc/compiler.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/include/nolibc/compiler.h b/tools/include/nolibc/compiler.h index a8c7619dcdde..8e0eef434eec 100644 --- a/tools/include/nolibc/compiler.h +++ b/tools/include/nolibc/compiler.h @@ -71,4 +71,9 @@ # define __nolibc_static_assert(_t) #endif +#ifndef _NOLIBC_OPTIMIZER_HIDE_VAR +/* Make the optimizer believe the variable can be manipulated arbitrarily. */ +#define _NOLIBC_OPTIMIZER_HIDE_VAR(var) __asm__ ("" : "+r" (var)) +#endif + #endif /* _NOLIBC_COMPILER_H */ -- 2.39.5