OSDN Git Service

* objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 2009 20:05:56 +0000 (20:05 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 2009 20:05:56 +0000 (20:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154173 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/objc/ChangeLog
gcc/objc/objc-act.c

index 70f841b..4a18ead 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-14  Jan Hubicka  <jh@suse.cz>
+
+       * objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
+
 2009-09-14  Richard Henderson  <rth@redhat.com>
 
        * objc-act.c (objc_init_exceptions): Don't call
index eac7ff0..6884cb1 100644 (file)
@@ -2038,7 +2038,6 @@ objc_add_static_instance (tree constructor, tree class_decl)
   sprintf (buf, "_OBJC_INSTANCE_%d", num_static_inst++);
   decl = build_decl (input_location,
                     VAR_DECL, get_identifier (buf), class_decl);
-  DECL_COMMON (decl) = 1;
   TREE_STATIC (decl) = 1;
   DECL_ARTIFICIAL (decl) = 1;
   TREE_USED (decl) = 1;