]> Git Repo - linux.git/commitdiff
Merge tag 'clang-features-v5.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <[email protected]>
Wed, 16 Jun 2021 15:57:44 +0000 (08:57 -0700)
committerLinus Torvalds <[email protected]>
Wed, 16 Jun 2021 15:57:44 +0000 (08:57 -0700)
Pull clang LTO fix from Kees Cook:
 "It seems Clang has been scrubbing through the missing LTO IR flags for
  Clang 13, and the last of these 'only with LTO' flags is fixed now.

  I've asked that they please consider making these changes in a less
  'break all the Clang kernel builds' kind of way in the future. :P

  Summary:

   - The '-warn-stack-size' option under LTO has moved in Clang 13 (Tor
     Vic)"

* tag 'clang-features-v5.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  Makefile: lto: Pass -warn-stack-size only on LLD < 13.0.0

1  2 
Makefile

diff --combined Makefile
index ed669b2d705dc7b8c59065acb28c64cebdc84450,51a1b6b2c2abfc45dad92ec128b72d2631caa951..2d7a8df84e2bd6fd021d7eaaae0235c400207299
+++ b/Makefile
@@@ -2,7 -2,7 +2,7 @@@
  VERSION = 5
  PATCHLEVEL = 13
  SUBLEVEL = 0
 -EXTRAVERSION = -rc5
 +EXTRAVERSION = -rc6
  NAME = Frozen Wasteland
  
  # *DOCUMENTATION*
@@@ -929,11 -929,14 +929,14 @@@ CC_FLAGS_LTO    += -fvisibility=hidde
  # Limit inlining across translation units to reduce binary size
  KBUILD_LDFLAGS += -mllvm -import-instr-limit=5
  
- # Check for frame size exceeding threshold during prolog/epilog insertion.
+ # Check for frame size exceeding threshold during prolog/epilog insertion
+ # when using lld < 13.0.0.
  ifneq ($(CONFIG_FRAME_WARN),0)
+ ifeq ($(shell test $(CONFIG_LLD_VERSION) -lt 130000; echo $$?),0)
  KBUILD_LDFLAGS        += -plugin-opt=-warn-stack-size=$(CONFIG_FRAME_WARN)
  endif
  endif
+ endif
  
  ifdef CONFIG_LTO
  KBUILD_CFLAGS += -fno-lto $(CC_FLAGS_LTO)
This page took 0.058977 seconds and 4 git commands to generate.