* decl.c (start_decl): Only check DECL_THREAD_LOCAL for VAR_DECLs.
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Jan 2003 18:13:40 +0000 (19:13 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Jan 2003 18:13:40 +0000 (19:13 +0100)
From-SVN: r61121

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

index cb9c6124ac4ab13b4bd79e62a5650cb8ac03d358..2970abba965cb4b85861646ce82db52a7d4de12d 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * decl.c (start_decl): Only check DECL_THREAD_LOCAL for VAR_DECLs.
+
 2003-01-09  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        * pt.c (push_access_scope_real): Call push_to_top_level for
index 8d8e53fb92f693fdf976b4b9e5cd864c1901e80e..35a14e8cbe0f8a07ddc281a69d8956166eb9ca6a 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) = (!DECL_THREAD_LOCAL (tem)
+  DECL_COMMON (tem) = ((TREE_CODE (tem) != VAR_DECL
+                       || !DECL_THREAD_LOCAL (tem))
                       && (flag_conserve_space || ! TREE_PUBLIC (tem)));
 #endif