trans-decl.c (get_proc_pointer_decl): Set DECL_TLS_MODEL if threadprivate.
authorJakub Jelinek <jakub@redhat.com>
Fri, 26 Aug 2011 14:55:05 +0000 (16:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 26 Aug 2011 14:55:05 +0000 (16:55 +0200)
commita6c975bd8e847c29541026b66b33275b42df4995
tree5460c14eafa145770f2aadf261d0b5fd64127454
parent2f27df53e757ee0ef77d042e92a7cd8e931e97f5
trans-decl.c (get_proc_pointer_decl): Set DECL_TLS_MODEL if threadprivate.

* trans-decl.c (get_proc_pointer_decl): Set DECL_TLS_MODEL
if threadprivate.
* symbol.c (check_conflict): Allow threadprivate attribute with
FL_PROCEDURE if proc_pointer.

* testsuite/libgomp.fortran/threadprivate4.f90: New test.

From-SVN: r178114
gcc/fortran/ChangeLog
gcc/fortran/symbol.c
gcc/fortran/trans-decl.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/threadprivate4.f90 [new file with mode: 0644]