This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libitm] Link with -litm and -pthread



On 14 Feb 2012, at 16:08, Andreas Krebbel wrote:


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

... any .exp causing use of the libitm spec will need to arrange for - B /path/to/libitm/build to be appended to the options?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]