diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-04-26 10:26:06 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2006-04-26 10:26:06 +0200 |
commit | 91b6c26dd2ca4426cb9dfa6faa83a984cd76bfe9 (patch) | |
tree | 26149ec9ebe19726864e8d6f097d26e4391d7e77 /libgomp/testsuite | |
parent | 07ed51c9cee029feb2ad2f8431cbdc60ed395fe3 (diff) | |
download | gcc-91b6c26dd2ca4426cb9dfa6faa83a984cd76bfe9.zip gcc-91b6c26dd2ca4426cb9dfa6faa83a984cd76bfe9.tar.gz gcc-91b6c26dd2ca4426cb9dfa6faa83a984cd76bfe9.tar.bz2 |
re PR c/26171 (#pragma omp threadprivate requires -funit-at-a-time)
PR c/26171
* cgraph.c (cgraph_varpool_finalize_decl): Don't call
cgraph_varpool_assemble_pending_decls if -fopenmp, unless
cgraph_global_info_ready.
* testsuite/libgomp.c/pr26171.c: New test.
From-SVN: r113271
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.c/pr26171.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.c/pr26171.c b/libgomp/testsuite/libgomp.c/pr26171.c new file mode 100644 index 0000000..eacc9a7 --- /dev/null +++ b/libgomp/testsuite/libgomp.c/pr26171.c @@ -0,0 +1,14 @@ +/* PR c/26171 */ +/* { dg-do run } */ +/* { dg-options "-fopenmp" } */ +/* { dg-require-effective-target tls_runtime } */ + +int thrv = 0; +#pragma omp threadprivate (thrv) + +int +main () +{ + thrv = 1; + return 0; +} |