Re: [PATCH] testsuite: Turn -fgnu-tm test into link test

2012-02-21 Thread Andreas Krebbel
On 02/21/2012 04:27 PM, Jakub Jelinek wrote: > On Tue, Feb 21, 2012 at 04:23:16PM +0100, Andreas Krebbel wrote: >> using the -fgnu-tm option fails for targets not supporting libitm with >> a *link* failure. So the compile test wasn't sufficient. >> >> With the attached patch the following failures

Re: [PATCH] testsuite: Turn -fgnu-tm test into link test

2012-02-21 Thread Rainer Orth
"Andreas Krebbel" writes: > Ok for mainline? No, this is wrong. How would gcc be able to find the uninstalled libitm.so and libitm.spec on targets that do support it? I'm undecided how (and where) best to fix this. One might either handle it via something like dg-add-options tm_runtime, or co

Re: [PATCH] testsuite: Turn -fgnu-tm test into link test

2012-02-21 Thread Jakub Jelinek
On Tue, Feb 21, 2012 at 04:23:16PM +0100, Andreas Krebbel wrote: > using the -fgnu-tm option fails for targets not supporting libitm with > a *link* failure. So the compile test wasn't sufficient. > > With the attached patch the following failures disappear on s390 and > s390x: > > FAIL: gcc.dg/

[PATCH] testsuite: Turn -fgnu-tm test into link test

2012-02-21 Thread Andreas Krebbel
Hi, using the -fgnu-tm option fails for targets not supporting libitm with a *link* failure. So the compile test wasn't sufficient. With the attached patch the following failures disappear on s390 and s390x: FAIL: gcc.dg/lto/trans-mem-1 c_lto_trans-mem-1_0.o-c_lto_trans-mem-1_1.o link, -flto -