2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
PR objc/35996
* objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
-fgnu-runtime and set flag_objc_gc to zero.
testsuite:
2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
PR objc/35996
* objc.dg/objc-gc-4.m: Run for all targets, prune new warning.
* obj-c++.dg/objc-gc-3.mm: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158083
138bc75d-0d04-0410-961f-
82ee72b054a4
2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
+ PR objc/35996
+ * objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
+ -fgnu-runtime and set flag_objc_gc to zero.
+
+2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
+
PR objc++/23716
* objc-act.c (build_module_initializer_routine): Make the argument
to objc_start_function NULL_TREE when compiling ObjC++.
structure-returning methods. */
default_constant_string_class_name = "NXConstantString";
flag_typed_selectors = 1;
+ /* GNU runtime does not need the compiler to change code
+ in order to do GC. */
+ if (flag_objc_gc)
+ {
+ warning_at (0, 0, "%<-fobjc-gc%> is ignored for %<-fgnu-runtime%>");
+ flag_objc_gc=0;
+ }
}
init_objc ();
+2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
+
+ PR objc/35996
+ * objc.dg/objc-gc-4.m: Run for all targets, prune new warning.
+ * obj-c++.dg/objc-gc-3.mm: Ditto.
+
2010-04-07 Simon Baldwin <simonb@google.com>
* gcc.dg/cpp/warn-undef-2.c: New.
* gfortran.dg/warning-directive-4.F90: New.
2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
-PR objc++/23716
+
+ PR objc++/23716
* obj-c++.dg/comp-types-10.mm: Remove XFAIL.
2010-04-07 Jason Merrill <jason@redhat.com>
(where component references get rewritten). */
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile } */
/* { dg-options "-fobjc-gc" } */
+/* { dg-prune-output "cc1objplus: warning: '-fobjc-gc' is ignored for '-fgnu-runtime'" } */
#include "../objc-obj-c++-shared/Object1.h"
(where component references get rewritten). */
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile } */
/* { dg-options "-fobjc-gc" } */
+/* { dg-prune-output "cc1obj: warning: '-fobjc-gc' is ignored for '-fgnu-runtime'" } */
#include "../objc-obj-c++-shared/Object1.h"