This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [build, doc, libjava, testsuite] Fully support TLS on Solaris 8 and 9
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Sep 2010 20:21:12 +0200
- Subject: Re: [build, doc, libjava, testsuite] Fully support TLS on Solaris 8 and 9
- References: <ydd4og0wrba.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <4C8D6502.70700@gmail.com>
Hi Dave,
> As far as I can tell, dg-extra-ld-options doesn't take a target modifier in
> the way you've used there, so that "-pthread" is in effect on all targets and
> breaks the testcase on targets which don't support that option. See proc
> lto-get-options-main in gcc/testsuite/lto.exp. Perhaps you could extend it to
> work with a target selector? Or maybe there's some other way you could get
> the -pthread flag passed on Solaris (only)?
sorry for the breakage. I hadn't realized that dg-extra-ld-options was
LTO-only and special in this respect. As mentioned in the patch
submission, dg-add-options unfortunately doesn't work for LTO, so I had
to use the dg-extra-ld-options solution. I think I'll go for supporting
a target selector as you suggest.
I'm unsure if I'll get around to it this week, though, and will be on
vacation the next, so please file a PR and assign it to me so the issue
isn't forgotten.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University