aboutsummaryrefslogtreecommitdiff
path: root/libobjc/ChangeLog
AgeCommit message (Collapse)Author
2011-02-28In libobjc/:Nicola Pero
2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com> * selector.c (sel_getTypedSelector): Return NULL if there are multiple selectors with conflicting types. * objc/runtime.h (sel_getTypedSelector): Updated documentation. In gcc/testsuite/: 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-sel.m: Test that sel_getTypedSelector return NULL in case of a selector with conflicting types. * obj-c++.dg/gnu-api-2-sel.mm: Same change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@170563 138bc75d-0d04-0410-961f-82ee72b054a4
2011-02-28Fixed critical typo in Objective-C runtime garbage collection codeRichard Frith-Macdonald
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@170561 138bc75d-0d04-0410-961f-82ee72b054a4
2011-02-13Remove freebsd1 from libtool.m4 macros and config.rpath.Ralf Wildenhues
/: Import from Libtool and gnulib: 2011-01-27 Gerald Pfeifer <gerald@pfeifer.com> Prepare for supporting FreeBSD 10. * config.rpath: Remove handling of freebsd1* which soon would match FreeBSD 10.0. 2011-01-20 Gerald Pfeifer <gerald@pfeifer.com> (tiny change) Remove support for FreeBSD 1.x. * libtool.m4 (_LT_LINKER_SHLIBS) (_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. boehm-gc/: * configure: Regenerate. gcc/: * configure: Regenerate. libffi/: * configure: Regenerate. libgfortran/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libgo/: * config/libtool.m4: (_LT_LINKER_SHLIBS) (_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. * configure: Regenerate. libgomp/: * configure: Regenerate. libjava/: * configure: Regenerate. * shlibpath.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. libjava/classpath/: * config.rpath, ltcf-c.sh, ltcf-gcj.sh, ltconfig: Remove handling of freebsd1* which soon would match FreeBSD 10.0. * configure: Regenerate. libjava/libltdl/: * acinclude.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. * configure: Regenerate. libmudflap/: * configure: Regenerate. libobjc/: * configure: Regenerate. libquadmath/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libssp/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libstdc++-v3/: * configure: Regenerate. lto-plugin/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. zlib/: * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@170106 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-26In libobjc/:Nicola Pero
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com> * init.c (create_tree_of_subclasses_inherited_from): Use class_superclass_of_class instead of assuming a class is unresolved when it could be resolved. Tidied up code. (__objc_tree_insert_class): Enhanced DEBUG_PRINTF. (objc_tree_insert_class): Tidied up loop; return immediately upon inserting a class. (__objc_exec_class): Do not set __objc_class_tree_list. In gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/special/special.exp: Added load-category-2 and load-category-3 tests. * objc.dg/special/load-category-2.h: New. * objc.dg/special/load-category-2.m: New. * objc.dg/special/load-category-2a.m: New. * objc.dg/special/load-category-3.h: New. * objc.dg/special/load-category-3.m: New. * objc.dg/special/load-category-3a.m: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168251 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-24In libobjc/:Nicola Pero
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * selector.c (sel_getTypedSelector): Return NULL if given a NULL argument. (sel_registerTypedName): Same. (sel_registerName): Same. * objc/runtime.h: Updated documentation. In gcc/testsuite/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-sel.m: Test calling sel_getUid, sel_registerName and sel_registerTypedName with NULL arguments. Updated the test to work with the Apple runtime as well. * obj-c++.dg/gnu-api-2-sel.mm: Same change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168231 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-24In libobjc/:Nicola Pero
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * objc/runtime.h (class_addIvar): Updated documentation. The alignment is actually the log_2 of the alignment in bytes. * ivars.c (class_addIvar): Corresponding change to the implementation. In gcc/testsuite/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-class.m: Updated test to pass log_2 of the alignment to class_addIvar, instead of the alignment itself. * obj-c++.dg/gnu-api-2-class.mm: Same change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168230 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-24In libobjc/:Nicola Pero
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to be consistent with method_getTypeEncoding and ivar_getTypeEncoding. (sel_copyTypedSelectorList, sel_getTypedSelector): New. * selector.c (sel_getType): Renamed to sel_getTypeEncoding. (sel_copyTypedSelectorList, sel_getTypedSelector): New. (sel_get_type): Updated call to sel_getType. In gcc/testsuite/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-sel.m: Updated for renaming of sel_getType to sel_getTypeEncoding. Test that sel_getTypeEncoding returns NULL when called with a NULL argument. Added test for sel_copyTypedSelectorList and sel_getTypedSelector. * obj-c++.dg/gnu-api-2-sel.mm: Same changes. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168229 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-24In libobjc/:Nicola Pero
2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * objc/runtime.h (class_conformsToProtocol, class_copyProtocolList): Updated documentation. In gcc/testsuite/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> * obj-c.dg/gnu-api-2-class.m: Test that class_conformsToProtocol() does not check the superclasses. * obj-c++.dg/gnu-api-2-class.mm: Same change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168226 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-23In libobjc/:Nicola Pero
2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com> * init.c (create_tree_of_subclasses_inherited_from): Updated DEBUG_PRINTF messages. (__objc_tree_insert_class): Same. (__objc_send_load_using_method_list): Same. (__objc_send_load): Same. (__objc_exec_class): Same. In particular, do not print the module name since it is no longer used. * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for tracking +initialize calls. (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for tracking updates of dispatch tables. (__objc_install_dispatch_table_for_class): Same. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168215 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-23 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.Rainer Orth
(libobjc_gc$(libsuffix).la): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168203 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-23In gcc/testsuite/:Nicola Pero
2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com> * obj-c.dg/gnu-api-2-class.m: Test that class_addMethod() returns NO if the method is already implemented in the class. * obj-c++.dg/gnu-api-2-class.mm: Same change. In libobjc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com> * sendmsg.c (class_addMethod): Return NO if the method already exists in the class. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168199 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-22In libobjc/:Nicola Pero
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com> * init.c (duplicate_classes): New. (__objc_exec_class): Initialize duplicate_classes. (__objc_create_classes_tree): Ignore classes in the duplicate_classes table. (__objc_call_load_callback): Same. (__objc_init_class): If a duplicate class is found, add it to duplicate_classes instead of aborting. Return YES if the class is not a duplicate, and NO if it is. * objc-private/runtime.h (__objc_init_class): Updated prototype. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168183 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-22In libobjc/:Nicola Pero
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/objc-list.h: Reindented file. No code changes. * objc-private/sarray.h: Same change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168150 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-22In libobjc/:Nicola Pero
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/accessors.h: Removed 'extern "C"' guards. This file is never compiled with C++. * objc-private/hash.h: Same change. * objc-private/objc-list.h: Same change. * objc-private/objc-sync.h: Same change. * objc-private/protocols.h: Same change. * objc-private/runtime.h: Same change. * objc-private/sarray.h: Same change. * objc-private/selector.h: Same change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168149 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21Fixed changelog entry for one of my libobjc patches of a few days agoNicola Pero
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168147 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/18764 * class.c (__objc_add_class_to_hash): Return YES if the class was added, and NO if it already existed. * init.c (__objc_init_class): If __objc_add_class_to_hash returns NO, then abort the program with an error message. * objc-private/runtime.h (__objc_add_class_to_hash): Updated declaration. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168139 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * init.c (_objc_load_callback): Initialize with 0. (__objc_call_callback): Renamed to __objc_call_load_callback. Check _objc_load_callback only once, and if it is not set, return immediately. (objc_send_load): Updated call to __objc_call_callback. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168133 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/16110 * init.c (__objc_send_message_in_list): Renamed to __objc_send_load_using_method_list. Do not take an 'op' argument. Register the 'load' selector if needed. (__objc_send_load): Do not register the 'load' selector. Updated call to __objc_send_message_in_list. (__objc_create_classes_tree): Add the class of any claimed category that was loaded in the module to the list of classes for which we try to execute +load. In gcc/testsuite/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/16110 * objc.dg/special/special.exp: Added new test. * objc.dg/special/load-category-1.m: New. * objc.dg/special/load-category-1a.m: New. * objc.dg/special/load-category-1.h: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168122 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/common.h: When DEBUG is defined, include <stdio.h>. Updated comments. * init.c (__objc_tree_insert_class): Use %p, not %x, when printing a pointer using DEBUG_PRINTF. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168119 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/45953 * selector.c (__sel_register_typed_name): When registering a new selector with the same name as an existing one, reuse the existing name string. Also updated types, casts and comments in the whole function. In gcc/testsuite/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/45953 * objc.dg/libobjc-selector-1.m: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168115 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs' to be 'struct objc_selector *' and not 'SEL'. * init.c (__objc_exec_class): Call __objc_register_selectors_from_module instead of iterating over each selector and calling __sel_register_typed_name for each. * objc-private/selector.h: Declare __objc_register_selectors_from_module instead of __sel_register_typed_name. * selector.c (__objc_register_selectors_from_module): New. (__sel_register_typed_name): Made static. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168113 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * linking.m: Do not include objc/NXConstStr.h. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168112 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ... * objc-private/common.h (DEBUG_PRINTF): To here. * hash.c: Do not include objc-private/runtime.h and objc/thr.h. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168111 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-21In libobjc/:Nicola Pero
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * hash.c: Tidied up comments and indentation. No code changes. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168110 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/47012 * accessors.m (objc_getProperty): If not atomic, do not retain/autorelease the returned value. (Problem reported by git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168070 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/runtime.h (__objc_selector_max_index, __objc_init_selector_tables, __objc_register_selectors_from_class, __objc_register_selectors_from_list, __objc_register_selectors_from_description_list): Moved to ... * objc-private/selector.h: ... here. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168067 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/runtime.h (__objc_class_links_resolved): Removed. (__objc_print_dtable_stats): Removed. (__sel_register_typed_name): Removed. * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168066 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * init.c (__objc_exec_class): Call __objc_resolve_class_links (), if appropriate, after loading the module. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168065 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * sendmsg.c (method_setImplementation): Do not declare. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168064 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc/message.h: Updated comments. * objc/runtime.h: Updated comments. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168062 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In gcc/testsuite/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-objc.m: Fixed test to test objc_lookUpClass, not objc_lookupClass. * obj-c++.dg/gnu-api-2-objc.mm: Same change. In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * class.c (objc_lookupClass): Renamed to objc_lookUpClass. * protocols.c: Updated all calls to objc_lookupClass to call objc_lookUpClass instead. * sendmsg.c (objc_lookupClass): Do not declare. (get_imp): Update call to objc_lookupClass to call objc_lookUpClass instead. * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168059 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc/runtime.h (class_ivar_set_gcinvisible): Declare. * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not define. Updated comments. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168058 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc/encoding.h: Updated comments. * objc/runtime.h: Updated comments. (objc_setGetUnknownClassHandler): Mark with objc_EXPORT. (objc_sizeof_type): Same. (objc_alignof_type): Same. (objc_aligned_size): Same. (objc_promoted_size): Same. (objc_skip_type_qualifiers): Same. (objc_skip_typespec): Same. (objc_skip_offset): Same. (objc_skip_argspec): Same. (objc_get_type_qualifiers): Same. (objc_layout_structure): Same. (objc_layout_structure_next_member): Same. (objc_layout_finish_structure): Same. (objc_layout_structure_get_info): Same. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168051 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * init.c: Updated comments. * objc/objc-api.h: Updated comments. * objc/runtime.h (_objc_load_callback): Declare. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168044 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc/Object.h: Include deprecated/typedstream.h and deprecated/hash.h instead of typedstream.h. Updated comments. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168043 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In gcc/testsuite/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-resolve-method.m: Include objc/message.h. * obj-c++.dg/gnu-api-2-resolve-method.m: Include objc/message.h. In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h. * objc/deprecated/objc_msg_sendv.h: New. * objc/message.h: Do not define retval_t, apply_t, arglist, arglist_t, objc_msg_sendv, now in objc/deprecated/objc_msg_sendv.h. * objc/objc.h: Do not include message.h; include objc/deprecated/objc_msg_sendv.h instead. Tidied up comments. * sendmsg.c: Include objc/message.h. * thr.c: Include objc/message.h. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168042 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc/objc-exception.h: Include objc-decls.h. Mark all functions with objc_EXPORT. * objc/objc-sync.h: Same change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168041 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * Protocol.m: Moved all methods, with the exception of -isEqual:, into the 'Deprecated' category. * objc/Protocol.h: Removed all methods, moved to objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h. * objc/deprecated/Protocol.h: New. * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168040 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-19In libobjc/:Nicola Pero
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * init.c: Include objc-private/selector.h. Do not declare __sel_register_typed_name. * objc-private/selector.h (__sel_register_typed_name): Declare. * selector.c: Include objc-private/selector.h. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168039 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-18In libobjc/:Nicola Pero
2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> * class.c: Tidied up comments and indentation. No code changes. * error.c: Same. * exception.c: Same. * init.c: Same. * ivars.c: Same. * memory.c: Same. * objc-foreach.c: Same. * objc-sync.c: Same. * objects.c: Same. * protocols.c: Same. * sarray.c: Same. * thr.c: Same. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168022 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-172010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero
* init.c: Include objc/runtime.h and objc-private/module-abi-8.h instead of objc/objc-api.h. (init_check_module_version): Take a 'struct objc_module *' argument instead of 'Module_t'. Use 'struct objc_module *' instead of 'Module_t'. (__objc_created_classes_tree): Take a 'struct objc_module *' argument instead of 'Module_t'; use 'struct objc_symtab *' instead of 'Symtab_t'. (__objc_call_callback): Take a 'struct objc_module *' argument instead of 'Module_t'; use 'struct objc_symtab *' instead of 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'. (_objc_load_callback): Take a 'struct objc_category *' argument instead of 'Category *'. (class_superclass_of_class): Use objc_getClass() instead of objc_lookup_class(). (create_tree_of_subclasses_inherited_from): Same change (also, use an explicit 'if' instead of '?'). (objc_init_statics): Same change. (objc_send_load): Same change. (__objc_init_protocol): same change. (__objc_send_message_in_list): Take a 'struct objc_method_list *' argument instead of 'MethodList_t'. Use 'struct objc_method *' instead of 'Method_t'. (__objc_send_load): Use 'struct objc_method_list *' instead of 'MethodList_t'. Use sel_registerName() instead of sel_register_name(). (__objc_exec_class): Take a 'struct objc_module *' argument instead of 'Module_t'. Use 'struct objc_symtab *' instead of 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class(). Use 'struct objc_category *' instead of 'Category_t'. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@168000 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-16In libobjc/:Nicola Pero
2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com> * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h. Include objc-private/module-abi-8.h and objc-private/selector.h instead of objc/encoding.h. (objc_msg_lookup_super): Use super->super_class instead of super->class. (method_get_first_argument, method_get_next_argument): Declare locally. (class_get_instance_method): Declare before using. (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'. (__objc_init_dispatch_tables, __objc_send_initialize): Use sel_registerName() instead of sel_register_name(). (__objc_forward): Use sel_getName() instead of sel_get_name(). (objc_get_uninstalled_dtable): Use 'void' as argument. * objc-private/selector.h: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167961 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-15In libobjc/:Nicola Pero
2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc/message.h (objc_super): When using the modern API, do not define Super and Super_t, and always use 'super_class' for the super class field. (objc_msg_lookup_super): Updated prototype to use 'struct objc_super *' instead of 'Super_t'. * sendmsg.c (objc_msg_lookup_super): Updated prototype to use 'struct objc_super *' instead of 'Super_t'. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167869 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-15In libobjc/:Nicola Pero
2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc/message.h: Update comments, reindented code and moved deprecated types and functions at the end of the file. No code changes. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167864 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-15In libobjc/:Nicola Pero
2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com> * ivars.c (class_addIvar): Use the 'size' argument instead of trying to calculate it using objc_sizeof_type(). * objc/runtime.h (class_addIvar): Updated comments. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167837 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-152010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero
* sendmsg.c: Reindented some code and tidied up comments. No actual code changes. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167835 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-142010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero
* objc/Object.h: Moved all the methods, with the exception of -class and -isEqual:, into ... * objc/deprecated/Object.h: here. * Object.m: Moved all the methods, with the exception of -class and -isEqual: into the 'Deprecated' category. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167825 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-142010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero
* objects.c (object_copy): Do not #undef as we are no longer including objc/objc-api.h. * selector.c: Include objc/runtime.h and objc-private/module-abi-8.h. Do not include objc/objc-api.h and objc/encoding.h. Updated (__objc_register_selectors_from_class): Use struct objc_method_list * instead of MethodList_t. (__objc_register_selectors_from_list): Use Method instead of Method_t. (struct objc_method_description_list): Do not define here. (__objc_register_instance_methods_to_class): Use struct objc_method_list * instead of MethodList_t and Method instead of Method_t. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167818 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-142010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero
* selector.c: Reindented some code and tidied up comments. No actual code changes. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167815 138bc75d-0d04-0410-961f-82ee72b054a4
2010-12-13libobjc:Iain Sandoe
* encoding.c (_darwin_rs6000_special_round_type_align): New. (darwin_rs6000_special_round_type_align): Adjust to use new routine. testsuite: * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c: Adjust XFAILs. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167741 138bc75d-0d04-0410-961f-82ee72b054a4