aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 00:14:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 00:14:42 -0400
commit33caee39925b887a99a2400dc5c980097c3573f9 (patch)
tree8e68ad97e1fee88c4a3f31453041f8d139f2027e /Makefile
parent6456a0438b984186a0c9c8ecc9fe3d97b7ac3613 (diff)
parentf84223087402c45179be5e7060c5736c17a7b271 (diff)
Merge branch 'akpm' (patchbomb from Andrew Morton)
Merge incoming from Andrew Morton: - Various misc things. - arch/sh updates. - Part of ocfs2. Review is slow. - Slab updates. - Most of -mm. - printk updates. - lib/ updates. - checkpatch updates. * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (226 commits) checkpatch: update $declaration_macros, add uninitialized_var checkpatch: warn on missing spaces in broken up quoted checkpatch: fix false positives for --strict "space after cast" test checkpatch: fix false positive MISSING_BREAK warnings with --file checkpatch: add test for native c90 types in unusual order checkpatch: add signed generic types checkpatch: add short int to c variable types checkpatch: add for_each tests to indentation and brace tests checkpatch: fix brace style misuses of else and while checkpatch: add --fix option for a couple OPEN_BRACE misuses checkpatch: use the correct indentation for which() checkpatch: add fix_insert_line and fix_delete_line helpers checkpatch: add ability to insert and delete lines to patch/file checkpatch: add an index variable for fixed lines checkpatch: warn on break after goto or return with same tab indentation checkpatch: emit a warning on file add/move/delete checkpatch: add test for commit id formatting style in commit log checkpatch: emit fewer kmalloc_array/kcalloc conversion warnings checkpatch: improve "no space after cast" test checkpatch: allow multiple const * types ...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d0901b46b4bf..a897c50db515 100644
--- a/Makefile
+++ b/Makefile
@@ -621,6 +621,9 @@ else
621KBUILD_CFLAGS += -O2 621KBUILD_CFLAGS += -O2
622endif 622endif
623 623
624# Tell gcc to never replace conditional load with a non-conditional one
625KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
626
624ifdef CONFIG_READABLE_ASM 627ifdef CONFIG_READABLE_ASM
625# Disable optimizations that make assembler listings hard to read. 628# Disable optimizations that make assembler listings hard to read.
626# reorder blocks reorders the control in the function 629# reorder blocks reorders the control in the function
@@ -636,6 +639,22 @@ KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})
636endif 639endif
637 640
638# Handle stack protector mode. 641# Handle stack protector mode.
642#
643# Since kbuild can potentially perform two passes (first with the old
644# .config values and then with updated .config values), we cannot error out
645# if a desired compiler option is unsupported. If we were to error, kbuild
646# could never get to the second pass and actually notice that we changed
647# the option to something that was supported.
648#
649# Additionally, we don't want to fallback and/or silently change which compiler
650# flags will be used, since that leads to producing kernels with different
651# security feature characteristics depending on the compiler used. ("But I
652# selected CC_STACKPROTECTOR_STRONG! Why did it build with _REGULAR?!")
653#
654# The middle ground is to warn here so that the failed option is obvious, but
655# to let the build fail with bad compiler flags so that we can't produce a
656# kernel when there is a CONFIG and compiler mismatch.
657#
639ifdef CONFIG_CC_STACKPROTECTOR_REGULAR 658ifdef CONFIG_CC_STACKPROTECTOR_REGULAR
640 stackp-flag := -fstack-protector 659 stackp-flag := -fstack-protector
641 ifeq ($(call cc-option, $(stackp-flag)),) 660 ifeq ($(call cc-option, $(stackp-flag)),)