Created
April 12, 2011 10:12
-
-
Save dileks/915284 to your computer and use it in GitHub Desktop.
[PATCH] Drop -freg-struct-return argument (unsupported by Clang)
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 --git a/arch/x86/Makefile b/arch/x86/Makefile | |
| index 637f61a..613c0a3 100644 | |
| --- a/arch/x86/Makefile | |
| +++ b/arch/x86/Makefile | |
| @@ -25,7 +25,8 @@ ifeq ($(CONFIG_X86_32),y) | |
| LDFLAGS_vmlinux := --emit-relocs | |
| endif | |
| - KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return | |
| + # Drop -freg-struct-return argument (unsupported by Clang) | |
| + KBUILD_CFLAGS += -msoft-float -mregparm=3 | |
| # prevent gcc from keeping the stack 16 byte aligned | |
| KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment