From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16D572F0C74 for ; Wed, 25 Feb 2026 22:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772057827; cv=none; b=HetUGDxA4yMRDBwYI2B58uYNUL/tazQP8dUr4oqwTgyyGLfS+Tm43Qsw5bUSV7iwfwuDPbwmraHOMHbFTQWJUMYxbpb+G/Xiuakt+c63Vjb6OQ/43et2OoUTWTCU5c+SkFI8cfBhK3JxENARFab2F+uZVnP3nyHwQHzE89jlZA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772057827; c=relaxed/simple; bh=80VD5FPzKVa4WRJt0LQvX54pge/s73NMaRA9KVpKcSE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=s7cEpGSSyp/DWyrMxpYS3I0W1Qk/P2VpiKpxvGNpNLx2VWkF6aNgZA6nm5UoQcQw00Wu78ieM0jZ/24sz5JSGNOzUxzeMRwK2y5w2umJwyIeysgiCzc4ndUdvi8ogg3KU7lPIVHMtKPFScTuIMm5/e14azMMJJB7W6eleidJn/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hYCoIgOo; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hYCoIgOo" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4837f27cf2dso2129285e9.2 for ; Wed, 25 Feb 2026 14:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772057824; x=1772662624; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=HYd0pCUUnVdiWMbtxj4SQNCDc3IqFZb/RfKiWS6U2RY=; b=hYCoIgOoCgwhAb7RiNr9dfyz5wJmHTJTe5GWq4sjXJxTSrtWR2uL4izH2j+PdQspD2 TJfxDiwLfXWFb+RfkcHMHUGyDFewqXGhLihyksi/FYeAwS/1Ta7GmdNOaVTq1CVFx0jE nVTpla1/Z3oPTxanizCVtviQ42Tag3nmla+TaBfKhZFPF1eRl5XviR41pi/DHXAttkt9 4UfG8YwVmQv1/8UhtodSbKxOWEo26HfQnp+UJRigMnPxIweTp9Ek+sGIOxudDtBmW3DE c9WbCrD6kLZWUMoBkk/KJwg84fMLcjY+EoNuwsDzwZHsuN8hx5mNPVZ1jyJ65fqlYMAF hGPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772057824; x=1772662624; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HYd0pCUUnVdiWMbtxj4SQNCDc3IqFZb/RfKiWS6U2RY=; b=SntCcgKmCyuYw8P+C8lnUAJ2xWxVvn5m8/M00TXXVXpYF+totuQ4Xt3DXKN7wQxGbb he7tqwH7iUPeb/xj7Tbt0aVr64oroLHRHPiUvhHeJfW4kUIlZydpb2Gb4VGhPchZNXs1 yn9+MLMSjqTwlsXuGXFU+/eIxQXpO1sstePAgSVfO9Y9Tztb3sRtYt9PLB2ktOD5iViT igMQd8YnN7DSW27qu2F71j0s6UEhU5eC/x/E7vZIqUW+g0ohlvjJKwZq6sjMxXn4DVqf P3P1hKpoVkg4tHWg3ype4yZ11KB8nH/BZYbuthQQyadJSfRYvEoUHiNq6Hn/pHUmu6Jp e5SQ== X-Forwarded-Encrypted: i=1; AJvYcCU73Ze72d0C7kFd7Uq0sSqXxG6fjOvPk/+zNw0E/T7Y8inJH7ubNsGEUxW+cFIPf6J2LPDfBFQnUNNR5DY=@vger.kernel.org X-Gm-Message-State: AOJu0Yzo2fayNVDdL9UYw6McvpzijYWVuTBghH3A45/CJWvR3SphqiwN zbP5sVs9s0TZeNS5GCPtSez2HCQ2wJfWlr5lI+FgKr+wtH37Ay8pY80jhVnllU3b X-Gm-Gg: ATEYQzy3ItFKflzut9Qjft6/t1GbR2iCZgsXMcSg0O/zOa5QTkooc3SG86ZxwBiTCCX b0n2gRWD87O/NfGVg+yKamu59Tn9zn3EN6BJswefiP68zW9q4CLPTqVtZbHCd2oY12mTo3HS2dx oxEPP9cA01jNo41wNJUw1VwpudiGhMfr3+GLVaNaKAoCAAQnzAHko18an0/PE5Qlr+2048TTdjj 4zA+jM/46G+2w7LrcZWYPsxXUXnZGnzC1BTi2uixKGtB6+ukNnioDEoGGTNhSVGrG415vpNS1CK 3fFBrVmdMFcN6WbVFNABT6PlwV7ACI26dPQNKvN29mAwfoI+RxCXzP85Jff3vEN8T1cQdClMk2c v4zT9kh6xMKwXjasCUlwynV5lLZaGW7eaWEgdsl/H7w79P1a1Qhrtk9IsZ1uf+gbL5dxeGkAK7X Z+UDwi11jcLuGiAt/2AMwWNGzoJlJoWMSAZ7QIYUDeNLQ0VyBJczS7t2NW30e8GLUI X-Received: by 2002:a05:600c:6094:b0:47e:e8de:7420 with SMTP id 5b1f17b1804b1-483a962f0c5mr280312775e9.22.1772057824207; Wed, 25 Feb 2026 14:17:04 -0800 (PST) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483bd6f3124sm98143435e9.1.2026.02.25.14.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Feb 2026 14:17:04 -0800 (PST) Date: Wed, 25 Feb 2026 22:17:02 +0000 From: David Laight To: Thomas =?UTF-8?B?V2Vpw59zY2h1aA==?= Cc: Willy Tarreau , linux-kernel@vger.kernel.org, Cheng Li Subject: Re: [PATCH v3 next 01/17] tools/nolibc: Add _NOLIBC_OPTIMIZER_HIDE_VAR() to compiler.h Message-ID: <20260225221702.71100278@pumpkin> In-Reply-To: <5cd824ee-bdbb-447a-8ea1-d415d0962016@t-8ch.de> References: <20260223101735.2922-1-david.laight.linux@gmail.com> <20260223101735.2922-2-david.laight.linux@gmail.com> <5cd824ee-bdbb-447a-8ea1-d415d0962016@t-8ch.de> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 25 Feb 2026 22:25:12 +0100 Thomas Wei=C3=9Fschuh wrote: > On 2026-02-23 10:17:19+0000, david.laight.linux@gmail.com wrote: > > From: David Laight > >=20 > > Needed to stop compiler 'optimisations' bloating code. > > Equivalent to the definition in include/linux/compiler.h > >=20 > > Signed-off-by: David Laight > > --- > >=20 > > New patch for v3.=20 > >=20 > > tools/include/nolibc/compiler.h | 5 +++++ > > 1 file changed, 5 insertions(+) > >=20 > > diff --git a/tools/include/nolibc/compiler.h b/tools/include/nolibc/com= piler.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 > > =20 > > +#ifndef _NOLIBC_OPTIMIZER_HIDE_VAR =20 >=20 > The ifndef guard should not be necessary. I copied the one from include/linux/compiler.h Nothing seems to need that one either. Can you take it out? David >=20 > > +/* Make the optimizer believe the variable can be manipulated arbitrar= ily. */ > > +#define _NOLIBC_OPTIMIZER_HIDE_VAR(var) __asm__ ("" : "+r" (var)) > > +#endif > > + > > #endif /* _NOLIBC_COMPILER_H */ > > --=20 > > 2.39.5 > > =20