* decl.c (start_decl): Don't set DECL_COMMON for __thread variables.
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Jan 2003 13:27:49 +0000 (14:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Jan 2003 13:27:49 +0000 (14:27 +0100)
From-SVN: r61111

gcc/cp/ChangeLog
gcc/cp/decl.c

index c8bd7e889df302764bdd3552ea977c95ad2b5ffd..17626a93f464bb80fbde9d640a048b7d98999696 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * decl.c (start_decl): Don't set DECL_COMMON for __thread variables.
+
 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
 
        * Make-lang.in (c++.install-common, c++.install-man,
index 8740df6c5c47ff96b45bb6db7ccc4714b99aa45a..8d8e53fb92f693fdf976b4b9e5cd864c1901e80e 100644 (file)
@@ -7177,7 +7177,8 @@ start_decl (tree declarator,
      wrong semantics.  If we say -fno-conserve-space, we want this to
      produce errors about redefs; to do this we force variables into the
      data segment.  */
-  DECL_COMMON (tem) = flag_conserve_space || ! TREE_PUBLIC (tem);
+  DECL_COMMON (tem) = (!DECL_THREAD_LOCAL (tem)
+                      && (flag_conserve_space || ! TREE_PUBLIC (tem)));
 #endif
 
   if (! processing_template_decl)