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
+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
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.
+2007-01-23 Andrew Pinski <pinskia@gmail.com>
+
+ PR objc/27438
+ * objc.dg/const-str-12.m: New test.
+
2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/30532
--- /dev/null
+/* { dg-options "-Wall -funit-at-a-time -fgnu-runtime" } */
+/* { dg-do compile } */
+/* PR objc/27438, make sure that the decl produced by the front-end
+ does not cause a warning to be produced. */
+
+@interface NXConstantString
+{
+ void *isa;
+ const char * const nxcsptr;
+ const unsigned int nxcslen;
+}
+@end
+NXConstantString *a = @"NSInconsistentArchiveException"; /* { dg-bogus "defined but not used" } */
+
+