Created
June 19, 2017 19:38
-
-
Save deferraz/2e9addbdce1309709e718e6344426968 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -uNr a/Makefile b/Makefile | |
| --- a/Makefile 2017-06-19 16:26:52.034630918 -0300 | |
| +++ b/Makefile 2017-06-19 16:35:03.123566914 -0300 | |
| @@ -635,6 +635,12 @@ | |
| # Tell gcc to never replace conditional load with a non-conditional one | |
| KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) | |
| +# check for 'asm goto' | |
| +ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | |
| + KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO | |
| + KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO | |
| +endif | |
| + | |
| include scripts/Makefile.gcc-plugins | |
| ifdef CONFIG_READABLE_ASM | |
| @@ -792,12 +798,6 @@ | |
| # use the deterministic mode of AR if available | |
| KBUILD_ARFLAGS := $(call ar-option,D) | |
| -# check for 'asm goto' | |
| -ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | |
| - KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO | |
| - KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO | |
| -endif | |
| - | |
| include scripts/Makefile.kasan | |
| include scripts/Makefile.extrawarn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment