diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-26 08:26:06 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-26 08:26:06 +0000 |
commit | d91321f0ead303849fb800a0ec91140730f67eb7 (patch) | |
tree | 26149ec9ebe19726864e8d6f097d26e4391d7e77 /libgomp | |
parent | 5f3cc051e19bd380df7f98e6f94b2ef5d82cfac1 (diff) | |
download | gcc-d91321f0ead303849fb800a0ec91140730f67eb7.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/pr26171.c | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 41b3a09536f..657b7ea0425 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2006-04-26 Jakub Jelinek <jakub@redhat.com> + + PR c/26171 + * testsuite/libgomp.c/pr26171.c: New test. + 2006-04-25 Richard Henderson <rth@redhat.com> PR libgomp/25865 diff --git a/libgomp/testsuite/libgomp.c/pr26171.c b/libgomp/testsuite/libgomp.c/pr26171.c new file mode 100644 index 00000000000..eacc9a71d3e --- /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; +} |