Commit 4be64bdc by David Edelsohn Committed by David Edelsohn

target-supports.exp (add_options_for_tls): Prepend pthread link flags.

        * lib/target-supports.exp (add_options_for_tls): Prepend pthread
        link flags.
        * gcc.c-torture/execute/eeprof-1.c: Change AIX XFAIL to run-if.
        * g++.old-deja/g++.mike/p755a.C: XFAIL on AIX.
        * g++.dg/gomp/tls-5.C: Same.
        * g++.dg/template/linkage1.C: Same.
        * g++.dg/tls/thread_local1.C: Same.
        * g++.dg/tls/thread_local7.C: Same.
        * g++.dg/tls/thread_local7g.C: Same.

From-SVN: r219130
parent 2e9cc48c
2014-12-31 David Edelsohn <dje.gcc@gmail.com>
* lib/target-supports.exp (add_options_for_tls): Prepend pthread
link flags.
* gcc.c-torture/execute/eeprof-1.c: Change AIX XFAIL to run-if.
* g++.old-deja/g++.mike/p755a.C: XFAIL on AIX.
* g++.dg/gomp/tls-5.C: Same.
* g++.dg/template/linkage1.C: Same.
* g++.dg/tls/thread_local1.C: Same.
* g++.dg/tls/thread_local7.C: Same.
* g++.dg/tls/thread_local7g.C: Same.
2014-12-31 Tobias Burnus <burnus@net-b.de> 2014-12-31 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/error_stop_3.f90: New. * gfortran.dg/error_stop_3.f90: New.
...@@ -913,7 +925,7 @@ ...@@ -913,7 +925,7 @@
predicate value. predicate value.
2014-12-04 Jack Howarth <howarth@bromo.med.uc.edu> 2014-12-04 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/64145 PR testsuite/64145
* gcc.dg/graphite/isl-codegen-loop-dumping.c: Restore * gcc.dg/graphite/isl-codegen-loop-dumping.c: Restore
-fgraphite-identity. -fgraphite-identity.
......
// The reference temp should be TLS, not normal data. // The reference temp should be TLS, not normal data.
// { dg-require-effective-target c++11 } // { dg-require-effective-target c++11 }
// { dg-final { scan-assembler-not "\\.data" { target tls_native } } } // { dg-final { scan-assembler-not "\\.data" { target tls_native xfail powerpc-*-aix* } } }
extern int&& ir; extern int&& ir;
#pragma omp threadprivate (ir) #pragma omp threadprivate (ir)
......
// PR c++/50372 // PR c++/50372
// Test that a template instantiation has the same linkage as its argument. // Test that a template instantiation has the same linkage as its argument.
// { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z3fooIXadL_Z13external_funcvEEEvv" } } // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z3fooIXadL_Z13external_funcvEEEvv" } }
// { dg-final { scan-assembler-not "(weak|glob)\[^\n\]*_Z3fooIXadL_ZL11static_funcvEEEvv" } } // { dg-final { scan-assembler-not "(weak|glob)\[^\n\]*_Z3fooIXadL_ZL11static_funcvEEEvv" { xfail powerpc-*-aix* } } }
template<void (*fptr)(void)> template<void (*fptr)(void)>
void foo() { } void foo() { }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// simultaneous execution. // simultaneous execution.
// { dg-final { scan-assembler-not "cxa_guard" } } // { dg-final { scan-assembler-not "cxa_guard" } }
// The guard should be TLS, not local common. // The guard should be TLS, not local common.
// { dg-final { scan-assembler-not "\.comm" } } // { dg-final { scan-assembler-not "\.comm" { xfail powerpc-*-aix* } } }
struct A struct A
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// { dg-require-effective-target tls } // { dg-require-effective-target tls }
// The reference temp should be TLS, not normal data. // The reference temp should be TLS, not normal data.
// { dg-final { scan-assembler-not "\\.data" { target tls_native } } } // { dg-final { scan-assembler-not "\\.data" { target tls_native xfail powerpc-*-aix* } } }
void f() void f()
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// { dg-require-effective-target tls } // { dg-require-effective-target tls }
// The reference temp should be TLS, not normal data. // The reference temp should be TLS, not normal data.
// { dg-final { scan-assembler-not "\\.data" { target tls_native } } } // { dg-final { scan-assembler-not "\\.data" { target tls_native xfail powerpc-*-aix* } } }
thread_local int&& ir = 42; thread_local int&& ir = 42;
......
// { dg-do run } // { dg-do run { xfail powerpc-*-aix* } }
// It checks to see if you can define your own global delete operator. // It checks to see if you can define your own global delete operator.
// prms-id: 755 // prms-id: 755
......
/* { dg-require-effective-target return_address } */ /* { dg-require-effective-target return_address } */
/* { dg-options "-finstrument-functions" } */ /* { dg-options "-finstrument-functions" } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } "*" "" } */ /* { dg-xfail-run-if "" { powerpc-ibm-aix* } "*" "" } */
extern void abort (void); extern void abort (void);
......
...@@ -596,7 +596,7 @@ proc add_options_for_tls { flags } { ...@@ -596,7 +596,7 @@ proc add_options_for_tls { flags } {
int f (void) { return i; } int f (void) { return i; }
void g (int j) { i = j; } void g (int j) { i = j; }
}] } { }] } {
return "$flags -pthread" return "-pthread [g++_link_flags [get_multilibs "-pthread"] ] $flags "
} }
return $flags return $flags
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment