aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-04-28 13:28:33 -0400
committerRalf Baechle <ralf@linux-mips.org>2009-05-14 08:50:28 -0400
commit1a4ba061b3c93804027b4cc4c588cfad748d9fc2 (patch)
tree19924ee6b366bff45acda505de98fc6ad155cf76 /arch/mips/Makefile
parent05e41404470662a17699af9e6d91fc80ed91e757 (diff)
MIPS: Use -mno-check-zero-division
I don't think that in 15 years of Linux/MIPS the zero division checking code generated by gcc by default has ever caught anything. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 3d5626ee0a5c..26947ab85260 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -49,6 +49,7 @@ ifneq ($(SUBARCH),$(ARCH))
49endif 49endif
50 50
51cflags-y := -ffunction-sections 51cflags-y := -ffunction-sections
52cflags-y += $(call cc-option, -mno-check-zero-division)
52 53
53ifdef CONFIG_32BIT 54ifdef CONFIG_32BIT
54ld-emul = $(32bit-emul) 55ld-emul = $(32bit-emul)