Skip to content
Snippets Groups Projects
  1. Jan 01, 2017
  2. Jan 04, 2016
  3. Nov 07, 2015
    • Trevor Saunders's avatar
      replace BITS_PER_UNIT with __CHAR_BIT__ in target libs · a153644f
      Trevor Saunders authored
      libgcc/ChangeLog:
      
      2015-11-07  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* config/visium/lib2funcs.c (__set_trampoline_parity): Use
      	__CHAR_BIT__ instead of BITS_PER_UNIT.
      	* fixed-bit.h: Likewise.
      	* fp-bit.h: Likewise.
      	* libgcc2.c (__popcountSI2): Likewise.
      	(__popcountDI2): Likewise.
      	* libgcc2.h: Likewise.
      	* libgcov.h: Likewise.
      
      libobjc/ChangeLog:
      
      2015-11-07  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	PR libobjc/24775
      	* encoding.c (_darwin_rs6000_special_round_type_align): Use
      	__CHAR_BIT__ instead of BITS_PER_UNIT.
      	(objc_sizeof_type): Likewise.
      	(objc_layout_structure): Likewise.
      	(objc_layout_structure_next_member): Likewise.
      	(objc_layout_finish_structure): Likewise.
      	(objc_layout_structure_get_info): Likewise.
      
      From-SVN: r229936
      a153644f
  4. Nov 03, 2015
    • Trevor Saunders's avatar
      remove usage of ROUND_TYPE_SIZE from encoding.c · 4ee6515e
      Trevor Saunders authored
      gcc got rid of this target macro in 2003, so it seems safe to assume the
      alternate path works fine on all targets.
      
      libobjc/ChangeLog:
      
      2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	PR libobjc/24775
      	* encoding.c (objc_layout_finish_structure): Remove usage of
      	ROUND_TYPE_SIZE.
      
      From-SVN: r229727
      4ee6515e
  5. May 02, 2015
    • Trevor Saunders's avatar
      fixup libobjc usage of PCC_BITFIELD_TYPE_MATTERS · 539280a8
      Trevor Saunders authored
      libobjc/ChangeLog:
      
      2015-05-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* acinclude.m4: Include bitfields.m4.
      	* config.h.in: Regenerate.
      	* configure: Likewise.
      	* configure.ac: Invoke gt_BITFIELD_TYPE_MATTERS.
      	* encoding.c: Check HAVE_BITFIELD_TYPE_MATTERS.
      
      config/ChangeLog:
      
      2015-05-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* bitfields.m4: New file.
      
      From-SVN: r222715
      539280a8
  6. Apr 30, 2015
  7. Jan 05, 2015
  8. Jul 27, 2014
  9. Jan 02, 2014
  10. Jul 21, 2013
    • Ondřej Bílka's avatar
      class.c: Fix typos. · cad10e05
      Ondřej Bílka authored
      2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
      
      	* class.c: Fix typos.
      	* encoding.c: Likewise.
      	* init.c: Likewise.
      	* objc-private/runtime.h: Likewise.
      	* objc/runtime.h: Likewise.
      	* objc-sync.c: Likewise.
      
      From-SVN: r201097
      cad10e05
  11. Feb 03, 2013
  12. Oct 19, 2012
    • Michael Meissner's avatar
      rs6000-cpus.def (POWERPC_MASKS): Don't assume OPTION_MASK_STRICT_ALIGN is defined. · ad1a0853
      Michael Meissner authored
      
      [gcc]
      2012-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
      	    Dominique Dhumieres  <dominiq@lps.ens.fr>
      
      	* config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
      	OPTION_MASK_STRICT_ALIGN is defined.
      	(MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
      	define this to 0 for the 3 ports that use it.
      
      	* config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
      	check for ports not having -mstrict-align here, move test to
      	rs6000-cpus.def.
      	(MASK_STRICT_ALIGN): Likewise.
      	(rs6000_debug_reg_global): Print out correct target flag words if
      	-mdebug=reg.
      
      [libobjc]
      2012-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	* encoding.c (TARGET_VSX): Provide definitions based on the
      	current compilation options, and not based off the target options
      	structure.
      	(TARGET_ALTIVEC): Likewise.
      	(TARGET_64BIT): Likewise.
      
      
      Co-Authored-By: default avatarDominique d'Humieres <dominiq@lps.ens.fr>
      
      From-SVN: r192623
      ad1a0853
  13. Jun 07, 2011
    • Nicola Pero's avatar
      In libobjc/: 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com> · 338efe0d
      Nicola Pero authored
      In libobjc/:
      2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* encoding.c (method_get_number_of_arguments): Removed.
      	(method_get_sizeof_arguments): Removed.
      
      From-SVN: r174768
      338efe0d
    • Nicola Pero's avatar
      In libobjc/: 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com> · 80e4b9e5
      Nicola Pero authored
      In libobjc/:
      2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	Removed the Traditional Objective-C runtime public API.
      	* Makefile.in (OBJC_DEPRECATED_H): Variable removed.
      	(install-headers): Do not create the objc/deprecated directory and
      	do not install the deprecated headers.
      	(OBJC_H): Removed encoding.h and objc-api.h.
      	* Object.m: Removed all methods with the exception of -class and
      	-isEqual:.  Updated includes.  ([-class]): Use Modern API.
      	* objc/Object.h: Do not include deprecated/Object.h.
      	* objc/deprecated/Object.h: Removed.
      	* linking.m (__objc_linking): Call [Object class] instead of
      	[Object name].
      	* Protocol.m: Removed all methods with the exception of -isEqual:.
      	Updated includes.
      	* objc/Protocol.h: Do not include deprecated/Protocol.h.
      	* objc/deprecated/Protocol.h: Removed.
      	* objc/deprecated/struct_objc_symtab.h: Removed.
      	* objc/deprecated/struct_objc_module.h: Removed.
      	* objc/deprecated/struct_objc_ivar.h: Removed.
      	* objc/deprecated/struct_objc_ivar_list.h: Removed.
      	* objc/deprecated/struct_objc_method.h: Removed.
      	* objc/deprecated/struct_objc_method_list.h: Removed.
      	* objc/deprecated/struct_objc_protocol_list.h: Removed.
      	* objc/deprecated/struct_objc_category.h: Removed.
      	* objc/deprecated/MetaClass.h: Removed.
      	* objc/deprecated/objc_msg_sendv.h: Removed.  
      	* objc/deprecated/README: Removed.
      	* objc/deprecated/struct_objc_class.h: Removed.
      	* objc/deprecated/struct_objc_protocol.h: Removed.
      	* objc/deprecated/struct_objc_selector.h: Removed.
      	* objc/encoding.h: Removed.
      	* objc/message.h (struct objc_super): Removed the definition for
      	the Traditional Objective-C runtime API.
      	* objc/objc.h: Do not include objc/objc-decls.h.
      	deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
      	deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
      	and deprecated/objc_msg_sendv.h.  Uncommented new definition of
      	Protocol *.
      	* objc/objc-api.h: Removed.
      	* objc/runtime.h: Updated comments.  Removed check to detect
      	concurrent usage of Traditional and Modern APIs.
      	* objc-private/module-abi-8.h: Always define struct objc_class and
      	struct objc_protocol.  (struct objc_protocol_list): Changed type
      	of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
      	(class_get_instance_size): Added.
      	* objc-private/protocols.h (__objc_protocols_add_protocol): Take a
      	'struct objc_protocol *' as argument, not a 'Protocol *'.
      	* objc-private/runtime.h: Updated comments.
      	* objc-private/selector.h (struct objc_selector, sel_eq): Added.
      	* class.c: Include objc-private/selector.h.
      	(objc_get_meta_class): Return a Class instead of a MetaClass.
      	* encoding.c (method_get_next_argument): Removed.
      	(method_get_first_argument): Removed.
      	(method_get_nth_argument): Removed.
      	* gc.c: Include objc/runtime.h instead of objc/encoding.h.
      	Include objc-private/module-abi-8.h and ctype.h.
      	* protocols.c (__objc_protocols_add_protocol): Take a 'struct
      	objc_protocl *' as argument, not a 'Protocol *'.
      	(class_addProtocol): Added casts to 'struct objc_protocol *' and
      	'Protocol *'.
      	(class_copyProtocolList): Likewise.
      	(protocol_conformsToProtocol): Likewise.
      	(protocol_copyProtocolList): Likewise.
      	* sarray.c: Include objc-private/module-abi-8.h.
      	* sendmsg.c (method_get_next_argument): Removed.
      	(method_get_first_argument): Removed.
      	(method_get_nth_argument): Removed.
      	(objc_msg_sendv): Removed.
      	(arglist_t, retval_t): New.  (class_get_class_method): Take a
      	'Class', not 'MetaClass', argument.
      	* thr.c: Include module-abi-8.h.
      
      From-SVN: r174765
      80e4b9e5
  14. Jan 03, 2011
  15. Dec 13, 2010
    • Iain Sandoe's avatar
      encoding.c (_darwin_rs6000_special_round_type_align): New. · f436d2ff
      Iain Sandoe authored
      libobjc:
      
      	* 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.
      
      From-SVN: r167741
      f436d2ff
  16. Oct 13, 2010
    • Nicola Pero's avatar
      In libobjc/: 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com> · ad49efbd
      Nicola Pero authored
      In libobjc/:
      2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * encoding.c (method_copyReturnType): New.
              (method_copyArgumentType): New.
              (method_getReturnType): New.
              (method_getArgumentType): New.
              * methods.c (method_getDescription): New.
              * objc/runtime.h (method_copyReturnType): New.
              (method_copyArgumentType): New.
              (method_getReturnType): New.
              (method_getArgumentType): New.
              (method_getDescription): New.
      
      From-SVN: r165404
      ad49efbd
  17. Oct 12, 2010
    • Nicola Pero's avatar
      In libobjc/: 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com> · c994cc85
      Nicola Pero authored
      In libobjc/:
      2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * encoding.c: Tidied up comments.
              (objc_skip_variable_name): New static inline function.
              (objc_sizeof_type): Use objc_skip_variable_name instead of copying
              the same code over and over.
              (objc_alignof_type): Same.
              (objc_aligned_size): Same.
              (objc_promoted_size): Same.
              (objc_skip_typespec): Same.
              (objc_layout_structure_next_member): Same.
              (objc_skip_offset): Skip a '-' before the digits (if any).  Fixed
              historical bug where objc_skip_offset would skip one byte even if
              there is no offset: check that the first offset digit is actually
              a digit before skipping it.
              (objc_skip_type_qualifiers): Mark as inline.
              (objc_skip_typespec): Mark as inline.
      
      From-SVN: r165403
      c994cc85
    • Nicola Pero's avatar
      Makefile.in (C_SOURCE_FILES): Added methods.c. · ad9eef11
      Nicola Pero authored
      2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * Makefile.in (C_SOURCE_FILES): Added methods.c.
              * encoding.c (method_getNumberOfArguments): New.
              (method_get_number_of_arguments): Call
              method_getNumberOfArguments.
              * ivars.c (ivar_getName): Check for NULL variable argument.
              (ivar_getOffset): Check for NULL variable argument.
              (ivar_getTypeEncoding): Check for NULL variable argument.
              (class_copyIvarList): New.
              * methods.c: New.
              * protocols.c (class_copyProtocolList): Check for Nil class_
              argument.
              * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
              'struct objc_method_list *' instead of MethodList_t.
              (class_getMethodImplementation): New.
              (class_respondsToSelector): New.
              (class_getInstanceMethod): New.
              (class_getClassMethod): New.
              * objc/runtime.h: Updated comments.
              (class_copyIvarList): New.
              (class_getInstanceMethod): New.
              (class_getClassMethod): New.
              (class_getMethodImplementation): New.
              (class_respondsToSelector): New.
              (method_getName): New.
              (method_getImplementation): New.
              (method_getTypeEncoding): New.
              (class_copyMethodList): New.
              (method_getNumberOfArguments): New.
      
      From-SVN: r165400
      ad9eef11
    • Nicola Pero's avatar
      archive.c: Do not include objc/objc.h. · 718a8e53
      Nicola Pero authored
      2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * archive.c: Do not include objc/objc.h.
              * class.c: Do not include objc/objc.h.
              * encoding.c: Include objc/runtime.h, ctype.h and
              objc-private/module-abi-8.h instead of objc/objc-api.h and
              objc/encoding.h.
              * error.c: Do not include objc/objc.h.
              * gc.c: Include tconfig.h and objc/encoding.h only if
              OBJC_WITH_GC.
              * hash.c: Include objc/runtime.h and objc/thr.h instead of
              objc/objc-api.h.  Do not include objc/objc.h.
              * init.c: Do not include objc/objc.h.
              * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
              objc/thr.h instead of objc/objc-api.h.  Do not include
              objc/objc.h.
              * linking.m: Tidied comment.
              * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
              Do not include objc/objc.h.
              * objects.c: Do not include objc/objc.h.
              * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
              * protocols.c: Do not include objc/objc.h.
              * sarray.c: Include objc/runtime.h instead of objc/objc-api.h.  Do
              not include objc/objc.h.
              * selector.c: Do not include objc/objc.h.
              * sendmsg.c: Do not include objc/objc.h.
              * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
              Do not include objc/objc.h.
              * objc/objc-decls.h: Reindented code.
              * objc/runtime.h Include objc-decls.h.  Updated comments.
              (objc_malloc): New.
              (objc_atomic_malloc): New.
              (objc_calloc): New.
              (objc_realloc): New.
              (objc_free): New.
              * objc-private/runtime.h: Updated comments.
      
      From-SVN: r165386
      718a8e53
  18. Sep 27, 2010
    • Nicola Pero's avatar
      In gcc/: 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> · 177b48f9
      Nicola Pero authored
      In gcc/:
      2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * doc/objc.texi (Type encoding): Added the new 'long double' (D)
              code.  Added byref, which was missing in the list of codes.
              Explain that enumeration values are encoded as the integer type
              that the compiler uses to store them.  Explain and make examples
              of how 'const' interacts with pointers, and the complication of
              the encoding of 'const char *'.
              (Legacy type encoding): New subsection, explaining that GCC emits
              incorrect type encodings for the NeXT runtime for compatibility
              reasons.
              (@@encode): New subsection, explaining @encode and particularly
              that protocol qualifiers are not recognized inside an @encode()
              expression.
              (Method signatures): New subsection, explaining how method
              signatures are encoded.
      
      In gcc/objc/:
      2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/45763
              PR objc/25450
              PR objc/25464
              * objc-act.c: Improved comments for encoding functions.
              (encode_aggregate_within): For the GNU runtime, rewritten some
              obsfuscated code to clarify the various cases.
              (encode_aggregate): Function removed.
              (encode_array): Generate an error if asked to encode an incomplete
              array as part of generating instance variables.  Else, when
              encoding an incomplete array inside a structure, encode it as an
              array of zero size.
              (encode_pointer): For the GNU runtime, fixed encoding 'BOOL *' as
              '^c' instead of '*'.
              (encode_gnu_bitfield): Encode enumerated types exactly in the same
              type as integer types instead of using a hardcoded 'i'.  If asked
              to encode a non-integer type as a bitfield, do not abort
              compilation immediately; instead generate an error, then skip the
              type.
              (encode_type): Use a 'switch' instead of a sequence of 'if's.
              Added a 'default' clause that gets executed if the type can not be
              matched, and that encodes it as '?' (unknown) and produces a
              warning.  For the GNU runtime, encode enumerated types exactly in
              the same way as integer types instead of using a hardcoded 'i'.
              Encode long double as 'D'.  Encode 128-bit integers as 'T' or 't'.
              Encode C++ reference types as pointers.  Call encode_vector to
              encode vectors.
              (encode_vector): New function.
      
      2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.  I modified the
              changes to be used only when compiling for the NeXT runtime.
      
              2005-10-10  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4301047
      
              * objc-act.c (encode_type): Remove the hack.
      
              2005-07-20  Ziemowit Laski  <zlaski@apple.com>
      
              Radar 4136935
              * objc-act.c (pointee_is_readonly): New function.
              (encode_pointer, encode_aggregate_within, encode_type):
              Attempt to emulate GCC 3.3 when generating type encodings.
      
      In gcc/testsuite/:
      2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/25464
              * objc.dg/type-size-3.m: New test.
      
      2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/45763
              * objc.dg/encode-1.m: Execute the test with the GNU runtime as
              well.
      
      2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/25450
              * objc.dg/encode-3.m: Updated for fix of encoding of enums.
              * objc.dg/type-size-2.m: Same change.
              * obj-c++.dg/encode-5.mm: Same change.
      
      2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.  The original
              Changelogs are below.
      
              * objc.dg/encode-6.m: Execute the test only with the GNU runtime.
              * objc.dg/encode-6-next.m: New file (from encode-6.m in the
              branch).
              * objc.dg/encode-7-next.m: New file (from encode-7.m in the
              branch).
              * objc.dg/encode-7-next-64bit.m: New file (from encode-7-64bit.m
              in the branch).
              * objc.dg/proto-qual-1.m: Test the 3.3 ABI on NeXT (from
              proto-qual-1.m in the branch) and the normal ABI on GNU.
              * objc.dg/threedotthree-abi-1.m: New file (from the branch).  Run
              the test only with the NeXT runtime.
              * obj-c++/encode-1.mm: Execute the test only with the GNU runtime.
              * obj-c++/encode-1-next.mm: New file (from encode-1.mm in the
              branch).
              * obj-c++.dg/threedotthree-abi-1.mm: New file (from the branch).
              Run the test only with the NeXT runtime.
      
              2006-03-30 Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4492973
              * objc.dg/encode-7-64bit.m: New.
              * objc.dg/encode-7.m: Skip if -m64.
      
              2005-10-19  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4301047
              * objc.dg/proto-qual-1.m: Fix test to match 3.3 ABI
              * obj-c++.dg/threedotthree-abi-1.mm: New
              * objc.dg/threedotthree-abi-1.m: New
      
              2005-07-20  Ziemowit Laski  <zlaski@apple.com>
      
              Radar 4136935
              * obj-c++.dg/encode-1.mm: Tweak encodings to match fix.
              * objc.dg/encode-6.m: Likewise.
              * objc.dg/encode-7.m: New test case.
      
      In libobjc/:
      2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * encoding.c (objc_sizeof_type): Added support for vector type and
              for double long types.
              (objc_alignof_type): Same change.
              (objc_skip_typespec): Same change.
              * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
              instead of '!' since '!' is already used for _C_VECTOR.
              * objc/objc-api.h (_C_LNG_DBL): Added.
      
      From-SVN: r164659
      177b48f9
  19. Sep 26, 2010
    • Kai Tietz's avatar
      sendmsg.c (get_imp): Remove inline. · 7116b6ea
      Kai Tietz authored
      2010-09-26  Kai Tietz  <kai.tietz@onevision.com>
      
      	* sendmsg.c (get_imp):  Remove inline.
      	(objc_msg_lookup): Likewise.
      	(objc_get_uninstalled_dtable): Likewise.
      	* encoding.c (objc_skip_type_qualifiers): Likewise.
      	(objc_skip_offset): Likewise.
      	* archive.c (__objc_write_object): Likewise
      	(__objc_write_class):
      	(__objc_write_selector):
      	(objc_read_char):
      	(objc_read_unsigned_char):
      	(objc_read_short):
      	(objc_read_unsigned_short):
      	(objc_read_int):
      	(objc_read_long):
      	(__objc_read_nbyte_uint):
      	(objc_read_unsigned_int):
      	(objc_read_unsigned_long):
      	* objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
      	(objc_EXPORT): Likewise.
      	* objc/message.h (objc-decls.h): Add include.
      	* objc/objc-api.h: Mark API by objc_EXPORT.
      	* libobjc.def (__objc_responds_to): Removed.
      
      From-SVN: r164632
      7116b6ea
  20. Sep 12, 2010
    • Nicola Pero's avatar
      In libobjc/: · 7b869986
      Nicola Pero authored
              * objc/deprecated/objc_error.h: New file.
              * objc/objc-api.h: Include deprecated/objc_error.h instead of
              defining objc_error and related.
              * error.c: New file.  Added _objc_abort function which replaces
              objc_error.  No change in functionality as they both print an
              error and abort.
              * misc.c: File removed.  Code moved into memory.c and error.c.
              * memory.c: New file.
              * objc-private/error.h: New file.
              * archive.c: Include objc-private/error.h and use _objc_abort
              instead of objc_error everywhere.
              * class.c: Same change.
              * encoding.c: Same change.
              * init.c: Same change, and simplified init_check_module_version.
              * memory.c: Same change.
              * sendmsg.c:  Same change.
              * thr.c: Same change.
              * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
              (OBJ_H): Reordered list.
              (OBJS): Removed misc.lo, added memory.lo and error.lo.
              (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
              (misc_gc.lo): Rule removed.
              (error_gc.lo): Rule added.
              (memory_gc.lo): Rule added.
      
      From-SVN: r164223
      7b869986
  21. Sep 11, 2010
    • Nicola Pero's avatar
      In libobjc/: · 6dead247
      Nicola Pero authored
             * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
              to check the API version.  Added some comments.
      
              * objc-private/common.h: New file.
              * NXConstStr.m: Include objc-private/common.h.
              * Object.m: Same change.
              * Protocol.m: Same change.
              * archive.c: Same change.
              * class.c: Same change.
              * encoding.c: Same change.
              * exception.c: Same change.
              * gc.c: Same change.
              * hash.c: Same change.
              * init.c: Same change.
              * libobjc_entry.c: Same change.
              * linking.m: Same change.
              * misc.c: Same change (and added a comment).
              * nil_method.c: Same change.
              * objects.c: Same change.
              * sarray.c: Same change.
              * selector.c: Same change.
              * sendmsg.c: Same change.
              * thr.c: Same change.
      
      From-SVN: r164218
      6dead247
  22. Sep 06, 2010
    • Iain Sandoe's avatar
      fix libobjc ppc64 abi for darwin. · 265a000d
      Iain Sandoe authored
      libobjc:
      
      	* encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
      	Add a comment as to why, update FIXME comments.
      
      testsuite:
      
      	* objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c:
      	Update XFAILs.
      
      From-SVN: r163906
      265a000d
  23. Nov 28, 2009
    • Jakub Jelinek's avatar
      sarray.c (sarray_free): Use old_buckets variable. · 288d6a77
      Jakub Jelinek authored
      	* sarray.c (sarray_free): Use old_buckets variable.
      	* encoding.c (objc_layout_structure_next_member): Remove unused
      	bfld_type_size variable.
      
      	* decContext.c (decContextTestEndian): Move adj definition into
      	#if DECCHECK guarded code.
      
      From-SVN: r154730
      288d6a77
  24. Apr 09, 2009
  25. May 25, 2008
  26. Nov 01, 2006
    • Geoffrey Keating's avatar
      In gcc/: PR 23067 · 58182de3
      Geoffrey Keating authored
      In gcc/:
      	PR 23067
      	* c-decl.c (start_struct): Don't create self-containing
      	structures.
      	* config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
      	New.
      	* config/rs6000/rs6000-protos.h
      	(darwin_rs6000_special_round_type_align): New.
      	* config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Rewrite.
      	(ROUND_TYPE_ALIGN): Use darwin_rs6000_special_round_type_align.
      In gcc/testsuite/:
      	PR 23067
      	* gcc.target/powerpc/darwin-abi-3.c: Remove XFAIL.
      	* gcc.target/powerpc/darwin-abi-6.c: Remove XFAIL.
      	* gcc.target/powerpc/darwin-abi-7.c: Remove XFAIL.
      	* gcc.target/powerpc/darwin-abi-8.c: Remove XFAIL.
      	* gcc.target/powerpc/darwin-abi-9.c: Remove XFAIL.
      	* gcc.target/powerpc/darwin-abi-10.c: Remove XFAIL.
      	* gcc.target/powerpc/darwin-abi-11.c: Remove XFAIL.
      In libobjc/:
      	* encoding.c (darwin_rs6000_special_round_type_align): New.
      In libffi/:
      	* src/powerpc/ffi_darwin.c (darwin_adjust_aggregate_sizes): New.
      	(ffi_prep_cif_machdep): Call darwin_adjust_aggregate_sizes for
      	Darwin.
      	* testsuite/libffi.call/nested_struct4.c: Remove Darwin XFAIL.
      	* testsuite/libffi.call/nested_struct6.c: Remove Darwin XFAIL.
      
      From-SVN: r118365
      58182de3
  27. Dec 16, 2005
    • Andrew Pinski's avatar
      re PR objc/25360 (Complex types are not encoded) · 06b11455
      Andrew Pinski authored
      2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR objc/25360
              * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
              by the inner type.
      
      2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR objc/25360
              * objc/objc-api.c (_C_COMPLEX): New define.
              * encoding.c (objc_sizeof_type): Handle _C_Complex.
              (objc_alignof_type): Likewise.
              (objc_skip_typespec): Likewise.
      
      From-SVN: r108675
      06b11455
  28. Dec 12, 2005
    • Andrew Pinski's avatar
      re PR libobjc/25354 (There should be an automated testsuite for... · 761c0d29
      Andrew Pinski authored
      re PR libobjc/25354 (There should be an automated testsuite for objc_sizeof_type and objc_alignof_type)
      
      2005-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR libobjc/25354
              * objc.dg/gnu-encoding: New directory.
              * objc.dg/gnu-encoding/compat-common.h: New file.
              * objc.dg/gnu-encoding/struct-layout-1.h: New file.
              * objc.dg/gnu-encoding/struct-layout-1_test.h: New file.
              * objc.dg/gnu-encoding/vector-defs.h: New file.
              * objc.dg/gnu-encoding/gnu-encoding.exp: New file.
              * objc.dg/gnu-encoding/generate-random.c: New file.
              * objc.dg/gnu-encoding/generate-random_r.c: New file.
              * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c: New file.
              * objc.dg/gnu-encoding/generate-random.h: New file.
      
      
      2005-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
      
              * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and        the name.
              (get_inner_array_type): Fix to skip over _C_ARY_B and size.
              (rs6000_special_round_type_align): Update for the ABI fix.
              (objc_layout_finish_structure): Correct the encoding which is passed to
              ROUND_TYPE_ALIGN.
      
      From-SVN: r108398
      761c0d29
  29. Dec 11, 2005
    • Andrew Pinski's avatar
      re PR libobjc/25347 (objc_alignof_type gets the wrong alignment for unions... · 4540a3ad
      Andrew Pinski authored
      re PR libobjc/25347 (objc_alignof_type gets the wrong alignment for unions (objc_sizeof_type is wrong also too))
      
      2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR libobjc/25347
              * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
              but use the struct layout functions.
              (objc_alignof_type): Likewise.
              (objc_layout_structure): Handle _C_UNION_B also.
              (objc_layout_structure_next_member): Likewise.
              (objc_layout_finish_structure): Likewise.
      
      2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR libobjc/25347
              * objc.dg/encode-8.m: New test.
      
      From-SVN: r108379
      4540a3ad
    • Andrew Pinski's avatar
      re PR libobjc/25346 (objc_sizeof_type does not handle _Bool at all) · 153b4898
      Andrew Pinski authored
      2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR libobjc/25346
              * objc/objc-api.h (_C_BOOL): New define.
              * encoding.c (objc_sizeof_type): Handle _C_BOOL.
              (objc_alignof_type): Likewise.
              (objc_skip_typespec): Likewise.
      
      2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR libobjc/25346
              * objc.dg/encode-7.m: New test.
      
      From-SVN: r108378
      153b4898
  30. Aug 17, 2005
  31. Jun 07, 2005
    • David Ayers's avatar
      archive.c, [...]: Include hash.h. · 348a3445
      David Ayers authored
      2005-06-07  David Ayers  <d.ayers@inode.at>
      
      	* archive.c, init.c, selector.c: Include hash.h.
      	* archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
      	init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
      	sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
      	thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
      	thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
      	Include Objective-C headers with quotes and objc/ directory
      	prefix.
      
      From-SVN: r100723
      348a3445
  32. Sep 16, 2004
  33. Jun 28, 2004
    • Zack Weinberg's avatar
      cp-demangle.h: Declare cplus_demangle_operators... · 0cf61401
      Zack Weinberg authored
      libiberty:
      	* cp-demangle.h: Declare cplus_demangle_operators,
      	cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
      	cplus_demangle_type as static if IN_GLIBCPP_V3.
      libobjc:
      	* encoding.c: Rename target_flags with a #define to avoid
      	conflict with a prior declaration.
      
      From-SVN: r83800
      0cf61401
  34. Jun 21, 2004
  35. May 25, 2004
    • Andrew Pinski's avatar
      [multiple changes] · 435317e2
      Andrew Pinski authored
      2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
      
      	Merge from the libobjc-branch
      	2004-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
      
      		* Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
      
      	2004-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
      
      		* Makefile.in (OBJC_H): Add objc-deps.h.
      
      	2004-01-27  Nicola Pero  <n.pero@mi.flashnet.it>
      
      		* Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
      		([-hash], [-isEqual:]): New methods.
      
      	2004-01-27  Richard Frith-Macdonald <rfm@gnu.org>
      
      		* sarray.c (sarray_free): Add a better comment.
      
      	2004-01-27  Adam Fedor  <fedor@gnu.org>
      
      		* hash.c (hash_add): Cast cachep to int.
      		* selector.c (__sel_register_typed_name): Cast
      		soffset_decode to int.
      
      	2004-01-27  Alexander Malmberg  <alexander@malmberg.org>
      
      		* selector.c: Rename register_selectors_from_list to
      		__objc_register_selectors_from_list. Update caller.
      		(__objc_register_selectors_from_list): Lock __objc_runtime_mutex
      		while registering selectors. Use __sel_register_typed_name instead
      		of sel_register_typed_name. Check for NULL method_name:s.
      		(pool_alloc_selector): New function.
      		(__sel_register_typed_name): Use pool_alloc_selector to allocate
      		selector structures.
      		* sendmsg.c (class_add_method_list): Use
      		__objc_register_selectors_from_list.
      		* objc/runtime.h: Add __objc_register_selectors_from_list.
      
      	2004-01-25  Adam Fedor  <fedor@gnu.org>
      	            Nicola Pero  <n.pero@mi.flashnet.it>
      	            Andrew Pinski  <pinskia@physics.uc.edu>
      
      		* objc/objc-decls.h: New file.
      		* objc/objc-api.h (_objc_lookup_class): Mark as export.
      		(_objc_load_callback): Likewise.
      		(_objc_object_alloc): Likewise.
      		(_objc_object_copy): Likewise.
      		(_objc_object_dispose): Likewise.
      
      	2004-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
      
      		* archive.c: s/__inline__/inline
      		* sendmsg.c: Likewise.
      
      		* encoding.c: Remove FIXME about the warning
      		about unused variable.
      		* sendmsg.c: Add a FIXME comment saying that
      		this should be using libffi.
      
      		* Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
      
      From-SVN: r82253
      435317e2
  36. Jan 17, 2004
    • Andrew Pinski's avatar
      re PR target/10781 (wrong class size and alignment with static class member) · 95727fb8
      Andrew Pinski authored
      2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR target/10781
              * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
              Prototype.
              * config/rs6000/rs6000.c (rs6000_special_round_type_align):
              New function.
              * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
              * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
              * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
      
      2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR target/10781
              * encoding.c (rs6000_special_round_type_align): Define.
      
      From-SVN: r76043
      95727fb8
Loading