Intel x86_64, gcc, icc: align loops to 64 byte boundary

Improved security with compile flag.
This commit is contained in:
Sean Parkinson
2025-03-25 09:40:01 +10:00
parent 295ba3b416
commit 50304cfb1c

View File

@@ -180,7 +180,7 @@ if test "$host_cpu" = "x86_64"
then
if test "$CC" = "gcc" || test "$CC" = "icc"
then
EXTRA_OPTS_CFLAGS="$EXTRA_OPTS_CFLAGS -Wa,-mbranches-within-32B-boundaries"
EXTRA_OPTS_CFLAGS="$EXTRA_OPTS_CFLAGS -Wa,-mbranches-within-32B-boundaries -falign-loops=64"
fi
fi
OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS $EXTRA_OPTS_CFLAGS"