]> git.ipfire.org Git - thirdparty/grub.git/commit
configure: Check for -falign-jumps=1 beside -falign-loops=1
authorFangrui Song via Grub-devel <grub-devel@gnu.org>
Thu, 26 Aug 2021 16:02:32 +0000 (09:02 -0700)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 6 Sep 2021 14:13:16 +0000 (16:13 +0200)
commite372dcb0d4541ee9b9682cde088ec87a7b238ca2
tree953f4797b09b9aa1ff50a8378018fde0ded7f371
parenteb486898dac8cbc29b2cc39f911b657c3417ae34
configure: Check for -falign-jumps=1 beside -falign-loops=1

The Clang does not support -falign-jumps and only recently gained support
for -falign-loops. The -falign-jumps=1 should be tested beside
-fliang-loops=1 to avoid passing unrecognized options to the Clang:

  clang-14: error: optimization flag '-falign-jumps=1' is not supported [-Werror,-Wignored-optimization-argument]

The -falign-functions=1 is supported by GCC 5.1.0/Clang 3.8.0. So, just
add the option unconditionally.

Signed-off-by: Fangrui Song <maskray@google.com>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
configure.ac