This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
further objc tweak
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 17 Jul 2003 14:04:11 -0700
- Subject: further objc tweak
There's no reason why Objective C can't use c_write_global_declarations,
and my upcoming patch will need it to.
Since this touches only the objc front end I tested only with
make bubblestrap + rebuild libobjc + make check-objc, starting with
the built tree from the previous patch.
zw
* objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
c_write_global_declarations.
===================================================================
Index: objc/objc-lang.c
--- objc/objc-lang.c 9 Jul 2003 14:37:15 -0000 1.34
+++ objc/objc-lang.c 17 Jul 2003 20:51:06 -0000
@@ -125,6 +125,9 @@ enum c_language_kind c_language = clk_ob
#undef LANG_HOOKS_TYPE_PROMOTES_TO
#define LANG_HOOKS_TYPE_PROMOTES_TO c_type_promotes_to
+#undef LANG_HOOKS_WRITE_GLOBALS
+#define LANG_HOOKS_WRITE_GLOBALS c_write_global_declarations
+
/* Each front end provides its own hooks, for toplev.c. */
const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;