mips: use -mno-branch-likely for kernel and userspace, saves ~11k kernel size after...
[openwrt.git] / target / linux / generic / patches-3.7 / 302-mips_no_branch_likely.patch
1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -87,7 +87,7 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
4  # machines may also.  Since BFD is incredibly buggy with respect to
5  # crossformat linking we rely on the elf2ecoff tool for format conversion.
6  #
7 -cflags-y                       += -G 0 -mno-abicalls -fno-pic -pipe
8 +cflags-y                       += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely
9  cflags-y                       += -msoft-float
10  LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib
11  KBUILD_AFLAGS_MODULE           += -mlong-calls