On Wed, Aug 22, 2018 at 2:15 AM Qing Zhao <qing.z...@oracle.com> wrote: > > > > On Aug 21, 2018, at 8:07 AM, Paul Hua <paul.hua...@gmail.com> wrote: > > > > Hi, Qing, > > > > The cfarm machine gcc23 can build mips64el successful, configure with > > "../configure --prefix=/opt/gcc-9 MISSING=texinfo MAKEINFO=missing > > --target=mips64el-linux-gnu --enable-languages=c,c++ > > I got the same failure message on gcc23 as gcc22, even with the above > configure: > > /usr/bin/ld: failed to merge target specific data of file > /usr/lib32/libc.a(mremap.o) > /usr/bin/ld: /usr/lib32/libc.a(libc-lowlevellock.o): ABI is incompatible with > that of the selected emulation > > not sure what’s the problem? >
I just build all-gcc and make check. ./configure xxx make all-gcc -j 2 make check-gcc RUNTESTFLAGS="dg.exp=strcmpopt_6.c" It's enough to reproduce the regression. Here is a mips port patch. diff --git a/gcc/testsuite/gcc.dg/strcmpopt_6.c b/gcc/testsuite/gcc.dg/strcmpopt_6.c index 4c6de02824f..fa0ff9d1171 100644 --- a/gcc/testsuite/gcc.dg/strcmpopt_6.c +++ b/gcc/testsuite/gcc.dg/strcmpopt_6.c @@ -33,4 +33,5 @@ int main (void) } -/* { dg-final { scan-assembler-times "memcmp" 2 } } */ +/* { dg-final { scan-assembler-times "memcmp" 2 { target { ! mips*-*-* } } } } */ +/* { dg-final { scan-assembler-times "memcmp" 4 { target { mips*-*-* } } } } */ Paul Hua