1. 26 May, 2011 3 commits
  2. 25 May, 2011 2 commits
    • Fixed typo in last ChangeLog entry · 48126bcb
      From-SVN: r174238
      Nicola Pero committed
    • In libobjc/: 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org> David Ayers <ayers@fsfe.org> · b5a3450f
      In libobjc/:
      2011-05-25  Richard Frith-Macdonald <rfm@gnu.org>
      	    David Ayers  <ayers@fsfe.org>
      
      	PR libobjc/38037
      	* sendmsg.c: Include objc/hash.h.
      	(get_implementation): New function, mostly with code from get_imp
      	updated to support the new +initialize dispatch table logic.
      	(get_imp): Use get_implementation.
      	(__objc_responds_to): Updated to support the new +initialize
      	dispatch table logic.
      	(class_respondsToSelector): Likewise.
      	(objc_msg_lookup): Use get_implementation.
      	(__objc_init_install_dtable): Removed.
      	(__objc_install_methods_in_dtable): Updated arguments.
      	(__objc_install_dispatch_table_for_class): Renamed to
      	__objc_install_dtable_for_class and updated to support the new
      	+initialize dispatch table logic.
      	(__objc_update_dispatch_table_for_class): Updated to support the
      	new +initialize dispatch table logic.
      	(__objc_forward): Call get_implementation instead of get_imp.
      	(prepared_dtable_table): New.
      	(__objc_prepare_dtable_for_class): New.	
      	(__objc_prepared_dtable_for_class): New.
      	(__objc_get_prepared_imp): New.
      	(__objc_install_prepared_dtable_for_class): New.
      
      Co-Authored-By: David Ayers <ayers@fsfe.org>
      
      From-SVN: r174221
      Richard Frith-Macdonald committed
  3. 24 May, 2011 1 commit
    • In libobjc/: 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com> · 85fe6408
      In libobjc/:
      2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR libobjc/48177
      	* selector.c (__sel_register_typed_name): Use sel_types_match()
      	instead of strcmp() to compare selector types (Suggestion by
      	Richard Frith-Macdonald <rfm@gnu.org>).
      
      In gcc/testsuite/:
      2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	PR libobjc/48177
      	* objc.dg/pr48177.m: New testcase.
      
      From-SVN: r174143
      Nicola Pero committed
  4. 15 Apr, 2011 1 commit
  5. 28 Feb, 2011 2 commits
  6. 13 Feb, 2011 1 commit
    • Remove freebsd1 from libtool.m4 macros and config.rpath. · 029c8f3e
      /:
      	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.
      
      From-SVN: r170106
      Ralf Wildenhues committed
  7. 03 Jan, 2011 1 commit
  8. 26 Dec, 2010 1 commit
    • In libobjc/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com> · fa539f51
      In libobjc/:
      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.
      
      From-SVN: r168251
      Nicola Pero committed
  9. 24 Dec, 2010 4 commits
    • In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> · 9cacfc3e
      In libobjc/:
      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.
      
      From-SVN: r168231
      Nicola Pero committed
    • In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> · 410644c4
      In libobjc/:
      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.
      
      From-SVN: r168230
      Nicola Pero committed
    • In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> · 5750872c
      In libobjc/:
      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.
      
      From-SVN: r168229
      Nicola Pero committed
    • In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com> · 877bf195
      In libobjc/:
      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.
      
      From-SVN: r168226
      Nicola Pero committed
  10. 23 Dec, 2010 3 commits
    • In libobjc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com> · e99776d8
      In libobjc/:
      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.
      
      From-SVN: r168215
      Nicola Pero committed
    • Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc. · 1d439e6c
      	* Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
      	(libobjc_gc$(libsuffix).la): Likewise.
      
      From-SVN: r168203
      Rainer Orth committed
    • In gcc/testsuite/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com> · 82883986
      In gcc/testsuite/:
      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.
      
      From-SVN: r168199
      Nicola Pero committed
  11. 22 Dec, 2010 3 commits
    • In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com> · 0bfe3fa1
      In libobjc/:
      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.
      
      From-SVN: r168183
      Nicola Pero committed
    • In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com> · 9fd553cc
      In libobjc/:
      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.
      
      From-SVN: r168150
      Nicola Pero committed
    • In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com> · 8637d320
      In libobjc/:
      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.
      
      From-SVN: r168149
      Nicola Pero committed
  12. 21 Dec, 2010 10 commits
  13. 19 Dec, 2010 8 commits