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]

libobjc: remove deprecated API (patch 10)


This patch removes another couple of deprecated header fragments.  Note that this
starts to remove pieces of the Traditional API, which will be entirely removed
in GCC 4.7.0.  Of course, that requires switching all testcases to use the Modern
API when compiling for the GNU runtime, but we'll get there. ;-)

Committed to trunk.

Thanks

Index: Makefile.in
===================================================================
--- Makefile.in (revision 174617)
+++ Makefile.in (working copy)
@@ -130,7 +130,6 @@
   MetaClass.h \
   Object.h \
   Protocol.h \
-  objc_get_uninstalled_dtable.h \
   objc_msg_sendv.h \
   struct_objc_category.h \
   struct_objc_class.h \
@@ -142,7 +141,6 @@
   struct_objc_protocol.h \
   struct_objc_protocol_list.h \
   struct_objc_selector.h \
-  struct_objc_static_instances.h \
   struct_objc_symtab.h
 
 # Objective-C source files to compile
Index: ChangeLog
===================================================================
--- ChangeLog   (revision 174617)
+++ ChangeLog   (working copy)
@@ -1,5 +1,14 @@
 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
+       and objc_get_uninstalled_dtable.h.
+       * objc/deprecated/struct_objc_static_instances.h: Removed.
+       * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.       
+       * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
+       and deprecated/objc_get_uninstalled_dtable.h.
+       
+2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
        * objc/deprecated/objc_object_alloc.h: Removed.
        * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
Index: objc/deprecated/objc_get_uninstalled_dtable.h
===================================================================
--- objc/deprecated/objc_get_uninstalled_dtable.h       (revision 174593)
+++ objc/deprecated/objc_get_uninstalled_dtable.h       (working copy)
@@ -1,2 +0,0 @@
-objc_EXPORT struct sarray* 
-objc_get_uninstalled_dtable(void);
Index: objc/deprecated/struct_objc_static_instances.h
===================================================================
--- objc/deprecated/struct_objc_static_instances.h      (revision 174593)
+++ objc/deprecated/struct_objc_static_instances.h      (working copy)
@@ -1,14 +0,0 @@
-/* For every class which happens to have statically allocated instances in
-   this module, one OBJC_STATIC_INSTANCES is allocated by the compiler.
-   INSTANCES is NULL terminated and points to all statically allocated
-   instances of this class.  */
-struct objc_static_instances
-{
-  char *class_name;
-#ifdef __cplusplus
-  id instances[1];
-#else
-  id instances[0];
-#endif
-};
-
Index: objc/objc-api.h
===================================================================
--- objc/objc-api.h     (revision 174617)
+++ objc/objc-api.h     (working copy)
@@ -104,7 +104,6 @@
    equivalent to "*".  */
 #define _C_ATOM     '%'
 
-#include "deprecated/struct_objc_static_instances.h"
 #include "deprecated/struct_objc_symtab.h"
 #include "deprecated/struct_objc_module.h"
 #include "deprecated/struct_objc_ivar.h"
@@ -385,8 +384,6 @@
          &&  !object_is_class (object));
 }
 
-#include "deprecated/objc_get_uninstalled_dtable.h"
-
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */



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