MIPS: build fix: sprinkle hardfloat into macros and embedded ASM
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Thu, 20 Nov 2014 01:30:51 +0000 (17:30 -0800)
committerRaghu Gandham <raghu.gandham@imgtec.com>
Tue, 2 Dec 2014 00:58:40 +0000 (16:58 -0800)
commit8557f9582f0f9bd91cbba09a81ba1c32e574d38b
tree01ed26dd97c1111705911f6b85c5a1dad0a154e3
parent3a905b79de117c8243f49ea222a20f90aada2aa3
MIPS: build fix: sprinkle hardfloat into macros and embedded ASM

GCC before 4.9 haven't passed CFLAGS to the assembler properly,
in this case that flag is -msoft-float.
GCC 4.9 now passes all the CFLAGS to assembler as it should,
but that caused assembler errors in a lot of files:

"Error: opcode not supported on this processor"

This patch fixes it by explicitly setting the hardfloat
attribute in those files.

.set hardfloat

Squashed with bdf828255a2e [MIPS] Fix build issue with 4.9 GCC

Change-Id: I82bfcd4a0d677eebd0fd380e01f018d9bdbf3d34
Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Reviewed-on: https://mipsia.review.mips.com/2610
Reviewed-by: Raghu Gandham <raghu.gandham@imgtec.com>
Tested-by: Raghu Gandham <raghu.gandham@imgtec.com>
13 files changed:
arch/mips/Kconfig
arch/mips/Makefile
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/branch.c
arch/mips/kernel/genex.S
arch/mips/kernel/ptrace.c
arch/mips/kernel/ptrace32.c
arch/mips/kernel/r2300_switch.S
arch/mips/kernel/r4k_fpu.S
arch/mips/kernel/r4k_switch.S
arch/mips/kernel/r6000_fpu.S
arch/mips/kernel/unaligned.c
arch/mips/math-emu/cp1emu.c