diff options
author | Nathan Chancellor <[email protected]> | 2021-04-29 16:26:12 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2021-06-14 09:12:41 -0700 |
commit | 583bfd484bcc85e9371e7205fa9e827c18ae34fb (patch) | |
tree | 04777411b389677aafcd12055dd38a5cb0c5cd77 /include/linux/compiler_attributes.h | |
parent | 590e8a082a5772071d7bcfea2b8e5a2453cecad2 (diff) |
x86, lto: Enable Clang LTO for 32-bit as well
Commit b33fff07e3e3 ("x86, build: allow LTO to be selected") enabled
support for LTO for x86_64 but 32-bit works fine as well.
I tested the following config combinations:
* i386_defconfig + CONFIG_LTO_CLANG_FULL=y
* i386_defconfig + CONFIG_LTO_CLANG_THIN=y
* ARCH=i386 allmodconfig + CONFIG_LTO_CLANG_THIN=y
with LLVM 11.1.0, 12.0.0, and 13.0.0 from git without any build
failures. The defconfigs boot in QEMU with no new warnings.
Signed-off-by: Nathan Chancellor <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Tested-by: Nick Desaulniers <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions