]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/35435 (ICE with attribute tls_model in typedef)
authorJoseph Myers <joseph@codesourcery.com>
Thu, 5 Feb 2009 12:13:52 +0000 (12:13 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 5 Feb 2009 12:13:52 +0000 (12:13 +0000)
commitf93418341d25d8d644dc3260f49b8fcf51b947f7
tree08cb52ad2845554782ff2d48323564cb032d6cc3
parent7ab7e65a7ebe78a7c1460a674f3f0bb5783d8d12
re PR c/35435 (ICE with attribute tls_model in typedef)

PR c/35435
* c-common.c (handle_tls_model_attribute): Ignore attribute for
non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.

testsuite:
* gcc.dg/tls/diag-6.c: New test.

From-SVN: r143963
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tls/diag-6.c [new file with mode: 0644]