소스 검색

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>
Ralf Baechle 16 년 전
부모
커밋
1a4ba061b3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      arch/mips/Makefile

+ 1 - 0
arch/mips/Makefile

@@ -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)