This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libitm] Link with -litm and -pthread
- From: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 14 Feb 2012 17:08:23 +0100
- Subject: Re: [libitm] Link with -litm and -pthread
- References: <201202111514.40618.ebotcazou@adacore.com>
On 02/11/2012 03:14 PM, Eric Botcazou wrote:
> Hi,
>
> this completes the half-implemented linking scheme of libitm and makes it mimic
> that of libgomp entirely. We need the -pthread thing on Solaris 8.
>
> Tested on SPARC/Solaris 8 & 9 and i586/Linux, OK for the mainline?
>
>
> 2012-02-11 Eric Botcazou <ebotcazou@adacore.com>
>
> * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
> (GTM_SELF_SPECS): Define if not already defined.
> (driver_self_specs): Add GTM_SELF_SPECS.
> * config/darwin.h (GTM_SELF_SPECS): Define.
> * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
> * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
>
>
> 2012-02-11 Eric Botcazou <ebotcazou@adacore.com>
>
> * configure.ac (link_itm): Fix comment.
> * configure: Regenerate.
> * testsuite/lib/libitm.exp: Do not pass -litm for the link.
Hi,
I see several new fails on s390x with that patch (r184174):
> FAIL: gcc.dg/lto/trans-mem-1 c_lto_trans-mem-1_0.o-c_lto_trans-mem-1_1.o link, -flto
-fgnu-tm
> UNRESOLVED: gcc.dg/lto/trans-mem-1 c_lto_trans-mem-1_0.o-c_lto_trans-mem-1_1.o execute
-flto -fgnu-tm
> FAIL: gcc.dg/lto/trans-mem-2 c_lto_trans-mem-2_0.o-c_lto_trans-mem-2_1.o link, -flto
-fgnu-tm
> UNRESOLVED: gcc.dg/lto/trans-mem-2 c_lto_trans-mem-2_0.o-c_lto_trans-mem-2_1.o execute
-flto -fgnu-tm
> FAIL: gcc.dg/lto/trans-mem-4 c_lto_trans-mem-4_0.o-c_lto_trans-mem-4_1.o link, -flto
-fgnu-tm
> UNRESOLVED: gcc.dg/lto/trans-mem-4 c_lto_trans-mem-4_0.o-c_lto_trans-mem-4_1.o execute
-flto -fgnu-tm
Executing on host: /home/andreas/patched/gcc-head-build/gcc/xgcc
-B/home/andreas/patched/gcc-head-build/gcc/ c_lto_trans-mem-2_0.o c_lto_trans-mem-2_1.o
-flto -fgnu-tm -o gcc-dg-lto-trans-mem-2-01.exe (timeout = 300)
xgcc: error: libitm.spec: No such file or directory^M
compiler exited with status 1
Bye,
-Andreas-