Re: [testsuite] Provide TLS access model testcases

2011-06-07 Thread Kaz Kojima
"Joseph S. Myers" wrote: >> gcc.dg/torture/tls/run-gd.c fails on SH because SH assumes >> -fpic for global and local dynamic tls models. Although a line > > That sounds like an SH target bug to me. Ok, I'd like to fix the SH backend so that those tests pass without -fpic/-fpie. Regards,

Re: [testsuite] Provide TLS access model testcases

2011-06-07 Thread Joseph S. Myers
On Sun, 29 May 2011, Kaz Kojima wrote: > Hi, > > Rainer Orth wrote: > > 2010-12-30 Uros Bizjak > > Rainer Orth > > > > * gcc.dg/torture/tls/run-gd.c: New test. > > * gcc.dg/torture/tls/run-ie.c: New test. > > * gcc.dg/torture/tls/run-ld.c: New test. > > * gcc.dg/tort

Re: [testsuite] Provide TLS access model testcases

2011-05-30 Thread Kaz Kojima
Rainer Orth wrote: > Given that this seems to be target-specific, unless we can identify a > common feature of these targets, I'd rather see us xfail or skip the > tests on a per-target basis. > > In addition, I've got a patch in the works that cycles the > gcc.dg/torture/tls tests through -fpic/

Re: [testsuite] Provide TLS access model testcases

2011-05-30 Thread Rainer Orth
Kaz Kojima writes: > gcc.dg/torture/tls/run-gd.c fails on SH because SH assumes > -fpic for global and local dynamic tls models. Although a line > > /* { dg-options "-fpic" { target sh*-*-* } } */ > > added to run-gd.c and run-ld.c tests looks enough for SH, > I guess that target fpic instead of

Re: [testsuite] Provide TLS access model testcases

2011-05-29 Thread Kaz Kojima
Hi, Rainer Orth wrote: > 2010-12-30 Uros Bizjak > Rainer Orth > > * gcc.dg/torture/tls/run-gd.c: New test. > * gcc.dg/torture/tls/run-ie.c: New test. > * gcc.dg/torture/tls/run-ld.c: New test. > * gcc.dg/torture/tls/run-le.c: New test. > * lib/target-s