diff options
author | Andrew Pinski <pinskia@gmail.com> | 2007-01-23 22:01:09 -0800 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2007-01-23 22:01:09 -0800 |
commit | 7122aa3b32c2e6d4c0de1565586b1f3735b6b9f4 (patch) | |
tree | 39528db4f5de464d841c5b4831ead39423ff38f6 /gcc/objc | |
parent | a5abc980c2ec7708e5e8342e0caedb19b05b2ac1 (diff) | |
download | gcc-7122aa3b32c2e6d4c0de1565586b1f3735b6b9f4.zip gcc-7122aa3b32c2e6d4c0de1565586b1f3735b6b9f4.tar.gz gcc-7122aa3b32c2e6d4c0de1565586b1f3735b6b9f4.tar.bz2 |
re PR objc/27438 ([unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning)
2007-01-23 Andrew Pinski <pinskia@gmail.com>
PR objc/27438
* objc-act.c (objc_add_static_instance): Mark the decl as
TREE_USED.
2007-01-23 Andrew Pinski <pinskia@gmail.com>
PR objc/27438
* objc.dg/const-str-12.m: New test.
From-SVN: r121102
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index f3aeb9b..033ba3e 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,9 @@ +2007-01-23 Andrew Pinski <pinskia@gmail.com> + + PR objc/27438 + * objc-act.c (objc_add_static_instance): Mark the decl as + TREE_USED. + 2007-01-20 Andrew Pinski <pinskia@gmail.com> PR objc/30479 diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 86bfd37..b94bc0a 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -2007,6 +2007,7 @@ objc_add_static_instance (tree constructor, tree class_decl) DECL_COMMON (decl) = 1; TREE_STATIC (decl) = 1; DECL_ARTIFICIAL (decl) = 1; + TREE_USED (decl) = 1; DECL_INITIAL (decl) = constructor; /* We may be writing something else just now. |