]> 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 01:18:02 +0000 (01:18 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 5 Feb 2009 01:18:02 +0000 (01:18 +0000)
commit5006381cc14df7bfb634b249f50b1bf30f39f841
tree56e68154a7b8fc728b201d3220d4c952afea9169
parentb0789219a39008bf034a14d6da94cdc03c2f3d38
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: r143948
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tls/diag-6.c [new file with mode: 0644]