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]

Remove recognize_objc_keyword


A little manual garbage collection, plus update a comment to match
the code.

Stan

2002-09-03  Stan Shebs  <shebs@apple.com>

   * c-lang.c (recognize_objc_keyword): Remove, no longer used.
   * c-tree.h (recognize_objc_keyword): Remove decl.
   * c-typeck.c (comp_target_types): Update a comment.

Index: c-lang.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-lang.c,v
retrieving revision 1.98
diff -p -r1.98 c-lang.c
*** c-lang.c    12 Aug 2002 06:02:53 -0000    1.98
--- c-lang.c    3 Sep 2002 16:36:19 -0000
*************** objc_message_selector ()
*** 195,206 ****
   return 0;
 }

- int
- recognize_objc_keyword ()
- {
-   return 0;
- }
-
 /* Used by c-typeck.c (build_external_ref), but only for objc.  */

 tree
--- 195,200 ----
Index: c-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-tree.h,v
retrieving revision 1.105
diff -p -r1.105 c-tree.h
*** c-tree.h    15 Aug 2002 21:16:23 -0000    1.105
--- c-tree.h    3 Sep 2002 16:36:19 -0000
*************** extern void objc_check_decl            PARAMS ((t
*** 169,175 ****
 extern void finish_file                PARAMS ((void));
 extern int objc_comptypes                     PARAMS ((tree, tree, int));
 extern tree objc_message_selector        PARAMS ((void));
- extern int recognize_objc_keyword        PARAMS ((void));
 extern tree lookup_objc_ivar            PARAMS ((tree));

 
--- 169,174 ----
Index: c-typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-typeck.c,v
retrieving revision 1.203
diff -p -r1.203 c-typeck.c
*** c-typeck.c    15 Aug 2002 21:16:23 -0000    1.203
--- c-typeck.c    3 Sep 2002 16:36:23 -0000
*************** comp_target_types (ttl, ttr)
*** 587,593 ****
 {
   int val;

!   /* Give maybe_objc_comptypes a crack at letting these types through.  */
   if ((val = objc_comptypes (ttl, ttr, 1)) >= 0)
     return val;

--- 587,593 ----
 {
   int val;

!   /* Give objc_comptypes a crack at letting these types through.  */
   if ((val = objc_comptypes (ttl, ttr, 1)) >= 0)
     return val;




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