[PR67828] don't unswitch on default defs of non-parms
[official-gcc.git] / libobjc / ChangeLog
blob8aa2a217844df9eaad743bc2d55b50aa8797dd8a
1 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3         PR libobjc/24775
4         * sendmsg.c (tm.h): Remove include.
6 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8         PR libobjc/24775
9         * sendmsg.c (gen_rtx): Remove macro.
10         (gen_rtx_MEM): Likewise.
11         (gen_rtx_REG): Likewise.
12         (rtx): Likewise.
14 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16         PR libobjc/24775
17         * sendmsg.c: Remove check of STRUCT_VALUE macro.
19 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
21         * configure.ac: Remove manual SJLJ check.
22         * config.h.in: Regenerate.
23         * configure: Likewise.
24         * exception.c: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__.
26 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28         * aclocal.m4: Regenerated with automake-1.11.6.
30 2015-05-04  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32         * configure: Regenerate.
34 2015-05-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
36         * acinclude.m4: Include bitfields.m4.
37         * config.h.in: Regenerate.
38         * configure: Likewise.
39         * configure.ac: Invoke gt_BITFIELD_TYPE_MATTERS.
40         * encoding.c: Check HAVE_BITFIELD_TYPE_MATTERS.
42 2015-04-29  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
44         * encoding.c (objc_layout_structure_next_member): Check the value of
45         PCC_BITFIELD_TYPE_MATTERS not if it is defined.
47 2015-02-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
49         PR libobjc/63765
50         * thr.c (_XOPEN_SOURCE): Remove.
52 2015-01-27  Matthias Klose  <doko@ubuntu.com>
54         * sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp.
56 2015-01-09  Dimitris Papavasiliou  <dpapavas@gmail.com>
58         PR libobjc/51891
59         * ivars.c: Add a check for classes without instance
60         variables, which have a NULL ivar list pointer.
62 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
64         Update copyright years.
66 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
68         PR bootstrap/63784
69         * configure: Regenerated.
71 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
73         PR target/63610
74         * configure: Regenerate.
76 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
78         * thr.c (_XOPEN_SOURCE): Define as 600.
80 2014-07-27  Alan Modra  <amodra@gmail.com>
81             Matthias Klose  <doko@ubuntu.com>
83         PR libobjc/61920
85         * encoding.c: Define rs6000_special_adjust_field_align_p.
87 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
89         Update copyright years
91 2013-09-20  Alan Modra  <amodra@gmail.com>
93         * configure: Regenerate.
95 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
97         * class.c: Fix typos.
98         * encoding.c: Likewise.
99         * init.c: Likewise.
100         * objc-private/runtime.h: Likewise.
101         * objc/runtime.h: Likewise.
102         * objc-sync.c: Likewise.
104 2013-07-04  Kai Tietz  <ktietz@redhat.com>
106         * exception.c: Add check for SjLj to SEH blocks.
108 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
110         Update copyright years.
112 2012-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
114         * encoding.c (TARGET_VSX): Provide definitions based on the
115         current compilation options, and not based off the target options
116         structure.
117         (TARGET_ALTIVEC): Likewise.
118         (TARGET_64BIT): Likewise.
120 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
122         * configure: Regenerated.
124 2012-07-19  Tristan Gingold  <gingold@adacore.com>
125             Richard Henderson  <rth@redhat.com>
127         * exception.c (__gnu_objc_personality_seh0): New function.
129 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
131         * configure: Regenerated.
133 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
135         * configure.ac (enable_objc_gc): Remove alpha*-dec-osf* handling.
136         * configure: Regenerate.
138         * thr.c (_XOPEN_SOURCE): Define unconditionally.
140 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
142         * configure: Regenerate.
144 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
146         * Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
147         * configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
148         * configure: Regenerate.
149         * config.h.in: Regenerate.
151 2011-10-17  Paul Brook  <paul@codesourcery.com>
152             Matthias Klose  <doko@ubuntu.com>
154         * exception.c (parse_lsda_header): hardcode ttype_encoding for older
155         ARM EABI toolchains.
156         (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
158 2011-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>
160         PR libobjc/49883
161         * init.c (__objc_exec_class): Work around a bug in clang's code
162         generation.  Clang sets the class->info field to values different
163         from 0x1 or 0x2 (the only allowed values in the traditional GNU
164         Objective-C runtime ABI) to store some additional information, but
165         this breaks backwards compatibility.  Wipe out all the bits in the
166         fields other than the first two upon loading a class.
168 2011-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>
170         * class.c (objc_lookup_class): Added back for compatibility with
171         clang which seems to emit calls to it.
173 2011-10-08  Richard Frith-Macdonald <rfm@gnu.org>
174             Nicola Pero  <nicola.pero@meta-innovation.com>
176         PR libobjc/50428
177         * sendmsg.c (__objc_send_initialize): If a class does not have an
178         +initialize method, search for an +initialize method in the
179         superclass and in the ancestor classes and execute the first one
180         that is found.  This makes the GNU runtime behave in the same way
181         as the Apple/NeXT runtime with respect to +initialize methods and
182         subclassing.
184 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
186         PR libobjc/50002
187         * class.c (__objc_update_classes_with_methods): Iterate over meta
188         classes as well as normal classes when refreshing the method
189         implementations.  This fixes replacing class methods.
191 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
193         * class.c (class_getSuperclass): Fixed to work with meta classes
194         still in construction too.
196 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
198         * class.c (class_getSuperclass): Fixed typo in comment.
199         
200 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
202         PR libobjc/49882
203         * class.c (class_getSuperclass): Return the superclass if the
204         class is in construction.
205         * objc/runtime.h (class_getSuperclass): Updated documentation.
207 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
209         * Makefile.in (INCLUDES): Search
210         $(srcdir)/$(MULTISRCTOP)../libgcc.
212 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
214         * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
216 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
218         * configure.ac (VERSION): Bumped to 4:0:0.
219         * configure (VERSION): Likewise.
221 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
223         * objc/README: Updated.
224         * objc-private/selector.h: Updated comments.
225         
226 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
228         * sendmsg.c (class_get_instance_method): Removed.
229         (class_get_class_method): Removed.
230         (objc_get_uninstalled_dtable): Removed.
232 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
234         * objc-private/module-abi-8.h (class_get_instance_size): Removed.
235         * objects.c (class_create_instance): Removed.
236         * error.c (__USE_FIXED_PROTOTYPES__): Removed.
237         * gc.c (__objc_generate_gc_type_description): Use
238         class_getInstanceSize() instead of class_get_instance_size().
239         * selector.c (sel_types_match): Made static.
240         (sel_get_typed_uid): Removed.
241         (sel_get_any_typed_uid): Removed.
242         (sel_get_name): Removed.
243         (sel_get_type): Removed.
244         (sel_register_name): Removed.
245         (sel_register_typed_name): Removed.
246         (sel_get_uid): Removed.
248 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
250         * encoding.c (method_get_number_of_arguments): Removed.
251         (method_get_sizeof_arguments): Removed.
253 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
255         * class.c (objc_next_class): Removed.
256         (class_pose_as): Removed.
257         (CLASSOF): Removed.
258         (class_table_replace): Removed.
259         (objc_lookup_class): Removed.
261 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
263         Removed the Traditional Objective-C runtime public API.
264         * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
265         (install-headers): Do not create the objc/deprecated directory and
266         do not install the deprecated headers.
267         (OBJC_H): Removed encoding.h and objc-api.h.
268         * Object.m: Removed all methods with the exception of -class and
269         -isEqual:.  Updated includes.  ([-class]): Use Modern API.
270         * objc/Object.h: Do not include deprecated/Object.h.
271         * objc/deprecated/Object.h: Removed.
272         * linking.m (__objc_linking): Call [Object class] instead of
273         [Object name].
274         * Protocol.m: Removed all methods with the exception of -isEqual:.
275         Updated includes.
276         * objc/Protocol.h: Do not include deprecated/Protocol.h.
277         * objc/deprecated/Protocol.h: Removed.
278         * objc/deprecated/struct_objc_symtab.h: Removed.
279         * objc/deprecated/struct_objc_module.h: Removed.
280         * objc/deprecated/struct_objc_ivar.h: Removed.
281         * objc/deprecated/struct_objc_ivar_list.h: Removed.
282         * objc/deprecated/struct_objc_method.h: Removed.
283         * objc/deprecated/struct_objc_method_list.h: Removed.
284         * objc/deprecated/struct_objc_protocol_list.h: Removed.
285         * objc/deprecated/struct_objc_category.h: Removed.
286         * objc/deprecated/MetaClass.h: Removed.
287         * objc/deprecated/objc_msg_sendv.h: Removed.  
288         * objc/deprecated/README: Removed.
289         * objc/deprecated/struct_objc_class.h: Removed.
290         * objc/deprecated/struct_objc_protocol.h: Removed.
291         * objc/deprecated/struct_objc_selector.h: Removed.
292         * objc/encoding.h: Removed.
293         * objc/message.h (struct objc_super): Removed the definition for
294         the Traditional Objective-C runtime API.
295         * objc/objc.h: Do not include objc/objc-decls.h.
296         deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
297         deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
298         and deprecated/objc_msg_sendv.h.  Uncommented new definition of
299         Protocol *.
300         * objc/objc-api.h: Removed.
301         * objc/runtime.h: Updated comments.  Removed check to detect
302         concurrent usage of Traditional and Modern APIs.
303         * objc-private/module-abi-8.h: Always define struct objc_class and
304         struct objc_protocol.  (struct objc_protocol_list): Changed type
305         of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
306         (class_get_instance_size): Added.
307         * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
308         'struct objc_protocol *' as argument, not a 'Protocol *'.
309         * objc-private/runtime.h: Updated comments.
310         * objc-private/selector.h (struct objc_selector, sel_eq): Added.
311         * class.c: Include objc-private/selector.h.
312         (objc_get_meta_class): Return a Class instead of a MetaClass.
313         * encoding.c (method_get_next_argument): Removed.
314         (method_get_first_argument): Removed.
315         (method_get_nth_argument): Removed.
316         * gc.c: Include objc/runtime.h instead of objc/encoding.h.
317         Include objc-private/module-abi-8.h and ctype.h.
318         * protocols.c (__objc_protocols_add_protocol): Take a 'struct
319         objc_protocl *' as argument, not a 'Protocol *'.
320         (class_addProtocol): Added casts to 'struct objc_protocol *' and
321         'Protocol *'.
322         (class_copyProtocolList): Likewise.
323         (protocol_conformsToProtocol): Likewise.
324         (protocol_copyProtocolList): Likewise.
325         * sarray.c: Include objc-private/module-abi-8.h.
326         * sendmsg.c (method_get_next_argument): Removed.
327         (method_get_first_argument): Removed.
328         (method_get_nth_argument): Removed.
329         (objc_msg_sendv): Removed.
330         (arglist_t, retval_t): New.  (class_get_class_method): Take a
331         'Class', not 'MetaClass', argument.
332         * thr.c: Include module-abi-8.h.
333         
334 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
336         * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
337         and objc_get_uninstalled_dtable.h.
338         * objc/deprecated/struct_objc_static_instances.h: Removed.
339         * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.       
340         * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
341         and deprecated/objc_get_uninstalled_dtable.h.
342         
343 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
345         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
346         * objc/deprecated/objc_object_alloc.h: Removed.
347         * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
348         * objects.c (_objc_object_alloc, _objc_object_dispose,
349         _objc_object_copy): Removed.
350         * libobjc.def (__objc_object_alloc, __objc_object_copy,
351         __objc_object_dispose): Removed.
352         
353 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
355         * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
356         * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
357         * objc/deprecated/METHOD_NULL.h: Removed.
358         
359 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
361         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
362         objc_malloc.h and objc_unexpected_exception.h.
363         (exception.lo): Do not use -Wno-deprecated-declarations.
364         (exception_gc.lo): Likewise.
365         * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
366         deprecated/objc_malloc.h and
367         deprecated/objc_unexpected_exception.h.
368         * objc/deprecated/objc_valloc.h: Removed.
369         * objc/deprecated/objc_malloc.h: Removed.
370         * objc/deprecated/objc_unexpected_exception.h: Removed.
371         * exception.c (_objc_unexpected_exception): Removed.
372         (objc_exception_throw): Do not check for
373         _objc_unexpected_exception.
374         * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
375         _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.        
376         * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
377         
378 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
380         * objc/objc.h: Do not include deprecated/STR.h.
381         * objc/deprecated/STR.h: Removed.
382         * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
383         
384 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
386         * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
387         (OBJC_DEPRECATED_H): Likewise.
388         * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
389         objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
390         objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
391         hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
392         sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
393         sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
394         * objc/sarray.h: Removed.
395         * objc/hash.h: Removed.
396         * objc/deprecated/sarray.h: Removed.
397         * objc/deprecated/hash.h: Removed.
398         * objc/Object.h: Do not include objc/deprecated/hash.h
399         * Object.m: Include string.h.
400         * objc/objc-api.h: Do not include objc/deprecated/hash.h.
401         * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
402         Removed.
404 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
406         * Object.m ([-forward::]): Removed.
407         * objc/deprecated/Object.h ([-forward::]): Removed.
408         * sendmsg.c (__objc_forward): Updated comments.
409         
410 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
412         * Makefile.in (OBJC_H): Removed objc-list.h.
413         (OBJC_DEPRECATED_H): Removed objc-list.h.
414         * objc/objc-list.h: File removed.
415         * objc/deprecated/objc-list.h: File removed.
417 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
419         * Makefile.in (OBJC_H): Removed typedstream.h.
420         (OBJC_DEPRECATED_H): Removed typedstream.h.
421         (C_SOURCE_FILES): Removed archive.c.
422         (Object.lo): Rule removed.
423         (Object_gc.lo): Likewise.
424         (archive.lo): Likewise.
425         (archive_gc.lo): Likewise.
426         * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
427         [-awake]): Removed.
428         Do not include deprecated/typedstream.h.
429         * Object.m: Removed the same methods.
430         * archive.c: File removed.
431         * objc/typedstream.h: File removed.
432         * objc/deprecated/typedstream.h: File removed.
433         * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
434         __objc_write_class, __objc_write_object, __objc_write_selector,
435         objc_close_typed_stream, objc_end_of_typed_stream,
436         objc_flush_typed_stream, objc_get_stream_class_version,
437         objc_open_typed_stream, objc_open_typed_stream_for_file,
438         objc_read_array, objc_read_char, objc_read_int, objc_read_long,
439         objc_read_object, objc_read_selector, objc_read_short,
440         objc_read_string, objc_read_type, objc_read_types,
441         objc_read_unsigned_char, objc_read_unsigned_int,
442         objc_read_unsigned_long, objc_read_unsigned_short,
443         objc_write_array, objc_write_char, objc_write_int,
444         objc_write_long, objc_write_object, objc_write_object_reference,
445         objc_write_root_object, objc_write_selector, objc_write_short,
446         objc_write_string, objc_write_string_atomic, objc_write_type,
447         objc_write_types, objc_write_unsigned_char,
448         objc_write_unsigned_int, objc_write_unsigned_long,
449         objc_write_unsigned_short): Removed.
450         
451 2011-06-02  Nicola Pero  <nicola.pero@meta-innovation.com>
453         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
454         * objc/deprecated/objc_error.h: Removed.
455         * objc/objc-api.h: Do not include deprecated/objc_error.h.
456         * libobjc.def (objc_error, objc_verror): Removed.
457         * error.c (_objc_error_handler, objc_error, objc_verror,
458         objc_set_error_handler): Removed.
459         * Object.m ([-error:], [-perform:], [-perform:with:],
460         [-perform:with:with], [-subclassResponsibility:],
461         [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
462         Removed.
463         * objc/deprecated/Object.h: Removed the same methods.
464         * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
465         method after trying to invoke the "doesNotRecognize:" method.
466         
467 2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>
469         * sendmsg.c: Reindented part of the file.  No non-trivial changes
470         in code.
472 2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>
474         * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
475         not objc_lookup_class.
477 2011-05-25  Richard Frith-Macdonald <rfm@gnu.org>
478             David Ayers  <ayers@fsfe.org>
480         PR libobjc/38307
481         * sendmsg.c: Include objc/hash.h.
482         (get_implementation): New function, mostly with code from get_imp
483         updated to support the new +initialize dispatch table logic.
484         (get_imp): Use get_implementation.
485         (__objc_responds_to): Updated to support the new +initialize
486         dispatch table logic.
487         (class_respondsToSelector): Likewise.
488         (objc_msg_lookup): Use get_implementation.
489         (__objc_init_install_dtable): Removed.
490         (__objc_install_methods_in_dtable): Updated arguments.
491         (__objc_install_dispatch_table_for_class): Renamed to
492         __objc_install_dtable_for_class and updated to support the new
493         +initialize dispatch table logic.
494         (__objc_update_dispatch_table_for_class): Updated to support the
495         new +initialize dispatch table logic.
496         (__objc_forward): Call get_implementation instead of get_imp.
497         (prepared_dtable_table): New.
498         (__objc_prepare_dtable_for_class): New. 
499         (__objc_prepared_dtable_for_class): New.
500         (__objc_get_prepared_imp): New.
501         (__objc_install_prepared_dtable_for_class): New.
502         
503 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
505         PR libobjc/48177
506         * selector.c (__sel_register_typed_name): Use sel_types_match()
507         instead of strcmp() to compare selector types (Suggestion by
508         Richard Frith-Macdonald <rfm@gnu.org>).
510 2011-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
512         PR libobjc/32037
513         * Makefile.in (OBJC_GCFLAGS): Move ...
514         * configure.ac (enable_objc_gc): ... here.
515         Add $(libsuffix) to OBJC_BOEHM_GC.
516         * configure: Regenerate.
518 2011-02-28  Nicola Pero  <nicola.pero@meta-innovation.com>
519         
520         * selector.c (sel_getTypedSelector): Return NULL if there are
521         multiple selectors with conflicting types.
522         * objc/runtime.h (sel_getTypedSelector): Updated documentation.
523         
524 2011-02-28  Richard Frith-Macdonald <rfm@gnu.org>
526         PR libobjc/47922
527         * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
528         a hardcoded "!".
530 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
532         * configure: Regenerate.
534 2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>
536         * init.c (create_tree_of_subclasses_inherited_from): Use
537         class_superclass_of_class instead of assuming a class is
538         unresolved when it could be resolved.  Tidied up assignment and
539         check.
540         (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
541         (objc_tree_insert_class): Tidied up loop; return immediately upon
542         inserting a class.
543         (__objc_exec_class): Do not set __objc_class_tree_list.
544         
545 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
547         * selector.c (sel_getTypedSelector): Return NULL if given a NULL
548         argument.
549         (sel_registerTypedName): Same.
550         (sel_registerName): Same.
551         * objc/runtime.h: Updated documentation.
552         
553 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
555         * objc/runtime.h (class_addIvar): Updated documentation.  The
556         alignment is actually the log_2 of the alignment in bytes.
557         * ivars.c (class_addIvar): Corresponding change to the
558         implementation.
559         
560 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
562         * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
563         be consistent with method_getTypeEncoding and
564         ivar_getTypeEncoding.
565         (sel_copyTypedSelectorList, sel_getTypedSelector): New.
566         * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
567         (sel_copyTypedSelectorList, sel_getTypedSelector): New.
568         (sel_get_type): Updated call to sel_getType.
569         
570 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
572         * objc/runtime.h (class_conformsToProtocol,
573         class_copyProtocolList): Updated documentation.
575 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
577         * init.c (create_tree_of_subclasses_inherited_from): Updated
578         DEBUG_PRINTF messages.
579         (__objc_tree_insert_class): Same.
580         (__objc_send_load_using_method_list): Same.
581         (__objc_send_load): Same.
582         (__objc_exec_class): Same.  In particular, do not print the module
583         name since it is no longer used.
584         * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
585         tracking +initialize calls.
586         (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
587         tracking updates of dispatch tables.
588         (__objc_install_dispatch_table_for_class): Same.
589         
590 2010-12-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
592         * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
593         (libobjc_gc$(libsuffix).la): Likewise.
595 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
597         * sendmsg.c (class_addMethod): Return NO if the method already
598         exists in the class.
600 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
602         * init.c (duplicate_classes): New.
603         (__objc_exec_class): Initialize duplicate_classes.
604         (__objc_create_classes_tree): Ignore classes in the
605         duplicate_classes table.
606         (__objc_call_load_callback): Same.
607         (__objc_init_class): If a duplicate class is found, add it to
608         duplicate_classes instead of aborting.  Return YES if the class is
609         not a duplicate, and NO if it is.
610         * objc-private/runtime.h (__objc_init_class): Updated prototype.
612 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
614         * objc-private/objc-list.h: Reindented file.  No code changes.
615         * objc-private/sarray.h: Same change.
617 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
619         * objc-private/accessors.h: Removed 'extern "C"' guards.  This
620         file is never compiled with C++.
621         * objc-private/hash.h: Same change.
622         * objc-private/objc-list.h: Same change.
623         * objc-private/objc-sync.h: Same change.
624         * objc-private/protocols.h: Same change.
625         * objc-private/runtime.h: Same change.
626         * objc-private/sarray.h: Same change.
627         * objc-private/selector.h: Same change.
629 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
631         PR libobjc/18764
632         * class.c (__objc_add_class_to_hash): Return YES if the class was
633         added, and NO if it already existed.
634         * init.c (__objc_init_class): If __objc_add_class_to_hash returns
635         NO, then abort the program with an error message.
636         * objc-private/runtime.h (__objc_add_class_to_hash): Updated
637         declaration.
639 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>      
641         * init.c (_objc_load_callback): Initialize with 0.
642         (__objc_call_callback): Renamed to __objc_call_load_callback.
643         Check _objc_load_callback only once, and if it is not set, return
644         immediately.
645         (objc_send_load): Updated call to __objc_call_callback.
646         
647 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
649         PR libobjc/16110
650         * init.c (__objc_send_message_in_list): Renamed to
651         __objc_send_load_using_method_list.  Do not take an 'op' argument.
652         Register the 'load' selector if needed.
653         (__objc_send_load): Do not register the 'load' selector.  Updated
654         call to __objc_send_message_in_list.
655         (__objc_create_classes_tree): Add the class of any claimed
656         category that was loaded in the module to the list of classes for
657         which we try to execute +load.
658         
659 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
661         * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
662         Updated comments.
663         * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
664         a pointer using DEBUG_PRINTF.
665         
666 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
668         PR libobjc/45953
669         * selector.c (__sel_register_typed_name): When registering a new
670         selector with the same name as an existing one, reuse the existing
671         name string.  Also updated types, casts and comments in the whole
672         function.
674 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
676         * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
677         to be 'struct objc_selector *' and not 'SEL'.
678         * init.c (__objc_exec_class): Call
679         __objc_register_selectors_from_module instead of iterating over
680         each selector and calling __sel_register_typed_name for each.
681         * objc-private/selector.h: Declare
682         __objc_register_selectors_from_module instead of
683         __sel_register_typed_name.
684         * selector.c (__objc_register_selectors_from_module): New.
685         (__sel_register_typed_name): Made static.
686         
687 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
689         * linking.m: Do not include objc/NXConstStr.h.
691 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
692         
693         * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
694         * objc-private/common.h (DEBUG_PRINTF): To here.
695         * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
696         
697 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
699         * hash.c: Tidied up comments and indentation.  No code changes.
701 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
703         PR libobjc/47012
704         * accessors.m (objc_getProperty): If not atomic, do not
705         retain/autorelease the returned value.
707 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
709         * objc-private/runtime.h (__objc_selector_max_index,
710         __objc_init_selector_tables, __objc_register_selectors_from_class,
711         __objc_register_selectors_from_list,
712         __objc_register_selectors_from_description_list): Moved to ...
713         * objc-private/selector.h: ... here.
715 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
717         * objc-private/runtime.h (__objc_class_links_resolved): Removed.
718         (__objc_print_dtable_stats): Removed.
719         (__sel_register_typed_name): Removed.
720         * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
721         
722 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
724         * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
725         if appropriate, after loading the module.
727 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
729         * sendmsg.c (method_setImplementation): Do not declare.
731 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
733         * objc/message.h: Updated comments.
734         * objc/runtime.h: Updated comments.
735         
736 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
738         * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
739         * protocols.c: Updated all calls to objc_lookupClass to call
740         objc_lookUpClass instead.
741         * sendmsg.c (objc_lookupClass): Do not declare.
742         (get_imp): Update call to objc_lookupClass to call
743         objc_lookUpClass instead.
744         * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
746 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
748         * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
749         * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
750         define.  Updated comments.
751         
752 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
754         * objc/encoding.h: Updated comments.
755         * objc/runtime.h: Updated comments.
756         (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
757         (objc_sizeof_type): Same.
758         (objc_alignof_type): Same.
759         (objc_aligned_size): Same.
760         (objc_promoted_size): Same.
761         (objc_skip_type_qualifiers): Same.
762         (objc_skip_typespec): Same.
763         (objc_skip_offset): Same.
764         (objc_skip_argspec): Same.
765         (objc_get_type_qualifiers): Same.
766         (objc_layout_structure): Same.
767         (objc_layout_structure_next_member): Same.
768         (objc_layout_finish_structure): Same.
769         (objc_layout_structure_get_info): Same.
770         
771 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
773         * init.c: Updated comments.
774         * objc/objc-api.h: Updated comments.
775         * objc/runtime.h (_objc_load_callback): Declare.
776         
777 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
779         * objc/Object.h: Include deprecated/typedstream.h and
780         deprecated/hash.h instead of typedstream.h.  Updated comments.
782 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
784         * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
785         * objc/deprecated/objc_msg_sendv.h: New.
786         * objc/message.h: Do not define retval_t, apply_t, arglist,
787         arglist_t, objc_msg_sendv, now in
788         objc/deprecated/objc_msg_sendv.h.
789         * objc/objc.h: Do not include message.h; include
790         objc/deprecated/objc_msg_sendv.h instead.  Tidied up comments.
791         * sendmsg.c: Include objc/message.h.
792         * thr.c: Include objc/message.h.
793         
794 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
796         * objc/objc-exception.h: Include objc-decls.h.  Mark all
797         functions with objc_EXPORT.
798         * objc/objc-sync.h: Same change.
800 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
802         * Protocol.m: Moved all methods, with the exception of -isEqual:,
803         into the 'Deprecated' category.
804         * objc/Protocol.h: Removed all methods, moved to
805         objc/deprecated/Protocol.h.  Include objc/deprecated/Protocol.h.
806         * objc/deprecated/Protocol.h: New.
807         * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
808         
809 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
811         * init.c: Include objc-private/selector.h.  Do not declare
812         __sel_register_typed_name.
813         * objc-private/selector.h (__sel_register_typed_name): Declare.
814         * selector.c: Include objc-private/selector.h.
815         
816 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
818         * class.c: Tidied up comments and indentation.  No code changes.
819         * error.c: Same.
820         * exception.c: Same.
821         * init.c: Same.
822         * ivars.c: Same.
823         * memory.c: Same.
824         * objc-foreach.c: Same.
825         * objc-sync.c: Same.
826         * objects.c: Same.
827         * protocols.c: Same.
828         * sarray.c: Same.
829         * thr.c: Same.
831 2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>
833         * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
834         instead of objc/objc-api.h.
835         (init_check_module_version): Take a 'struct objc_module *'
836         argument instead of 'Module_t'.  Use 'struct objc_module *'
837         instead of 'Module_t'.
838         (__objc_created_classes_tree): Take a 'struct objc_module *'
839         argument instead of 'Module_t'; use 'struct objc_symtab *' instead
840         of 'Symtab_t'.
841         (__objc_call_callback): Take a 'struct objc_module *' argument
842         instead of 'Module_t'; use 'struct objc_symtab *' instead of
843         'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
844         (_objc_load_callback): Take a 'struct objc_category *' argument
845         instead of 'Category *'.
846         (class_superclass_of_class): Use objc_getClass() instead of
847         objc_lookup_class().
848         (create_tree_of_subclasses_inherited_from): Same change (also, use
849         an explicit 'if' instead of '?').
850         (objc_init_statics): Same change.
851         (objc_send_load): Same change.
852         (__objc_init_protocol): same change.
853         (__objc_send_message_in_list): Take a 'struct objc_method_list *'
854         argument instead of 'MethodList_t'.  Use 'struct objc_method *'
855         instead of 'Method_t'.
856         (__objc_send_load): Use 'struct objc_method_list *' instead of
857         'MethodList_t'.  Use sel_registerName() instead of
858         sel_register_name().
859         (__objc_exec_class): Take a 'struct objc_module *' argument
860         instead of 'Module_t'.  Use 'struct objc_symtab *' instead of
861         'Symtab_t'.  Use objc_getClass() instead of objc_lookup_class().
862         Use 'struct objc_category *' instead of 'Category_t'.
863         
864 2010-12-16  Nicola Pero  <nicola.pero@meta-innovation.com>
866         * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
867         Include objc-private/module-abi-8.h and objc-private/selector.h
868         instead of objc/encoding.h.
869         (objc_msg_lookup_super): Use super->super_class instead of
870         super->class.
871         (method_get_first_argument, method_get_next_argument): Declare
872         locally.
873         (class_get_instance_method): Declare before using.
874         (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
875         (__objc_init_dispatch_tables, __objc_send_initialize): Use
876         sel_registerName() instead of sel_register_name().
877         (__objc_forward): Use sel_getName() instead of sel_get_name().
878         (objc_get_uninstalled_dtable): Use 'void' as argument.
879         * objc-private/selector.h: New.
881 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
883         * objc/message.h (objc_super): When using the modern API, do not
884         define Super and Super_t, and always use 'super_class' for the
885         super class field.      
886         (objc_msg_lookup_super): Updated prototype to use 'struct
887         objc_super *' instead of 'Super_t'.
888         * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
889         'struct objc_super *' instead of 'Super_t'.
891 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
893         * objc/message.h: Update comments, reindented code and moved
894         deprecated types and functions at the end of the file.  No code
895         changes.
897 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
899         * ivars.c (class_addIvar): Use the 'size' argument instead of
900         trying to calculate it using objc_sizeof_type().
901         * objc/runtime.h (class_addIvar): Updated comments.
902         
903 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
905         * sendmsg.c: Reindented some code and tidied up comments.  No
906         actual code changes.
907         
908 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
910         * objc/Object.h: Moved all the methods, with the exception of
911         -class and -isEqual:, into ...
912         * objc/deprecated/Object.h: here.
913         * Object.m: Moved all the methods, with the exception of -class
914         and -isEqual: into the 'Deprecated' category.
916 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
918         * objects.c (object_copy): Do not #undef as we are no longer
919         including objc/objc-api.h.
920         * selector.c: Include objc/runtime.h and
921         objc-private/module-abi-8.h.  Do not include objc/objc-api.h and
922         objc/encoding.h.  Updated
923         (__objc_register_selectors_from_class): Use struct
924         objc_method_list * instead of MethodList_t.
925         (__objc_register_selectors_from_list): Use Method instead of
926         Method_t.
927         (struct objc_method_description_list): Do not define here.
928         (__objc_register_instance_methods_to_class): Use struct
929         objc_method_list * instead of MethodList_t and Method instead of
930         Method_t.
931         
932 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
934         * selector.c: Reindented some code and tidied up comments.  No
935         actual code changes.
937 2010-12-13  Iain Sandoe  <iains@gcc.gnu.org>
939         * encoding.c (_darwin_rs6000_special_round_type_align): New.
940         (darwin_rs6000_special_round_type_align): Adjust to use new routine.
942 2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>
944         * sendmsg.c (selector_resolveClassMethod): New.
945         (selector_resolveInstanceMethod): New.
946         (__objc_resolve_class_method): New.
947         (__objc_resolve_instance_method): New.
948         (get_imp): Call __objc_resolve_class_method or
949         __objc_resolve_instance_method at the appropriate time.
950         (objc_msg_lookup): Same.
951         (class_getClassMethod): Same.   
952         (class_getInstanceMethod): Same.
953         (__objc_init_dispatch_tables): Initialize
954         selector_resolveClassMethod and selector_resolveInstanceMethod.
955         * objc/runtime.h: Updated documentation of class_getClassMethod,
956         class_getInstanceMethod and class_getMethodImplementation.
957         
958 2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>
960         * objc-private/module-abi-8.h (struct objc_symtab): Updated
961         description of sel_ref_cnt and refs.
962         * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
963         
964 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
966         PR target/40125
967         PR lto/46695
968         * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
969         * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
970         * aclocal.m4: Regenerate.
971         * configure: Regenerate.
973 2010-12-03  Matthias Klose  <doko@ubuntu.com> 
975         * configure.ac (VERSION): Bump the version to 3:0:0.
976         * configure: Regenerate.
978 2010-11-23  Richard Frith-Macdonald <rfm@gnu.org>
980         * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
981         pass nil as the receiver since we don't know the receiver at this
982         point.
983         
984 2010-11-18  Nicola Pero  <nicola.pero@meta-innovation.com>
986         * ivars.c: Include stdlib.h.
987         * protocols.c: Same change.
989 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
991         * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
992         * accessors.m: New.
993         * init.c: Include objc-private/accessors.h.
994         (__objc_exec_class): Call __objc_accessors_init.
995         * objc-private/accessors.h: New.
997 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
999         * objc/message.h: Moved initial includes outside of extern "C".
1000         * objc/runtime.h: Add extern "C" for Objective-C++.
1002 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1004         * init.c (objc_send_load): Do not wait for NXConstantString to be
1005         registered before executing +load.  There is no point if
1006         -fconstant-string-class=xxx is used when compiling all modules,
1007         as is the case for almost all users.
1008         * linking.m (__objc_linking): Do not try to forcefully link in
1009         NXConstantString.
1011 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
1013         * objc/runtime.h: Updated comments.
1014         (class_addMethod): New.
1015         (class_addIvar): New.
1016         (class_replaceMethod): New.
1017         (objc_allocateClassPair): New.
1018         (objc_registerClassPair): New.
1019         (objc_disposeClassPair): New.
1020         * class.c (objc_allocateClassPair): New.
1021         (objc_registerClassPair): New.
1022         (objc_disposeClassPair): New.
1023         (class_getSuperclass): Return Nil if a class is in construction.
1024         * init.c (__objc_exec_class): Call __objc_init_class.
1025         (__objc_init_class): New.
1026         * ivars.c (class_copyIvarList): Return NULL if class is in
1027         construction.  Do not lock the runtime mutex.
1028         (class_getInstanceVariable): Return NULL if class is in
1029         construction.  Do not lock the runtime mutex.
1030         (class_addIvar): New.
1031         * sendmsg.c (class_addMethod): New.
1032         (class_replaceMethod): New.
1033         * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
1034         (_CLS_IN_CONSTRUCTION): New.
1035         (CLS_IS_IN_CONSTRUCTION): New.
1036         (CLS_SET_IN_CONSTRUCTION): New.
1037         (CLS_SET_NOT_IN_CONSTRUCTION): New.
1038         * objc-private/runtime.h (__objc_init_class): New.
1040 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
1042         * class.c (class_getSuperclass): Call __objc_resolve_class_links
1043         if the class is not resolved yet.
1044         * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
1045         
1046 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
1048         * objc/runtime.h (class_getIvarLayout): New.
1049         (class_getWeakIvarLayout): New.
1050         (class_setIvarLayout): New.
1051         (class_setWeakIvarLayout): New.
1052         * ivars.c (class_getIvarLayout): New.
1053         (class_getWeakIvarLayout): New.
1054         (class_setIvarLayout): New.
1055         (class_setWeakIvarLayout): New. 
1057 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1058         
1059         * objc/runtime.h (class_copyPropertyList): New.
1060         (class_getProperty): New.
1061         (property_getAttributes): New.
1062         (property_getName): New.
1063         * ivars.c (class_copyPropertyList): New.
1064         (class_getProperty): New.
1065         (property_getAttributes): New.
1066         (property_getName): New.
1067         
1068 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1070         * objc-private/runtime.h (__objc_update_classes_with_methods): New.
1071         * class.c (__objc_update_classes_with_methods): New.
1072         (objc_getClassList): Do not lock the class lock.
1073         * methods.c (method_exchangeImplementations): New.
1074         (method_setImplementation): New.
1075         * objc/runtime.h (method_setImplementation): New.
1076         (method_exchangeImplementations): New.
1077         
1078 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1080         * Protocol.m: Include objc/runtime.h and
1081         objc-private/module-abi-8.h instead of objc/objc-api.h.  Do not
1082         repeat Protocol's instance variables.
1083         (struct objc_method_description_list): Do not define here.
1084         ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
1085         ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
1086         selectors directly instead of getting names and then using strcmp.
1087         ([descriptionForClassMethod:]): Same change.
1088         ([-isEqual:]): Reimplemented on top of protocol_isEqual().
1089         * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
1090         to compare selectors directly instead of getting names and then
1091         using strcmp.
1092         * objc/Protocol.h: Updated comments.
1093         
1094 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1096         * init.c (__objc_init_protocol): New function which fixes up a
1097         protocol's class pointer, registers it with the runtime, register
1098         all protocol selectors and registers associated protocols too.
1099         (objc_init_statics): Detect if we are initializing protocols, and
1100         if so, use __objc_init_protocol instead of only fixing up the
1101         class pointer.
1102         (__objc_init_protocls): Use __objc_init_protocol.
1103         * objc-private/module-abi-8.h: Updated comments.
1104         * objc-private/runtime.h
1105         (__objc_register_selectors_from_description_list): New.
1106         * selector.c (__objc_register_selectors_from_description_list):
1107         New.  (struct objc_method_description_list): Declare.
1108         * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
1109         when accessing the name of a method, which is now correctly a SEL.
1110         ([-descriptionForClassMethod:]): Same change.
1111         * protocols.c (protocol_getMethodDescription): Same change.
1112         * objc/runtime.h: Updated comments.
1113         (sel_registerTypedName): Fixed typo in function name.
1114         
1115 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
1117         PR libobjc/23214
1118         * init.c (objc_init_statics): Do not skip the initialization of a
1119         statics list if the first object has already been initialized; in
1120         the case of Protocols, while the first one may have been
1121         initialized, some others may not have been initialized yet.
1123 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
1125         * Makefile.in (OBJC_DEPRECATED_H): Added
1126         objc_get_uninstalled_dtable, objc_object_alloc.h and
1127         struct_objc_static_instances.h.
1129 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
1131         * encoding.c (method_copyReturnType): New.
1132         (method_copyArgumentType): New.
1133         (method_getReturnType): New.
1134         (method_getArgumentType): New.
1135         * methods.c (method_getDescription): New.
1136         * objc/runtime.h (method_copyReturnType): New.
1137         (method_copyArgumentType): New.
1138         (method_getReturnType): New.
1139         (method_getArgumentType): New.
1140         (method_getDescription): New.
1141         
1142 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1144         * encoding.c: Tidied up comments.
1145         (objc_skip_variable_name): New static inline function.
1146         (objc_sizeof_type): Use objc_skip_variable_name instead of copying
1147         the same code over and over.
1148         (objc_alignof_type): Same.
1149         (objc_aligned_size): Same.
1150         (objc_promoted_size): Same.
1151         (objc_skip_typespec): Same.
1152         (objc_layout_structure_next_member): Same.
1153         (objc_skip_offset): Skip a '-' before the digits (if any).  Fixed
1154         historical bug where objc_skip_offset would skip one byte even if
1155         there is no offset: check that the first offset digit is actually
1156         a digit before skipping it.
1157         (objc_skip_type_qualifiers): Mark as inline.
1158         (objc_skip_typespec): Mark as inline.   
1159         
1160 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1162         * Makefile.in (C_SOURCE_FILES): Added methods.c.
1163         * encoding.c (method_getNumberOfArguments): New.
1164         (method_get_number_of_arguments): Call
1165         method_getNumberOfArguments.
1166         * ivars.c (ivar_getName): Check for NULL variable argument.
1167         (ivar_getOffset): Check for NULL variable argument.
1168         (ivar_getTypeEncoding): Check for NULL variable argument.
1169         (class_copyIvarList): New.
1170         * methods.c: New.
1171         * protocols.c (class_copyProtocolList): Check for Nil class_
1172         argument.
1173         * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1174         'struct objc_method_list *' instead of MethodList_t.
1175         (class_getMethodImplementation): New.
1176         (class_respondsToSelector): New.
1177         (class_getInstanceMethod): New.
1178         (class_getClassMethod): New.
1179         * objc/runtime.h: Updated comments.
1180         (class_copyIvarList): New.
1181         (class_getInstanceMethod): New.
1182         (class_getClassMethod): New.
1183         (class_getMethodImplementation): New.
1184         (class_respondsToSelector): New.
1185         (method_getName): New.
1186         (method_getImplementation): New.
1187         (method_getTypeEncoding): New.
1188         (class_copyMethodList): New.
1189         (method_getNumberOfArguments): New.
1190         
1191 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1193         * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1194         instead of objc/objc-api.h.
1195         (objc_get_unknown_class_handler): Do not define.
1196         (class_isMetaClass): New.
1197         (class_getSuperclass): New.
1198         (class_getVersion): New.
1199         (class_setVersion): New.
1200         (class_getInstanceSize): New.
1201         * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1202         (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1203         objc_get_super_class.
1204         (get_ttype_entry): Use objc_getRequiredClass instead of
1205         objc_get_class.
1206         * ivars.c (class_getClassVariable): New.
1207         * objects.c: Include objc/runtime.h, objc/thr.h and
1208         objc-private/module-abi-8.h instead of objc/objc-api.h
1209         * objc/runtime.h (class_getClassVariable): New.
1210         (class_isMetaClass): New.
1211         (class_getSuperclass): New.
1212         (class_getVersion): New.
1213         (class_setVersion): New.
1214         (class_getInstanceSize): New.
1215         * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1216         objc/objc-api.h)
1217         (__CLS_INFO): Same.
1218         (__CLS_ISINFO): Same.
1219         (__CLS_SETINFO): Same.
1220         (CLS_ISMETA): Same.
1221         (CLS_ISCLASS): Same.
1222         (CLS_ISRESOLV): Same.
1223         (CLS_SETRESOLV): Same.
1224         (CLS_ISINITIALIZED): Same.
1225         (CLS_SETINITIALIZED): Same.
1226         (CLS_GETNUMBER): Same.
1227         (CLS_SETNUMBER): Same.
1229 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1231         * archive.c: Do not include objc/objc.h.
1232         * class.c: Do not include objc/objc.h.
1233         * encoding.c: Include objc/runtime.h, ctype.h and
1234         objc-private/module-abi-8.h instead of objc/objc-api.h and
1235         objc/encoding.h.
1236         * error.c: Do not include objc/objc.h.
1237         * gc.c: Include tconfig.h and objc/encoding.h only if
1238         OBJC_WITH_GC.
1239         * hash.c: Include objc/runtime.h and objc/thr.h instead of
1240         objc/objc-api.h.  Do not include objc/objc.h.
1241         * init.c: Do not include objc/objc.h.
1242         * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1243         objc/thr.h instead of objc/objc-api.h.  Do not include
1244         objc/objc.h.
1245         * linking.m: Tidied comment.
1246         * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1247         Do not include objc/objc.h.
1248         * objects.c: Do not include objc/objc.h.
1249         * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1250         * protocols.c: Do not include objc/objc.h.
1251         * sarray.c: Include objc/runtime.h instead of objc/objc-api.h.  Do
1252         not include objc/objc.h.
1253         * selector.c: Do not include objc/objc.h.
1254         * sendmsg.c: Do not include objc/objc.h.        
1255         * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1256         Do not include objc/objc.h.
1257         * objc/objc-decls.h: Reindented code.
1258         * objc/runtime.h Include objc-decls.h.  Updated comments.
1259         (objc_malloc): New.
1260         (objc_atomic_malloc): New.
1261         (objc_calloc): New.
1262         (objc_realloc): New.
1263         (objc_free): New.
1264         * objc-private/runtime.h: Updated comments.
1265         
1266 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1268         * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1269         * objc-private/protocols.h: New.
1270         * protocols.c: New.
1271         * init.c: Include objc-private/protocols.h.
1272         (__objc_exec_class): Call __objc_protocols_init on startup.
1273         (__objc_init_protocols): Call __objc_protocols_add_protocol.
1274         * objc-private/runtime.h: Use (struct objc_method_list *) instead
1275         of MethodList_t, and (struct objc_method *) instead of Method_t.
1276         * objc/deprecated/struct_objc_class.h: Define
1277         __objc_STRUCT_OBJC_CLASS_defined.
1278         * objc-private/module-abi-8.h (struct
1279         objc_method_description_list): New.
1280         (struct objc_class): Only define if
1281         __objc_STRUCT_OBJC_CLASS_defined is undefined.
1282         * objc/runtime.h (class_getName): New.
1283         (objc_getProtocol): New.
1284         (objc_copyProtocolList): New.
1285         (class_addProtocol): New.
1286         (class_conformsToProtocol): New.
1287         (class_copyProtocolList): New.
1288         (protocol_conformsToProtocol): New.
1289         (protocol_isEqual): New.
1290         (protocol_getName): New.
1291         (protocol_getMethodDescription): New.
1292         (protocol_copyMethodDescriptionList): New.
1293         (protocol_getProperty): New.
1294         (protocol_copyPropertyList): New.
1295         (protocol_copyProtocolList): New.
1296         * class.c (class_getName): New.
1297         * selector.c (sel_isEqual): New.
1298         
1299 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1301         * selector.c (sel_getName): Return "<null selector>" for a NULL
1302         argument.
1303         (sel_get_name): Return 0 for a NULL argument.
1304         * objc/runtime.h (sel_getName): Updated documentation.
1306         * objc-private/hash.h (class_hash_table): Unused declaration
1307         removed.
1308         (module_hash_table): Same.
1309         * objc/deprecated/hash.h: Same changes.
1310         
1311 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1313         * class.c (objc_getClassList): New.
1314         (objc_getRequiredClass): New.
1315         (objc_getMetaClass): New.
1316         (objc_lookupClass): New.
1317         (objc_getClass): New.
1318         (__objc_get_unknown_class_handler): New.
1319         (objc_setGetUnknownClassHandler): New.
1320         (objc_get_class): Use __objc_get_unknown_class_handler.
1321         (objc_lookup_class): Call objc_getClass.
1322         * objc/objc-api.h: Updated comment and copyright notice.
1323         * objc/runtime.h: Updated comments.
1324         (objc_getClass): New.
1325         (objc_lookupClass): New.
1326         (objc_getMetaClass): New.
1327         (objc_getRequiredClass): New.
1328         (objc_getClassList): New.
1329         (objc_setGetUnknownClassHandler): New.
1330         (objc_get_unknown_class_handler): New.
1331         * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1332         instead of __objc_runtime_INCLUDE_GNU as include guard.
1333         * objc-private/error.h (_objc_abort): Mark as noreturn.
1334         
1335 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1337         * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1338         * ivars.c: New.
1339         * objc/objc.h: Updated comments.
1340         * objc/runtime.h (object_getClass): New.
1341         (object_getClassName): New.
1342         (object_setClass): New.
1343         (class_getInstanceVariable): New.
1344         (object_getIndexedIvars): New.
1345         (object_getInstanceVariable): New.
1346         (object_setInstanceVariable): New.
1347         (object_getIvar): New.
1348         (object_setIvar): New.  
1349         (ivar_getName): New.
1350         (ivar_getOffset): New.
1351         (ivar_getTypeEncoding): New.
1352         * objc-private/module-abi-8.h (struct objc_class): Added.
1353         * objects.c (object_getClassName): New.
1354         (object_setClass): New.
1355         
1356 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1358         * objc/objc.h: Updated comments.
1359         * objc/objc-api.h: (object_copy): Added one argument; use a
1360         #define to maintain backwards-compatibility.  Moved
1361         _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1362         objc_get_uninstalled_dtable into
1363         objc/deprecated/objc_get_uninstalled_dtable.h and
1364         objc/deprecated/objc_object_alloc.h.  Include these files.
1365         * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1366         * objc/deprecated/objc_object_alloc.h: New.
1367         * objc/runtime.h (set_getName): New.
1368         (sel_getType): New.
1369         (sel_getUid): New.
1370         (sel_registerName): New.
1371         (sel_registerTypedName): New.
1372         (sel_isEqual): New.
1373         (class_createInstance): New.
1374         (object_copy): New.
1375         (object_dispose): New.
1376         * objects.c: Do not include tconfig.h.  Include gc_typed.h if
1377         building the garbage collection version.
1378         (__objc_object_alloc): Removed.
1379         (__objc_object_copy): Removed.
1380         (__objc_object_dispose): Removed.
1381         (class_createInstance): New from code in class_create_instance.
1382         Cast second argument of GC_malloc_explicitly_typed.  Use
1383         objc_calloc.  Do not call _objc_object_alloc.
1384         (class_create_instance): Call class_createInstance.
1385         (object_copy): Added extraBytes argument.  Do not call
1386         _objc_object_copy.
1387         (object_dispose): Do not call _objc_object_dispose.
1388         * memory.c (objc_free): When using garbage collection, mark the
1389         argument as unused.
1390         * selector.c (sel_getName): New.
1391         (sel_get_name): Call sel_getName.
1392         (sel_getType): New.
1393         (sel_get_type): Call sel_getType.
1394         (sel_registerName): New.
1395         (sel_register_name): Call sel_registerName.
1396         (sel_registerTypedName): New.
1397         (sel_register_typed_name): Call sel_registerTypedName.
1398         (sel_getUid): New.
1399         (sel_get_uid): Call sel_getUid.
1400         
1401 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1403         * objc/objc-api.h: Define Method, Method_t, Category and
1404         Category_t.  Prevent including this file at the same time as
1405         objc/runtime.h.  Updated comments.
1406         * objc/deprecated/struct_objc_method.h: Do not define Method,
1407         Method_t.
1408         * objc/deprecated/struct_objc_category.h: Do not define Category,
1409         Category_t.
1410         * objc-private/module-abi-8.h: New file containing a copy of all
1411         the structure definitions.  Not used yet.
1412         * objc/encoding.h (objc_aligned_size): Removed duplicate
1413         declaration.  Updated comments.
1414         * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1415         Category, struct objc_method_description, _C_ID and similar,
1416         _C_CONST and similar and _F_CONST and similar.  Added
1417         objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1418         objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1419         objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1420         struct objc_struct_layout, objc_layout_structure,
1421         objc_layout_structure_next_member, objc_layout_finish_structure,
1422         objc_layout_structure_get_info.  Prevent including this file at
1423         the same time as objc/objc-api.h.
1424         
1425 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1427         * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1428         struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1429         struct_objc_method_list.h, struct_objc_module.h,
1430         struct_objc_protocol_list.h, struct_objc_symtab.h.
1431         * objc/deprecated/struct_objc_category.h: New.
1432         * objc/deprecated/struct_objc_ivar.h: New.
1433         * objc/deprecated/struct_objc_ivar_list.h: New.
1434         * objc/deprecated/struct_objc_method.h: New.
1435         * objc/deprecated/struct_objc_method_list.h: New.
1436         * objc/deprecated/struct_objc_module.h: New.
1437         * objc/deprecated/struct_objc_protocol_list.h: New.
1438         * objc/deprecated/struct_objc_symtab.h: New.
1439         * objc/deprecated/struct_objc_static_instances.h: New.
1440         * objc/objc-api.h: Definitions of deprecated structures moved into
1441         the above header fragment files in objc/deprecated/.  Include the
1442         files instead of definition the structures here.  Updated
1443         comments.
1444         * objc/runtime.h: Updated comments.  Do not include objc-api.h.
1445         (objc_set_enumeration_mutation_handler): Renamed to
1446         objc_setEnumerationMutationHandler.
1447         * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1448         to objc_setEnumerationMutationHandler.
1449         * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1450         objc_setExceptionMatcher.
1451         (objc_set_uncaught_exception_handler): Renamed to
1452         objc_setUncaughtExceptionHandler.
1453         * exception.c: Same changes.
1455 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1457         * objc-sync.c: Include objc-private/common.h.
1459 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1461         * objc-foreach.c: Include objc-private/common.h.
1462         * objc/deprecated/METHOD_NULL.h: New file.
1463         * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1464         defining METHOD_NULL here.
1465         * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1466         * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1467         METHOD_NULL.
1468         ([-respondsTo:]): Same change.
1469         * objc/objc-api.h (method_get_imp): Converted it into a normal
1470         function so that we can hide the internals of struct objc_method.
1471         * sendmsg.c (method_get_imp): Implemented.
1473 2010-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>
1475         * objc/objc-api.h (struct objc_super, Super, Super_t,
1476         objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1477         objc_msg_forward2): Declarations moved to objc/message.h.  Include
1478         message.h here.
1479         * objc/message.h: Added such declarations; updated comments.
1481 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1483         Implemented fast enumeration for Objective-C.
1484         * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1485         (OBJC_H): Added runtime.h
1486         * objc-foreach.c: New file.
1487         * objc/runtime.h: New file.
1488         
1489 2010-09-30  Kai Tietz  <kai.tietz@onevision.com>
1491         * objc/deprecated/struct_objc_class.h: Add padding
1492         to avoid warning with -Wpadded.
1494 2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
1496         * encoding.c (objc_sizeof_type): Added support for vector type and
1497         for double long types.  
1498         (objc_alignof_type): Same change.
1499         (objc_skip_typespec): Same change.
1500         * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1501         instead of '!' since '!' is already used for _C_VECTOR.
1502         * objc/objc-api.h (_C_LNG_DBL): Added.
1503         
1504 2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
1506         * libobjc_entry.c: File removed.
1508 2010-09-26  Kai Tietz  <kai.tietz@onevision.com>
1510         * sendmsg.c (objc_msg_lookup): Remove inline.
1511         (objc_get_uninstalled_dtable): Likewise.
1512         * encoding.c (objc_skip_type_qualifiers): Likewise.
1513         (objc_skip_offset): Likewise.
1514         * archive.c (__objc_write_object): Likewise
1515         (__objc_write_class):
1516         (__objc_write_selector):
1517         (objc_read_char):
1518         (objc_read_unsigned_char):
1519         (objc_read_short):
1520         (objc_read_unsigned_short):
1521         (objc_read_int):
1522         (objc_read_long):
1523         (__objc_read_nbyte_uint):
1524         (objc_read_unsigned_int):
1525         (objc_read_unsigned_long):
1526         * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1527         (objc_EXPORT): Likewise.
1528         * objc/message.h (objc-decls.h): Add include.
1529         * objc/objc-api.h: Mark API by objc_EXPORT.
1530         * libobjc.def (__objc_responds_to): Removed.
1532 2010-09-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1534         * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1536         * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1537         objc/sarray.h replaced with a placeholder including the file from
1538         the deprecated/ directory.
1539         * objc-private/sarray.h: New file (private copy of sarray.h).
1540         * hash.c: Include <assert.h> instead of "assert.h"
1541         * sarray.c: Include <assert.h> instead of "assert.h".  Include
1542         objc-private/sarray.h instead of objc/sarray.h.
1543         * selector.c: Include objc-private/sarray.h instead of
1544         objc/sarray.h.
1545         * sendmsg.c: Include <assert.h>.  Include objc-private/sarray.h
1546         instead of objc/sarray.h.
1547         * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.      
1549 2010-09-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1551         * objc-private/objc-list.h (list_remove_elem): Unused function
1552         removed.  (list_nth): Unused function removed.  (list_find):
1553         Unused function removed.  (list_lenght): Unused function removed.
1554         
1555 2010-09-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1557         * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1558         replaced with a placeholder including the file from the
1559         deprecated/ directory.
1560         * objc/objc-api.h: Updated includes.
1561         * objc/typedstream.h: Updated includes.
1562         * objc-private/hash.h: New file (private copy of hash.h).
1563         * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1564         objc/objc-list.h replaced with a placeholder including the file
1565         from the deprecated/ directory.
1566         * objc-private/objc-list.h: New file (private copy of objc-list.h).
1567         * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1568         instead of objc/hash.h and objc/objc-list.h.
1569         * selector.c: Same change.
1570         * class.c: Added include <string.h>, which used to be implicitly included
1571         when hash.h was included.
1572         * exception.c: Same change.
1573         * objects.c: Same change.
1574         * sarray.c: Same change.
1575         * sendmsg.c: Same change.
1576         * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1578 2010-09-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1580         Implemented objc_sync_enter() and objc_sync_exit(), which are
1581         required by @synchronized() to work.
1582         * objc-sync.c: New file.
1583         * objc/objc-sync.h: New file.
1584         * objc-private/objc-sync.h: New file.
1585         * init.c (__objc_exec_class): Call __objc_sync_init() during the
1586         Objective-C runtime startup.
1587         * Makefile.in: Added objc-sync.c and objc-sync.h.
1588         * configure.ac: Added GCC_CHECK_TLS.
1589         * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1590         * configure: Regenerated.
1591         * config.h.in: Regenerated.
1592         
1593 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1595         * Makefile.in (%_gc.lo): New pattern rules to build the
1596         garbage-collected version of the library.  Removed rules for
1597         specific files that are no longer needed.  Standardized all rules.
1598         (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1599         (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1600         OBJC_SOURCE_FILES.
1601         (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1603 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1604         
1605         * memory.c (objc_calloc): Fixed call to GC_malloc when building
1606         with Garbage Colletion.
1607         
1608 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1610         * memory.c: Do not include objc-private/runtime.h.
1612 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1613         
1614         * objc/deprecated/objc_malloc.h: New file.
1615         * objc/deprecated/objc_valloc.h: New file.
1616         * objc/objc-api.h: Include the files instead of defining
1617         objc_valloc, _objc_malloc() and similar.
1618         * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1619         objc_malloc.h.
1620         * memory.c: Removed the extra layer of indirection of _objc_malloc
1621         and similar.
1622         (objc_calloc): Use GC_malloc in the garbage-collected
1623         implementation as GC_malloc returns memory that is already freed.
1624         (objc_valloc): Deprecated.      
1625         
1626 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1628         * objc/deprecated/objc_error.h: New file.
1629         * objc/objc-api.h: Include deprecated/objc_error.h instead of
1630         defining objc_error and related.
1631         * error.c: New file.  Added _objc_abort function which replaces
1632         objc_error.  No change in functionality as they both print an
1633         error and abort.
1634         * misc.c: File removed.  Code moved into memory.c and error.c.
1635         * memory.c: New file.
1636         * objc-private/error.h: New file.
1637         * archive.c: Include objc-private/error.h and use _objc_abort
1638         instead of objc_error everywhere.
1639         * class.c: Same change.
1640         * encoding.c: Same change.
1641         * init.c: Same change, and simplified init_check_module_version.
1642         * memory.c: Same change.
1643         * sendmsg.c:  Same change.
1644         * thr.c: Same change.
1645         * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1646         (OBJ_H): Reordered list.
1647         (OBJS): Removed misc.lo, added memory.lo and error.lo.
1648         (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1649         (misc_gc.lo): Rule removed.
1650         (error_gc.lo): Rule added.
1651         (memory_gc.lo): Rule added.
1652         
1653 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1655         * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1656         to check the API version.  Added some comments.
1658         * objc-private/common.h: New file.
1659         * NXConstStr.m: Include objc-private/common.h.
1660         * Object.m: Same change.
1661         * Protocol.m: Same change.
1662         * archive.c: Same change.
1663         * class.c: Same change.
1664         * encoding.c: Same change.
1665         * exception.c: Same change.
1666         * gc.c: Same change.
1667         * hash.c: Same change.
1668         * init.c: Same change.
1669         * libobjc_entry.c: Same change.
1670         * linking.m: Same change.
1671         * misc.c: Same change (and added a comment).
1672         * nil_method.c: Same change.
1673         * objects.c: Same change.
1674         * sarray.c: Same change.
1675         * selector.c: Same change.
1676         * sendmsg.c: Same change.
1677         * thr.c: Same change.
1679 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1681         * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1683 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1685         * archive.c: Removed not needed includes.
1686         * class.c: Same change.
1687         * hash.c: Same change.
1688         * misc.c: Same change.
1689         * nil_method.c: Same change.
1690         * objects.c: Same change.
1691         * sarray.c: Same change.
1692         * sendmsg.c: Same change.
1693         * thr.c: Same change.
1695 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1697         * objc/runtime.h: Moved to objc-private/runtime.h.  Do not include
1698         all the objc/*.h files.
1699         * objc-private/runtime.h: New file.
1700         * archive.c: Include objc-private/runtime.h (and required objc/*.h
1701         files) instead of objc/runtime.h.
1702         * class.c: Same change.
1703         * hash.c: Same change.
1704         * init.c: Same change.
1705         * misc.c: Same change.
1706         * nil_method.c: Same change.
1707         * objects.c: Same change.
1708         * sarray.c: Same change.
1709         * selector.c: Same change.
1710         * sendmsg.c: Same change.
1711         * thr.c: Same change.
1712         
1713 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1715         * objc/deprecated/struct_objc_selector.h: New file.  Definition of
1716         'struct objc_selector' and 'sel_eq' moved here.
1717         * objc/deprecated/struct_objc_protocol.h: New file.  Definition of
1718         'struct objc_procotol' moved here.
1719         * objc/deprecated/struct_objc_class.h: New file.  Definition of
1720         'struct objc_class' moved here.
1721         * objc/deprecated/MetaClass.h: New file.  Definition of MetClass
1722         moved here.
1723         * objc/deprecated/STR.h: New file.  Definition of STR moved here.       
1724         * objc/message.h: New file.  Definitions for relval_t, apply_t,
1725         arglist, arglist_t and objc_msg_lookup were moved here.
1726         * objc/objc.h: Include the above files instead of defining the
1727         corresponding structs, types and functions here.  Added new opaque
1728         definitions for SEL and Class.  Use Class and not 'struct
1729         objc_class *' in the definition of 'struct objc_object'.
1730         Commented all types defined in the file.  Removed special
1731         definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1732         there as well.
1733         * objc/deprecated/objc-unexpected-exception.h: Renamed to
1734         objc_unexpected_exception.h.
1735         * objc/objc-api.h: Updated include of
1736         objc-unexpetected-exception.h
1737         * objc/objc-exception.h: Updated comments.
1738         * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1739         files.  Reindented list of files.
1740         
1741 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1743         * objc/objc-api.h (objc_trace): Unused variable removed.
1745 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1747         * objc/deprecated: New directory.
1748         * objc/deprecated/README: New file.
1749         * objc/README: New file.
1750         * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1751         objc/typedstream.h replaced with a placeholder including the file
1752         from the deprecated/ directory.
1753         * objc/deprecated/objc-unexpected-exception.h: New file with the
1754         definition of _objc_unexpected_exception.       
1755         * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1756         instead of defining _objc_unexpected_exception.
1757         * objc/deprecated/Object.h: New file with the deprecated Object
1758         methods in a 'Deprecated' category.
1759         * objc/Object.h Include deprecated/Object.h instead of defining
1760         the deprecated methods.
1761         * Object.m: Moved deprecated methods into 'Deprecated' category.
1762         * objc-private: New directory.
1763         * objc-private/README: New file.
1764         * Makefile.in (OBJC_DEPRECATED_H): New variable.
1765         (install-headers): Create installation directory for
1766         OBJC_DEPRECATED_H headers, and install them.
1768 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1770         * objc/objc-exception.h: Fixed include of objc.h.
1771         
1772 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1774         * objc/objc-exception.h: New file.
1775         * exception.c (objc_set_uncaught_exception_handler): Implemented.
1776         (objc_set_exception_matcher): Implemented.
1777         (objc_exception_throw): Use the uncaught exception handler if set.
1778         (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1779         hardcoded isKindOf.
1780         (isKindOf): Renamed to is_kind_of_exception_matcher.  Tidied code
1781         up.  Removed segmentation fault when value is 'nil'.
1782         * objc/objc-api.h (_objc_unexpected_exception): Mark as
1783         deprecated.
1784         * Makefile.in (exception.lo, exception_gc.lo): Use
1785         -Wno-deprecated-declarations when compiling.
1786         (OBJC_H): Added objc-exception.h
1788 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1790         * objc/typedstream.h: Deprecate all functions in the file.  This
1791         file is obsolete.
1792         * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1793         [-awake]): Documented that these methods are deprecated.  Added a
1794         brief description of the Object class and its relationship to the
1795         NSObject class.
1796         * Makefile.in: Compile archive.c and Object.m with
1797         -Wno-deprecated-declarations.
1799 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1801         Removed obsolete intermediate threading layer.
1802         * thr.c: Use __gthread_objc_xxx functions directly instead of
1803         __objc_thread_xxx ones.
1804         * objc/thr.h: Removed prototypes of no longer existing
1805         __objc_thread_xxx functions.
1806         * Makefile.in: Removed thr-objc.lo.
1807         * thr-dce.c: File removed.
1808         * thr-decosf1.c: File removed.
1809         * thr-irix.c: File removed.
1810         * thr-mach.c: File removed.
1811         * thr-objc.c: File removed.
1812         * thr-os2.c: File removed.
1813         * thr-posix.c: File removed.
1814         * thr-pthreads.c: File removed.
1815         * thr-rtems.c: File removed.
1816         * thr-single.c: File removed.
1817         * thr-solaris.c: File removed.
1818         * thr-vxworks.c: File removed.
1819         * thr-win32.c: File removed.
1820         * README.threads: File removed.
1821         * THREADS.MACH: File removed.
1822         * THREADS: Updated.
1824 2010-09-07  Nicola Pero  <nicola.pero@meta-innovation.com>
1826         * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1828 2010-09-06  Iain Sandoe  <iains@gcc.gnu.org>
1830         * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1831         Add a comment as to why, update FIXME comments.
1833 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1835         * makefile.dos: Obsolete file removed.
1836         
1837 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1839         * aclocal.m4: Regenerate.
1841 2010-03-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1843         PR libobjc/30445
1844         * configure.ac (extra_ldflags_libobjc): Define appropriately for
1845         Cygwin and MinGW hosts.
1846         * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1847         (libobjc.dll): Likewise.
1848         * configure: Regenerate.
1850 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1852         * configure: Regenerate.
1854 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
1856         * sarray.c (sarray_free): Use old_buckets variable.
1857         * encoding.c (objc_layout_structure_next_member): Remove unused
1858         bfld_type_size variable.
1860 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1862         * configure.ac (AC_PREREQ): Bump to 2.64.
1864 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1866         * aclocal.m4: Regenerate.
1867         * configure: Regenerate.
1868         * config.h.in: Regenerate.
1870 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1872         * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1874 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1876         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1877         New variables.
1878         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1880 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1882         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1884 2009-04-09  Nick Clifton  <nickc@redhat.com>
1886         * sendmsg.c: Change copyright header to refer to version 3 of
1887         the GNU General Public License with version 3.1 of the GCC
1888         Runtime Library Exception and to point readers at the COPYING3
1889         and COPYING3.RUNTIME files and the FSF's license web page.
1890         * NXConstStr.m: Likewise.
1891         * Object.m: Likewise.
1892         * Protocol.m: Likewise.
1893         * archive.c: Likewise.
1894         * class.c: Likewise.
1895         * encoding.c: Likewise.
1896         * exception.c: Likewise.
1897         * gc.c: Likewise.
1898         * hash.c: Likewise.
1899         * init.c: Likewise.
1900         * libobjc_entry.c: Likewise.
1901         * linking.m: Likewise.
1902         * misc.c: Likewise.
1903         * nil_method.c: Likewise.
1904         * objc/NXConstStr.h: Likewise.
1905         * objc/Object.h: Likewise.
1906         * objc/Protocol.h: Likewise.
1907         * objc/encoding.h: Likewise.
1908         * objc/hash.h: Likewise.
1909         * objc/objc-api.h: Likewise.
1910         * objc/objc-decls.h: Likewise.
1911         * objc/objc-list.h: Likewise.
1912         * objc/objc.h: Likewise.
1913         * objc/runtime.h: Likewise.
1914         * objc/sarray.h: Likewise.
1915         * objc/thr.h: Likewise.
1916         * objc/typedstream.h: Likewise.
1917         * objects.c: Likewise.
1918         * sarray.c: Likewise.
1919         * selector.c: Likewise.
1920         * thr-dce.c: Likewise.
1921         * thr-decosf1.c: Likewise.
1922         * thr-irix.c: Likewise.
1923         * thr-mach.c: Likewise.
1924         * thr-objc.c: Likewise.
1925         * thr-os2.c: Likewise.
1926         * thr-posix.c: Likewise.
1927         * thr-pthreads.c: Likewise.
1928         * thr-rtems.c: Likewise.
1929         * thr-single.c: Likewise.
1930         * thr-solaris.c: Likewise.
1931         * thr-vxworks.c: Likewise.
1932         * thr-win32.c: Likewise.
1933         * thr.c: Likewise.
1934         * libobjc.def: Change copyright header to refer to version 3 of
1935         the GNU General Public License and to point readers at the COPYING3
1936         file and the FSF's license web page.
1937         * makefile.dos: Likewise.
1939 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1941         * Makefile.in: Change copyright header to refer to version
1942         3 of the GNU General Public License and to point readers at the
1943         COPYING3 file and the FSF's license web page.
1944         * configure.ac: Likewise.
1946 2009-03-12  Richard Frith-Macdonald  <rfm@gnu.org>
1947             David Ayers  <ayers@fsfe.org>
1949         PR libobjc/27466
1950         * objc/objc-api.h (_objc_unexpected_exception): Declare
1951         new hook.  Update copyright dates.
1952         * exception.c (objc_exception_throw): Use hook.  Update
1953         copyright dates.
1954         * libobjc.def (_objc_unexpected_exception): Export hook.
1955         Update copyright dates.
1956         
1957 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1959         * configure: Regenerate.
1961 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1963         * configure: Regenerate.
1965 2008-11-21  Kai Tietz  <kai.tietz@onevision.com>
1967         *  Object.m (errno): Replaced by errno.h include.
1968         (compare): Cast self to id to prevent warning on comparison.
1969         * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1970         already there.
1971         * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1972         * thr-win32.c (__objc_thread_detach): Remove type warning.
1973         (__objc_thread_id): Likewise.
1974         * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1975         for noreturn.
1977 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1978             Steve Ellcey  <sje@cup.hp.com>
1980         * configure: Regenerate for new libtool.
1981         * config.h.in: Regenerate for new libtool.
1983 2008-07-18  Matthias Klose  <doko@ubuntu.com> 
1985         * Makefile.in: Ignore missing ../boehm-gc/threads.mk. 
1987 2008-07-18  Matthias Klose  <doko@ubuntu.com> 
1989         * Makefile.in: Include ../boehm-gc/threads.mk. 
1990         (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1992 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1994         * Makefile.in (install-info): New stub target.
1996 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1998         * configure: Regenerate.
2000 2008-06-14  Kai Tietz  <kai.tietz@onevision.com>
2002         * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
2003         if HAVE_GETIPINFO is not defined.
2005 2008-06-10  Kai Tietz  <kai.tietz@onevision.com>
2007         * Object.m (compare): Add type id.
2008         * objc/Object.h: Likewise.
2009         * archive.c (objc_read_class): Use size_t to extend version to be
2010         size of pointer scalar width.
2011         * sendmsg.c (rtx): Undefine it before redefinition.
2012         (__objc_print_dtable_stats): Cast arguments to long as intended.
2014 2008-05-30  Julian Brown  <julian@codesourcery.com>
2016         * exception.c (__objc_exception_class): Initialise as constant
2017         array for ARM EABI. Change macro to static const for non-ARM EABI.
2018         (ObjcException): Add note about structure layout. Remove landingPad
2019         and handlerSwitchValue for ARM EABI.
2020         (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
2021         of function.
2022         (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
2023         (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
2024         ARM EABI unwinding support.
2025         (objc_exception_throw): Use memcpy to initialise exception class.
2027 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
2029         * encoding.c (strip_array_types): Rename from get_inner_array_type.
2030         (rs6000_special_round_type_align): Update.
2032 2008-05-09  Julian Brown  <julian@codesourcery.com>
2034         * Makefile.in (LTLDFLAGS): New.
2035         (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
2037 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2039         PR bootstrap/35457
2040         * aclocal.m4: Regenerate.
2041         * configure: Regenerate.
2043 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2045         * configure: Regenerate.
2047 2007-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2049         * configure.ac: Don't run config-ml.in directly.
2050         (multilib_arg): New.
2051         * configure: Regenerated.
2053 2007-08-06  Andrew Pinski  <pinskia@gmail.com>
2055         PR libobjc/30731
2056         * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
2057         of _Unwind_Word for variables which are used in
2058         read_uleb128/read_sleb128.
2059         (PERSONALITY_FUNCTION): Likewise.
2061 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2063         * aclocal.m4: Regenerated.
2065 2007-06-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2067         * configure.ac: Fix a typo in *-*-darwin clause.
2068         * configure: Regenerated.
2070 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2072         * configure.ac: Fix a typo.
2073         * configure: Regenerated.
2075 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2077         * configure: Regenerate.
2079 2007-06-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2081         * Makefile.in: Replace all uses of libext with libsuffix.
2082         * configure.ac: Likewise.
2083         * configure: Regenerate.
2085         Revert:
2086         * Makefile.in: Remove all uses of $(libext).
2088 2007-05-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2090         * Makefile.in: Remove all uses of $(libext).
2092 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2094         * configure: Regenerate.
2095         * aclocal.m4: Regenerate.
2097 2007-04-21  Andrew Ruder  <andy@aeruder.net>
2099         * sendmsg.c (__objc_get_forward_imp): Call
2100         __objc_msg_forward2 for real.
2102 2007-04-09  Andrew Ruder  <andy@aeruder.net>
2104         * sendmsg.c: Added __objc_msg_forward2, a hook that allows
2105         external libraries to provide a function that returns the real
2106         forwarding function based on both the selector and the receiver.
2107         * objc/objc-api.h: Define __objc_msg_forward2.
2109 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2111         * Makefile.in: Add dummy install-pdf target.
2113 2007-02-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2115         * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
2116         unused warning.
2117         
2118 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
2120         * encoding.c (darwin_rs6000_special_round_type_align): New.
2122 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2124         * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
2125         * configure.ac: Use multi.m4 from aclocal rather than custom
2126         code.  Use multi_basedir instead of toplevel_srcdir.
2127         * aclocal.m4: Regenerate.
2128         * configure: Regenerate.
2130 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
2132         * Makefile.in: Added empty "pdf" target.
2134 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
2136         * configure: Regenerate.
2138 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2140         * Makefile.in: Add install-html target. Add install-html to .PHONY
2142 2006-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2144         PR libobjc/26309
2145         * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2147 2006-01-24  David Ayers  <d.ayers@inode.at>
2149         PR libobjc/9751
2150         * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2151         and insure the new strings are '\0' termintated.
2153 2006-01-24  David Ayers  <d.ayers@inode.at>
2155         PR libobjc/13946
2156         * configure.ac: Add include directives for --enable-objc-gc.
2157         * Makefile.in: Ditto.
2158         * configure: Regenerate.
2160         * gc.c (__objc_class_structure_encoding): Increment the used bytes
2161         instead of the local pointer to them.
2163 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
2165         PR objc/25360
2166         * objc/objc-api.c (_C_COMPLEX): New define.
2167         * encoding.c (objc_sizeof_type): Handle _C_Complex.
2168         (objc_alignof_type): Likewise.
2169         (objc_skip_typespec): Likewise.
2171 2005-12-15  David Ayers  <d.ayers@inode.at>
2173         PR libobjc/14382
2174         * README (+load,+initialize): Fix documentation to reflect
2175         intended and implemented semantics for +load and +initialize.
2176         
2177 2005-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
2179         * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2180         the name.
2181         (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2182         (rs6000_special_round_type_align): Update for the ABI fix.
2183         (objc_layout_finish_structure): Correct the encoding which is passed to
2184         ROUND_TYPE_ALIGN.
2186 2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
2188         PR libobjc/25347
2189         * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2190         but use the struct layout functions.
2191         (objc_alignof_type): Likewise.
2192         (objc_layout_structure): Handle _C_UNION_B also.
2193         (objc_layout_structure_next_member): Likewise.
2194         (objc_layout_finish_structure): Likewise.
2196 2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
2198         PR libobjc/25346
2199         * objc/objc-api.h (_C_BOOL): New define.
2200         * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2201         (objc_alignof_type): Likewise.
2202         (objc_skip_typespec): Likewise.
2204 2005-11-20  David Ayers  <d.ayers@inode.at>
2206         PR libobjc/19024
2207         * objc/hash.h: Remove deprecated hash API.
2208         * hash_compat.c: Remove.
2209         * Makefile.in: Remove reference to hash_compat.c.
2211         * configure.ac (VERSION): Bump library version to 2:0:0.
2212         * configure: Regenerate.
2214 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
2216         PR other/4372
2217         * thr-objc.c (_XOPEN_SOURCE): Define.
2219 2005-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
2221         PR libobjc/23612
2222         * objc/objc-api.h (struct objc_ivar): Move definition to
2223         global scope.
2225 2005-09-04  Andrew Pinski  <pinskia@physics.uc.edu>
2226             Rasmus Hahn  <rassahah@neofonie.de>
2228         PR libobjc/23108
2229         * archive.c (objc_write_type): Correct the element offset.
2230         (objc_read_type): Likewise.
2232 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
2234         * All files: Update FSF address.
2236 2005-08-13  Marcin Koziej  <creep@desk.pl>
2237             Andrew Pinski  <pinskia@physics.uc.edu>
2239         PR libobjc/22492
2240         * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2242 2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
2244         * Makefile.in (extra_ldflags_libobjc): New.
2245         (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2246         (libobjc_gc$(libext).la): Likewise.
2247         * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2248         "-Wl,-single_module".
2249         * configure: Regenerate.
2250         * linking.m (_objcInit): Remove.
2252 2005-07-26  Andrew Pinski  <pinskia@physics.uc.edu>
2254         PR libobjc/22606
2255         * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2257 2005-06-08  David Ayers  <d.ayers@inode.at>
2259         * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2260         objc/encoding.h, objc/hash.h, objc/objc-api.h,
2261         objc/runtime.h, objc/sarray.h, objc/thr.h, 
2262         objc/typedstream.h: Do not include Objective-C headers as
2263         system headers.
2265 2005-06-07  David Ayers  <d.ayers@inode.at>
2267         * archive.c, init.c, selector.c: Include hash.h.
2268         * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2269         init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2270         sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2271         thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2272         thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2273         Include Objective-C headers with quotes and objc/ directory
2274         prefix.
2276 2005-05-19  Richard Henderson  <rth@redhat.com>
2278         * exception.c: Revert last change.
2280 2005-05-19  David Ayers  <d.ayers@inode.at>
2282         * exception.c: Include tsystem.h for unwind.h.
2284 2005-05-09  Mike Stump  <mrs@apple.com>
2286         * configure: Regenerate.
2288 2005-04-12  Mike Stump  <mrs@apple.com>
2290         * configure: Regenerate.
2292 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
2294         * Makefile.in: Set gcc_version here.
2295         * configure.ac: Do not invoke TL_AC_GCC_VERSION.  Adjust quoting
2296         in definition of toolexeclibdir so that $(gcc_version) is expanded
2297         by the Makefile.
2298         * aclocal.m4, configure: Regenerate.
2300 2005-03-03  David Ayers  <d.ayers@inode.at>
2302         * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2303         version reference.  Correct typo.
2305 2005-03-02  David Ayers  <d.ayers@inode.at>
2307         PR libobjc/19024
2308         * Makefile.in (OBJS): Add hash_compat.lo.
2309         (OBJS_GC): Add hash_compat_gc.lo.
2310         (hash_compat_gc.lo): New target and rule.
2311         * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2312         (hash_next, hash_value_for_key, hash_is_key_in_hash)
2313         (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2314         with objc_.  Add deprecated non prefixed inlined versions.
2315         (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2316         declarations.
2317         * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2318         (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2319         update callers.
2320         * hash_compat.c: New file.
2321         * archive.c: Update callers.
2322         * init.c: Likewise.
2323         * selector.c: Likewise.
2324         * libobjc.def: Add objc_ versions of hash functions.
2326 2005-02-28  Andrew Pinski <pinskia@physics.uc.edu>
2328         PR libobjc/20252
2329         * Makefile.in (GTHREAD_FLAGS): Remove.
2330         (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2331         * thr-objc.c: Include config.h.
2332         * configure.ac: Instead of looking at GCC's makefile, figure out if
2333         GTHREAD_FLAGS should be defined by looking at the `thread model'
2334         of the current gcc.
2335         * configure: Regenerate.
2336         * config.h.in: Regenerate.
2338 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
2340         PR bootstrap/17383
2341         * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2342         (Determine CFLAGS for gthread): Use $host_subdir.
2343         * configure: Regenerate.
2344         * Makefile.in (host_subdir): New.
2345         (INCLUDES): Use it.
2347 2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
2349         PR libobjc/12035
2350         * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2351         they are not used.
2352         Include limits.h and stdlib.h.
2353         Define BITS_PER_WORD.
2355 2004-12-12  Alexander Malmberg  <alexander@malmberg.org>
2357         * selector.c (__objc_init_selector_tables): Add missing void to
2358         definition.
2360 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
2362         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2363         * configure, aclocal.m4: Regenerate.
2365 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
2367         * configure: Regenerate for libtool change.
2369 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
2371         * configure: Regenerate for libtool reversion.
2373 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
2375         * configure: Regenerate for libtool change.
2377 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
2379         * aclocal.m4, config.h.in: Regenerate.
2381 2004-10-08  Mike Stump  <mrs@apple.com>
2382             Andrew Pinski  <pinskia@physics.uc.edu>
2384         * aclocal.m4: Rename to ...
2385         * acinclude.m4: here and also use m4_include instead of sinclude.
2386         * aclocal.m4: Regenerate.
2387         * configure: Regenerate.
2388         * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2389         * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2391 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
2393         * archive.c: Fix all the warnings about passing unsigned char*
2394         to char* and the other way too.
2396 2004-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
2398         PR libobjc/16448
2399         * exception.c: Include config.h
2400         (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2401         SJLJ_EXCEPTIONS.
2402         * configure.ac: Find out what exception handling code we use.
2403         * configure: Regenerate.
2404         * config.h.in: New file, regenerate.
2406 2004-09-16  Andrew Pinski  <apinski@apple.com>
2408         * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2410 2004-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
2412         * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2413         ACX_NONCANONICAL_TARGET.
2414         * configure: Regenerate.
2416 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
2418         * objc/sarray.h: Hoist include of assert.h near the top of file,
2419         and mark the remainder of the file 'extern "C"'.
2421 2004-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
2423         * objc/Object.h: Move includes out of extern "C" blocks.
2424         * objc/encoding.h: Likewise.
2425         * objc/hash.h: Likewise.
2426         * objc/objc-api.h: Likewise.
2427         * objc/runtime.h: Likewise.
2428         * objc/sarray.h: Likewise.
2429         * objc/typedstream.h: Likewise.
2431 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
2433         * objc/NXConstStr.h: Update copyright date; bracket with
2434         'extern "C"' for C++ use; make include syntax consistent
2435         by using <...> instead of "..."; hoist <objc/...> includes
2436         above the 'extern "C"' block.
2437         * objc/Object.h: Likewise.
2438         * objc/Protocol.h: Likewise.
2439         * objc/encoding.h: Likewise.
2440         * objc/hash.h: Likewise.
2441         * objc/runtime.h: Likewise.
2442         * objc/sarray.h: Likewise.
2443         * objc/thr.h: Likewise.
2444         * objc/typedstream.h: Likewise.
2445         * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2446         (objc_static_instances): For C++ case, do away with
2447         zero-sized array.
2448         (objc_method): Hoist definition to file scope.
2449         (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2450         class_get_instance_method, class_create_instance,
2451         class_get_class_name, class_get_instance_size,
2452         class_get_meta_class, class_get_super_class, class_get_version,
2453         class_is_class, class_is_meta_class, class_set_version,
2454         class_get_gc_object_type, class_ivar_set_gcinvisible,
2455         get_imp): Rename 'class' parameter to '_class'.
2456         * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2457         * objc/objc.h: Update copyright date.
2458         (arglist_t): Provide a union tag.
2460 2004-07-22  Andrew Pinski  <pinskia@physics.uc.edu>
2462         * thr.c (__objc_thread_detach_function): Do not mark as volatile
2463         but instead use the attribute noreturn.
2465 2004-06-28  Zack Weinberg  <zack@codesourcery.com>
2467         * encoding.c: Rename target_flags with a #define to avoid
2468         conflict with a prior declaration.
2470 2004-06-24  Andrew Pinski  <apinski@apple.com>
2472         * objc/encoding.h: Wrap the functions with extern "C" for C++
2473         mode.
2474         * objc/hash.h: Likewise.
2475         * objc/objc-api.h: Likewise.
2476         * objc/objc-list.h: Likewise.
2477         * objc/runtime.h: Likewise.
2478         * objc/sarray.h: Likewise.
2479         * objc/thr.h: Likewise.
2480         * objc/typedstream.h: Likewise.
2483 2004-06-21  Nick Clifton  <nickc@redhat.com>
2485         * encoding.c (BITS_PER_UNIT): Define if a definition is not
2486         provided.
2488 2004-06-20  Alexander Malmberg  <alexander@malmberg.org>
2490         * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2491         (exception_gc.lo): New.
2492         (OBJS_GC): Add exception_gc.lo.
2494 2004-06-17  Richard Henderson  <rth@redhat.com>
2496         * exception.c: New file.
2497         * Makefile.in (exception.lo): New.
2498         (OBJS): Add it.
2500 2004-06-14  Andrew Pinski  <pinskia@physics.uc.edu>
2502         * linking.m (_objcInit): New empty function
2503         for Darwin only.
2505 2004-06-11  Andrew Pinski  <pinskia@physics.uc.edu>
2507         * configure.ac: Support --enable-shared=libobjc.
2508         * configure: Regenerate.
2510         PR libobjc/15901
2511         * configure.ac: Do not disable shared by default.
2512         * configure: Regenerate.
2514 2004-06-03  Nicola Pero  <n.pero@mi.flashnet.it>
2516         * Protocol.m ([-isEqual:]): Small optimizations returning
2517         immediately if the argument is equal to self, and accessing
2518         the argument's name directly if it's a protocol.
2520 2004-06-03  David Ayers  <d.ayers@inode.at>
2522         * Protocol.m ([-isEqual:]): Test the class of the argument.
2524 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
2526         * configure.ac (includedir): Rename to ...
2527         (includedirname).
2528         * Makefile.in: s/includedir/includedirname/.
2530         PR target/11572
2531         * configure.ac (includedir): Set to "include"
2532         except for Darwin.
2533         (libext) Set to empty except for Darwin.
2534         * configure: Regenerate
2535         * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2536         s/include/$(includedir)/g.
2538 2004-05-25  Daniel Jacobowitz  <drow@false.org>
2540         * Makefile.in: Add .NOEXPORT.
2542 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
2544         Merge from the libobjc-branch
2545         2004-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
2547                 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2549         2004-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
2551                 * Makefile.in (OBJC_H): Add objc-deps.h.
2553         2004-01-27  Nicola Pero  <n.pero@mi.flashnet.it>
2555                 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2556                 ([-hash], [-isEqual:]): New methods.
2558         2004-01-27  Richard Frith-Macdonald <rfm@gnu.org>
2560                 * sarray.c (sarray_free): Add a better comment.
2562         2004-01-27  Adam Fedor  <fedor@gnu.org>
2564                 * hash.c (hash_add): Cast cachep to int.
2565                 * selector.c (__sel_register_typed_name): Cast
2566                 soffset_decode to int.
2568         2004-01-27  Alexander Malmberg  <alexander@malmberg.org>
2570                 * selector.c: Rename register_selectors_from_list to
2571                 __objc_register_selectors_from_list. Update caller.
2572                 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2573                 while registering selectors. Use __sel_register_typed_name instead
2574                 of sel_register_typed_name. Check for NULL method_name:s.
2575                 (pool_alloc_selector): New function.
2576                 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2577                 selector structures.
2578                 * sendmsg.c (class_add_method_list): Use
2579                 __objc_register_selectors_from_list.
2580                 * objc/runtime.h: Add __objc_register_selectors_from_list.
2582         2004-01-25  Adam Fedor  <fedor@gnu.org>
2583                     Nicola Pero  <n.pero@mi.flashnet.it>
2584                     Andrew Pinski  <pinskia@physics.uc.edu>
2586                 * objc/objc-decls.h: New file.
2587                 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2588                 (_objc_load_callback): Likewise.
2589                 (_objc_object_alloc): Likewise.
2590                 (_objc_object_copy): Likewise.
2591                 (_objc_object_dispose): Likewise.
2593         2004-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
2595                 * archive.c: s/__inline__/inline
2596                 * sendmsg.c: Likewise.
2598                 * encoding.c: Remove FIXME about the warning
2599                 about unused variable.
2600                 * sendmsg.c: Add a FIXME comment saying that
2601                 this should be using libffi.
2603                 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2606 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
2608         * archive.c (objc_read_class): Initialize class_name.
2609         (objc_read_selector): Initialize selector_name.
2611 2004-05-09  Richard Sandiford  <rsandifo@redhat.com>
2613         * Makefile.in (toolexecdir): Remove trailing space.
2615 2004-04-15  Nathanael Nerode  <neroden@gcc.gnu.org>
2617         PR libobjc/14948
2618         * configure.ac: De-precious CC so multilibs work.
2619         * configure: Regenerate.
2621 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2623         * configure.ac: Restore toolexecdir.
2624         * Makefile.in: Restore toolexecdir.
2625         * configure: Regenerate.
2627 2004-04-09  Nathanael Nerode  <neroden@gcc.gnu.org>
2629         * configure.ac: Remove (unused) glibcpp_prefixdir.
2630         * configure: Regenerate.
2632         * configure.in: Rename to configure.ac.
2633         * Makefile.in: Update to match.
2635         * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2636         Replace glibcpp_toolexeclibdir with toolexeclibdir.
2637         * configure.in: Remove glibcpp_toolexecdir (unused).
2638         Replace glibcpp_toolexeclibdir with toolexeclibdir.  Don't generate
2639         config.h or stamp-h (unused).  Move one comment to the right place.
2640         * configure: Regenerate.
2641         * config.h.in: Remove (unused).
2643         * config.h.in: Regenerate with autoheader.
2645         * Makefile.in: Remove (unused) gcc_version_trigger.
2646         * configure.in: Remove (unused) glibcpp_builddir.  Don't AC_SUBST
2647         gcc_version_trigger.
2648         * configure: Regenerate.
2650         * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2651         Sort file into sections.  Remove dnl where appropriate.  Fix
2652         other style issues.
2653         * configure: Regenerate.
2655         * configure.in: Replace old AC_PROG_CC hack with new one.
2656         Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2657         are no subdirectory output files, so this is fine).  Change prereq
2658         to autoconf 2.59.
2659         * aclocal.m4: Include ../config/no-executables.m4.
2660         * configure: Regenerate with autoconf 2.59.
2662         * configure.in: Improve comments on gthread_cflags.  Improve m4
2663         quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2664         * configure: Regenerate.
2666         * configure.in: Move PACKAGE and VERSION settings up top.  Remove
2667         unused call to AC_PROG_LN_S.  Default RANLIB to ':'.  Remove
2668         redundant checks for values of RANLIB, AR, INSTALL.
2669         * configure: Regenerate.
2671         * configure.in: Clean up handling of
2672         --enable-version-specific-runtime-libs and related variables;
2673         replace 'if test' with 'case' where reasonable.  Fix comments.
2674         Remove useless libstdcxx_interface.
2675         * configure: Regenerate.
2677         * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2678         Replace uses of target_alias with target_noncanonical.
2679         * aclocal.m4: Include ../config/acx.m4.
2680         * configure: Regenerate.
2681         * Makefile.in: Replace uses of target_alias with target_noncanonical.
2682         Fix copyright statement.
2684         * configure.in: Hand-inline bulky, confusing macros from
2685         aclocal.m4.  Replace references to "GNU Objective C" with "GCC".
2686         Update copyright notice.  Remove stuff for automake, which isn't
2687         used in this directory.  Remove emacs local variables.
2688         * aclocal.m4: Remove hand-inlined macros.  Update copyright notice.
2689         * configure: Regenerate.
2691 2004-03-16  Manfred Hollstein  <mh@suse.com>
2693         * Makefile.in, configure.in, configure: Update copyright years.
2695 2004-03-15  Manfred Hollstein  <mh@suse.com>
2697         * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2698         definition from configure.in.
2699         * configure.in (PACKAGE): Add definition.
2700         (VERSION): Add definition; substitute it in output files.
2701         * configure: Re-generate.
2703 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
2705         * objc/hash.h (hash_string, compare_strings):
2706         Add type-casts to make Objective-C++ happy.
2707         * objc/typedstream.h (objc_get_stream_class_version):
2708         Rename parameter from 'class' to 'class_name' to make
2709         Objective-C++ happy.
2711 2004-03-01  Michael Matz  <matz@suse.de>
2713         * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2715 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
2717         * objc/objc-api.h (objc_super): The 'class' field shall
2718         be named 'super_class' #ifdef __cplusplus.
2720 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
2722         PR target/10781
2723         * encoding.c (rs6000_special_round_type_align): Define.
2725 2004-01-14  Adam Fedor  <fedor@gnu.org>
2727         PR libobjc/12155
2728         * selector.c (__objc_register_instance_methods_to_class): Free
2729         new_list if not used.
2731 2004-01-09  Andrew Ruder  <aeruder@ksu.edu>
2733         PR libobjc/11904
2734         * sarray.c (sarray_free): Free array->is_copy_of latter.
2736 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
2738         PR 11433
2739         * Protocol.m (descriptionForInstanceMethod): Don't dereference
2740         instance_methods if it's NULL.
2741         (descriptionForClassMethod): Likewise for class_methods.
2743 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2745         * Makefile.in (runtime-info.h): Remove -Wp.
2747 2003-10-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2749         * Makefile.in (CC1OBJ): Remove.
2750         (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2751         correctly.
2752         Use .m extension for temporary file.
2753         Remove assembler temp file.
2755 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2757         * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2759 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2761         * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2763 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2765         * configure: Regenerate.
2767 2003-08-27  Alexander Malmberg  <alexander@malmberg.org>
2769         * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2770         (libdir)/gcc-lib/ when installing.
2771         * configure: Regenerate.
2773 Thu Jul 10 10:27:43 2003  Nicola Pero  <n.pero@mi.flashnet.it>
2775         libobjc/9969
2776         * sendmsg.c (get_imp): Fixed rare threading problem.
2777         (__objc_responds_to): Similar fixes.
2778         (objc_msg_lookup): Similar fixes.
2779         (__objc_init_install_dtable): Lock the runtime before checking if the
2780         table is installed.
2782 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2784         * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2785         makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2786         selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2787         thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2788         thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2789         thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2790         * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2791         class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2792         objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2793         objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2794         objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2796 Tue May 13 14:56:03 2003  Richard Frith-Macdonald <rfm@gnu.org>
2797                           Nicola Pero  <n.pero@mi.flashnet.it>
2799         libobjc/10742
2800         * init.c (class_superclass_of_class): New function.
2801         (create_tree_of_subclasses_inherited_from): Use it.
2802         (__objc_tree_insert_class): Likewise.
2803         (class_is_subclass_of_class): Likewise.
2805 2003-04-11  David Chad  <davidc@freebsd.org>
2806             Loren J. Rittle  <ljrittle@acm.org>
2808         libobjc/8562
2809         * objc/hash.h (hash_string): Constify correctly.
2810         (compare_ptrs): Use direct compare.
2811         * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2812         * objc/sarray.h: Global rename index to indx to avoid shadow.
2814 2003-03-12  Andreas Schwab  <schwab@suse.de>
2816         * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2817         glibcpp_toolexeclibdir.
2818         * configure: Rebuilt.
2820 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2822         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2823         config.status.
2824         * configure: Rebuilt.
2826 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2828         * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2829         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2830         version_specific_libs is enabled.
2831         * configure: Rebuilt.
2833 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
2835         * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2836         (install-libs, install-headers): Prepend $(DESTDIR) to
2837         destination paths in all (un)installation commands.
2839 2002-12-02  Zack Weinberg  <zack@codesourcery.com>
2841         * thr-objc.c: Include coretypes.h and tm.h.
2843 2002-12-01  Zack Weinberg  <zack@codesourcery.com>
2845         * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2847 2002-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2849         * configure.in: Remove skip-this-dir support.
2850         * configure: Regenerate.
2852 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2854         * Makefile.in (all): Fix multilib parallel build.
2856 Thu Sep 12 12:44:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2858         * sendmsg.c (nil_method): Declare not to take a variable number of
2859         args.
2860         (objc_msg_lookup): Cast nil_method to IMP before returning it.
2861         (objc_msg_lookup_super): The same.
2863 2002-09-10  Jan Hubicka  <jh@suse.cz>
2865         * nil_method.c (nil_method): No longer defined with variable
2866         arguments.
2868 2002-07-02  Rodney Brown  <rbrown64@csc.com.au>
2870         * objc/encoding.h: Fix formatting.
2871         * objc/hash.h: Likewise.
2872         * objc/objc-api.h: Likewise.
2873         * objc/runtime.h: Likewise.
2874         * objc/thr.h: Likewise.
2875         * archive.c: Likewise.
2876         * class.c: Likewise.
2877         * encoding.c: Likewise.
2878         * gc.c: Likewise.
2879         * hash.c: Likewise.
2880         * init.c: Likewise.
2881         * misc.c: Likewise.
2882         * nil_method.c: Likewise.
2883         * objects.c: Likewise.
2884         * sarray.c: Likewise.
2885         * selector.c: Likewise.
2886         * sendmsg.c: Likewise.
2887         * thr-mach.c: Likewise.
2888         * thr.c: Likewise.
2890 2002-06-25  DJ Delorie  <dj@redhat.com>
2892         * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2893         GLIBCPP_TOPREL_CONFIGURE.
2894         * configure.in: Call it before AC_CANONICAL_SYSTEM.
2895         * configure: Regenerate.
2897 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2899         * Object.m (forward, read, write): Fix unused parameter warnings.
2900         * encoding.c: Include <stdlib.h>.
2901         (target_flags): Mark with attribute unused.
2902         (atoi): Delete.
2903         * runtime.h (__objc_selector_max_index): Change to unsigned int.
2904         (__objc_generate_gc_type_description): Prototype.
2905         * selector.c (__objc_selector_max_index): Change to unsigned int.
2907 Mon Jun 17 18:37:42 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2909         * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2910         we always have a return value: if __objc_msg_forward does not
2911         supply a forwarding implementation, return the default
2912         __builtin_apply based one.
2914 2002-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2916         * Object.m: Fix signed/unsigned warning.
2917         * Protocol.m: Likewise.
2918         * archive.c: Always include stdlib.h.
2919         (objc_read_short, objc_read_unsigned_short, objc_read_int,
2920         objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2921         Fix signed/unsigned warning.
2922         (objc_write_type, objc_read_type, objc_write_types,
2923         objc_read_types): Ensure ctype 8-bit safety.
2924         (__objc_no_write, __objc_no_read): Mark unused parameters.
2925         * class.c (class_table_setup): Specify void arg.
2926         * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2927         objc_skip_typespec, objc_skip_offset,
2928         objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2929         (objc_layout_structure_next_member): Ensure variables are
2930         initialized.
2931         * gc.c (__objc_generate_gc_type_description,
2932         class_ivar_set_gcinvisible): Mark unused parameters.
2933         * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2934         unused parameters.
2935         (__objc_init_protocols) Fix signed/unsigned warning.
2936         * nil_method.c (nil_method): Mark unused parameters.
2937         * thr.h (objc_thread_callback): Specify void arg.
2938         * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2939         signed/unsigned warning.
2940         (sarray_free): Fix formatting.
2941         * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2942         * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2944 2002-06-09  Andreas Jaeger  <aj@suse.de>
2946         * encoding.c (objc_layout_structure_next_member): Remove unused
2947         variable.
2949 2002-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2951         * Makefile.in (SHELL): Set to @SHELL@.
2952         (WARN_CFLAGS): New.
2953         (ALL_CFLAGS): Add $(WARN_CFLAGS).
2955 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2957         * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2958         * configure: Regenerate.
2960 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
2962         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2963         script entry, and set LD to it when configuring multilibs.
2964         * configure: Rebuilt.
2966 2002-04-19  David O'Brien  <obrien@FreeBSD.org>
2968         * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2970 2002-04-09  Hans-Peter Nilsson  <hp@bitrange.com>
2972         PR objc/6107
2973         * objc/objc-api.h (struct objc_protocol_list): Change type of
2974         member count from int to size_t.
2976 2002-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2978         PR libobjc/4039
2979         * aclocal.m4: Replace with version copied from libstdc++-v3.
2980         * configure.in: Update for changes to aclocal and Makefile.
2981         * configure: Regenerate.
2982         * Makefile.in: Correct install of multilibs and shared libs, use
2983         INSTALL_DATA for include files.
2985 Mon Dec 17 17:02:12 2001  Nicola Pero  <nicola@brainstorm.co.uk>
2987         * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2988         categories - when an unclaimed category was found, the loop was
2989         doing two steps forward instead of one, so that in certain cases
2990         it was failing to properly load all the categories.  (Reported
2991         with fix by Alexander Malmberg <alexander@malmberg.org>).
2993 2001-11-14  Aldy Hernandez  <aldyh@redhat.com>
2995         * encoding.c: Add target_flags.
2997 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2999          * objc/objc-api.h (_C_VECTOR): New.
3001          * encoding.c (VECTOR_TYPE): New.
3003 Mon Oct 29 21:29:21 2001  Nicola Pero  <n.pero@mi.flashnet.it>
3005         * class.c: Rewritten the class table to use optimized, lock-free
3006         lookup.  This more than doubles the speed of class method
3007         invocations.  (class_table_setup), (class_table_insert),
3008         (class_table_replace), (class_table_get_safe),
3009         (class_table_next), (class_table_print),
3010         (class_table_print_histogram): New functions.
3011         (__objc_init_class_tables): Use class_table_setup.
3012         (__objc_add_class_to_hash): Use class_table_get_safe and
3013         class_table_insert.  (objc_lookup_class), (objc_get_class): Do not
3014         assert the existence of the table; do not lock the runtime; use
3015         class_table_get_safe.  (objc_next_class): Use class_table_next.
3016         (__objc_resolve_class_links): Use class_table_next.
3017         (class_pose_as): Use class_table_replace.
3019 2001-09-10  Ovidiu Predescu  <ovidiu@cup.hp.com>
3021         * gc.c: Removed the DEBUG declaration.
3023 Wed Jul 18 12:48:56 2001  Nicola Pero  <n.pero@mi.flashnet.it>
3025         * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
3026         rather than through objc_thread_id, to save a function call.
3027         (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
3028         Ditto.
3030 Mon Jul 16 12:15:00 2001  Nicola Pero  <n.pero@mi.flashnet.it>
3032         * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
3033         to cast an id to a Class, which can not be done.  Make the check
3034         by using CLS_ISMETA on the class pointer instead.
3035         (object_is_meta_class): Similar fix.
3037 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>, Stephen L Moshier  <moshier@mediaone.net>
3039         * configure.in (AC_EXEEXT): Work around in case it expands to
3040         nothing, as in autoconf 2.50.
3041         * acinclude.m4: Likewise.
3042         * configure: Rebuilt.
3044 2001-06-08  Nicola Pero  <n.pero@mi.flashnet.it>
3046         * THREADS: Explain that when we compile libobjc inside GCC, we
3047         always use thr-objc.c as a backend, which uses GCC's thread code.
3049 2001-06-06  Richard Frith-Macdonald  <rrfm@gnu.org>
3051         * init.c (__objc_send_message_in_list): When setting a new entry
3052         in __objc_load_methods use the method IMP as key, but check to see
3053         if the method is in the hashtable by looking at the IMP also.
3054         Also ... call the method after adding it to the hashtable rather
3055         than before ... thus preventing an obscure possibility of infinite
3056         recursion if a +load method itself loads a subclass.
3058 2001-05-25  Ovidiu Predescu  <ovidiu@cup.hp.com>
3060         * init.c (__objc_send_message_in_list): When setting a new entry
3061         in __objc_load_methods use the method name as key, not the method
3062         IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
3064 2001-05-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3066         * objc-features.texi: Move to ../gcc/objc.texi.
3067         * fdl.texi: Remove.
3068         * Makefile.in: Don't generate documentation from
3069         objc-features.texi.
3071 2001-05-01  Mark Mitchell  <mark@codesourcery.com>
3073         * fdl.texi: New file.
3074         * objc-features.texi: Simplify.
3075         * Makefile.in: Adjust accordingly.
3077 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
3079         * objc-features.texi: Use the GFDL.
3081 Wed Mar 21 04:44:58 EST 2001  John Wehle  (john@feith.com)
3083         * encoding.c (REAL_TYPE): Define.
3085 2001-03-19  David Edelsohn  <edelsohn@gnu.org>
3087         * encoding.c (TYPE_MODE): Define.
3089 2001-03-14  Nicola Pero  <n.pero@mi.flashnet.it>
3091         * thr.c (objc_thread_add): New function.
3092         (objc_thread_remove): Ditto.
3093         * objc/thr.h: Declare them.
3094         * libobjc.def: Mention them.
3096 2001-02-28  Ovidiu Predescu  <ovidiu@cup.hp.com>
3098         * objc-features.texi: Document the @compatibility_alias compiler
3099         directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
3101 Fri Feb 23 18:12:00 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3103         * sendmsg.c (__objc_forward): Delete strlen() declaration.
3105 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
3107         * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
3108         we're not interested in the result and they might fail.
3109         * configure: Regenerated.
3111 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3113         * objc-features.texi: Use @email.
3115 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3117         * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
3118         printf.
3120 2000-01-11  Richard Earnshaw  <rearnsha@arm.com>
3122         * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
3123         determines the value dynamically.
3125 Wed Jan  3 00:49:10 2001  Ovidiu Predescu  <ovidiu@cup.hp.com>
3127         * sendmsg.c: Added __objc_msg_forward, a hook that allows external
3128         libraries to provide a function that returns the real forwarding
3129         function. This can alleviate problems __builtin_apply() and
3130         friends have on various platforms. (Solution suggested by Helge
3131         Hess.)
3133         * objc/objc-api.h: Define __objc_msg_forward.
3135         * sendmsg.c: Define gen_rtx_REG.
3137 2000-12-06      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3139         * thr-rtems.c: New file. Stub to compile.
3141 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3143         * configure: Rebuilt with new libtool.m4.
3145 Tue Aug 15 00:38:56 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3147         * configure.in: Create a config.h file. Check for <sched.h>.
3148         * configure: Regenerate.
3150         * config.h.in: Check for <sched.h>.
3152 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
3154         * configure: Regenerate after change to ../libtool.m4.
3156 2000-08-14  Andreas Schwab  <schwab@suse.de>
3158         * objc-features.texi (Top): Move @menu at end of node.
3160 2000-08-11  Manfred Hollstein  <manfredh@redhat.com>
3162         * objc-features.texi: Move @node Top before @menu.
3164 Sun Aug  6 23:27:49 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3166         * objc-features.texi: Documented the new -fconstant-string-class
3167         option.
3169 Sun Aug  6 22:51:16 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3171         * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3172         improve the Posix thread support for Objective-C.
3174 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
3176         * aclocal.m4: Replace copy of ../libtool.m4 with
3177         sinclude(../libtool.m4).
3179 Fri Jul 28 08:58:02 2000  Nicola Pero  <nicola@brainstorm.co.uk>
3181         * configure.in: Added libtool support; build shared libraries
3182         if --enable-shared was passed on command line.
3183         * Makefile.in: Modified most compilation commands to use libtool.
3184         * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3185         libtool distribution.
3187 Sat Jul 29 00:10:21 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3189         * sarray.c, Object.m: Removed the explicit prototypes for strlen
3190         and memcpy on 64-bit platforms (Suggested by Rodney Brown
3191         <rdb@cup.hp.com>).
3193 2000-05-12  H.J. Lu  (hjl@gnu.org)
3195         * Makefile.in (GTHREAD_FLAGS): New.
3196         (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3197         (OBJC_THREAD_FILE): Changed to thr-objc.
3199         * configure.in (GTHREAD_FLAGS): New, check and replace it for
3200         Makefile.
3201         (OBJC_THREAD_FILE): Removed.
3203         * thr-objc.c: New.
3205 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3207         * objc/hash.h: Include string.h.
3209 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
3211         * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3213 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
3215         * Object.m (strlen): Provide prototype on all 64bit platforms,
3216         not only alpha.
3217         * sarray.c (memcpy): Likewise.
3218         * encoding.c (objc_layout_finish_structure): Don't use
3219         ROUND_TYPE_ALIGN on sparc.
3221         * encoding.c (objc_layout_structure_next_member): Do the whole
3222         procedure even for the first member, so that we get correct
3223         alignment.
3225 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
3227         * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3228         comments.
3230 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
3232         * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3234 Thu Sep 23 07:19:12 1999   Chris Ball <cball@fmco.com>
3236         * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3238 Tue Sep 21 07:47:10 1999  Jeffrey A Law  (law@cygnus.com)
3240         * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3241         the compiler when building C code.
3243 Fri Aug  6 23:32:29 1999  Daniel Jacobowitz <drow@drow.them.org>
3245         * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3246         libdir, libsubdir and tooldir.
3248 Mon Jun 21 05:40:15 1999  John David Anglin <dave@hiauly1>
3250         * init.c (__objc_force_linking): Make global.
3252 Thu May 20 03:20:59 1999  Jeffrey A Law  (law@cygnus.com)
3254         * configure.in (AC_EXEEXT): Remove call.
3255         (compiler_name): Explicitly check with no extension and .exe
3256         extension.
3257         * configure: Regenerate.
3259 Sun Apr 25 01:15:34 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3261         * Makefile.in (CC1OBJ): Define in terms of CC.
3262         (runtime-info.h): Use.
3264 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3266         * objc-features.texi: Updated the URL to Boehm's GC page.
3268 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3270         * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3271         the char as being signed (patch from Daniel Jacobowitz
3272         <drow@false.org>).
3274 Wed Mar 24 22:41:28 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3276         * configure.in (AC_PREREQ): Update to 2.13.
3277         (AC_EXEEXT): Call to find possible file extension.
3278         (compiler_name): Use.
3279         * configure: Regenerate.
3281 Wed Jan 27 02:31:01 1999  Jeffrey A Law  (law@cygnus.com)
3283         * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3285 Tue Jan  5 01:38:53 1999  Jeffrey A Law  (law@cygnus.com)
3287         * configure.in (thread_file): Correct and simplify code to find
3288         the thread file.
3289         * configure: Rebuilt.
3291 1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
3293         * configure.in (compiler_name): Add check to detect if this
3294         language's compiler has been built.
3295         * configure: Regenerate.
3297 Mon Nov 23 16:50:28 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3299         *  configure.in: Use AC_PREREQ(2.12.1).
3301 Thu Nov 19 20:33:37 1998  Jeffrey A Law  (law@cygnus.com)
3303         * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3305 Sun Nov  8 17:46:14 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3307         * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3309 Thu Oct 22 14:34:06 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3311         * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3313 Sat Oct 17 05:21:31 1998  Ovidiu Predescu  <ovidiu@slip.net>
3315         * objc-features.texi (Top): Changed the email address.
3316         * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3318 Mon Oct 11 21:25:27 1998  Ovidiu Predescu  <ovidiu@slip.net>
3320         * encoding.c: Redefine get_inner_array_type to get the first entry
3321         in the structure.
3323 Thu Oct  8 12:21:14 1998  Richard Frith-Macdonald <richard@brainstorm.co.uk>
3325         * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3326         (objc_get_type_qualifiers): Similarly.
3327         * objc/encoding.h (_C_BYREF): Define.
3328         (_F_BYREF): Define.
3330 1998-10-07  David S. Miller  <davem@pierdol.cobaltmicro.com>
3332         * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3333         works out on 64-bit systems.
3335 Tue Oct  6 20:32:06 1998  Alexandre Oliva  <oliva@dcc.unicamp.br>
3337         * Makefile.in (INCLUDES): Make it multilib-friendly.
3339 Fri Oct  2 07:12:14 1998  H.J. Lu  (hjl@gnu.org)
3341         * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3343 Thu Oct  1 22:33:03 1998 Robert Lipe  <robertl@dgii.com>
3344                          Jeffrey A Law  (law@cygnus.com)
3346         * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3347         (FLAGS_TO_PASS): Added.
3348         (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3350         * archive.c: Change config.h to tconfig.h.
3352         * configure.in: Find gcc's object directory even for multilibs.
3354 Wed Sep 30 18:17:17 1998  Robert Lipe  <robertl@dgii.com>
3356         * configure.in: Escape ^ in grep string.
3357         * configure: Rebuilt.
3359 Wed Sep 30 09:14:52 1998  Jeffrey A Law  (law@cygnus.com)
3361         * All .h files pushed down into the objc/ subdirectory.
3362         * Makefile.in (copy_headers): Corresponding changes.
3363         * configure.in (AC_INIT): Corresponding changes.
3364         * configure: Rebuilt.
3366 1998-09-30  Ben Elliston  <bje@cygnus.com>
3367             Jeff Law      <law@cygnus.com>
3369         * Makefile.in: Rewrite.
3371         * configure.in: Likewise.
3373         * configure: Regenerate.
3375         * All .c files.  Remove "objc" prefix when including objc header
3376         files.  Include tconfig.h, not ../tconfig.h.
3378 Mon Sep 21 23:27:10 1998  Ovidiu Predescu <ovidiu@slip.net>
3380         * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3381         (get_inner_array_type): Define.
3383 1998-09-21  Ben Elliston  <bje@cygnus.com>
3385         * New directory.  Moved files from ../gcc/objc.