Hi,
Rainer Orth <[email protected]> wrote:
> 2010-12-30 Uros Bizjak <[email protected]>
> Rainer Orth <[email protected]>
>
> * 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-supports.exp (check_effective_target_tls_runtime):
> Build testcase with TLS options.
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 target sh*-*-* is more
reasonable because GD and LD tls models are usually for shared
objects.
I see similar failures on S390 testresults and it seems that
also S390 requires -fpic for GD and LD.
Give me your thoughts?
Regards,
kaz