From nobody Wed Nov 27 03:11:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=cloud.com ARC-Seal: i=1; a=rsa-sha256; t=1725878670; cv=none; d=zohomail.com; s=zohoarc; b=aDcdWUyg9m5BpK00cRyDk3xcqBxRd9+Ww8WCn1mAGLW0+il3l90V5VrLs3/TrYzZN407il/i/XILWZ24XZtvVHwG58XDzolaKJ1UXBT+zx2ljWcHwRaIlDevfydy4PAYEnMPYoOPHGaTTRNmv1HUCDHC2Ks0xs/YCSSQSy7ZAho= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725878670; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=r8bvUG3H/53vtgdS0ABbaHhClLhlbxxXq9bhvu8/auI=; b=n57PPxlILBMW6rDoUnGLAO9eka0MKOyQOFKRdRCqS0u7OoZxIQXF/AizgVOOZkWRXLxIaXMgKzbrKNyi08Rr7USIeS8ompQenf+EsnqfFEPBEKcFeCKSTnqgAr7YFXbBHqIT+Q4aGrDdpAqKfrfpNS35KAwY14A+b2E656nJJF4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 172587867016120.131930778085348; Mon, 9 Sep 2024 03:44:30 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.794246.1203034 (Exim 4.92) (envelope-from ) id 1snbsR-0008Cv-3w; Mon, 09 Sep 2024 10:44:11 +0000 Received: by outflank-mailman (output) from mailman id 794246.1203034; Mon, 09 Sep 2024 10:44:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snbsR-0008Co-0d; Mon, 09 Sep 2024 10:44:11 +0000 Received: by outflank-mailman (input) for mailman id 794246; Mon, 09 Sep 2024 10:44:09 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snbsP-0008Ch-Fr for xen-devel@lists.xenproject.org; Mon, 09 Sep 2024 10:44:09 +0000 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [2a00:1450:4864:20::634]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 70a06b48-6e98-11ef-99a1-01e77a169b0f; Mon, 09 Sep 2024 12:44:07 +0200 (CEST) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a8a7596b7dfso684852466b.0 for ; Mon, 09 Sep 2024 03:44:07 -0700 (PDT) Received: from fziglio-desktop.. ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25953275sm324080166b.70.2024.09.09.03.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 03:44:06 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 70a06b48-6e98-11ef-99a1-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1725878647; x=1726483447; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=r8bvUG3H/53vtgdS0ABbaHhClLhlbxxXq9bhvu8/auI=; b=eppTE4QDkbFD+gWTUUUOZBRV6KV1Vvy+bKjdpCLpGKmyyx2ys0eGgMMcqlFrHpoWh0 Ijf++ZCGKEnS/w+5ooJLuXHek+/r/Ot8vtBLwk9GMe9RliiCKJesZgwAh9axOvjLp3XJ g014SPiARZJrvj7ks4nEcBgFPQQmoJJb5TysY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725878647; x=1726483447; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=r8bvUG3H/53vtgdS0ABbaHhClLhlbxxXq9bhvu8/auI=; b=h+gXydOHGKmV9r/uhBiDrhWYfqUC2BWBRabVEndOywJ8ySqvzZ2SirzVjN+ON0UyPv x2g5TdBArJXK2eXNz8BULEIwGMcvCxalN0mM4p1ZDvLpiwY8oD5vcgbWzcDzzUewiQvc fOBKM+TU6WNjS4FZBZV2i6TxAft6ujaSFyumnpMKpgWrAml2+kzvKN7lpfuAHjkWlac7 ga9McADfyf9aqYmAiYQYKvc7S93EkUYS3EKpqNJvJLo1GPqQ5UcjAiyZOdoHvDXuM53T NFZqWYGXmtHMGff/jLSNU3rYzVKoBHiFeqD6Wo6NHkLcWak951Y0I0LpRnYivnG2BOMS KhxQ== X-Gm-Message-State: AOJu0Yxm1FvqMBiMFkG+Yncy3yoKYcCsDs7blkXBg5yKoLz57aTeTn9g ZJyaRcdVNL89Xb3nSBNLtrnNVnTfbLyLxV1JjfTKvIPh2S3Bg7jqiWolAfkHGOUnZGfx1Hc7NkR E X-Google-Smtp-Source: AGHT+IEKJG72WFJYDeDUNYq4YN/rs4dcgb6b3Dwk/EnlrIE9XaKcI8xEl87gRXHrADYg8k5YuP6aOw== X-Received: by 2002:a17:907:d17:b0:a8d:498f:640 with SMTP id a640c23a62f3a-a8d498f07b6mr444784966b.21.1725878646739; Mon, 09 Sep 2024 03:44:06 -0700 (PDT) From: Frediano Ziglio To: xen-devel@lists.xenproject.org Cc: Frediano Ziglio , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH v2] x86/boot: Optimise 32 bit C source code Date: Mon, 9 Sep 2024 11:44:02 +0100 Message-Id: <20240909104402.67141-1-frediano.ziglio@cloud.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @cloud.com) X-ZM-MESSAGEID: 1725878671643116600 Content-Type: text/plain; charset="utf-8" The various filters are removing all optimisations. No need to have all optimisations turned off. Signed-off-by: Frediano Ziglio --- xen/arch/x86/boot/Makefile | 1 + 1 file changed, 1 insertion(+) --- Changes since v1 - reuse optimization level from XEN_CFLAGS. diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile index 8f5bbff0cc..8352ce023b 100644 --- a/xen/arch/x86/boot/Makefile +++ b/xen/arch/x86/boot/Makefile @@ -16,6 +16,7 @@ $(call cc-options-add,CFLAGS_x86_32,CC,$(EMBEDDED_EXTRA_C= FLAGS)) CFLAGS_x86_32 +=3D -Werror -fno-builtin -g0 -msoft-float -mregparm=3D3 CFLAGS_x86_32 +=3D -nostdinc -include $(filter %/include/xen/config.h,$(XE= N_CFLAGS)) CFLAGS_x86_32 +=3D $(filter -I%,$(XEN_CFLAGS)) +CFLAGS_x86_32 +=3D $(filter -O%,$(XEN_CFLAGS)) =20 # override for 32bit binaries $(head-bin-objs): CFLAGS_stack_boundary :=3D --=20 2.34.1