MIPS: Use -mno-check-zero-division
authorRalf Baechle <ralf@linux-mips.org>
Tue, 28 Apr 2009 17:28:33 +0000 (19:28 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 14 May 2009 12:50:28 +0000 (13:50 +0100)
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>
arch/mips/Makefile

index 3d5626e..26947ab 100644 (file)
@@ -49,6 +49,7 @@ ifneq ($(SUBARCH),$(ARCH))
 endif
 
 cflags-y := -ffunction-sections
+cflags-y += $(call cc-option, -mno-check-zero-division)
 
 ifdef CONFIG_32BIT
 ld-emul                        = $(32bit-emul)