Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mIPlr-00019J-UU for mharc-grub-devel@gnu.org; Tue, 24 Aug 2021 02:18:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3RY8kYQcKCgYsgyqxg4muumrk.iusmx0h-jk1krmt0.uxm@flex--maskray.bounces.google.com>) id 1mIPlp-00015s-5L for grub-devel@gnu.org; Tue, 24 Aug 2021 02:18:49 -0400 Received: from mail-qv1-xf49.google.com ([2607:f8b0:4864:20::f49]:42625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3RY8kYQcKCgYsgyqxg4muumrk.iusmx0h-jk1krmt0.uxm@flex--maskray.bounces.google.com>) id 1mIPln-00037y-C5 for grub-devel@gnu.org; Tue, 24 Aug 2021 02:18:48 -0400 Received: by mail-qv1-xf49.google.com with SMTP id h14-20020a0cffce000000b00372ea3f12a5so451144qvv.9 for ; Mon, 23 Aug 2021 23:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc:content-transfer-encoding; bh=9P8FqE9iRC6ym5E7LQGZSA3EM3ZUxCiYgo7GzB6bTtI=; b=DbbyExliRq0lMQ/jNmjTqx4846FM1Cs/eO6TqIn0e2IA1k3pu9DilKGAvqieAB454l 8mXh+6pWQmAdYbhXHWiZlY8n0nsNK8yZOIbT2xJNB2kr0rvrSM8QeGht4mJIpSIPUgIj lJNzRXr+tdHzxXJFxpw7Gzs9Ya7QCTSSfLvh7LhwM2xC7pyYkiHZ5ifxB4Y0b6hBcNJX 0BqnrCFe9cwsd+1oQ/91jEPBSo9bOM4uZ+V4bnGWmbBv5gfjYvZXlproZ/SkotqFWaJp oi/n8i3t2RfNVgksE2G2kWiVzujf5Afo1FezzyZOtdnK/H7U1elvClH5UPRG0oFArfwa FfJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc:content-transfer-encoding; bh=9P8FqE9iRC6ym5E7LQGZSA3EM3ZUxCiYgo7GzB6bTtI=; b=MxTKz+5Ilp/TNEjfGCfQBH21TxB/C6rYr3h5j1/aVU2L1xoiqCUwfIOx4tCpv75hs+ 4ch7G1iucmoD7AFIR/xRMi5vifleOovsR+a/+KVWb8QJzKbDcl/DbxmrGDRl8wzUmMq5 5k6M6yDI66GOWw3/bU0DsS2CJ+YwSTWH3YQoC1PpmVkHKr1b70OJrGquH63Ju5ycNtsO v04fGoJXEHy8eO/Kdw21f9zagPNEUhqqnfOMdYPOM1dsZv7joOSxrSLivGZREpGCVagu lYYKN7vLpFKUEM3GaCOg4b8kmYmPKtjzbg8MttdHL8mqTl1p4U5KebZILkBgBU6VThfa 2sJg== X-Gm-Message-State: AOAM530j8i0jpkWZGYga4BiwNOJrBoflNPCW6T/9KhbPAH/vcAPlyKHI vWLBMHH31qtEJoRMueV3aYThBygnWl8+RKQyg3dIeYjGgSoWaWEVXbrIRZ4gkbfb1ZUGzlY4Lus gglXNrWzcyzdFhSlQNE1H8uCP15w7HA9gf9gnMZ/5/lPc44KzdkaiGsk8FsA= X-Google-Smtp-Source: ABdhPJw5t+MuCWDTMznA/+7pVAuhQOK6C4zcrd2IWE6gRsUDMcKvJgVkH1OHF56Gj8n/1mI294feXD6GnJI0 X-Received: from maskray1.svl.corp.google.com ([2620:15c:2ce:200:196f:5297:b0e8:1313]) (user=maskray job=sendgmr) by 2002:a05:6214:dac:: with SMTP id h12mr36957265qvh.36.1629785925336; Mon, 23 Aug 2021 23:18:45 -0700 (PDT) Date: Mon, 23 Aug 2021 23:18:37 -0700 In-Reply-To: <20210824061838.3569412-1-maskray@google.com> Message-Id: <20210824061838.3569412-2-maskray@google.com> Mime-Version: 1.0 References: <20210824061838.3569412-1-maskray@google.com> Subject: [PATCH 1/2] configure: Remove obsoleted -malign-{jumps, loops, functions} From: Fangrui Song To: grub-devel@gnu.org, Daniel Kiper , Alex Burmashev , "Vladimir 'phcoder' Serbinenko" Cc: Fangrui Song Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f49; envelope-from=3RY8kYQcKCgYsgyqxg4muumrk.iusmx0h-jk1krmt0.uxm@flex--maskray.bounces.google.com; helo=mail-qv1-xf49.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2021 06:18:49 -0000 GCC warns `cc1: warning: =E2=80=98-malign-loops=E2=80=99 is obsolete, use = =E2=80=98-falign-loops=E2=80=99`. Clang silently ignores -malign-{jumps,loops,functions}. The preferred -falign-* forms have been supported since GCC 3.2, so just remove -malign-{jumps,loops,functions}. Signed-off-by: Fangrui Song --- configure.ac | 9 --------- 1 file changed, 9 deletions(-) diff --git a/configure.ac b/configure.ac index bee28dbeb..9a12151bd 100644 --- a/configure.ac +++ b/configure.ac @@ -805,17 +805,8 @@ if test "x$target_cpu" =3D xi386; then [grub_cv_cc_falign_loop=3Dno]) ]) =20 - AC_CACHE_CHECK([whether -malign-loops works], [grub_cv_cc_malign_loop], = [ - CFLAGS=3D"$TARGET_CFLAGS -malign-loops=3D1 -Werror" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], - [grub_cv_cc_malign_loop=3Dyes], - [grub_cv_cc_malign_loop=3Dno]) - ]) - if test "x$grub_cv_cc_falign_loop" =3D xyes; then TARGET_CFLAGS=3D"$TARGET_CFLAGS -falign-jumps=3D1 -falign-loops=3D1 -f= align-functions=3D1" - elif test "x$grub_cv_cc_malign_loop" =3D xyes; then - TARGET_CFLAGS=3D"$TARGET_CFLAGS -malign-jumps=3D1 -malign-loops=3D1 -m= align-functions=3D1" fi fi =20 --=20 2.33.0.rc2.250.ged5fa647cd-goog