Avoid printing the following information on mips and mips64 when check msa:
authorgxw <guxiwei-hf@loongson.cn>
Mon, 10 Feb 2020 11:11:45 +0000 (19:11 +0800)
committergxw <guxiwei-hf@loongson.cn>
Mon, 10 Feb 2020 11:11:45 +0000 (19:11 +0800)
"unrecognized command line option ‘-mmsa’"

c_check

diff --git a/c_check b/c_check
index fbd1838..555b2ec 100644 (file)
--- a/c_check
+++ b/c_check
@@ -195,7 +195,7 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) {
        print $tmpf "void main(void){ __asm__ volatile($code); }\n";
 
        $args = "$msa_flags -o $tmpf.o $tmpf";
-       my @cmd = ("$compiler_name $args");
+       my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null");
        system(@cmd) == 0;
        if ($? != 0) {
            $have_msa = 0;