This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [cs] objc compile-server patches


I checked in (to the compile server branch) these extra patches
for Objective-C.  Still no guarantee that objc works, though
bootstrapping with --enable-languages=c does seem to work.
I'll start a test build with objc and perhaps c++ shortly.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/

2003-08-15  Per Bothner  <pbothner@apple.com>

	* objc/objc-act.c (init_objc):  Inline into objc_init.
	(objc_init):  Renamed to init_objc_eachsrc.
	* objc/objc-lang.c (LANG_HOOKS_INIT):  Update accordingly.
	* objc/objc-act.h:  Update prototype.

Index: objc-act.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-act.c,v
retrieving revision 1.184.2.1
diff -u -p -r1.184.2.1 objc-act.c
--- objc-act.c	12 Aug 2003 23:07:33 -0000	1.184.2.1
+++ objc-act.c	16 Aug 2003 06:30:28 -0000
@@ -118,7 +118,6 @@ char *util_firstobj;
 
 /* Used by compile_file.  */
 
-static void init_objc				PARAMS ((void));
 static void finish_objc				PARAMS ((void));
 
 /* Code generation.  */
@@ -433,9 +432,9 @@ generate_struct_by_value_array ()
 }
 
 bool
-objc_init ()
+init_objc_eachsrc ()
 {
-  if (c_objc_common_init () == false)
+  if (init_c_objc_common_eachsrc () == false)
     return false;
 
   /* Force the line number back to 0; check_newline will have
@@ -475,7 +474,12 @@ objc_init ()
 
   objc_ellipsis_node = make_node (ERROR_MARK);
 
-  init_objc ();
+  gcc_obstack_init (&util_obstack);
+  util_firstobj = (char *) obstack_finish (&util_obstack);
+
+  errbuf = xmalloc (BUFSIZE);
+  hash_init ();
+  synth_module_prologue ();
 
   if (print_struct_values)
     generate_struct_by_value_array ();
@@ -8179,17 +8183,6 @@ objc_printable_name (decl, kind)
      int kind ATTRIBUTE_UNUSED;
 {
   return objc_demangle (IDENTIFIER_POINTER (DECL_NAME (decl)));
-}
-
-static void
-init_objc ()
-{
-  gcc_obstack_init (&util_obstack);
-  util_firstobj = (char *) obstack_finish (&util_obstack);
-
-  errbuf = xmalloc (BUFSIZE);
-  hash_init ();
-  synth_module_prologue ();
 }
 
 static void
Index: objc-act.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-act.h,v
retrieving revision 1.17
diff -u -p -r1.17 objc-act.h
--- objc-act.h	14 Jul 2003 21:35:37 -0000	1.17
+++ objc-act.h	16 Aug 2003 06:30:28 -0000
@@ -24,8 +24,8 @@ Boston, MA 02111-1307, USA.  */
 
 /*** Public Interface (procedures) ***/
 
-bool objc_init					PARAMS ((void));
-const char *objc_printable_name			PARAMS ((tree, int));
+bool init_objc_eachsrc (void);
+const char *objc_printable_name (tree, int);
 
 /* used by yyparse */
 
Index: objc-lang.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-lang.c,v
retrieving revision 1.36.2.2
diff -u -p -r1.36.2.2 objc-lang.c
--- objc-lang.c	16 Aug 2003 01:31:14 -0000	1.36.2.2
+++ objc-lang.c	16 Aug 2003 06:30:29 -0000
@@ -38,7 +38,7 @@ enum c_language_kind c_language = clk_ob
 #undef LANG_HOOKS_INIT_ONCE
 #define LANG_HOOKS_INIT_ONCE init_c_objc_common_once
 #undef LANG_HOOKS_INIT
-#define LANG_HOOKS_INIT objc_init
+#define LANG_HOOKS_INIT init_objc_eachsrc
 #undef LANG_HOOKS_FINISH
 #define LANG_HOOKS_FINISH c_common_finish
 #undef LANG_HOOKS_INIT_OPTIONS

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]