Skip to content

Commit

Permalink
MIPS: Use -mno-check-zero-division
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed May 14, 2009
1 parent 05e4140 commit 1a4ba06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a4ba06

Please sign in to comment.