Move libgcc1 to toplevel libgcc
[official-gcc.git] / libobjc / ChangeLog
blob86e8c139194ba3b9e895ac8c2ebb89af84430357
1 2011-10-17  Paul Brook  <paul@codesourcery.com>
2             Matthias Klose  <doko@ubuntu.com>
4         * exception.c (parse_lsda_header): hardcode ttype_encoding for older
5         ARM EABI toolchains.
6         (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
8 2011-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10         PR libobjc/49883
11         * init.c (__objc_exec_class): Work around a bug in clang's code
12         generation.  Clang sets the class->info field to values different
13         from 0x1 or 0x2 (the only allowed values in the traditional GNU
14         Objective-C runtime ABI) to store some additional information, but
15         this breaks backwards compatibility.  Wipe out all the bits in the
16         fields other than the first two upon loading a class.
18 2011-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19         
20         * class.c (objc_lookup_class): Added back for compatibility with
21         clang which seems to emit calls to it.
23 2011-10-08  Richard Frith-Macdonald <rfm@gnu.org>
24             Nicola Pero  <nicola.pero@meta-innovation.com>
26         PR libobjc/50428
27         * sendmsg.c (__objc_send_initialize): If a class does not have an
28         +initialize method, search for an +initialize method in the
29         superclass and in the ancestor classes and execute the first one
30         that is found.  This makes the GNU runtime behave in the same way
31         as the Apple/NeXT runtime with respect to +initialize methods and
32         subclassing.
34 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
36         PR libobjc/50002
37         * class.c (__objc_update_classes_with_methods): Iterate over meta
38         classes as well as normal classes when refreshing the method
39         implementations.  This fixes replacing class methods.
41 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
43         * class.c (class_getSuperclass): Fixed to work with meta classes
44         still in construction too.
46 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
48         * class.c (class_getSuperclass): Fixed typo in comment.
49         
50 2011-08-06  Nicola Pero  <nicola.pero@meta-innovation.com>
52         PR libobjc/49882
53         * class.c (class_getSuperclass): Return the superclass if the
54         class is in construction.
55         * objc/runtime.h (class_getSuperclass): Updated documentation.
57 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
59         * Makefile.in (INCLUDES): Search
60         $(srcdir)/$(MULTISRCTOP)../libgcc.
62 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
64         * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
66 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
68         * configure.ac (VERSION): Bumped to 4:0:0.
69         * configure (VERSION): Likewise.
71 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
73         * objc/README: Updated.
74         * objc-private/selector.h: Updated comments.
75         
76 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
78         * sendmsg.c (class_get_instance_method): Removed.
79         (class_get_class_method): Removed.
80         (objc_get_uninstalled_dtable): Removed.
82 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
84         * objc-private/module-abi-8.h (class_get_instance_size): Removed.
85         * objects.c (class_create_instance): Removed.
86         * error.c (__USE_FIXED_PROTOTYPES__): Removed.
87         * gc.c (__objc_generate_gc_type_description): Use
88         class_getInstanceSize() instead of class_get_instance_size().
89         * selector.c (sel_types_match): Made static.
90         (sel_get_typed_uid): Removed.
91         (sel_get_any_typed_uid): Removed.
92         (sel_get_name): Removed.
93         (sel_get_type): Removed.
94         (sel_register_name): Removed.
95         (sel_register_typed_name): Removed.
96         (sel_get_uid): Removed.
98 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
100         * encoding.c (method_get_number_of_arguments): Removed.
101         (method_get_sizeof_arguments): Removed.
103 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
105         * class.c (objc_next_class): Removed.
106         (class_pose_as): Removed.
107         (CLASSOF): Removed.
108         (class_table_replace): Removed.
109         (objc_lookup_class): Removed.
111 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
113         Removed the Traditional Objective-C runtime public API.
114         * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
115         (install-headers): Do not create the objc/deprecated directory and
116         do not install the deprecated headers.
117         (OBJC_H): Removed encoding.h and objc-api.h.
118         * Object.m: Removed all methods with the exception of -class and
119         -isEqual:.  Updated includes.  ([-class]): Use Modern API.
120         * objc/Object.h: Do not include deprecated/Object.h.
121         * objc/deprecated/Object.h: Removed.
122         * linking.m (__objc_linking): Call [Object class] instead of
123         [Object name].
124         * Protocol.m: Removed all methods with the exception of -isEqual:.
125         Updated includes.
126         * objc/Protocol.h: Do not include deprecated/Protocol.h.
127         * objc/deprecated/Protocol.h: Removed.
128         * objc/deprecated/struct_objc_symtab.h: Removed.
129         * objc/deprecated/struct_objc_module.h: Removed.
130         * objc/deprecated/struct_objc_ivar.h: Removed.
131         * objc/deprecated/struct_objc_ivar_list.h: Removed.
132         * objc/deprecated/struct_objc_method.h: Removed.
133         * objc/deprecated/struct_objc_method_list.h: Removed.
134         * objc/deprecated/struct_objc_protocol_list.h: Removed.
135         * objc/deprecated/struct_objc_category.h: Removed.
136         * objc/deprecated/MetaClass.h: Removed.
137         * objc/deprecated/objc_msg_sendv.h: Removed.  
138         * objc/deprecated/README: Removed.
139         * objc/deprecated/struct_objc_class.h: Removed.
140         * objc/deprecated/struct_objc_protocol.h: Removed.
141         * objc/deprecated/struct_objc_selector.h: Removed.
142         * objc/encoding.h: Removed.
143         * objc/message.h (struct objc_super): Removed the definition for
144         the Traditional Objective-C runtime API.
145         * objc/objc.h: Do not include objc/objc-decls.h.
146         deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
147         deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
148         and deprecated/objc_msg_sendv.h.  Uncommented new definition of
149         Protocol *.
150         * objc/objc-api.h: Removed.
151         * objc/runtime.h: Updated comments.  Removed check to detect
152         concurrent usage of Traditional and Modern APIs.
153         * objc-private/module-abi-8.h: Always define struct objc_class and
154         struct objc_protocol.  (struct objc_protocol_list): Changed type
155         of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
156         (class_get_instance_size): Added.
157         * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
158         'struct objc_protocol *' as argument, not a 'Protocol *'.
159         * objc-private/runtime.h: Updated comments.
160         * objc-private/selector.h (struct objc_selector, sel_eq): Added.
161         * class.c: Include objc-private/selector.h.
162         (objc_get_meta_class): Return a Class instead of a MetaClass.
163         * encoding.c (method_get_next_argument): Removed.
164         (method_get_first_argument): Removed.
165         (method_get_nth_argument): Removed.
166         * gc.c: Include objc/runtime.h instead of objc/encoding.h.
167         Include objc-private/module-abi-8.h and ctype.h.
168         * protocols.c (__objc_protocols_add_protocol): Take a 'struct
169         objc_protocl *' as argument, not a 'Protocol *'.
170         (class_addProtocol): Added casts to 'struct objc_protocol *' and
171         'Protocol *'.
172         (class_copyProtocolList): Likewise.
173         (protocol_conformsToProtocol): Likewise.
174         (protocol_copyProtocolList): Likewise.
175         * sarray.c: Include objc-private/module-abi-8.h.
176         * sendmsg.c (method_get_next_argument): Removed.
177         (method_get_first_argument): Removed.
178         (method_get_nth_argument): Removed.
179         (objc_msg_sendv): Removed.
180         (arglist_t, retval_t): New.  (class_get_class_method): Take a
181         'Class', not 'MetaClass', argument.
182         * thr.c: Include module-abi-8.h.
183         
184 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
186         * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
187         and objc_get_uninstalled_dtable.h.
188         * objc/deprecated/struct_objc_static_instances.h: Removed.
189         * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.       
190         * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
191         and deprecated/objc_get_uninstalled_dtable.h.
192         
193 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
195         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
196         * objc/deprecated/objc_object_alloc.h: Removed.
197         * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
198         * objects.c (_objc_object_alloc, _objc_object_dispose,
199         _objc_object_copy): Removed.
200         * libobjc.def (__objc_object_alloc, __objc_object_copy,
201         __objc_object_dispose): Removed.
202         
203 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
205         * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
206         * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
207         * objc/deprecated/METHOD_NULL.h: Removed.
208         
209 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
211         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
212         objc_malloc.h and objc_unexpected_exception.h.
213         (exception.lo): Do not use -Wno-deprecated-declarations.
214         (exception_gc.lo): Likewise.
215         * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
216         deprecated/objc_malloc.h and
217         deprecated/objc_unexpected_exception.h.
218         * objc/deprecated/objc_valloc.h: Removed.
219         * objc/deprecated/objc_malloc.h: Removed.
220         * objc/deprecated/objc_unexpected_exception.h: Removed.
221         * exception.c (_objc_unexpected_exception): Removed.
222         (objc_exception_throw): Do not check for
223         _objc_unexpected_exception.
224         * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
225         _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.        
226         * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
227         
228 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
230         * objc/objc.h: Do not include deprecated/STR.h.
231         * objc/deprecated/STR.h: Removed.
232         * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
233         
234 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
236         * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
237         (OBJC_DEPRECATED_H): Likewise.
238         * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
239         objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
240         objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
241         hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
242         sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
243         sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
244         * objc/sarray.h: Removed.
245         * objc/hash.h: Removed.
246         * objc/deprecated/sarray.h: Removed.
247         * objc/deprecated/hash.h: Removed.
248         * objc/Object.h: Do not include objc/deprecated/hash.h
249         * Object.m: Include string.h.
250         * objc/objc-api.h: Do not include objc/deprecated/hash.h.
251         * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
252         Removed.
254 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
256         * Object.m ([-forward::]): Removed.
257         * objc/deprecated/Object.h ([-forward::]): Removed.
258         * sendmsg.c (__objc_forward): Updated comments.
259         
260 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
262         * Makefile.in (OBJC_H): Removed objc-list.h.
263         (OBJC_DEPRECATED_H): Removed objc-list.h.
264         * objc/objc-list.h: File removed.
265         * objc/deprecated/objc-list.h: File removed.
267 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
269         * Makefile.in (OBJC_H): Removed typedstream.h.
270         (OBJC_DEPRECATED_H): Removed typedstream.h.
271         (C_SOURCE_FILES): Removed archive.c.
272         (Object.lo): Rule removed.
273         (Object_gc.lo): Likewise.
274         (archive.lo): Likewise.
275         (archive_gc.lo): Likewise.
276         * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
277         [-awake]): Removed.
278         Do not include deprecated/typedstream.h.
279         * Object.m: Removed the same methods.
280         * archive.c: File removed.
281         * objc/typedstream.h: File removed.
282         * objc/deprecated/typedstream.h: File removed.
283         * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
284         __objc_write_class, __objc_write_object, __objc_write_selector,
285         objc_close_typed_stream, objc_end_of_typed_stream,
286         objc_flush_typed_stream, objc_get_stream_class_version,
287         objc_open_typed_stream, objc_open_typed_stream_for_file,
288         objc_read_array, objc_read_char, objc_read_int, objc_read_long,
289         objc_read_object, objc_read_selector, objc_read_short,
290         objc_read_string, objc_read_type, objc_read_types,
291         objc_read_unsigned_char, objc_read_unsigned_int,
292         objc_read_unsigned_long, objc_read_unsigned_short,
293         objc_write_array, objc_write_char, objc_write_int,
294         objc_write_long, objc_write_object, objc_write_object_reference,
295         objc_write_root_object, objc_write_selector, objc_write_short,
296         objc_write_string, objc_write_string_atomic, objc_write_type,
297         objc_write_types, objc_write_unsigned_char,
298         objc_write_unsigned_int, objc_write_unsigned_long,
299         objc_write_unsigned_short): Removed.
300         
301 2011-06-02  Nicola Pero  <nicola.pero@meta-innovation.com>
303         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
304         * objc/deprecated/objc_error.h: Removed.
305         * objc/objc-api.h: Do not include deprecated/objc_error.h.
306         * libobjc.def (objc_error, objc_verror): Removed.
307         * error.c (_objc_error_handler, objc_error, objc_verror,
308         objc_set_error_handler): Removed.
309         * Object.m ([-error:], [-perform:], [-perform:with:],
310         [-perform:with:with], [-subclassResponsibility:],
311         [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
312         Removed.
313         * objc/deprecated/Object.h: Removed the same methods.
314         * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
315         method after trying to invoke the "doesNotRecognize:" method.
316         
317 2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>
319         * sendmsg.c: Reindented part of the file.  No non-trivial changes
320         in code.
322 2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>
324         * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
325         not objc_lookup_class.
327 2011-05-25  Richard Frith-Macdonald <rfm@gnu.org>
328             David Ayers  <ayers@fsfe.org>
330         PR libobjc/38307
331         * sendmsg.c: Include objc/hash.h.
332         (get_implementation): New function, mostly with code from get_imp
333         updated to support the new +initialize dispatch table logic.
334         (get_imp): Use get_implementation.
335         (__objc_responds_to): Updated to support the new +initialize
336         dispatch table logic.
337         (class_respondsToSelector): Likewise.
338         (objc_msg_lookup): Use get_implementation.
339         (__objc_init_install_dtable): Removed.
340         (__objc_install_methods_in_dtable): Updated arguments.
341         (__objc_install_dispatch_table_for_class): Renamed to
342         __objc_install_dtable_for_class and updated to support the new
343         +initialize dispatch table logic.
344         (__objc_update_dispatch_table_for_class): Updated to support the
345         new +initialize dispatch table logic.
346         (__objc_forward): Call get_implementation instead of get_imp.
347         (prepared_dtable_table): New.
348         (__objc_prepare_dtable_for_class): New. 
349         (__objc_prepared_dtable_for_class): New.
350         (__objc_get_prepared_imp): New.
351         (__objc_install_prepared_dtable_for_class): New.
352         
353 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
355         PR libobjc/48177
356         * selector.c (__sel_register_typed_name): Use sel_types_match()
357         instead of strcmp() to compare selector types (Suggestion by
358         Richard Frith-Macdonald <rfm@gnu.org>).
360 2011-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
362         PR libobjc/32037
363         * Makefile.in (OBJC_GCFLAGS): Move ...
364         * configure.ac (enable_objc_gc): ... here.
365         Add $(libsuffix) to OBJC_BOEHM_GC.
366         * configure: Regenerate.
368 2011-02-28  Nicola Pero  <nicola.pero@meta-innovation.com>
369         
370         * selector.c (sel_getTypedSelector): Return NULL if there are
371         multiple selectors with conflicting types.
372         * objc/runtime.h (sel_getTypedSelector): Updated documentation.
373         
374 2011-02-28  Richard Frith-Macdonald <rfm@gnu.org>
376         PR libobjc/47922
377         * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
378         a hardcoded "!".
380 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
382         * configure: Regenerate.
384 2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>
386         * init.c (create_tree_of_subclasses_inherited_from): Use
387         class_superclass_of_class instead of assuming a class is
388         unresolved when it could be resolved.  Tidied up assignment and
389         check.
390         (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
391         (objc_tree_insert_class): Tidied up loop; return immediately upon
392         inserting a class.
393         (__objc_exec_class): Do not set __objc_class_tree_list.
394         
395 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
397         * selector.c (sel_getTypedSelector): Return NULL if given a NULL
398         argument.
399         (sel_registerTypedName): Same.
400         (sel_registerName): Same.
401         * objc/runtime.h: Updated documentation.
402         
403 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
405         * objc/runtime.h (class_addIvar): Updated documentation.  The
406         alignment is actually the log_2 of the alignment in bytes.
407         * ivars.c (class_addIvar): Corresponding change to the
408         implementation.
409         
410 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
412         * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
413         be consistent with method_getTypeEncoding and
414         ivar_getTypeEncoding.
415         (sel_copyTypedSelectorList, sel_getTypedSelector): New.
416         * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
417         (sel_copyTypedSelectorList, sel_getTypedSelector): New.
418         (sel_get_type): Updated call to sel_getType.
419         
420 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
422         * objc/runtime.h (class_conformsToProtocol,
423         class_copyProtocolList): Updated documentation.
425 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
427         * init.c (create_tree_of_subclasses_inherited_from): Updated
428         DEBUG_PRINTF messages.
429         (__objc_tree_insert_class): Same.
430         (__objc_send_load_using_method_list): Same.
431         (__objc_send_load): Same.
432         (__objc_exec_class): Same.  In particular, do not print the module
433         name since it is no longer used.
434         * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
435         tracking +initialize calls.
436         (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
437         tracking updates of dispatch tables.
438         (__objc_install_dispatch_table_for_class): Same.
439         
440 2010-12-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
442         * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
443         (libobjc_gc$(libsuffix).la): Likewise.
445 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
447         * sendmsg.c (class_addMethod): Return NO if the method already
448         exists in the class.
450 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
452         * init.c (duplicate_classes): New.
453         (__objc_exec_class): Initialize duplicate_classes.
454         (__objc_create_classes_tree): Ignore classes in the
455         duplicate_classes table.
456         (__objc_call_load_callback): Same.
457         (__objc_init_class): If a duplicate class is found, add it to
458         duplicate_classes instead of aborting.  Return YES if the class is
459         not a duplicate, and NO if it is.
460         * objc-private/runtime.h (__objc_init_class): Updated prototype.
462 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
464         * objc-private/objc-list.h: Reindented file.  No code changes.
465         * objc-private/sarray.h: Same change.
467 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
469         * objc-private/accessors.h: Removed 'extern "C"' guards.  This
470         file is never compiled with C++.
471         * objc-private/hash.h: Same change.
472         * objc-private/objc-list.h: Same change.
473         * objc-private/objc-sync.h: Same change.
474         * objc-private/protocols.h: Same change.
475         * objc-private/runtime.h: Same change.
476         * objc-private/sarray.h: Same change.
477         * objc-private/selector.h: Same change.
479 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
481         PR libobjc/18764
482         * class.c (__objc_add_class_to_hash): Return YES if the class was
483         added, and NO if it already existed.
484         * init.c (__objc_init_class): If __objc_add_class_to_hash returns
485         NO, then abort the program with an error message.
486         * objc-private/runtime.h (__objc_add_class_to_hash): Updated
487         declaration.
489 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>      
491         * init.c (_objc_load_callback): Initialize with 0.
492         (__objc_call_callback): Renamed to __objc_call_load_callback.
493         Check _objc_load_callback only once, and if it is not set, return
494         immediately.
495         (objc_send_load): Updated call to __objc_call_callback.
496         
497 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
499         PR libobjc/16110
500         * init.c (__objc_send_message_in_list): Renamed to
501         __objc_send_load_using_method_list.  Do not take an 'op' argument.
502         Register the 'load' selector if needed.
503         (__objc_send_load): Do not register the 'load' selector.  Updated
504         call to __objc_send_message_in_list.
505         (__objc_create_classes_tree): Add the class of any claimed
506         category that was loaded in the module to the list of classes for
507         which we try to execute +load.
508         
509 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
511         * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
512         Updated comments.
513         * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
514         a pointer using DEBUG_PRINTF.
515         
516 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
518         PR libobjc/45953
519         * selector.c (__sel_register_typed_name): When registering a new
520         selector with the same name as an existing one, reuse the existing
521         name string.  Also updated types, casts and comments in the whole
522         function.
524 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
526         * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
527         to be 'struct objc_selector *' and not 'SEL'.
528         * init.c (__objc_exec_class): Call
529         __objc_register_selectors_from_module instead of iterating over
530         each selector and calling __sel_register_typed_name for each.
531         * objc-private/selector.h: Declare
532         __objc_register_selectors_from_module instead of
533         __sel_register_typed_name.
534         * selector.c (__objc_register_selectors_from_module): New.
535         (__sel_register_typed_name): Made static.
536         
537 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
539         * linking.m: Do not include objc/NXConstStr.h.
541 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
542         
543         * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
544         * objc-private/common.h (DEBUG_PRINTF): To here.
545         * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
546         
547 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
549         * hash.c: Tidied up comments and indentation.  No code changes.
551 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
553         PR libobjc/47012
554         * accessors.m (objc_getProperty): If not atomic, do not
555         retain/autorelease the returned value.
557 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
559         * objc-private/runtime.h (__objc_selector_max_index,
560         __objc_init_selector_tables, __objc_register_selectors_from_class,
561         __objc_register_selectors_from_list,
562         __objc_register_selectors_from_description_list): Moved to ...
563         * objc-private/selector.h: ... here.
565 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
567         * objc-private/runtime.h (__objc_class_links_resolved): Removed.
568         (__objc_print_dtable_stats): Removed.
569         (__sel_register_typed_name): Removed.
570         * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
571         
572 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
574         * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
575         if appropriate, after loading the module.
577 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
579         * sendmsg.c (method_setImplementation): Do not declare.
581 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
583         * objc/message.h: Updated comments.
584         * objc/runtime.h: Updated comments.
585         
586 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
588         * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
589         * protocols.c: Updated all calls to objc_lookupClass to call
590         objc_lookUpClass instead.
591         * sendmsg.c (objc_lookupClass): Do not declare.
592         (get_imp): Update call to objc_lookupClass to call
593         objc_lookUpClass instead.
594         * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
596 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
598         * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
599         * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
600         define.  Updated comments.
601         
602 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
604         * objc/encoding.h: Updated comments.
605         * objc/runtime.h: Updated comments.
606         (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
607         (objc_sizeof_type): Same.
608         (objc_alignof_type): Same.
609         (objc_aligned_size): Same.
610         (objc_promoted_size): Same.
611         (objc_skip_type_qualifiers): Same.
612         (objc_skip_typespec): Same.
613         (objc_skip_offset): Same.
614         (objc_skip_argspec): Same.
615         (objc_get_type_qualifiers): Same.
616         (objc_layout_structure): Same.
617         (objc_layout_structure_next_member): Same.
618         (objc_layout_finish_structure): Same.
619         (objc_layout_structure_get_info): Same.
620         
621 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
623         * init.c: Updated comments.
624         * objc/objc-api.h: Updated comments.
625         * objc/runtime.h (_objc_load_callback): Declare.
626         
627 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
629         * objc/Object.h: Include deprecated/typedstream.h and
630         deprecated/hash.h instead of typedstream.h.  Updated comments.
632 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
634         * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
635         * objc/deprecated/objc_msg_sendv.h: New.
636         * objc/message.h: Do not define retval_t, apply_t, arglist,
637         arglist_t, objc_msg_sendv, now in
638         objc/deprecated/objc_msg_sendv.h.
639         * objc/objc.h: Do not include message.h; include
640         objc/deprecated/objc_msg_sendv.h instead.  Tidied up comments.
641         * sendmsg.c: Include objc/message.h.
642         * thr.c: Include objc/message.h.
643         
644 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
646         * objc/objc-exception.h: Include objc-decls.h.  Mark all
647         functions with objc_EXPORT.
648         * objc/objc-sync.h: Same change.
650 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
652         * Protocol.m: Moved all methods, with the exception of -isEqual:,
653         into the 'Deprecated' category.
654         * objc/Protocol.h: Removed all methods, moved to
655         objc/deprecated/Protocol.h.  Include objc/deprecated/Protocol.h.
656         * objc/deprecated/Protocol.h: New.
657         * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
658         
659 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
661         * init.c: Include objc-private/selector.h.  Do not declare
662         __sel_register_typed_name.
663         * objc-private/selector.h (__sel_register_typed_name): Declare.
664         * selector.c: Include objc-private/selector.h.
665         
666 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
668         * class.c: Tidied up comments and indentation.  No code changes.
669         * error.c: Same.
670         * exception.c: Same.
671         * init.c: Same.
672         * ivars.c: Same.
673         * memory.c: Same.
674         * objc-foreach.c: Same.
675         * objc-sync.c: Same.
676         * objects.c: Same.
677         * protocols.c: Same.
678         * sarray.c: Same.
679         * thr.c: Same.
681 2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>
683         * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
684         instead of objc/objc-api.h.
685         (init_check_module_version): Take a 'struct objc_module *'
686         argument instead of 'Module_t'.  Use 'struct objc_module *'
687         instead of 'Module_t'.
688         (__objc_created_classes_tree): Take a 'struct objc_module *'
689         argument instead of 'Module_t'; use 'struct objc_symtab *' instead
690         of 'Symtab_t'.
691         (__objc_call_callback): Take a 'struct objc_module *' argument
692         instead of 'Module_t'; use 'struct objc_symtab *' instead of
693         'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
694         (_objc_load_callback): Take a 'struct objc_category *' argument
695         instead of 'Category *'.
696         (class_superclass_of_class): Use objc_getClass() instead of
697         objc_lookup_class().
698         (create_tree_of_subclasses_inherited_from): Same change (also, use
699         an explicit 'if' instead of '?').
700         (objc_init_statics): Same change.
701         (objc_send_load): Same change.
702         (__objc_init_protocol): same change.
703         (__objc_send_message_in_list): Take a 'struct objc_method_list *'
704         argument instead of 'MethodList_t'.  Use 'struct objc_method *'
705         instead of 'Method_t'.
706         (__objc_send_load): Use 'struct objc_method_list *' instead of
707         'MethodList_t'.  Use sel_registerName() instead of
708         sel_register_name().
709         (__objc_exec_class): Take a 'struct objc_module *' argument
710         instead of 'Module_t'.  Use 'struct objc_symtab *' instead of
711         'Symtab_t'.  Use objc_getClass() instead of objc_lookup_class().
712         Use 'struct objc_category *' instead of 'Category_t'.
713         
714 2010-12-16  Nicola Pero  <nicola.pero@meta-innovation.com>
716         * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
717         Include objc-private/module-abi-8.h and objc-private/selector.h
718         instead of objc/encoding.h.
719         (objc_msg_lookup_super): Use super->super_class instead of
720         super->class.
721         (method_get_first_argument, method_get_next_argument): Declare
722         locally.
723         (class_get_instance_method): Declare before using.
724         (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
725         (__objc_init_dispatch_tables, __objc_send_initialize): Use
726         sel_registerName() instead of sel_register_name().
727         (__objc_forward): Use sel_getName() instead of sel_get_name().
728         (objc_get_uninstalled_dtable): Use 'void' as argument.
729         * objc-private/selector.h: New.
731 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
733         * objc/message.h (objc_super): When using the modern API, do not
734         define Super and Super_t, and always use 'super_class' for the
735         super class field.      
736         (objc_msg_lookup_super): Updated prototype to use 'struct
737         objc_super *' instead of 'Super_t'.
738         * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
739         'struct objc_super *' instead of 'Super_t'.
741 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
743         * objc/message.h: Update comments, reindented code and moved
744         deprecated types and functions at the end of the file.  No code
745         changes.
747 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
749         * ivars.c (class_addIvar): Use the 'size' argument instead of
750         trying to calculate it using objc_sizeof_type().
751         * objc/runtime.h (class_addIvar): Updated comments.
752         
753 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
755         * sendmsg.c: Reindented some code and tidied up comments.  No
756         actual code changes.
757         
758 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
760         * objc/Object.h: Moved all the methods, with the exception of
761         -class and -isEqual:, into ...
762         * objc/deprecated/Object.h: here.
763         * Object.m: Moved all the methods, with the exception of -class
764         and -isEqual: into the 'Deprecated' category.
766 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
768         * objects.c (object_copy): Do not #undef as we are no longer
769         including objc/objc-api.h.
770         * selector.c: Include objc/runtime.h and
771         objc-private/module-abi-8.h.  Do not include objc/objc-api.h and
772         objc/encoding.h.  Updated
773         (__objc_register_selectors_from_class): Use struct
774         objc_method_list * instead of MethodList_t.
775         (__objc_register_selectors_from_list): Use Method instead of
776         Method_t.
777         (struct objc_method_description_list): Do not define here.
778         (__objc_register_instance_methods_to_class): Use struct
779         objc_method_list * instead of MethodList_t and Method instead of
780         Method_t.
781         
782 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
784         * selector.c: Reindented some code and tidied up comments.  No
785         actual code changes.
787 2010-12-13  Iain Sandoe  <iains@gcc.gnu.org>
789         * encoding.c (_darwin_rs6000_special_round_type_align): New.
790         (darwin_rs6000_special_round_type_align): Adjust to use new routine.
792 2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>
794         * sendmsg.c (selector_resolveClassMethod): New.
795         (selector_resolveInstanceMethod): New.
796         (__objc_resolve_class_method): New.
797         (__objc_resolve_instance_method): New.
798         (get_imp): Call __objc_resolve_class_method or
799         __objc_resolve_instance_method at the appropriate time.
800         (objc_msg_lookup): Same.
801         (class_getClassMethod): Same.   
802         (class_getInstanceMethod): Same.
803         (__objc_init_dispatch_tables): Initialize
804         selector_resolveClassMethod and selector_resolveInstanceMethod.
805         * objc/runtime.h: Updated documentation of class_getClassMethod,
806         class_getInstanceMethod and class_getMethodImplementation.
807         
808 2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>
810         * objc-private/module-abi-8.h (struct objc_symtab): Updated
811         description of sel_ref_cnt and refs.
812         * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
813         
814 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
816         PR target/40125
817         PR lto/46695
818         * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
819         * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
820         * aclocal.m4: Regenerate.
821         * configure: Regenerate.
823 2010-12-03  Matthias Klose  <doko@ubuntu.com> 
825         * configure.ac (VERSION): Bump the version to 3:0:0.
826         * configure: Regenerate.
828 2010-11-23  Richard Frith-Macdonald <rfm@gnu.org>
830         * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
831         pass nil as the receiver since we don't know the receiver at this
832         point.
833         
834 2010-11-18  Nicola Pero  <nicola.pero@meta-innovation.com>
836         * ivars.c: Include stdlib.h.
837         * protocols.c: Same change.
839 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
841         * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
842         * accessors.m: New.
843         * init.c: Include objc-private/accessors.h.
844         (__objc_exec_class): Call __objc_accessors_init.
845         * objc-private/accessors.h: New.
847 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
849         * objc/message.h: Moved initial includes outside of extern "C".
850         * objc/runtime.h: Add extern "C" for Objective-C++.
852 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
854         * init.c (objc_send_load): Do not wait for NXConstantString to be
855         registered before executing +load.  There is no point if
856         -fconstant-string-class=xxx is used when compiling all modules,
857         as is the case for almost all users.
858         * linking.m (__objc_linking): Do not try to forcefully link in
859         NXConstantString.
861 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
863         * objc/runtime.h: Updated comments.
864         (class_addMethod): New.
865         (class_addIvar): New.
866         (class_replaceMethod): New.
867         (objc_allocateClassPair): New.
868         (objc_registerClassPair): New.
869         (objc_disposeClassPair): New.
870         * class.c (objc_allocateClassPair): New.
871         (objc_registerClassPair): New.
872         (objc_disposeClassPair): New.
873         (class_getSuperclass): Return Nil if a class is in construction.
874         * init.c (__objc_exec_class): Call __objc_init_class.
875         (__objc_init_class): New.
876         * ivars.c (class_copyIvarList): Return NULL if class is in
877         construction.  Do not lock the runtime mutex.
878         (class_getInstanceVariable): Return NULL if class is in
879         construction.  Do not lock the runtime mutex.
880         (class_addIvar): New.
881         * sendmsg.c (class_addMethod): New.
882         (class_replaceMethod): New.
883         * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
884         (_CLS_IN_CONSTRUCTION): New.
885         (CLS_IS_IN_CONSTRUCTION): New.
886         (CLS_SET_IN_CONSTRUCTION): New.
887         (CLS_SET_NOT_IN_CONSTRUCTION): New.
888         * objc-private/runtime.h (__objc_init_class): New.
890 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
892         * class.c (class_getSuperclass): Call __objc_resolve_class_links
893         if the class is not resolved yet.
894         * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
895         
896 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
898         * objc/runtime.h (class_getIvarLayout): New.
899         (class_getWeakIvarLayout): New.
900         (class_setIvarLayout): New.
901         (class_setWeakIvarLayout): New.
902         * ivars.c (class_getIvarLayout): New.
903         (class_getWeakIvarLayout): New.
904         (class_setIvarLayout): New.
905         (class_setWeakIvarLayout): New. 
907 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
908         
909         * objc/runtime.h (class_copyPropertyList): New.
910         (class_getProperty): New.
911         (property_getAttributes): New.
912         (property_getName): New.
913         * ivars.c (class_copyPropertyList): New.
914         (class_getProperty): New.
915         (property_getAttributes): New.
916         (property_getName): New.
917         
918 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
920         * objc-private/runtime.h (__objc_update_classes_with_methods): New.
921         * class.c (__objc_update_classes_with_methods): New.
922         (objc_getClassList): Do not lock the class lock.
923         * methods.c (method_exchangeImplementations): New.
924         (method_setImplementation): New.
925         * objc/runtime.h (method_setImplementation): New.
926         (method_exchangeImplementations): New.
927         
928 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
930         * Protocol.m: Include objc/runtime.h and
931         objc-private/module-abi-8.h instead of objc/objc-api.h.  Do not
932         repeat Protocol's instance variables.
933         (struct objc_method_description_list): Do not define here.
934         ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
935         ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
936         selectors directly instead of getting names and then using strcmp.
937         ([descriptionForClassMethod:]): Same change.
938         ([-isEqual:]): Reimplemented on top of protocol_isEqual().
939         * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
940         to compare selectors directly instead of getting names and then
941         using strcmp.
942         * objc/Protocol.h: Updated comments.
943         
944 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
946         * init.c (__objc_init_protocol): New function which fixes up a
947         protocol's class pointer, registers it with the runtime, register
948         all protocol selectors and registers associated protocols too.
949         (objc_init_statics): Detect if we are initializing protocols, and
950         if so, use __objc_init_protocol instead of only fixing up the
951         class pointer.
952         (__objc_init_protocls): Use __objc_init_protocol.
953         * objc-private/module-abi-8.h: Updated comments.
954         * objc-private/runtime.h
955         (__objc_register_selectors_from_description_list): New.
956         * selector.c (__objc_register_selectors_from_description_list):
957         New.  (struct objc_method_description_list): Declare.
958         * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
959         when accessing the name of a method, which is now correctly a SEL.
960         ([-descriptionForClassMethod:]): Same change.
961         * protocols.c (protocol_getMethodDescription): Same change.
962         * objc/runtime.h: Updated comments.
963         (sel_registerTypedName): Fixed typo in function name.
964         
965 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
967         PR libobjc/23214
968         * init.c (objc_init_statics): Do not skip the initialization of a
969         statics list if the first object has already been initialized; in
970         the case of Protocols, while the first one may have been
971         initialized, some others may not have been initialized yet.
973 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
975         * Makefile.in (OBJC_DEPRECATED_H): Added
976         objc_get_uninstalled_dtable, objc_object_alloc.h and
977         struct_objc_static_instances.h.
979 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
981         * encoding.c (method_copyReturnType): New.
982         (method_copyArgumentType): New.
983         (method_getReturnType): New.
984         (method_getArgumentType): New.
985         * methods.c (method_getDescription): New.
986         * objc/runtime.h (method_copyReturnType): New.
987         (method_copyArgumentType): New.
988         (method_getReturnType): New.
989         (method_getArgumentType): New.
990         (method_getDescription): New.
991         
992 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
994         * encoding.c: Tidied up comments.
995         (objc_skip_variable_name): New static inline function.
996         (objc_sizeof_type): Use objc_skip_variable_name instead of copying
997         the same code over and over.
998         (objc_alignof_type): Same.
999         (objc_aligned_size): Same.
1000         (objc_promoted_size): Same.
1001         (objc_skip_typespec): Same.
1002         (objc_layout_structure_next_member): Same.
1003         (objc_skip_offset): Skip a '-' before the digits (if any).  Fixed
1004         historical bug where objc_skip_offset would skip one byte even if
1005         there is no offset: check that the first offset digit is actually
1006         a digit before skipping it.
1007         (objc_skip_type_qualifiers): Mark as inline.
1008         (objc_skip_typespec): Mark as inline.   
1009         
1010 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1012         * Makefile.in (C_SOURCE_FILES): Added methods.c.
1013         * encoding.c (method_getNumberOfArguments): New.
1014         (method_get_number_of_arguments): Call
1015         method_getNumberOfArguments.
1016         * ivars.c (ivar_getName): Check for NULL variable argument.
1017         (ivar_getOffset): Check for NULL variable argument.
1018         (ivar_getTypeEncoding): Check for NULL variable argument.
1019         (class_copyIvarList): New.
1020         * methods.c: New.
1021         * protocols.c (class_copyProtocolList): Check for Nil class_
1022         argument.
1023         * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1024         'struct objc_method_list *' instead of MethodList_t.
1025         (class_getMethodImplementation): New.
1026         (class_respondsToSelector): New.
1027         (class_getInstanceMethod): New.
1028         (class_getClassMethod): New.
1029         * objc/runtime.h: Updated comments.
1030         (class_copyIvarList): New.
1031         (class_getInstanceMethod): New.
1032         (class_getClassMethod): New.
1033         (class_getMethodImplementation): New.
1034         (class_respondsToSelector): New.
1035         (method_getName): New.
1036         (method_getImplementation): New.
1037         (method_getTypeEncoding): New.
1038         (class_copyMethodList): New.
1039         (method_getNumberOfArguments): New.
1040         
1041 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1043         * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1044         instead of objc/objc-api.h.
1045         (objc_get_unknown_class_handler): Do not define.
1046         (class_isMetaClass): New.
1047         (class_getSuperclass): New.
1048         (class_getVersion): New.
1049         (class_setVersion): New.
1050         (class_getInstanceSize): New.
1051         * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1052         (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1053         objc_get_super_class.
1054         (get_ttype_entry): Use objc_getRequiredClass instead of
1055         objc_get_class.
1056         * ivars.c (class_getClassVariable): New.
1057         * objects.c: Include objc/runtime.h, objc/thr.h and
1058         objc-private/module-abi-8.h instead of objc/objc-api.h
1059         * objc/runtime.h (class_getClassVariable): New.
1060         (class_isMetaClass): New.
1061         (class_getSuperclass): New.
1062         (class_getVersion): New.
1063         (class_setVersion): New.
1064         (class_getInstanceSize): New.
1065         * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1066         objc/objc-api.h)
1067         (__CLS_INFO): Same.
1068         (__CLS_ISINFO): Same.
1069         (__CLS_SETINFO): Same.
1070         (CLS_ISMETA): Same.
1071         (CLS_ISCLASS): Same.
1072         (CLS_ISRESOLV): Same.
1073         (CLS_SETRESOLV): Same.
1074         (CLS_ISINITIALIZED): Same.
1075         (CLS_SETINITIALIZED): Same.
1076         (CLS_GETNUMBER): Same.
1077         (CLS_SETNUMBER): Same.
1079 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1081         * archive.c: Do not include objc/objc.h.
1082         * class.c: Do not include objc/objc.h.
1083         * encoding.c: Include objc/runtime.h, ctype.h and
1084         objc-private/module-abi-8.h instead of objc/objc-api.h and
1085         objc/encoding.h.
1086         * error.c: Do not include objc/objc.h.
1087         * gc.c: Include tconfig.h and objc/encoding.h only if
1088         OBJC_WITH_GC.
1089         * hash.c: Include objc/runtime.h and objc/thr.h instead of
1090         objc/objc-api.h.  Do not include objc/objc.h.
1091         * init.c: Do not include objc/objc.h.
1092         * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1093         objc/thr.h instead of objc/objc-api.h.  Do not include
1094         objc/objc.h.
1095         * linking.m: Tidied comment.
1096         * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1097         Do not include objc/objc.h.
1098         * objects.c: Do not include objc/objc.h.
1099         * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1100         * protocols.c: Do not include objc/objc.h.
1101         * sarray.c: Include objc/runtime.h instead of objc/objc-api.h.  Do
1102         not include objc/objc.h.
1103         * selector.c: Do not include objc/objc.h.
1104         * sendmsg.c: Do not include objc/objc.h.        
1105         * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1106         Do not include objc/objc.h.
1107         * objc/objc-decls.h: Reindented code.
1108         * objc/runtime.h Include objc-decls.h.  Updated comments.
1109         (objc_malloc): New.
1110         (objc_atomic_malloc): New.
1111         (objc_calloc): New.
1112         (objc_realloc): New.
1113         (objc_free): New.
1114         * objc-private/runtime.h: Updated comments.
1115         
1116 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1118         * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1119         * objc-private/protocols.h: New.
1120         * protocols.c: New.
1121         * init.c: Include objc-private/protocols.h.
1122         (__objc_exec_class): Call __objc_protocols_init on startup.
1123         (__objc_init_protocols): Call __objc_protocols_add_protocol.
1124         * objc-private/runtime.h: Use (struct objc_method_list *) instead
1125         of MethodList_t, and (struct objc_method *) instead of Method_t.
1126         * objc/deprecated/struct_objc_class.h: Define
1127         __objc_STRUCT_OBJC_CLASS_defined.
1128         * objc-private/module-abi-8.h (struct
1129         objc_method_description_list): New.
1130         (struct objc_class): Only define if
1131         __objc_STRUCT_OBJC_CLASS_defined is undefined.
1132         * objc/runtime.h (class_getName): New.
1133         (objc_getProtocol): New.
1134         (objc_copyProtocolList): New.
1135         (class_addProtocol): New.
1136         (class_conformsToProtocol): New.
1137         (class_copyProtocolList): New.
1138         (protocol_conformsToProtocol): New.
1139         (protocol_isEqual): New.
1140         (protocol_getName): New.
1141         (protocol_getMethodDescription): New.
1142         (protocol_copyMethodDescriptionList): New.
1143         (protocol_getProperty): New.
1144         (protocol_copyPropertyList): New.
1145         (protocol_copyProtocolList): New.
1146         * class.c (class_getName): New.
1147         * selector.c (sel_isEqual): New.
1148         
1149 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1151         * selector.c (sel_getName): Return "<null selector>" for a NULL
1152         argument.
1153         (sel_get_name): Return 0 for a NULL argument.
1154         * objc/runtime.h (sel_getName): Updated documentation.
1156         * objc-private/hash.h (class_hash_table): Unused declaration
1157         removed.
1158         (module_hash_table): Same.
1159         * objc/deprecated/hash.h: Same changes.
1160         
1161 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1163         * class.c (objc_getClassList): New.
1164         (objc_getRequiredClass): New.
1165         (objc_getMetaClass): New.
1166         (objc_lookupClass): New.
1167         (objc_getClass): New.
1168         (__objc_get_unknown_class_handler): New.
1169         (objc_setGetUnknownClassHandler): New.
1170         (objc_get_class): Use __objc_get_unknown_class_handler.
1171         (objc_lookup_class): Call objc_getClass.
1172         * objc/objc-api.h: Updated comment and copyright notice.
1173         * objc/runtime.h: Updated comments.
1174         (objc_getClass): New.
1175         (objc_lookupClass): New.
1176         (objc_getMetaClass): New.
1177         (objc_getRequiredClass): New.
1178         (objc_getClassList): New.
1179         (objc_setGetUnknownClassHandler): New.
1180         (objc_get_unknown_class_handler): New.
1181         * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1182         instead of __objc_runtime_INCLUDE_GNU as include guard.
1183         * objc-private/error.h (_objc_abort): Mark as noreturn.
1184         
1185 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1187         * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1188         * ivars.c: New.
1189         * objc/objc.h: Updated comments.
1190         * objc/runtime.h (object_getClass): New.
1191         (object_getClassName): New.
1192         (object_setClass): New.
1193         (class_getInstanceVariable): New.
1194         (object_getIndexedIvars): New.
1195         (object_getInstanceVariable): New.
1196         (object_setInstanceVariable): New.
1197         (object_getIvar): New.
1198         (object_setIvar): New.  
1199         (ivar_getName): New.
1200         (ivar_getOffset): New.
1201         (ivar_getTypeEncoding): New.
1202         * objc-private/module-abi-8.h (struct objc_class): Added.
1203         * objects.c (object_getClassName): New.
1204         (object_setClass): New.
1205         
1206 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1208         * objc/objc.h: Updated comments.
1209         * objc/objc-api.h: (object_copy): Added one argument; use a
1210         #define to maintain backwards-compatibility.  Moved
1211         _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1212         objc_get_uninstalled_dtable into
1213         objc/deprecated/objc_get_uninstalled_dtable.h and
1214         objc/deprecated/objc_object_alloc.h.  Include these files.
1215         * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1216         * objc/deprecated/objc_object_alloc.h: New.
1217         * objc/runtime.h (set_getName): New.
1218         (sel_getType): New.
1219         (sel_getUid): New.
1220         (sel_registerName): New.
1221         (sel_registerTypedName): New.
1222         (sel_isEqual): New.
1223         (class_createInstance): New.
1224         (object_copy): New.
1225         (object_dispose): New.
1226         * objects.c: Do not include tconfig.h.  Include gc_typed.h if
1227         building the garbage collection version.
1228         (__objc_object_alloc): Removed.
1229         (__objc_object_copy): Removed.
1230         (__objc_object_dispose): Removed.
1231         (class_createInstance): New from code in class_create_instance.
1232         Cast second argument of GC_malloc_explicitly_typed.  Use
1233         objc_calloc.  Do not call _objc_object_alloc.
1234         (class_create_instance): Call class_createInstance.
1235         (object_copy): Added extraBytes argument.  Do not call
1236         _objc_object_copy.
1237         (object_dispose): Do not call _objc_object_dispose.
1238         * memory.c (objc_free): When using garbage collection, mark the
1239         argument as unused.
1240         * selector.c (sel_getName): New.
1241         (sel_get_name): Call sel_getName.
1242         (sel_getType): New.
1243         (sel_get_type): Call sel_getType.
1244         (sel_registerName): New.
1245         (sel_register_name): Call sel_registerName.
1246         (sel_registerTypedName): New.
1247         (sel_register_typed_name): Call sel_registerTypedName.
1248         (sel_getUid): New.
1249         (sel_get_uid): Call sel_getUid.
1250         
1251 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1253         * objc/objc-api.h: Define Method, Method_t, Category and
1254         Category_t.  Prevent including this file at the same time as
1255         objc/runtime.h.  Updated comments.
1256         * objc/deprecated/struct_objc_method.h: Do not define Method,
1257         Method_t.
1258         * objc/deprecated/struct_objc_category.h: Do not define Category,
1259         Category_t.
1260         * objc-private/module-abi-8.h: New file containing a copy of all
1261         the structure definitions.  Not used yet.
1262         * objc/encoding.h (objc_aligned_size): Removed duplicate
1263         declaration.  Updated comments.
1264         * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1265         Category, struct objc_method_description, _C_ID and similar,
1266         _C_CONST and similar and _F_CONST and similar.  Added
1267         objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1268         objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1269         objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1270         struct objc_struct_layout, objc_layout_structure,
1271         objc_layout_structure_next_member, objc_layout_finish_structure,
1272         objc_layout_structure_get_info.  Prevent including this file at
1273         the same time as objc/objc-api.h.
1274         
1275 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1277         * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1278         struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1279         struct_objc_method_list.h, struct_objc_module.h,
1280         struct_objc_protocol_list.h, struct_objc_symtab.h.
1281         * objc/deprecated/struct_objc_category.h: New.
1282         * objc/deprecated/struct_objc_ivar.h: New.
1283         * objc/deprecated/struct_objc_ivar_list.h: New.
1284         * objc/deprecated/struct_objc_method.h: New.
1285         * objc/deprecated/struct_objc_method_list.h: New.
1286         * objc/deprecated/struct_objc_module.h: New.
1287         * objc/deprecated/struct_objc_protocol_list.h: New.
1288         * objc/deprecated/struct_objc_symtab.h: New.
1289         * objc/deprecated/struct_objc_static_instances.h: New.
1290         * objc/objc-api.h: Definitions of deprecated structures moved into
1291         the above header fragment files in objc/deprecated/.  Include the
1292         files instead of definition the structures here.  Updated
1293         comments.
1294         * objc/runtime.h: Updated comments.  Do not include objc-api.h.
1295         (objc_set_enumeration_mutation_handler): Renamed to
1296         objc_setEnumerationMutationHandler.
1297         * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1298         to objc_setEnumerationMutationHandler.
1299         * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1300         objc_setExceptionMatcher.
1301         (objc_set_uncaught_exception_handler): Renamed to
1302         objc_setUncaughtExceptionHandler.
1303         * exception.c: Same changes.
1305 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1307         * objc-sync.c: Include objc-private/common.h.
1309 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1311         * objc-foreach.c: Include objc-private/common.h.
1312         * objc/deprecated/METHOD_NULL.h: New file.
1313         * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1314         defining METHOD_NULL here.
1315         * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1316         * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1317         METHOD_NULL.
1318         ([-respondsTo:]): Same change.
1319         * objc/objc-api.h (method_get_imp): Converted it into a normal
1320         function so that we can hide the internals of struct objc_method.
1321         * sendmsg.c (method_get_imp): Implemented.
1323 2010-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>
1325         * objc/objc-api.h (struct objc_super, Super, Super_t,
1326         objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1327         objc_msg_forward2): Declarations moved to objc/message.h.  Include
1328         message.h here.
1329         * objc/message.h: Added such declarations; updated comments.
1331 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1333         Implemented fast enumeration for Objective-C.
1334         * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1335         (OBJC_H): Added runtime.h
1336         * objc-foreach.c: New file.
1337         * objc/runtime.h: New file.
1338         
1339 2010-09-30  Kai Tietz  <kai.tietz@onevision.com>
1341         * objc/deprecated/struct_objc_class.h: Add padding
1342         to avoid warning with -Wpadded.
1344 2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
1346         * encoding.c (objc_sizeof_type): Added support for vector type and
1347         for double long types.  
1348         (objc_alignof_type): Same change.
1349         (objc_skip_typespec): Same change.
1350         * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1351         instead of '!' since '!' is already used for _C_VECTOR.
1352         * objc/objc-api.h (_C_LNG_DBL): Added.
1353         
1354 2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
1356         * libobjc_entry.c: File removed.
1358 2010-09-26  Kai Tietz  <kai.tietz@onevision.com>
1360         * sendmsg.c (objc_msg_lookup): Remove inline.
1361         (objc_get_uninstalled_dtable): Likewise.
1362         * encoding.c (objc_skip_type_qualifiers): Likewise.
1363         (objc_skip_offset): Likewise.
1364         * archive.c (__objc_write_object): Likewise
1365         (__objc_write_class):
1366         (__objc_write_selector):
1367         (objc_read_char):
1368         (objc_read_unsigned_char):
1369         (objc_read_short):
1370         (objc_read_unsigned_short):
1371         (objc_read_int):
1372         (objc_read_long):
1373         (__objc_read_nbyte_uint):
1374         (objc_read_unsigned_int):
1375         (objc_read_unsigned_long):
1376         * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1377         (objc_EXPORT): Likewise.
1378         * objc/message.h (objc-decls.h): Add include.
1379         * objc/objc-api.h: Mark API by objc_EXPORT.
1380         * libobjc.def (__objc_responds_to): Removed.
1382 2010-09-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1384         * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1386         * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1387         objc/sarray.h replaced with a placeholder including the file from
1388         the deprecated/ directory.
1389         * objc-private/sarray.h: New file (private copy of sarray.h).
1390         * hash.c: Include <assert.h> instead of "assert.h"
1391         * sarray.c: Include <assert.h> instead of "assert.h".  Include
1392         objc-private/sarray.h instead of objc/sarray.h.
1393         * selector.c: Include objc-private/sarray.h instead of
1394         objc/sarray.h.
1395         * sendmsg.c: Include <assert.h>.  Include objc-private/sarray.h
1396         instead of objc/sarray.h.
1397         * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.      
1399 2010-09-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1401         * objc-private/objc-list.h (list_remove_elem): Unused function
1402         removed.  (list_nth): Unused function removed.  (list_find):
1403         Unused function removed.  (list_lenght): Unused function removed.
1404         
1405 2010-09-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1407         * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1408         replaced with a placeholder including the file from the
1409         deprecated/ directory.
1410         * objc/objc-api.h: Updated includes.
1411         * objc/typedstream.h: Updated includes.
1412         * objc-private/hash.h: New file (private copy of hash.h).
1413         * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1414         objc/objc-list.h replaced with a placeholder including the file
1415         from the deprecated/ directory.
1416         * objc-private/objc-list.h: New file (private copy of objc-list.h).
1417         * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1418         instead of objc/hash.h and objc/objc-list.h.
1419         * selector.c: Same change.
1420         * class.c: Added include <string.h>, which used to be implicitly included
1421         when hash.h was included.
1422         * exception.c: Same change.
1423         * objects.c: Same change.
1424         * sarray.c: Same change.
1425         * sendmsg.c: Same change.
1426         * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1428 2010-09-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1430         Implemented objc_sync_enter() and objc_sync_exit(), which are
1431         required by @synchronized() to work.
1432         * objc-sync.c: New file.
1433         * objc/objc-sync.h: New file.
1434         * objc-private/objc-sync.h: New file.
1435         * init.c (__objc_exec_class): Call __objc_sync_init() during the
1436         Objective-C runtime startup.
1437         * Makefile.in: Added objc-sync.c and objc-sync.h.
1438         * configure.ac: Added GCC_CHECK_TLS.
1439         * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1440         * configure: Regenerated.
1441         * config.h.in: Regenerated.
1442         
1443 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1445         * Makefile.in (%_gc.lo): New pattern rules to build the
1446         garbage-collected version of the library.  Removed rules for
1447         specific files that are no longer needed.  Standardized all rules.
1448         (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1449         (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1450         OBJC_SOURCE_FILES.
1451         (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1453 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1454         
1455         * memory.c (objc_calloc): Fixed call to GC_malloc when building
1456         with Garbage Colletion.
1457         
1458 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1460         * memory.c: Do not include objc-private/runtime.h.
1462 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1463         
1464         * objc/deprecated/objc_malloc.h: New file.
1465         * objc/deprecated/objc_valloc.h: New file.
1466         * objc/objc-api.h: Include the files instead of defining
1467         objc_valloc, _objc_malloc() and similar.
1468         * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1469         objc_malloc.h.
1470         * memory.c: Removed the extra layer of indirection of _objc_malloc
1471         and similar.
1472         (objc_calloc): Use GC_malloc in the garbage-collected
1473         implementation as GC_malloc returns memory that is already freed.
1474         (objc_valloc): Deprecated.      
1475         
1476 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1478         * objc/deprecated/objc_error.h: New file.
1479         * objc/objc-api.h: Include deprecated/objc_error.h instead of
1480         defining objc_error and related.
1481         * error.c: New file.  Added _objc_abort function which replaces
1482         objc_error.  No change in functionality as they both print an
1483         error and abort.
1484         * misc.c: File removed.  Code moved into memory.c and error.c.
1485         * memory.c: New file.
1486         * objc-private/error.h: New file.
1487         * archive.c: Include objc-private/error.h and use _objc_abort
1488         instead of objc_error everywhere.
1489         * class.c: Same change.
1490         * encoding.c: Same change.
1491         * init.c: Same change, and simplified init_check_module_version.
1492         * memory.c: Same change.
1493         * sendmsg.c:  Same change.
1494         * thr.c: Same change.
1495         * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1496         (OBJ_H): Reordered list.
1497         (OBJS): Removed misc.lo, added memory.lo and error.lo.
1498         (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1499         (misc_gc.lo): Rule removed.
1500         (error_gc.lo): Rule added.
1501         (memory_gc.lo): Rule added.
1502         
1503 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1505         * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1506         to check the API version.  Added some comments.
1508         * objc-private/common.h: New file.
1509         * NXConstStr.m: Include objc-private/common.h.
1510         * Object.m: Same change.
1511         * Protocol.m: Same change.
1512         * archive.c: Same change.
1513         * class.c: Same change.
1514         * encoding.c: Same change.
1515         * exception.c: Same change.
1516         * gc.c: Same change.
1517         * hash.c: Same change.
1518         * init.c: Same change.
1519         * libobjc_entry.c: Same change.
1520         * linking.m: Same change.
1521         * misc.c: Same change (and added a comment).
1522         * nil_method.c: Same change.
1523         * objects.c: Same change.
1524         * sarray.c: Same change.
1525         * selector.c: Same change.
1526         * sendmsg.c: Same change.
1527         * thr.c: Same change.
1529 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1531         * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1533 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1535         * archive.c: Removed not needed includes.
1536         * class.c: Same change.
1537         * hash.c: Same change.
1538         * misc.c: Same change.
1539         * nil_method.c: Same change.
1540         * objects.c: Same change.
1541         * sarray.c: Same change.
1542         * sendmsg.c: Same change.
1543         * thr.c: Same change.
1545 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1547         * objc/runtime.h: Moved to objc-private/runtime.h.  Do not include
1548         all the objc/*.h files.
1549         * objc-private/runtime.h: New file.
1550         * archive.c: Include objc-private/runtime.h (and required objc/*.h
1551         files) instead of objc/runtime.h.
1552         * class.c: Same change.
1553         * hash.c: Same change.
1554         * init.c: Same change.
1555         * misc.c: Same change.
1556         * nil_method.c: Same change.
1557         * objects.c: Same change.
1558         * sarray.c: Same change.
1559         * selector.c: Same change.
1560         * sendmsg.c: Same change.
1561         * thr.c: Same change.
1562         
1563 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1565         * objc/deprecated/struct_objc_selector.h: New file.  Definition of
1566         'struct objc_selector' and 'sel_eq' moved here.
1567         * objc/deprecated/struct_objc_protocol.h: New file.  Definition of
1568         'struct objc_procotol' moved here.
1569         * objc/deprecated/struct_objc_class.h: New file.  Definition of
1570         'struct objc_class' moved here.
1571         * objc/deprecated/MetaClass.h: New file.  Definition of MetClass
1572         moved here.
1573         * objc/deprecated/STR.h: New file.  Definition of STR moved here.       
1574         * objc/message.h: New file.  Definitions for relval_t, apply_t,
1575         arglist, arglist_t and objc_msg_lookup were moved here.
1576         * objc/objc.h: Include the above files instead of defining the
1577         corresponding structs, types and functions here.  Added new opaque
1578         definitions for SEL and Class.  Use Class and not 'struct
1579         objc_class *' in the definition of 'struct objc_object'.
1580         Commented all types defined in the file.  Removed special
1581         definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1582         there as well.
1583         * objc/deprecated/objc-unexpected-exception.h: Renamed to
1584         objc_unexpected_exception.h.
1585         * objc/objc-api.h: Updated include of
1586         objc-unexpetected-exception.h
1587         * objc/objc-exception.h: Updated comments.
1588         * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1589         files.  Reindented list of files.
1590         
1591 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1593         * objc/objc-api.h (objc_trace): Unused variable removed.
1595 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1597         * objc/deprecated: New directory.
1598         * objc/deprecated/README: New file.
1599         * objc/README: New file.
1600         * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1601         objc/typedstream.h replaced with a placeholder including the file
1602         from the deprecated/ directory.
1603         * objc/deprecated/objc-unexpected-exception.h: New file with the
1604         definition of _objc_unexpected_exception.       
1605         * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1606         instead of defining _objc_unexpected_exception.
1607         * objc/deprecated/Object.h: New file with the deprecated Object
1608         methods in a 'Deprecated' category.
1609         * objc/Object.h Include deprecated/Object.h instead of defining
1610         the deprecated methods.
1611         * Object.m: Moved deprecated methods into 'Deprecated' category.
1612         * objc-private: New directory.
1613         * objc-private/README: New file.
1614         * Makefile.in (OBJC_DEPRECATED_H): New variable.
1615         (install-headers): Create installation directory for
1616         OBJC_DEPRECATED_H headers, and install them.
1618 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1620         * objc/objc-exception.h: Fixed include of objc.h.
1621         
1622 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1624         * objc/objc-exception.h: New file.
1625         * exception.c (objc_set_uncaught_exception_handler): Implemented.
1626         (objc_set_exception_matcher): Implemented.
1627         (objc_exception_throw): Use the uncaught exception handler if set.
1628         (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1629         hardcoded isKindOf.
1630         (isKindOf): Renamed to is_kind_of_exception_matcher.  Tidied code
1631         up.  Removed segmentation fault when value is 'nil'.
1632         * objc/objc-api.h (_objc_unexpected_exception): Mark as
1633         deprecated.
1634         * Makefile.in (exception.lo, exception_gc.lo): Use
1635         -Wno-deprecated-declarations when compiling.
1636         (OBJC_H): Added objc-exception.h
1638 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1640         * objc/typedstream.h: Deprecate all functions in the file.  This
1641         file is obsolete.
1642         * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1643         [-awake]): Documented that these methods are deprecated.  Added a
1644         brief description of the Object class and its relationship to the
1645         NSObject class.
1646         * Makefile.in: Compile archive.c and Object.m with
1647         -Wno-deprecated-declarations.
1649 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1651         Removed obsolete intermediate threading layer.
1652         * thr.c: Use __gthread_objc_xxx functions directly instead of
1653         __objc_thread_xxx ones.
1654         * objc/thr.h: Removed prototypes of no longer existing
1655         __objc_thread_xxx functions.
1656         * Makefile.in: Removed thr-objc.lo.
1657         * thr-dce.c: File removed.
1658         * thr-decosf1.c: File removed.
1659         * thr-irix.c: File removed.
1660         * thr-mach.c: File removed.
1661         * thr-objc.c: File removed.
1662         * thr-os2.c: File removed.
1663         * thr-posix.c: File removed.
1664         * thr-pthreads.c: File removed.
1665         * thr-rtems.c: File removed.
1666         * thr-single.c: File removed.
1667         * thr-solaris.c: File removed.
1668         * thr-vxworks.c: File removed.
1669         * thr-win32.c: File removed.
1670         * README.threads: File removed.
1671         * THREADS.MACH: File removed.
1672         * THREADS: Updated.
1674 2010-09-07  Nicola Pero  <nicola.pero@meta-innovation.com>
1676         * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1678 2010-09-06  Iain Sandoe  <iains@gcc.gnu.org>
1680         * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1681         Add a comment as to why, update FIXME comments.
1683 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1685         * makefile.dos: Obsolete file removed.
1686         
1687 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1689         * aclocal.m4: Regenerate.
1691 2010-03-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1693         PR libobjc/30445
1694         * configure.ac (extra_ldflags_libobjc): Define appropriately for
1695         Cygwin and MinGW hosts.
1696         * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1697         (libobjc.dll): Likewise.
1698         * configure: Regenerate.
1700 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1702         * configure: Regenerate.
1704 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
1706         * sarray.c (sarray_free): Use old_buckets variable.
1707         * encoding.c (objc_layout_structure_next_member): Remove unused
1708         bfld_type_size variable.
1710 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1712         * configure.ac (AC_PREREQ): Bump to 2.64.
1714 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1716         * aclocal.m4: Regenerate.
1717         * configure: Regenerate.
1718         * config.h.in: Regenerate.
1720 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1722         * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1724 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1726         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1727         New variables.
1728         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1730 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1732         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1734 2009-04-09  Nick Clifton  <nickc@redhat.com>
1736         * sendmsg.c: Change copyright header to refer to version 3 of
1737         the GNU General Public License with version 3.1 of the GCC
1738         Runtime Library Exception and to point readers at the COPYING3
1739         and COPYING3.RUNTIME files and the FSF's license web page.
1740         * NXConstStr.m: Likewise.
1741         * Object.m: Likewise.
1742         * Protocol.m: Likewise.
1743         * archive.c: Likewise.
1744         * class.c: Likewise.
1745         * encoding.c: Likewise.
1746         * exception.c: Likewise.
1747         * gc.c: Likewise.
1748         * hash.c: Likewise.
1749         * init.c: Likewise.
1750         * libobjc_entry.c: Likewise.
1751         * linking.m: Likewise.
1752         * misc.c: Likewise.
1753         * nil_method.c: Likewise.
1754         * objc/NXConstStr.h: Likewise.
1755         * objc/Object.h: Likewise.
1756         * objc/Protocol.h: Likewise.
1757         * objc/encoding.h: Likewise.
1758         * objc/hash.h: Likewise.
1759         * objc/objc-api.h: Likewise.
1760         * objc/objc-decls.h: Likewise.
1761         * objc/objc-list.h: Likewise.
1762         * objc/objc.h: Likewise.
1763         * objc/runtime.h: Likewise.
1764         * objc/sarray.h: Likewise.
1765         * objc/thr.h: Likewise.
1766         * objc/typedstream.h: Likewise.
1767         * objects.c: Likewise.
1768         * sarray.c: Likewise.
1769         * selector.c: Likewise.
1770         * thr-dce.c: Likewise.
1771         * thr-decosf1.c: Likewise.
1772         * thr-irix.c: Likewise.
1773         * thr-mach.c: Likewise.
1774         * thr-objc.c: Likewise.
1775         * thr-os2.c: Likewise.
1776         * thr-posix.c: Likewise.
1777         * thr-pthreads.c: Likewise.
1778         * thr-rtems.c: Likewise.
1779         * thr-single.c: Likewise.
1780         * thr-solaris.c: Likewise.
1781         * thr-vxworks.c: Likewise.
1782         * thr-win32.c: Likewise.
1783         * thr.c: Likewise.
1784         * libobjc.def: Change copyright header to refer to version 3 of
1785         the GNU General Public License and to point readers at the COPYING3
1786         file and the FSF's license web page.
1787         * makefile.dos: Likewise.
1789 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1791         * Makefile.in: Change copyright header to refer to version
1792         3 of the GNU General Public License and to point readers at the
1793         COPYING3 file and the FSF's license web page.
1794         * configure.ac: Likewise.
1796 2009-03-12  Richard Frith-Macdonald  <rfm@gnu.org>
1797             David Ayers  <ayers@fsfe.org>
1799         PR libobjc/27466
1800         * objc/objc-api.h (_objc_unexpected_exception): Declare
1801         new hook.  Update copyright dates.
1802         * exception.c (objc_exception_throw): Use hook.  Update
1803         copyright dates.
1804         * libobjc.def (_objc_unexpected_exception): Export hook.
1805         Update copyright dates.
1806         
1807 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1809         * configure: Regenerate.
1811 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1813         * configure: Regenerate.
1815 2008-11-21  Kai Tietz  <kai.tietz@onevision.com>
1817         *  Object.m (errno): Replaced by errno.h include.
1818         (compare): Cast self to id to prevent warning on comparison.
1819         * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1820         already there.
1821         * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1822         * thr-win32.c (__objc_thread_detach): Remove type warning.
1823         (__objc_thread_id): Likewise.
1824         * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1825         for noreturn.
1827 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1828             Steve Ellcey  <sje@cup.hp.com>
1830         * configure: Regenerate for new libtool.
1831         * config.h.in: Regenerate for new libtool.
1833 2008-07-18  Matthias Klose  <doko@ubuntu.com> 
1835         * Makefile.in: Ignore missing ../boehm-gc/threads.mk. 
1837 2008-07-18  Matthias Klose  <doko@ubuntu.com> 
1839         * Makefile.in: Include ../boehm-gc/threads.mk. 
1840         (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1842 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1844         * Makefile.in (install-info): New stub target.
1846 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1848         * configure: Regenerate.
1850 2008-06-14  Kai Tietz  <kai.tietz@onevision.com>
1852         * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1853         if HAVE_GETIPINFO is not defined.
1855 2008-06-10  Kai Tietz  <kai.tietz@onevision.com>
1857         * Object.m (compare): Add type id.
1858         * objc/Object.h: Likewise.
1859         * archive.c (objc_read_class): Use size_t to extend version to be
1860         size of pointer scalar width.
1861         * sendmsg.c (rtx): Undefine it before redefinition.
1862         (__objc_print_dtable_stats): Cast arguments to long as intended.
1864 2008-05-30  Julian Brown  <julian@codesourcery.com>
1866         * exception.c (__objc_exception_class): Initialise as constant
1867         array for ARM EABI. Change macro to static const for non-ARM EABI.
1868         (ObjcException): Add note about structure layout. Remove landingPad
1869         and handlerSwitchValue for ARM EABI.
1870         (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1871         of function.
1872         (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1873         (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1874         ARM EABI unwinding support.
1875         (objc_exception_throw): Use memcpy to initialise exception class.
1877 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
1879         * encoding.c (strip_array_types): Rename from get_inner_array_type.
1880         (rs6000_special_round_type_align): Update.
1882 2008-05-09  Julian Brown  <julian@codesourcery.com>
1884         * Makefile.in (LTLDFLAGS): New.
1885         (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1887 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1889         PR bootstrap/35457
1890         * aclocal.m4: Regenerate.
1891         * configure: Regenerate.
1893 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1895         * configure: Regenerate.
1897 2007-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1899         * configure.ac: Don't run config-ml.in directly.
1900         (multilib_arg): New.
1901         * configure: Regenerated.
1903 2007-08-06  Andrew Pinski  <pinskia@gmail.com>
1905         PR libobjc/30731
1906         * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1907         of _Unwind_Word for variables which are used in
1908         read_uleb128/read_sleb128.
1909         (PERSONALITY_FUNCTION): Likewise.
1911 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1913         * aclocal.m4: Regenerated.
1915 2007-06-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1917         * configure.ac: Fix a typo in *-*-darwin clause.
1918         * configure: Regenerated.
1920 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1922         * configure.ac: Fix a typo.
1923         * configure: Regenerated.
1925 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1927         * configure: Regenerate.
1929 2007-06-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1931         * Makefile.in: Replace all uses of libext with libsuffix.
1932         * configure.ac: Likewise.
1933         * configure: Regenerate.
1935         Revert:
1936         * Makefile.in: Remove all uses of $(libext).
1938 2007-05-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1940         * Makefile.in: Remove all uses of $(libext).
1942 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1944         * configure: Regenerate.
1945         * aclocal.m4: Regenerate.
1947 2007-04-21  Andrew Ruder  <andy@aeruder.net>
1949         * sendmsg.c (__objc_get_forward_imp): Call
1950         __objc_msg_forward2 for real.
1952 2007-04-09  Andrew Ruder  <andy@aeruder.net>
1954         * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1955         external libraries to provide a function that returns the real
1956         forwarding function based on both the selector and the receiver.
1957         * objc/objc-api.h: Define __objc_msg_forward2.
1959 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1961         * Makefile.in: Add dummy install-pdf target.
1963 2007-02-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1965         * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1966         unused warning.
1967         
1968 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
1970         * encoding.c (darwin_rs6000_special_round_type_align): New.
1972 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1974         * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1975         * configure.ac: Use multi.m4 from aclocal rather than custom
1976         code.  Use multi_basedir instead of toplevel_srcdir.
1977         * aclocal.m4: Regenerate.
1978         * configure: Regenerate.
1980 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
1982         * Makefile.in: Added empty "pdf" target.
1984 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
1986         * configure: Regenerate.
1988 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1990         * Makefile.in: Add install-html target. Add install-html to .PHONY
1992 2006-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1994         PR libobjc/26309
1995         * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1997 2006-01-24  David Ayers  <d.ayers@inode.at>
1999         PR libobjc/9751
2000         * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2001         and insure the new strings are '\0' termintated.
2003 2006-01-24  David Ayers  <d.ayers@inode.at>
2005         PR libobjc/13946
2006         * configure.ac: Add include directives for --enable-objc-gc.
2007         * Makefile.in: Ditto.
2008         * configure: Regenerate.
2010         * gc.c (__objc_class_structure_encoding): Increment the used bytes
2011         instead of the local pointer to them.
2013 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
2015         PR objc/25360
2016         * objc/objc-api.c (_C_COMPLEX): New define.
2017         * encoding.c (objc_sizeof_type): Handle _C_Complex.
2018         (objc_alignof_type): Likewise.
2019         (objc_skip_typespec): Likewise.
2021 2005-12-15  David Ayers  <d.ayers@inode.at>
2023         PR libobjc/14382
2024         * README (+load,+initialize): Fix documentation to reflect
2025         intended and implemented semantics for +load and +initialize.
2026         
2027 2005-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
2029         * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2030         the name.
2031         (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2032         (rs6000_special_round_type_align): Update for the ABI fix.
2033         (objc_layout_finish_structure): Correct the encoding which is passed to
2034         ROUND_TYPE_ALIGN.
2036 2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
2038         PR libobjc/25347
2039         * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2040         but use the struct layout functions.
2041         (objc_alignof_type): Likewise.
2042         (objc_layout_structure): Handle _C_UNION_B also.
2043         (objc_layout_structure_next_member): Likewise.
2044         (objc_layout_finish_structure): Likewise.
2046 2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
2048         PR libobjc/25346
2049         * objc/objc-api.h (_C_BOOL): New define.
2050         * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2051         (objc_alignof_type): Likewise.
2052         (objc_skip_typespec): Likewise.
2054 2005-11-20  David Ayers  <d.ayers@inode.at>
2056         PR libobjc/19024
2057         * objc/hash.h: Remove deprecated hash API.
2058         * hash_compat.c: Remove.
2059         * Makefile.in: Remove reference to hash_compat.c.
2061         * configure.ac (VERSION): Bump library version to 2:0:0.
2062         * configure: Regenerate.
2064 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
2066         PR other/4372
2067         * thr-objc.c (_XOPEN_SOURCE): Define.
2069 2005-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
2071         PR libobjc/23612
2072         * objc/objc-api.h (struct objc_ivar): Move definition to
2073         global scope.
2075 2005-09-04  Andrew Pinski  <pinskia@physics.uc.edu>
2076             Rasmus Hahn  <rassahah@neofonie.de>
2078         PR libobjc/23108
2079         * archive.c (objc_write_type): Correct the element offset.
2080         (objc_read_type): Likewise.
2082 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
2084         * All files: Update FSF address.
2086 2005-08-13  Marcin Koziej  <creep@desk.pl>
2087             Andrew Pinski  <pinskia@physics.uc.edu>
2089         PR libobjc/22492
2090         * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2092 2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
2094         * Makefile.in (extra_ldflags_libobjc): New.
2095         (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2096         (libobjc_gc$(libext).la): Likewise.
2097         * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2098         "-Wl,-single_module".
2099         * configure: Regenerate.
2100         * linking.m (_objcInit): Remove.
2102 2005-07-26  Andrew Pinski  <pinskia@physics.uc.edu>
2104         PR libobjc/22606
2105         * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2107 2005-06-08  David Ayers  <d.ayers@inode.at>
2109         * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2110         objc/encoding.h, objc/hash.h, objc/objc-api.h,
2111         objc/runtime.h, objc/sarray.h, objc/thr.h, 
2112         objc/typedstream.h: Do not include Objective-C headers as
2113         system headers.
2115 2005-06-07  David Ayers  <d.ayers@inode.at>
2117         * archive.c, init.c, selector.c: Include hash.h.
2118         * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2119         init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2120         sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2121         thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2122         thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2123         Include Objective-C headers with quotes and objc/ directory
2124         prefix.
2126 2005-05-19  Richard Henderson  <rth@redhat.com>
2128         * exception.c: Revert last change.
2130 2005-05-19  David Ayers  <d.ayers@inode.at>
2132         * exception.c: Include tsystem.h for unwind.h.
2134 2005-05-09  Mike Stump  <mrs@apple.com>
2136         * configure: Regenerate.
2138 2005-04-12  Mike Stump  <mrs@apple.com>
2140         * configure: Regenerate.
2142 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
2144         * Makefile.in: Set gcc_version here.
2145         * configure.ac: Do not invoke TL_AC_GCC_VERSION.  Adjust quoting
2146         in definition of toolexeclibdir so that $(gcc_version) is expanded
2147         by the Makefile.
2148         * aclocal.m4, configure: Regenerate.
2150 2005-03-03  David Ayers  <d.ayers@inode.at>
2152         * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2153         version reference.  Correct typo.
2155 2005-03-02  David Ayers  <d.ayers@inode.at>
2157         PR libobjc/19024
2158         * Makefile.in (OBJS): Add hash_compat.lo.
2159         (OBJS_GC): Add hash_compat_gc.lo.
2160         (hash_compat_gc.lo): New target and rule.
2161         * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2162         (hash_next, hash_value_for_key, hash_is_key_in_hash)
2163         (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2164         with objc_.  Add deprecated non prefixed inlined versions.
2165         (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2166         declarations.
2167         * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2168         (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2169         update callers.
2170         * hash_compat.c: New file.
2171         * archive.c: Update callers.
2172         * init.c: Likewise.
2173         * selector.c: Likewise.
2174         * libobjc.def: Add objc_ versions of hash functions.
2176 2005-02-28  Andrew Pinski <pinskia@physics.uc.edu>
2178         PR libobjc/20252
2179         * Makefile.in (GTHREAD_FLAGS): Remove.
2180         (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2181         * thr-objc.c: Include config.h.
2182         * configure.ac: Instead of looking at GCC's makefile, figure out if
2183         GTHREAD_FLAGS should be defined by looking at the `thread model'
2184         of the current gcc.
2185         * configure: Regenerate.
2186         * config.h.in: Regenerate.
2188 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
2190         PR bootstrap/17383
2191         * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2192         (Determine CFLAGS for gthread): Use $host_subdir.
2193         * configure: Regenerate.
2194         * Makefile.in (host_subdir): New.
2195         (INCLUDES): Use it.
2197 2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
2199         PR libobjc/12035
2200         * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2201         they are not used.
2202         Include limits.h and stdlib.h.
2203         Define BITS_PER_WORD.
2205 2004-12-12  Alexander Malmberg  <alexander@malmberg.org>
2207         * selector.c (__objc_init_selector_tables): Add missing void to
2208         definition.
2210 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
2212         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2213         * configure, aclocal.m4: Regenerate.
2215 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
2217         * configure: Regenerate for libtool change.
2219 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
2221         * configure: Regenerate for libtool reversion.
2223 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
2225         * configure: Regenerate for libtool change.
2227 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
2229         * aclocal.m4, config.h.in: Regenerate.
2231 2004-10-08  Mike Stump  <mrs@apple.com>
2232             Andrew Pinski  <pinskia@physics.uc.edu>
2234         * aclocal.m4: Rename to ...
2235         * acinclude.m4: here and also use m4_include instead of sinclude.
2236         * aclocal.m4: Regenerate.
2237         * configure: Regenerate.
2238         * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2239         * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2241 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
2243         * archive.c: Fix all the warnings about passing unsigned char*
2244         to char* and the other way too.
2246 2004-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
2248         PR libobjc/16448
2249         * exception.c: Include config.h
2250         (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2251         SJLJ_EXCEPTIONS.
2252         * configure.ac: Find out what exception handling code we use.
2253         * configure: Regenerate.
2254         * config.h.in: New file, regenerate.
2256 2004-09-16  Andrew Pinski  <apinski@apple.com>
2258         * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2260 2004-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
2262         * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2263         ACX_NONCANONICAL_TARGET.
2264         * configure: Regenerate.
2266 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
2268         * objc/sarray.h: Hoist include of assert.h near the top of file,
2269         and mark the remainder of the file 'extern "C"'.
2271 2004-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
2273         * objc/Object.h: Move includes out of extern "C" blocks.
2274         * objc/encoding.h: Likewise.
2275         * objc/hash.h: Likewise.
2276         * objc/objc-api.h: Likewise.
2277         * objc/runtime.h: Likewise.
2278         * objc/sarray.h: Likewise.
2279         * objc/typedstream.h: Likewise.
2281 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
2283         * objc/NXConstStr.h: Update copyright date; bracket with
2284         'extern "C"' for C++ use; make include syntax consistent
2285         by using <...> instead of "..."; hoist <objc/...> includes
2286         above the 'extern "C"' block.
2287         * objc/Object.h: Likewise.
2288         * objc/Protocol.h: Likewise.
2289         * objc/encoding.h: Likewise.
2290         * objc/hash.h: Likewise.
2291         * objc/runtime.h: Likewise.
2292         * objc/sarray.h: Likewise.
2293         * objc/thr.h: Likewise.
2294         * objc/typedstream.h: Likewise.
2295         * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2296         (objc_static_instances): For C++ case, do away with
2297         zero-sized array.
2298         (objc_method): Hoist definition to file scope.
2299         (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2300         class_get_instance_method, class_create_instance,
2301         class_get_class_name, class_get_instance_size,
2302         class_get_meta_class, class_get_super_class, class_get_version,
2303         class_is_class, class_is_meta_class, class_set_version,
2304         class_get_gc_object_type, class_ivar_set_gcinvisible,
2305         get_imp): Rename 'class' parameter to '_class'.
2306         * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2307         * objc/objc.h: Update copyright date.
2308         (arglist_t): Provide a union tag.
2310 2004-07-22  Andrew Pinski  <pinskia@physics.uc.edu>
2312         * thr.c (__objc_thread_detach_function): Do not mark as volatile
2313         but instead use the attribute noreturn.
2315 2004-06-28  Zack Weinberg  <zack@codesourcery.com>
2317         * encoding.c: Rename target_flags with a #define to avoid
2318         conflict with a prior declaration.
2320 2004-06-24  Andrew Pinski  <apinski@apple.com>
2322         * objc/encoding.h: Wrap the functions with extern "C" for C++
2323         mode.
2324         * objc/hash.h: Likewise.
2325         * objc/objc-api.h: Likewise.
2326         * objc/objc-list.h: Likewise.
2327         * objc/runtime.h: Likewise.
2328         * objc/sarray.h: Likewise.
2329         * objc/thr.h: Likewise.
2330         * objc/typedstream.h: Likewise.
2333 2004-06-21  Nick Clifton  <nickc@redhat.com>
2335         * encoding.c (BITS_PER_UNIT): Define if a definition is not
2336         provided.
2338 2004-06-20  Alexander Malmberg  <alexander@malmberg.org>
2340         * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2341         (exception_gc.lo): New.
2342         (OBJS_GC): Add exception_gc.lo.
2344 2004-06-17  Richard Henderson  <rth@redhat.com>
2346         * exception.c: New file.
2347         * Makefile.in (exception.lo): New.
2348         (OBJS): Add it.
2350 2004-06-14  Andrew Pinski  <pinskia@physics.uc.edu>
2352         * linking.m (_objcInit): New empty function
2353         for Darwin only.
2355 2004-06-11  Andrew Pinski  <pinskia@physics.uc.edu>
2357         * configure.ac: Support --enable-shared=libobjc.
2358         * configure: Regenerate.
2360         PR libobjc/15901
2361         * configure.ac: Do not disable shared by default.
2362         * configure: Regenerate.
2364 2004-06-03  Nicola Pero  <n.pero@mi.flashnet.it>
2366         * Protocol.m ([-isEqual:]): Small optimizations returning
2367         immediately if the argument is equal to self, and accessing
2368         the argument's name directly if it's a protocol.
2370 2004-06-03  David Ayers  <d.ayers@inode.at>
2372         * Protocol.m ([-isEqual:]): Test the class of the argument.
2374 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
2376         * configure.ac (includedir): Rename to ...
2377         (includedirname).
2378         * Makefile.in: s/includedir/includedirname/.
2380         PR target/11572
2381         * configure.ac (includedir): Set to "include"
2382         except for Darwin.
2383         (libext) Set to empty except for Darwin.
2384         * configure: Regenerate
2385         * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2386         s/include/$(includedir)/g.
2388 2004-05-25  Daniel Jacobowitz  <drow@false.org>
2390         * Makefile.in: Add .NOEXPORT.
2392 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
2394         Merge from the libobjc-branch
2395         2004-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
2397                 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2399         2004-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
2401                 * Makefile.in (OBJC_H): Add objc-deps.h.
2403         2004-01-27  Nicola Pero  <n.pero@mi.flashnet.it>
2405                 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2406                 ([-hash], [-isEqual:]): New methods.
2408         2004-01-27  Richard Frith-Macdonald <rfm@gnu.org>
2410                 * sarray.c (sarray_free): Add a better comment.
2412         2004-01-27  Adam Fedor  <fedor@gnu.org>
2414                 * hash.c (hash_add): Cast cachep to int.
2415                 * selector.c (__sel_register_typed_name): Cast
2416                 soffset_decode to int.
2418         2004-01-27  Alexander Malmberg  <alexander@malmberg.org>
2420                 * selector.c: Rename register_selectors_from_list to
2421                 __objc_register_selectors_from_list. Update caller.
2422                 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2423                 while registering selectors. Use __sel_register_typed_name instead
2424                 of sel_register_typed_name. Check for NULL method_name:s.
2425                 (pool_alloc_selector): New function.
2426                 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2427                 selector structures.
2428                 * sendmsg.c (class_add_method_list): Use
2429                 __objc_register_selectors_from_list.
2430                 * objc/runtime.h: Add __objc_register_selectors_from_list.
2432         2004-01-25  Adam Fedor  <fedor@gnu.org>
2433                     Nicola Pero  <n.pero@mi.flashnet.it>
2434                     Andrew Pinski  <pinskia@physics.uc.edu>
2436                 * objc/objc-decls.h: New file.
2437                 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2438                 (_objc_load_callback): Likewise.
2439                 (_objc_object_alloc): Likewise.
2440                 (_objc_object_copy): Likewise.
2441                 (_objc_object_dispose): Likewise.
2443         2004-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
2445                 * archive.c: s/__inline__/inline
2446                 * sendmsg.c: Likewise.
2448                 * encoding.c: Remove FIXME about the warning
2449                 about unused variable.
2450                 * sendmsg.c: Add a FIXME comment saying that
2451                 this should be using libffi.
2453                 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2456 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
2458         * archive.c (objc_read_class): Initialize class_name.
2459         (objc_read_selector): Initialize selector_name.
2461 2004-05-09  Richard Sandiford  <rsandifo@redhat.com>
2463         * Makefile.in (toolexecdir): Remove trailing space.
2465 2004-04-15  Nathanael Nerode  <neroden@gcc.gnu.org>
2467         PR libobjc/14948
2468         * configure.ac: De-precious CC so multilibs work.
2469         * configure: Regenerate.
2471 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2473         * configure.ac: Restore toolexecdir.
2474         * Makefile.in: Restore toolexecdir.
2475         * configure: Regenerate.
2477 2004-04-09  Nathanael Nerode  <neroden@gcc.gnu.org>
2479         * configure.ac: Remove (unused) glibcpp_prefixdir.
2480         * configure: Regenerate.
2482         * configure.in: Rename to configure.ac.
2483         * Makefile.in: Update to match.
2485         * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2486         Replace glibcpp_toolexeclibdir with toolexeclibdir.
2487         * configure.in: Remove glibcpp_toolexecdir (unused).
2488         Replace glibcpp_toolexeclibdir with toolexeclibdir.  Don't generate
2489         config.h or stamp-h (unused).  Move one comment to the right place.
2490         * configure: Regenerate.
2491         * config.h.in: Remove (unused).
2493         * config.h.in: Regenerate with autoheader.
2495         * Makefile.in: Remove (unused) gcc_version_trigger.
2496         * configure.in: Remove (unused) glibcpp_builddir.  Don't AC_SUBST
2497         gcc_version_trigger.
2498         * configure: Regenerate.
2500         * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2501         Sort file into sections.  Remove dnl where appropriate.  Fix
2502         other style issues.
2503         * configure: Regenerate.
2505         * configure.in: Replace old AC_PROG_CC hack with new one.
2506         Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2507         are no subdirectory output files, so this is fine).  Change prereq
2508         to autoconf 2.59.
2509         * aclocal.m4: Include ../config/no-executables.m4.
2510         * configure: Regenerate with autoconf 2.59.
2512         * configure.in: Improve comments on gthread_cflags.  Improve m4
2513         quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2514         * configure: Regenerate.
2516         * configure.in: Move PACKAGE and VERSION settings up top.  Remove
2517         unused call to AC_PROG_LN_S.  Default RANLIB to ':'.  Remove
2518         redundant checks for values of RANLIB, AR, INSTALL.
2519         * configure: Regenerate.
2521         * configure.in: Clean up handling of
2522         --enable-version-specific-runtime-libs and related variables;
2523         replace 'if test' with 'case' where reasonable.  Fix comments.
2524         Remove useless libstdcxx_interface.
2525         * configure: Regenerate.
2527         * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2528         Replace uses of target_alias with target_noncanonical.
2529         * aclocal.m4: Include ../config/acx.m4.
2530         * configure: Regenerate.
2531         * Makefile.in: Replace uses of target_alias with target_noncanonical.
2532         Fix copyright statement.
2534         * configure.in: Hand-inline bulky, confusing macros from
2535         aclocal.m4.  Replace references to "GNU Objective C" with "GCC".
2536         Update copyright notice.  Remove stuff for automake, which isn't
2537         used in this directory.  Remove emacs local variables.
2538         * aclocal.m4: Remove hand-inlined macros.  Update copyright notice.
2539         * configure: Regenerate.
2541 2004-03-16  Manfred Hollstein  <mh@suse.com>
2543         * Makefile.in, configure.in, configure: Update copyright years.
2545 2004-03-15  Manfred Hollstein  <mh@suse.com>
2547         * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2548         definition from configure.in.
2549         * configure.in (PACKAGE): Add definition.
2550         (VERSION): Add definition; substitute it in output files.
2551         * configure: Re-generate.
2553 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
2555         * objc/hash.h (hash_string, compare_strings):
2556         Add type-casts to make Objective-C++ happy.
2557         * objc/typedstream.h (objc_get_stream_class_version):
2558         Rename parameter from 'class' to 'class_name' to make
2559         Objective-C++ happy.
2561 2004-03-01  Michael Matz  <matz@suse.de>
2563         * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2565 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
2567         * objc/objc-api.h (objc_super): The 'class' field shall
2568         be named 'super_class' #ifdef __cplusplus.
2570 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
2572         PR target/10781
2573         * encoding.c (rs6000_special_round_type_align): Define.
2575 2004-01-14  Adam Fedor  <fedor@gnu.org>
2577         PR libobjc/12155
2578         * selector.c (__objc_register_instance_methods_to_class): Free
2579         new_list if not used.
2581 2004-01-09  Andrew Ruder  <aeruder@ksu.edu>
2583         PR libobjc/11904
2584         * sarray.c (sarray_free): Free array->is_copy_of latter.
2586 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
2588         PR 11433
2589         * Protocol.m (descriptionForInstanceMethod): Don't dereference
2590         instance_methods if it's NULL.
2591         (descriptionForClassMethod): Likewise for class_methods.
2593 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2595         * Makefile.in (runtime-info.h): Remove -Wp.
2597 2003-10-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2599         * Makefile.in (CC1OBJ): Remove.
2600         (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2601         correctly.
2602         Use .m extension for temporary file.
2603         Remove assembler temp file.
2605 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2607         * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2609 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2611         * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2613 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2615         * configure: Regenerate.
2617 2003-08-27  Alexander Malmberg  <alexander@malmberg.org>
2619         * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2620         (libdir)/gcc-lib/ when installing.
2621         * configure: Regenerate.
2623 Thu Jul 10 10:27:43 2003  Nicola Pero  <n.pero@mi.flashnet.it>
2625         libobjc/9969
2626         * sendmsg.c (get_imp): Fixed rare threading problem.
2627         (__objc_responds_to): Similar fixes.
2628         (objc_msg_lookup): Similar fixes.
2629         (__objc_init_install_dtable): Lock the runtime before checking if the
2630         table is installed.
2632 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2634         * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2635         makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2636         selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2637         thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2638         thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2639         thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2640         * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2641         class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2642         objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2643         objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2644         objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2646 Tue May 13 14:56:03 2003  Richard Frith-Macdonald <rfm@gnu.org>
2647                           Nicola Pero  <n.pero@mi.flashnet.it>
2649         libobjc/10742
2650         * init.c (class_superclass_of_class): New function.
2651         (create_tree_of_subclasses_inherited_from): Use it.
2652         (__objc_tree_insert_class): Likewise.
2653         (class_is_subclass_of_class): Likewise.
2655 2003-04-11  David Chad  <davidc@freebsd.org>
2656             Loren J. Rittle  <ljrittle@acm.org>
2658         libobjc/8562
2659         * objc/hash.h (hash_string): Constify correctly.
2660         (compare_ptrs): Use direct compare.
2661         * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2662         * objc/sarray.h: Global rename index to indx to avoid shadow.
2664 2003-03-12  Andreas Schwab  <schwab@suse.de>
2666         * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2667         glibcpp_toolexeclibdir.
2668         * configure: Rebuilt.
2670 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2672         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2673         config.status.
2674         * configure: Rebuilt.
2676 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2678         * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2679         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2680         version_specific_libs is enabled.
2681         * configure: Rebuilt.
2683 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
2685         * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2686         (install-libs, install-headers): Prepend $(DESTDIR) to
2687         destination paths in all (un)installation commands.
2689 2002-12-02  Zack Weinberg  <zack@codesourcery.com>
2691         * thr-objc.c: Include coretypes.h and tm.h.
2693 2002-12-01  Zack Weinberg  <zack@codesourcery.com>
2695         * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2697 2002-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2699         * configure.in: Remove skip-this-dir support.
2700         * configure: Regenerate.
2702 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2704         * Makefile.in (all): Fix multilib parallel build.
2706 Thu Sep 12 12:44:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2708         * sendmsg.c (nil_method): Declare not to take a variable number of
2709         args.
2710         (objc_msg_lookup): Cast nil_method to IMP before returning it.
2711         (objc_msg_lookup_super): The same.
2713 2002-09-10  Jan Hubicka  <jh@suse.cz>
2715         * nil_method.c (nil_method): No longer defined with variable
2716         arguments.
2718 2002-07-02  Rodney Brown  <rbrown64@csc.com.au>
2720         * objc/encoding.h: Fix formatting.
2721         * objc/hash.h: Likewise.
2722         * objc/objc-api.h: Likewise.
2723         * objc/runtime.h: Likewise.
2724         * objc/thr.h: Likewise.
2725         * archive.c: Likewise.
2726         * class.c: Likewise.
2727         * encoding.c: Likewise.
2728         * gc.c: Likewise.
2729         * hash.c: Likewise.
2730         * init.c: Likewise.
2731         * misc.c: Likewise.
2732         * nil_method.c: Likewise.
2733         * objects.c: Likewise.
2734         * sarray.c: Likewise.
2735         * selector.c: Likewise.
2736         * sendmsg.c: Likewise.
2737         * thr-mach.c: Likewise.
2738         * thr.c: Likewise.
2740 2002-06-25  DJ Delorie  <dj@redhat.com>
2742         * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2743         GLIBCPP_TOPREL_CONFIGURE.
2744         * configure.in: Call it before AC_CANONICAL_SYSTEM.
2745         * configure: Regenerate.
2747 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2749         * Object.m (forward, read, write): Fix unused parameter warnings.
2750         * encoding.c: Include <stdlib.h>.
2751         (target_flags): Mark with attribute unused.
2752         (atoi): Delete.
2753         * runtime.h (__objc_selector_max_index): Change to unsigned int.
2754         (__objc_generate_gc_type_description): Prototype.
2755         * selector.c (__objc_selector_max_index): Change to unsigned int.
2757 Mon Jun 17 18:37:42 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2759         * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2760         we always have a return value: if __objc_msg_forward does not
2761         supply a forwarding implementation, return the default
2762         __builtin_apply based one.
2764 2002-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2766         * Object.m: Fix signed/unsigned warning.
2767         * Protocol.m: Likewise.
2768         * archive.c: Always include stdlib.h.
2769         (objc_read_short, objc_read_unsigned_short, objc_read_int,
2770         objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2771         Fix signed/unsigned warning.
2772         (objc_write_type, objc_read_type, objc_write_types,
2773         objc_read_types): Ensure ctype 8-bit safety.
2774         (__objc_no_write, __objc_no_read): Mark unused parameters.
2775         * class.c (class_table_setup): Specify void arg.
2776         * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2777         objc_skip_typespec, objc_skip_offset,
2778         objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2779         (objc_layout_structure_next_member): Ensure variables are
2780         initialized.
2781         * gc.c (__objc_generate_gc_type_description,
2782         class_ivar_set_gcinvisible): Mark unused parameters.
2783         * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2784         unused parameters.
2785         (__objc_init_protocols) Fix signed/unsigned warning.
2786         * nil_method.c (nil_method): Mark unused parameters.
2787         * thr.h (objc_thread_callback): Specify void arg.
2788         * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2789         signed/unsigned warning.
2790         (sarray_free): Fix formatting.
2791         * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2792         * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2794 2002-06-09  Andreas Jaeger  <aj@suse.de>
2796         * encoding.c (objc_layout_structure_next_member): Remove unused
2797         variable.
2799 2002-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2801         * Makefile.in (SHELL): Set to @SHELL@.
2802         (WARN_CFLAGS): New.
2803         (ALL_CFLAGS): Add $(WARN_CFLAGS).
2805 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2807         * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2808         * configure: Regenerate.
2810 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
2812         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2813         script entry, and set LD to it when configuring multilibs.
2814         * configure: Rebuilt.
2816 2002-04-19  David O'Brien  <obrien@FreeBSD.org>
2818         * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2820 2002-04-09  Hans-Peter Nilsson  <hp@bitrange.com>
2822         PR objc/6107
2823         * objc/objc-api.h (struct objc_protocol_list): Change type of
2824         member count from int to size_t.
2826 2002-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2828         PR libobjc/4039
2829         * aclocal.m4: Replace with version copied from libstdc++-v3.
2830         * configure.in: Update for changes to aclocal and Makefile.
2831         * configure: Regenerate.
2832         * Makefile.in: Correct install of multilibs and shared libs, use
2833         INSTALL_DATA for include files.
2835 Mon Dec 17 17:02:12 2001  Nicola Pero  <nicola@brainstorm.co.uk>
2837         * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2838         categories - when an unclaimed category was found, the loop was
2839         doing two steps forward instead of one, so that in certain cases
2840         it was failing to properly load all the categories.  (Reported
2841         with fix by Alexander Malmberg <alexander@malmberg.org>).
2843 2001-11-14  Aldy Hernandez  <aldyh@redhat.com>
2845         * encoding.c: Add target_flags.
2847 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2849          * objc/objc-api.h (_C_VECTOR): New.
2851          * encoding.c (VECTOR_TYPE): New.
2853 Mon Oct 29 21:29:21 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2855         * class.c: Rewritten the class table to use optimized, lock-free
2856         lookup.  This more than doubles the speed of class method
2857         invocations.  (class_table_setup), (class_table_insert),
2858         (class_table_replace), (class_table_get_safe),
2859         (class_table_next), (class_table_print),
2860         (class_table_print_histogram): New functions.
2861         (__objc_init_class_tables): Use class_table_setup.
2862         (__objc_add_class_to_hash): Use class_table_get_safe and
2863         class_table_insert.  (objc_lookup_class), (objc_get_class): Do not
2864         assert the existence of the table; do not lock the runtime; use
2865         class_table_get_safe.  (objc_next_class): Use class_table_next.
2866         (__objc_resolve_class_links): Use class_table_next.
2867         (class_pose_as): Use class_table_replace.
2869 2001-09-10  Ovidiu Predescu  <ovidiu@cup.hp.com>
2871         * gc.c: Removed the DEBUG declaration.
2873 Wed Jul 18 12:48:56 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2875         * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2876         rather than through objc_thread_id, to save a function call.
2877         (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2878         Ditto.
2880 Mon Jul 16 12:15:00 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2882         * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2883         to cast an id to a Class, which can not be done.  Make the check
2884         by using CLS_ISMETA on the class pointer instead.
2885         (object_is_meta_class): Similar fix.
2887 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>, Stephen L Moshier  <moshier@mediaone.net>
2889         * configure.in (AC_EXEEXT): Work around in case it expands to
2890         nothing, as in autoconf 2.50.
2891         * acinclude.m4: Likewise.
2892         * configure: Rebuilt.
2894 2001-06-08  Nicola Pero  <n.pero@mi.flashnet.it>
2896         * THREADS: Explain that when we compile libobjc inside GCC, we
2897         always use thr-objc.c as a backend, which uses GCC's thread code.
2899 2001-06-06  Richard Frith-Macdonald  <rrfm@gnu.org>
2901         * init.c (__objc_send_message_in_list): When setting a new entry
2902         in __objc_load_methods use the method IMP as key, but check to see
2903         if the method is in the hashtable by looking at the IMP also.
2904         Also ... call the method after adding it to the hashtable rather
2905         than before ... thus preventing an obscure possibility of infinite
2906         recursion if a +load method itself loads a subclass.
2908 2001-05-25  Ovidiu Predescu  <ovidiu@cup.hp.com>
2910         * init.c (__objc_send_message_in_list): When setting a new entry
2911         in __objc_load_methods use the method name as key, not the method
2912         IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2914 2001-05-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2916         * objc-features.texi: Move to ../gcc/objc.texi.
2917         * fdl.texi: Remove.
2918         * Makefile.in: Don't generate documentation from
2919         objc-features.texi.
2921 2001-05-01  Mark Mitchell  <mark@codesourcery.com>
2923         * fdl.texi: New file.
2924         * objc-features.texi: Simplify.
2925         * Makefile.in: Adjust accordingly.
2927 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
2929         * objc-features.texi: Use the GFDL.
2931 Wed Mar 21 04:44:58 EST 2001  John Wehle  (john@feith.com)
2933         * encoding.c (REAL_TYPE): Define.
2935 2001-03-19  David Edelsohn  <edelsohn@gnu.org>
2937         * encoding.c (TYPE_MODE): Define.
2939 2001-03-14  Nicola Pero  <n.pero@mi.flashnet.it>
2941         * thr.c (objc_thread_add): New function.
2942         (objc_thread_remove): Ditto.
2943         * objc/thr.h: Declare them.
2944         * libobjc.def: Mention them.
2946 2001-02-28  Ovidiu Predescu  <ovidiu@cup.hp.com>
2948         * objc-features.texi: Document the @compatibility_alias compiler
2949         directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2951 Fri Feb 23 18:12:00 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2953         * sendmsg.c (__objc_forward): Delete strlen() declaration.
2955 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
2957         * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2958         we're not interested in the result and they might fail.
2959         * configure: Regenerated.
2961 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2963         * objc-features.texi: Use @email.
2965 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2967         * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2968         printf.
2970 2000-01-11  Richard Earnshaw  <rearnsha@arm.com>
2972         * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2973         determines the value dynamically.
2975 Wed Jan  3 00:49:10 2001  Ovidiu Predescu  <ovidiu@cup.hp.com>
2977         * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2978         libraries to provide a function that returns the real forwarding
2979         function. This can alleviate problems __builtin_apply() and
2980         friends have on various platforms. (Solution suggested by Helge
2981         Hess.)
2983         * objc/objc-api.h: Define __objc_msg_forward.
2985         * sendmsg.c: Define gen_rtx_REG.
2987 2000-12-06      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2989         * thr-rtems.c: New file. Stub to compile.
2991 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
2993         * configure: Rebuilt with new libtool.m4.
2995 Tue Aug 15 00:38:56 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
2997         * configure.in: Create a config.h file. Check for <sched.h>.
2998         * configure: Regenerate.
3000         * config.h.in: Check for <sched.h>.
3002 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
3004         * configure: Regenerate after change to ../libtool.m4.
3006 2000-08-14  Andreas Schwab  <schwab@suse.de>
3008         * objc-features.texi (Top): Move @menu at end of node.
3010 2000-08-11  Manfred Hollstein  <manfredh@redhat.com>
3012         * objc-features.texi: Move @node Top before @menu.
3014 Sun Aug  6 23:27:49 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3016         * objc-features.texi: Documented the new -fconstant-string-class
3017         option.
3019 Sun Aug  6 22:51:16 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3021         * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3022         improve the Posix thread support for Objective-C.
3024 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
3026         * aclocal.m4: Replace copy of ../libtool.m4 with
3027         sinclude(../libtool.m4).
3029 Fri Jul 28 08:58:02 2000  Nicola Pero  <nicola@brainstorm.co.uk>
3031         * configure.in: Added libtool support; build shared libraries
3032         if --enable-shared was passed on command line.
3033         * Makefile.in: Modified most compilation commands to use libtool.
3034         * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3035         libtool distribution.
3037 Sat Jul 29 00:10:21 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
3039         * sarray.c, Object.m: Removed the explicit prototypes for strlen
3040         and memcpy on 64-bit platforms (Suggested by Rodney Brown
3041         <rdb@cup.hp.com>).
3043 2000-05-12  H.J. Lu  (hjl@gnu.org)
3045         * Makefile.in (GTHREAD_FLAGS): New.
3046         (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3047         (OBJC_THREAD_FILE): Changed to thr-objc.
3049         * configure.in (GTHREAD_FLAGS): New, check and replace it for
3050         Makefile.
3051         (OBJC_THREAD_FILE): Removed.
3053         * thr-objc.c: New.
3055 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3057         * objc/hash.h: Include string.h.
3059 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
3061         * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3063 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
3065         * Object.m (strlen): Provide prototype on all 64bit platforms,
3066         not only alpha.
3067         * sarray.c (memcpy): Likewise.
3068         * encoding.c (objc_layout_finish_structure): Don't use
3069         ROUND_TYPE_ALIGN on sparc.
3071         * encoding.c (objc_layout_structure_next_member): Do the whole
3072         procedure even for the first member, so that we get correct
3073         alignment.
3075 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
3077         * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3078         comments.
3080 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
3082         * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3084 Thu Sep 23 07:19:12 1999   Chris Ball <cball@fmco.com>
3086         * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3088 Tue Sep 21 07:47:10 1999  Jeffrey A Law  (law@cygnus.com)
3090         * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3091         the compiler when building C code.
3093 Fri Aug  6 23:32:29 1999  Daniel Jacobowitz <drow@drow.them.org>
3095         * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3096         libdir, libsubdir and tooldir.
3098 Mon Jun 21 05:40:15 1999  John David Anglin <dave@hiauly1>
3100         * init.c (__objc_force_linking): Make global.
3102 Thu May 20 03:20:59 1999  Jeffrey A Law  (law@cygnus.com)
3104         * configure.in (AC_EXEEXT): Remove call.
3105         (compiler_name): Explicitly check with no extension and .exe
3106         extension.
3107         * configure: Regenerate.
3109 Sun Apr 25 01:15:34 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3111         * Makefile.in (CC1OBJ): Define in terms of CC.
3112         (runtime-info.h): Use.
3114 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3116         * objc-features.texi: Updated the URL to Boehm's GC page.
3118 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3120         * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3121         the char as being signed (patch from Daniel Jacobowitz
3122         <drow@false.org>).
3124 Wed Mar 24 22:41:28 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3126         * configure.in (AC_PREREQ): Update to 2.13.
3127         (AC_EXEEXT): Call to find possible file extension.
3128         (compiler_name): Use.
3129         * configure: Regenerate.
3131 Wed Jan 27 02:31:01 1999  Jeffrey A Law  (law@cygnus.com)
3133         * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3135 Tue Jan  5 01:38:53 1999  Jeffrey A Law  (law@cygnus.com)
3137         * configure.in (thread_file): Correct and simplify code to find
3138         the thread file.
3139         * configure: Rebuilt.
3141 1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
3143         * configure.in (compiler_name): Add check to detect if this
3144         language's compiler has been built.
3145         * configure: Regenerate.
3147 Mon Nov 23 16:50:28 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3149         *  configure.in: Use AC_PREREQ(2.12.1).
3151 Thu Nov 19 20:33:37 1998  Jeffrey A Law  (law@cygnus.com)
3153         * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3155 Sun Nov  8 17:46:14 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3157         * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3159 Thu Oct 22 14:34:06 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3161         * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3163 Sat Oct 17 05:21:31 1998  Ovidiu Predescu  <ovidiu@slip.net>
3165         * objc-features.texi (Top): Changed the email address.
3166         * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3168 Mon Oct 11 21:25:27 1998  Ovidiu Predescu  <ovidiu@slip.net>
3170         * encoding.c: Redefine get_inner_array_type to get the first entry
3171         in the structure.
3173 Thu Oct  8 12:21:14 1998  Richard Frith-Macdonald <richard@brainstorm.co.uk>
3175         * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3176         (objc_get_type_qualifiers): Similarly.
3177         * objc/encoding.h (_C_BYREF): Define.
3178         (_F_BYREF): Define.
3180 1998-10-07  David S. Miller  <davem@pierdol.cobaltmicro.com>
3182         * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3183         works out on 64-bit systems.
3185 Tue Oct  6 20:32:06 1998  Alexandre Oliva  <oliva@dcc.unicamp.br>
3187         * Makefile.in (INCLUDES): Make it multilib-friendly.
3189 Fri Oct  2 07:12:14 1998  H.J. Lu  (hjl@gnu.org)
3191         * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3193 Thu Oct  1 22:33:03 1998 Robert Lipe  <robertl@dgii.com>
3194                          Jeffrey A Law  (law@cygnus.com)
3196         * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3197         (FLAGS_TO_PASS): Added.
3198         (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3200         * archive.c: Change config.h to tconfig.h.
3202         * configure.in: Find gcc's object directory even for multilibs.
3204 Wed Sep 30 18:17:17 1998  Robert Lipe  <robertl@dgii.com>
3206         * configure.in: Escape ^ in grep string.
3207         * configure: Rebuilt.
3209 Wed Sep 30 09:14:52 1998  Jeffrey A Law  (law@cygnus.com)
3211         * All .h files pushed down into the objc/ subdirectory.
3212         * Makefile.in (copy_headers): Corresponding changes.
3213         * configure.in (AC_INIT): Corresponding changes.
3214         * configure: Rebuilt.
3216 1998-09-30  Ben Elliston  <bje@cygnus.com>
3217             Jeff Law      <law@cygnus.com>
3219         * Makefile.in: Rewrite.
3221         * configure.in: Likewise.
3223         * configure: Regenerate.
3225         * All .c files.  Remove "objc" prefix when including objc header
3226         files.  Include tconfig.h, not ../tconfig.h.
3228 Mon Sep 21 23:27:10 1998  Ovidiu Predescu <ovidiu@slip.net>
3230         * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3231         (get_inner_array_type): Define.
3233 1998-09-21  Ben Elliston  <bje@cygnus.com>
3235         * New directory.  Moved files from ../gcc/objc.