The testcase gcc.target/mips/msa.c gives dozens of FAILs if it's tested
with a GCC configured to default to -fno-common, because of patterns like
/* { dg-final { scan-assembler-times "\t.comm\tv16i8_\\d+,16,16" 3 } } */
Seems like the simplest solution is to force -fcommon for this test. OK?
-Sandra
2017-11-02 Sandra Loosemore <san...@codesourcery.com>
gcc/testsuite/
* gcc.target/mips/msa.c: Add -fcommon to dg-options.
Index: gcc/testsuite/gcc.target/mips/msa.c
===================================================================
--- gcc/testsuite/gcc.target/mips/msa.c (revision 480407)
+++ gcc/testsuite/gcc.target/mips/msa.c (working copy)
@@ -1,6 +1,6 @@
/* Test MIPS MSA ASE instructions */
/* { dg-do compile } */
-/* { dg-options "-mfp64 -mhard-float -mmsa -fexpensive-optimizations" } */
+/* { dg-options "-mfp64 -mhard-float -mmsa -fexpensive-optimizations -fcommon" } */
/* { dg-skip-if "madd and msub need combine" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-times "\t.comm\tv16i8_\\d+,16,16" 3 } } */