On Tue, Jun 26, 2018 at 11:20:32AM +0200, Rainer Orth wrote: > > Committed (after moving the testcase to gcc.target/i386). > > the new testcase FAILs on 32-bit Solaris/x86 > > FAIL: gcc.target/i386/pr86257.c scan-assembler data16[ \\t]*leaq > > and, according to gcc-testresults, also on i586-unknown-freebsd10.4 and > x86_64-pc-linux-gnu.
Yeah, it failed for me with -m32 or -mx32, and also fails with -mtls-dialect=gnu2. So I've installed following on top of your patch as obvious. 2018-06-26 Jakub Jelinek <ja...@redhat.com> PR debug/86257 * gcc.target/i386/pr86257.c: Add -mtls-dialect=gnu to dg-options. --- gcc/testsuite/gcc.target/i386/pr86257.c.jj 2018-06-25 14:51:20.481986807 +0200 +++ gcc/testsuite/gcc.target/i386/pr86257.c 2018-06-26 12:32:10.284048124 +0200 @@ -1,7 +1,7 @@ /* { dg-require-effective-target lp64 } */ /* { dg-require-effective-target fpic } */ /* { dg-require-effective-target tls } */ -/* { dg-options "-g -fPIC" } */ +/* { dg-options "-g -fPIC -mtls-dialect=gnu" } */ __thread int i; Jakub