Skip to content

Commit

Permalink
x86 kbuild: LLVMLinux: More cc-options added for clang
Browse files Browse the repository at this point in the history
Protect more options for x86 with cc-option so that we don't get errors when
using clang instead of gcc.  Add more or different options when using clang as
well. Also need to enforce that SSE is off for clang and the stack is 8-byte
aligned.

Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
  • Loading branch information
Jan-Simon Möller authored and Behan Webster committed Apr 9, 2014
1 parent 3ddf5ce commit fd2d0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ else

# this works around some issues with generating unwind tables in older gccs
# newer gccs do it by default
KBUILD_CFLAGS += -maccumulate-outgoing-args
KBUILD_CFLAGS += $(call cc-option,-maccumulate-outgoing-args)
endif

# Make sure compiler does not have buggy stack-protector support.
Expand Down

0 comments on commit fd2d0a1

Please sign in to comment.