loongson-community / linux-stable

Linux kernel source tree for Loongson
Other
67 stars 21 forks source link

[Compiler] optimization flag '-fno-delete-null-pointer-checks' is not supported #6

Open xiangzhai opened 6 years ago

xiangzhai commented 6 years ago

Hi Loonger,

Failed to build:

clang-7: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fmerge-constants' is not supported [-Wignored-optimization-argument]
  LD      init/built-in.o
  CC      arch/mips/kernel/cpu-probe.o
clang-7: error: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Werror,-Wignored-optimization-argument]
clang-7: error: optimization flag '-fmerge-constants' is not supported [-Werror,-Wignored-optimization-argument]
scripts/Makefile.build:296: recipe for target 'arch/mips/kernel/cpu-probe.o' failed
make[2]: *** [arch/mips/kernel/cpu-probe.o] Error 1
scripts/Makefile.build:547: recipe for target 'arch/mips/kernel' failed

I will fix it in the Compiler side.

Regards, Leslie Zhai