-fdump-pass implementation
[official-gcc.git] / libobjc / ChangeLog
blob45f04859578008a143ad2e261198242e48d8c76d
1 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
3         * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
5 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
7         * configure.ac (VERSION): Bumped to 4:0:0.
8         * configure (VERSION): Likewise.
10 2011-06-08  Nicola Pero  <nicola.pero@meta-innovation.com>
12         * objc/README: Updated.
13         * objc-private/selector.h: Updated comments.
14         
15 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
17         * sendmsg.c (class_get_instance_method): Removed.
18         (class_get_class_method): Removed.
19         (objc_get_uninstalled_dtable): Removed.
21 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
23         * objc-private/module-abi-8.h (class_get_instance_size): Removed.
24         * objects.c (class_create_instance): Removed.
25         * error.c (__USE_FIXED_PROTOTYPES__): Removed.
26         * gc.c (__objc_generate_gc_type_description): Use
27         class_getInstanceSize() instead of class_get_instance_size().
28         * selector.c (sel_types_match): Made static.
29         (sel_get_typed_uid): Removed.
30         (sel_get_any_typed_uid): Removed.
31         (sel_get_name): Removed.
32         (sel_get_type): Removed.
33         (sel_register_name): Removed.
34         (sel_register_typed_name): Removed.
35         (sel_get_uid): Removed.
37 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
39         * encoding.c (method_get_number_of_arguments): Removed.
40         (method_get_sizeof_arguments): Removed.
42 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
44         * class.c (objc_next_class): Removed.
45         (class_pose_as): Removed.
46         (CLASSOF): Removed.
47         (class_table_replace): Removed.
48         (objc_lookup_class): Removed.
50 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
52         Removed the Traditional Objective-C runtime public API.
53         * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
54         (install-headers): Do not create the objc/deprecated directory and
55         do not install the deprecated headers.
56         (OBJC_H): Removed encoding.h and objc-api.h.
57         * Object.m: Removed all methods with the exception of -class and
58         -isEqual:.  Updated includes.  ([-class]): Use Modern API.
59         * objc/Object.h: Do not include deprecated/Object.h.
60         * objc/deprecated/Object.h: Removed.
61         * linking.m (__objc_linking): Call [Object class] instead of
62         [Object name].
63         * Protocol.m: Removed all methods with the exception of -isEqual:.
64         Updated includes.
65         * objc/Protocol.h: Do not include deprecated/Protocol.h.
66         * objc/deprecated/Protocol.h: Removed.
67         * objc/deprecated/struct_objc_symtab.h: Removed.
68         * objc/deprecated/struct_objc_module.h: Removed.
69         * objc/deprecated/struct_objc_ivar.h: Removed.
70         * objc/deprecated/struct_objc_ivar_list.h: Removed.
71         * objc/deprecated/struct_objc_method.h: Removed.
72         * objc/deprecated/struct_objc_method_list.h: Removed.
73         * objc/deprecated/struct_objc_protocol_list.h: Removed.
74         * objc/deprecated/struct_objc_category.h: Removed.
75         * objc/deprecated/MetaClass.h: Removed.
76         * objc/deprecated/objc_msg_sendv.h: Removed.  
77         * objc/deprecated/README: Removed.
78         * objc/deprecated/struct_objc_class.h: Removed.
79         * objc/deprecated/struct_objc_protocol.h: Removed.
80         * objc/deprecated/struct_objc_selector.h: Removed.
81         * objc/encoding.h: Removed.
82         * objc/message.h (struct objc_super): Removed the definition for
83         the Traditional Objective-C runtime API.
84         * objc/objc.h: Do not include objc/objc-decls.h.
85         deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
86         deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
87         and deprecated/objc_msg_sendv.h.  Uncommented new definition of
88         Protocol *.
89         * objc/objc-api.h: Removed.
90         * objc/runtime.h: Updated comments.  Removed check to detect
91         concurrent usage of Traditional and Modern APIs.
92         * objc-private/module-abi-8.h: Always define struct objc_class and
93         struct objc_protocol.  (struct objc_protocol_list): Changed type
94         of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
95         (class_get_instance_size): Added.
96         * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
97         'struct objc_protocol *' as argument, not a 'Protocol *'.
98         * objc-private/runtime.h: Updated comments.
99         * objc-private/selector.h (struct objc_selector, sel_eq): Added.
100         * class.c: Include objc-private/selector.h.
101         (objc_get_meta_class): Return a Class instead of a MetaClass.
102         * encoding.c (method_get_next_argument): Removed.
103         (method_get_first_argument): Removed.
104         (method_get_nth_argument): Removed.
105         * gc.c: Include objc/runtime.h instead of objc/encoding.h.
106         Include objc-private/module-abi-8.h and ctype.h.
107         * protocols.c (__objc_protocols_add_protocol): Take a 'struct
108         objc_protocl *' as argument, not a 'Protocol *'.
109         (class_addProtocol): Added casts to 'struct objc_protocol *' and
110         'Protocol *'.
111         (class_copyProtocolList): Likewise.
112         (protocol_conformsToProtocol): Likewise.
113         (protocol_copyProtocolList): Likewise.
114         * sarray.c: Include objc-private/module-abi-8.h.
115         * sendmsg.c (method_get_next_argument): Removed.
116         (method_get_first_argument): Removed.
117         (method_get_nth_argument): Removed.
118         (objc_msg_sendv): Removed.
119         (arglist_t, retval_t): New.  (class_get_class_method): Take a
120         'Class', not 'MetaClass', argument.
121         * thr.c: Include module-abi-8.h.
122         
123 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
125         * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
126         and objc_get_uninstalled_dtable.h.
127         * objc/deprecated/struct_objc_static_instances.h: Removed.
128         * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.       
129         * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
130         and deprecated/objc_get_uninstalled_dtable.h.
131         
132 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
134         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
135         * objc/deprecated/objc_object_alloc.h: Removed.
136         * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
137         * objects.c (_objc_object_alloc, _objc_object_dispose,
138         _objc_object_copy): Removed.
139         * libobjc.def (__objc_object_alloc, __objc_object_copy,
140         __objc_object_dispose): Removed.
141         
142 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
144         * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
145         * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
146         * objc/deprecated/METHOD_NULL.h: Removed.
147         
148 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
150         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
151         objc_malloc.h and objc_unexpected_exception.h.
152         (exception.lo): Do not use -Wno-deprecated-declarations.
153         (exception_gc.lo): Likewise.
154         * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
155         deprecated/objc_malloc.h and
156         deprecated/objc_unexpected_exception.h.
157         * objc/deprecated/objc_valloc.h: Removed.
158         * objc/deprecated/objc_malloc.h: Removed.
159         * objc/deprecated/objc_unexpected_exception.h: Removed.
160         * exception.c (_objc_unexpected_exception): Removed.
161         (objc_exception_throw): Do not check for
162         _objc_unexpected_exception.
163         * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
164         _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.        
165         * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
166         
167 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
169         * objc/objc.h: Do not include deprecated/STR.h.
170         * objc/deprecated/STR.h: Removed.
171         * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
172         
173 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
175         * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
176         (OBJC_DEPRECATED_H): Likewise.
177         * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
178         objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
179         objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
180         hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
181         sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
182         sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
183         * objc/sarray.h: Removed.
184         * objc/hash.h: Removed.
185         * objc/deprecated/sarray.h: Removed.
186         * objc/deprecated/hash.h: Removed.
187         * objc/Object.h: Do not include objc/deprecated/hash.h
188         * Object.m: Include string.h.
189         * objc/objc-api.h: Do not include objc/deprecated/hash.h.
190         * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
191         Removed.
193 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
195         * Object.m ([-forward::]): Removed.
196         * objc/deprecated/Object.h ([-forward::]): Removed.
197         * sendmsg.c (__objc_forward): Updated comments.
198         
199 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
201         * Makefile.in (OBJC_H): Removed objc-list.h.
202         (OBJC_DEPRECATED_H): Removed objc-list.h.
203         * objc/objc-list.h: File removed.
204         * objc/deprecated/objc-list.h: File removed.
206 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
208         * Makefile.in (OBJC_H): Removed typedstream.h.
209         (OBJC_DEPRECATED_H): Removed typedstream.h.
210         (C_SOURCE_FILES): Removed archive.c.
211         (Object.lo): Rule removed.
212         (Object_gc.lo): Likewise.
213         (archive.lo): Likewise.
214         (archive_gc.lo): Likewise.
215         * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
216         [-awake]): Removed.
217         Do not include deprecated/typedstream.h.
218         * Object.m: Removed the same methods.
219         * archive.c: File removed.
220         * objc/typedstream.h: File removed.
221         * objc/deprecated/typedstream.h: File removed.
222         * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
223         __objc_write_class, __objc_write_object, __objc_write_selector,
224         objc_close_typed_stream, objc_end_of_typed_stream,
225         objc_flush_typed_stream, objc_get_stream_class_version,
226         objc_open_typed_stream, objc_open_typed_stream_for_file,
227         objc_read_array, objc_read_char, objc_read_int, objc_read_long,
228         objc_read_object, objc_read_selector, objc_read_short,
229         objc_read_string, objc_read_type, objc_read_types,
230         objc_read_unsigned_char, objc_read_unsigned_int,
231         objc_read_unsigned_long, objc_read_unsigned_short,
232         objc_write_array, objc_write_char, objc_write_int,
233         objc_write_long, objc_write_object, objc_write_object_reference,
234         objc_write_root_object, objc_write_selector, objc_write_short,
235         objc_write_string, objc_write_string_atomic, objc_write_type,
236         objc_write_types, objc_write_unsigned_char,
237         objc_write_unsigned_int, objc_write_unsigned_long,
238         objc_write_unsigned_short): Removed.
239         
240 2011-06-02  Nicola Pero  <nicola.pero@meta-innovation.com>
242         * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
243         * objc/deprecated/objc_error.h: Removed.
244         * objc/objc-api.h: Do not include deprecated/objc_error.h.
245         * libobjc.def (objc_error, objc_verror): Removed.
246         * error.c (_objc_error_handler, objc_error, objc_verror,
247         objc_set_error_handler): Removed.
248         * Object.m ([-error:], [-perform:], [-perform:with:],
249         [-perform:with:with], [-subclassResponsibility:],
250         [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
251         Removed.
252         * objc/deprecated/Object.h: Removed the same methods.
253         * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
254         method after trying to invoke the "doesNotRecognize:" method.
255         
256 2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>
258         * sendmsg.c: Reindented part of the file.  No non-trivial changes
259         in code.
261 2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>
263         * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
264         not objc_lookup_class.
266 2011-05-25  Richard Frith-Macdonald <rfm@gnu.org>
267             David Ayers  <ayers@fsfe.org>
269         PR libobjc/38307
270         * sendmsg.c: Include objc/hash.h.
271         (get_implementation): New function, mostly with code from get_imp
272         updated to support the new +initialize dispatch table logic.
273         (get_imp): Use get_implementation.
274         (__objc_responds_to): Updated to support the new +initialize
275         dispatch table logic.
276         (class_respondsToSelector): Likewise.
277         (objc_msg_lookup): Use get_implementation.
278         (__objc_init_install_dtable): Removed.
279         (__objc_install_methods_in_dtable): Updated arguments.
280         (__objc_install_dispatch_table_for_class): Renamed to
281         __objc_install_dtable_for_class and updated to support the new
282         +initialize dispatch table logic.
283         (__objc_update_dispatch_table_for_class): Updated to support the
284         new +initialize dispatch table logic.
285         (__objc_forward): Call get_implementation instead of get_imp.
286         (prepared_dtable_table): New.
287         (__objc_prepare_dtable_for_class): New. 
288         (__objc_prepared_dtable_for_class): New.
289         (__objc_get_prepared_imp): New.
290         (__objc_install_prepared_dtable_for_class): New.
291         
292 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
294         PR libobjc/48177
295         * selector.c (__sel_register_typed_name): Use sel_types_match()
296         instead of strcmp() to compare selector types (Suggestion by
297         Richard Frith-Macdonald <rfm@gnu.org>).
299 2011-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
301         PR libobjc/32037
302         * Makefile.in (OBJC_GCFLAGS): Move ...
303         * configure.ac (enable_objc_gc): ... here.
304         Add $(libsuffix) to OBJC_BOEHM_GC.
305         * configure: Regenerate.
307 2011-02-28  Nicola Pero  <nicola.pero@meta-innovation.com>
308         
309         * selector.c (sel_getTypedSelector): Return NULL if there are
310         multiple selectors with conflicting types.
311         * objc/runtime.h (sel_getTypedSelector): Updated documentation.
312         
313 2011-02-28  Richard Frith-Macdonald <rfm@gnu.org>
315         PR libobjc/47922
316         * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
317         a hardcoded "!".
319 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
321         * configure: Regenerate.
323 2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>
325         * init.c (create_tree_of_subclasses_inherited_from): Use
326         class_superclass_of_class instead of assuming a class is
327         unresolved when it could be resolved.  Tidied up assignment and
328         check.
329         (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
330         (objc_tree_insert_class): Tidied up loop; return immediately upon
331         inserting a class.
332         (__objc_exec_class): Do not set __objc_class_tree_list.
333         
334 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
336         * selector.c (sel_getTypedSelector): Return NULL if given a NULL
337         argument.
338         (sel_registerTypedName): Same.
339         (sel_registerName): Same.
340         * objc/runtime.h: Updated documentation.
341         
342 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
344         * objc/runtime.h (class_addIvar): Updated documentation.  The
345         alignment is actually the log_2 of the alignment in bytes.
346         * ivars.c (class_addIvar): Corresponding change to the
347         implementation.
348         
349 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
351         * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
352         be consistent with method_getTypeEncoding and
353         ivar_getTypeEncoding.
354         (sel_copyTypedSelectorList, sel_getTypedSelector): New.
355         * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
356         (sel_copyTypedSelectorList, sel_getTypedSelector): New.
357         (sel_get_type): Updated call to sel_getType.
358         
359 2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>
361         * objc/runtime.h (class_conformsToProtocol,
362         class_copyProtocolList): Updated documentation.
364 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
366         * init.c (create_tree_of_subclasses_inherited_from): Updated
367         DEBUG_PRINTF messages.
368         (__objc_tree_insert_class): Same.
369         (__objc_send_load_using_method_list): Same.
370         (__objc_send_load): Same.
371         (__objc_exec_class): Same.  In particular, do not print the module
372         name since it is no longer used.
373         * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
374         tracking +initialize calls.
375         (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
376         tracking updates of dispatch tables.
377         (__objc_install_dispatch_table_for_class): Same.
378         
379 2010-12-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
381         * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
382         (libobjc_gc$(libsuffix).la): Likewise.
384 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
386         * sendmsg.c (class_addMethod): Return NO if the method already
387         exists in the class.
389 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
391         * init.c (duplicate_classes): New.
392         (__objc_exec_class): Initialize duplicate_classes.
393         (__objc_create_classes_tree): Ignore classes in the
394         duplicate_classes table.
395         (__objc_call_load_callback): Same.
396         (__objc_init_class): If a duplicate class is found, add it to
397         duplicate_classes instead of aborting.  Return YES if the class is
398         not a duplicate, and NO if it is.
399         * objc-private/runtime.h (__objc_init_class): Updated prototype.
401 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
403         * objc-private/objc-list.h: Reindented file.  No code changes.
404         * objc-private/sarray.h: Same change.
406 2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>
408         * objc-private/accessors.h: Removed 'extern "C"' guards.  This
409         file is never compiled with C++.
410         * objc-private/hash.h: Same change.
411         * objc-private/objc-list.h: Same change.
412         * objc-private/objc-sync.h: Same change.
413         * objc-private/protocols.h: Same change.
414         * objc-private/runtime.h: Same change.
415         * objc-private/sarray.h: Same change.
416         * objc-private/selector.h: Same change.
418 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
420         PR libobjc/18764
421         * class.c (__objc_add_class_to_hash): Return YES if the class was
422         added, and NO if it already existed.
423         * init.c (__objc_init_class): If __objc_add_class_to_hash returns
424         NO, then abort the program with an error message.
425         * objc-private/runtime.h (__objc_add_class_to_hash): Updated
426         declaration.
428 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>      
430         * init.c (_objc_load_callback): Initialize with 0.
431         (__objc_call_callback): Renamed to __objc_call_load_callback.
432         Check _objc_load_callback only once, and if it is not set, return
433         immediately.
434         (objc_send_load): Updated call to __objc_call_callback.
435         
436 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
438         PR libobjc/16110
439         * init.c (__objc_send_message_in_list): Renamed to
440         __objc_send_load_using_method_list.  Do not take an 'op' argument.
441         Register the 'load' selector if needed.
442         (__objc_send_load): Do not register the 'load' selector.  Updated
443         call to __objc_send_message_in_list.
444         (__objc_create_classes_tree): Add the class of any claimed
445         category that was loaded in the module to the list of classes for
446         which we try to execute +load.
447         
448 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
450         * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
451         Updated comments.
452         * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
453         a pointer using DEBUG_PRINTF.
454         
455 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
457         PR libobjc/45953
458         * selector.c (__sel_register_typed_name): When registering a new
459         selector with the same name as an existing one, reuse the existing
460         name string.  Also updated types, casts and comments in the whole
461         function.
463 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
465         * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
466         to be 'struct objc_selector *' and not 'SEL'.
467         * init.c (__objc_exec_class): Call
468         __objc_register_selectors_from_module instead of iterating over
469         each selector and calling __sel_register_typed_name for each.
470         * objc-private/selector.h: Declare
471         __objc_register_selectors_from_module instead of
472         __sel_register_typed_name.
473         * selector.c (__objc_register_selectors_from_module): New.
474         (__sel_register_typed_name): Made static.
475         
476 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
478         * linking.m: Do not include objc/NXConstStr.h.
480 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
481         
482         * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
483         * objc-private/common.h (DEBUG_PRINTF): To here.
484         * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
485         
486 2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>
488         * hash.c: Tidied up comments and indentation.  No code changes.
490 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
492         PR libobjc/47012
493         * accessors.m (objc_getProperty): If not atomic, do not
494         retain/autorelease the returned value.
496 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
498         * objc-private/runtime.h (__objc_selector_max_index,
499         __objc_init_selector_tables, __objc_register_selectors_from_class,
500         __objc_register_selectors_from_list,
501         __objc_register_selectors_from_description_list): Moved to ...
502         * objc-private/selector.h: ... here.
504 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
506         * objc-private/runtime.h (__objc_class_links_resolved): Removed.
507         (__objc_print_dtable_stats): Removed.
508         (__sel_register_typed_name): Removed.
509         * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
510         
511 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
513         * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
514         if appropriate, after loading the module.
516 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
518         * sendmsg.c (method_setImplementation): Do not declare.
520 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
522         * objc/message.h: Updated comments.
523         * objc/runtime.h: Updated comments.
524         
525 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
527         * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
528         * protocols.c: Updated all calls to objc_lookupClass to call
529         objc_lookUpClass instead.
530         * sendmsg.c (objc_lookupClass): Do not declare.
531         (get_imp): Update call to objc_lookupClass to call
532         objc_lookUpClass instead.
533         * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
535 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
537         * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
538         * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
539         define.  Updated comments.
540         
541 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
543         * objc/encoding.h: Updated comments.
544         * objc/runtime.h: Updated comments.
545         (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
546         (objc_sizeof_type): Same.
547         (objc_alignof_type): Same.
548         (objc_aligned_size): Same.
549         (objc_promoted_size): Same.
550         (objc_skip_type_qualifiers): Same.
551         (objc_skip_typespec): Same.
552         (objc_skip_offset): Same.
553         (objc_skip_argspec): Same.
554         (objc_get_type_qualifiers): Same.
555         (objc_layout_structure): Same.
556         (objc_layout_structure_next_member): Same.
557         (objc_layout_finish_structure): Same.
558         (objc_layout_structure_get_info): Same.
559         
560 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
562         * init.c: Updated comments.
563         * objc/objc-api.h: Updated comments.
564         * objc/runtime.h (_objc_load_callback): Declare.
565         
566 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
568         * objc/Object.h: Include deprecated/typedstream.h and
569         deprecated/hash.h instead of typedstream.h.  Updated comments.
571 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
573         * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
574         * objc/deprecated/objc_msg_sendv.h: New.
575         * objc/message.h: Do not define retval_t, apply_t, arglist,
576         arglist_t, objc_msg_sendv, now in
577         objc/deprecated/objc_msg_sendv.h.
578         * objc/objc.h: Do not include message.h; include
579         objc/deprecated/objc_msg_sendv.h instead.  Tidied up comments.
580         * sendmsg.c: Include objc/message.h.
581         * thr.c: Include objc/message.h.
582         
583 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
585         * objc/objc-exception.h: Include objc-decls.h.  Mark all
586         functions with objc_EXPORT.
587         * objc/objc-sync.h: Same change.
589 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
591         * Protocol.m: Moved all methods, with the exception of -isEqual:,
592         into the 'Deprecated' category.
593         * objc/Protocol.h: Removed all methods, moved to
594         objc/deprecated/Protocol.h.  Include objc/deprecated/Protocol.h.
595         * objc/deprecated/Protocol.h: New.
596         * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
597         
598 2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
600         * init.c: Include objc-private/selector.h.  Do not declare
601         __sel_register_typed_name.
602         * objc-private/selector.h (__sel_register_typed_name): Declare.
603         * selector.c: Include objc-private/selector.h.
604         
605 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
607         * class.c: Tidied up comments and indentation.  No code changes.
608         * error.c: Same.
609         * exception.c: Same.
610         * init.c: Same.
611         * ivars.c: Same.
612         * memory.c: Same.
613         * objc-foreach.c: Same.
614         * objc-sync.c: Same.
615         * objects.c: Same.
616         * protocols.c: Same.
617         * sarray.c: Same.
618         * thr.c: Same.
620 2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>
622         * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
623         instead of objc/objc-api.h.
624         (init_check_module_version): Take a 'struct objc_module *'
625         argument instead of 'Module_t'.  Use 'struct objc_module *'
626         instead of 'Module_t'.
627         (__objc_created_classes_tree): Take a 'struct objc_module *'
628         argument instead of 'Module_t'; use 'struct objc_symtab *' instead
629         of 'Symtab_t'.
630         (__objc_call_callback): Take a 'struct objc_module *' argument
631         instead of 'Module_t'; use 'struct objc_symtab *' instead of
632         'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
633         (_objc_load_callback): Take a 'struct objc_category *' argument
634         instead of 'Category *'.
635         (class_superclass_of_class): Use objc_getClass() instead of
636         objc_lookup_class().
637         (create_tree_of_subclasses_inherited_from): Same change (also, use
638         an explicit 'if' instead of '?').
639         (objc_init_statics): Same change.
640         (objc_send_load): Same change.
641         (__objc_init_protocol): same change.
642         (__objc_send_message_in_list): Take a 'struct objc_method_list *'
643         argument instead of 'MethodList_t'.  Use 'struct objc_method *'
644         instead of 'Method_t'.
645         (__objc_send_load): Use 'struct objc_method_list *' instead of
646         'MethodList_t'.  Use sel_registerName() instead of
647         sel_register_name().
648         (__objc_exec_class): Take a 'struct objc_module *' argument
649         instead of 'Module_t'.  Use 'struct objc_symtab *' instead of
650         'Symtab_t'.  Use objc_getClass() instead of objc_lookup_class().
651         Use 'struct objc_category *' instead of 'Category_t'.
652         
653 2010-12-16  Nicola Pero  <nicola.pero@meta-innovation.com>
655         * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
656         Include objc-private/module-abi-8.h and objc-private/selector.h
657         instead of objc/encoding.h.
658         (objc_msg_lookup_super): Use super->super_class instead of
659         super->class.
660         (method_get_first_argument, method_get_next_argument): Declare
661         locally.
662         (class_get_instance_method): Declare before using.
663         (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
664         (__objc_init_dispatch_tables, __objc_send_initialize): Use
665         sel_registerName() instead of sel_register_name().
666         (__objc_forward): Use sel_getName() instead of sel_get_name().
667         (objc_get_uninstalled_dtable): Use 'void' as argument.
668         * objc-private/selector.h: New.
670 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
672         * objc/message.h (objc_super): When using the modern API, do not
673         define Super and Super_t, and always use 'super_class' for the
674         super class field.      
675         (objc_msg_lookup_super): Updated prototype to use 'struct
676         objc_super *' instead of 'Super_t'.
677         * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
678         'struct objc_super *' instead of 'Super_t'.
680 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
682         * objc/message.h: Update comments, reindented code and moved
683         deprecated types and functions at the end of the file.  No code
684         changes.
686 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
688         * ivars.c (class_addIvar): Use the 'size' argument instead of
689         trying to calculate it using objc_sizeof_type().
690         * objc/runtime.h (class_addIvar): Updated comments.
691         
692 2010-12-15  Nicola Pero  <nicola.pero@meta-innovation.com>
694         * sendmsg.c: Reindented some code and tidied up comments.  No
695         actual code changes.
696         
697 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
699         * objc/Object.h: Moved all the methods, with the exception of
700         -class and -isEqual:, into ...
701         * objc/deprecated/Object.h: here.
702         * Object.m: Moved all the methods, with the exception of -class
703         and -isEqual: into the 'Deprecated' category.
705 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
707         * objects.c (object_copy): Do not #undef as we are no longer
708         including objc/objc-api.h.
709         * selector.c: Include objc/runtime.h and
710         objc-private/module-abi-8.h.  Do not include objc/objc-api.h and
711         objc/encoding.h.  Updated
712         (__objc_register_selectors_from_class): Use struct
713         objc_method_list * instead of MethodList_t.
714         (__objc_register_selectors_from_list): Use Method instead of
715         Method_t.
716         (struct objc_method_description_list): Do not define here.
717         (__objc_register_instance_methods_to_class): Use struct
718         objc_method_list * instead of MethodList_t and Method instead of
719         Method_t.
720         
721 2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>
723         * selector.c: Reindented some code and tidied up comments.  No
724         actual code changes.
726 2010-12-13  Iain Sandoe  <iains@gcc.gnu.org>
728         * encoding.c (_darwin_rs6000_special_round_type_align): New.
729         (darwin_rs6000_special_round_type_align): Adjust to use new routine.
731 2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>
733         * sendmsg.c (selector_resolveClassMethod): New.
734         (selector_resolveInstanceMethod): New.
735         (__objc_resolve_class_method): New.
736         (__objc_resolve_instance_method): New.
737         (get_imp): Call __objc_resolve_class_method or
738         __objc_resolve_instance_method at the appropriate time.
739         (objc_msg_lookup): Same.
740         (class_getClassMethod): Same.   
741         (class_getInstanceMethod): Same.
742         (__objc_init_dispatch_tables): Initialize
743         selector_resolveClassMethod and selector_resolveInstanceMethod.
744         * objc/runtime.h: Updated documentation of class_getClassMethod,
745         class_getInstanceMethod and class_getMethodImplementation.
746         
747 2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>
749         * objc-private/module-abi-8.h (struct objc_symtab): Updated
750         description of sel_ref_cnt and refs.
751         * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
752         
753 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
755         PR target/40125
756         PR lto/46695
757         * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
758         * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
759         * aclocal.m4: Regenerate.
760         * configure: Regenerate.
762 2010-12-03  Matthias Klose  <doko@ubuntu.com> 
764         * configure.ac (VERSION): Bump the version to 3:0:0.
765         * configure: Regenerate.
767 2010-11-23  Richard Frith-Macdonald <rfm@gnu.org>
769         * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
770         pass nil as the receiver since we don't know the receiver at this
771         point.
772         
773 2010-11-18  Nicola Pero  <nicola.pero@meta-innovation.com>
775         * ivars.c: Include stdlib.h.
776         * protocols.c: Same change.
778 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
780         * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
781         * accessors.m: New.
782         * init.c: Include objc-private/accessors.h.
783         (__objc_exec_class): Call __objc_accessors_init.
784         * objc-private/accessors.h: New.
786 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
788         * objc/message.h: Moved initial includes outside of extern "C".
789         * objc/runtime.h: Add extern "C" for Objective-C++.
791 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
793         * init.c (objc_send_load): Do not wait for NXConstantString to be
794         registered before executing +load.  There is no point if
795         -fconstant-string-class=xxx is used when compiling all modules,
796         as is the case for almost all users.
797         * linking.m (__objc_linking): Do not try to forcefully link in
798         NXConstantString.
800 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
802         * objc/runtime.h: Updated comments.
803         (class_addMethod): New.
804         (class_addIvar): New.
805         (class_replaceMethod): New.
806         (objc_allocateClassPair): New.
807         (objc_registerClassPair): New.
808         (objc_disposeClassPair): New.
809         * class.c (objc_allocateClassPair): New.
810         (objc_registerClassPair): New.
811         (objc_disposeClassPair): New.
812         (class_getSuperclass): Return Nil if a class is in construction.
813         * init.c (__objc_exec_class): Call __objc_init_class.
814         (__objc_init_class): New.
815         * ivars.c (class_copyIvarList): Return NULL if class is in
816         construction.  Do not lock the runtime mutex.
817         (class_getInstanceVariable): Return NULL if class is in
818         construction.  Do not lock the runtime mutex.
819         (class_addIvar): New.
820         * sendmsg.c (class_addMethod): New.
821         (class_replaceMethod): New.
822         * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
823         (_CLS_IN_CONSTRUCTION): New.
824         (CLS_IS_IN_CONSTRUCTION): New.
825         (CLS_SET_IN_CONSTRUCTION): New.
826         (CLS_SET_NOT_IN_CONSTRUCTION): New.
827         * objc-private/runtime.h (__objc_init_class): New.
829 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
831         * class.c (class_getSuperclass): Call __objc_resolve_class_links
832         if the class is not resolved yet.
833         * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
834         
835 2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
837         * objc/runtime.h (class_getIvarLayout): New.
838         (class_getWeakIvarLayout): New.
839         (class_setIvarLayout): New.
840         (class_setWeakIvarLayout): New.
841         * ivars.c (class_getIvarLayout): New.
842         (class_getWeakIvarLayout): New.
843         (class_setIvarLayout): New.
844         (class_setWeakIvarLayout): New. 
846 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
847         
848         * objc/runtime.h (class_copyPropertyList): New.
849         (class_getProperty): New.
850         (property_getAttributes): New.
851         (property_getName): New.
852         * ivars.c (class_copyPropertyList): New.
853         (class_getProperty): New.
854         (property_getAttributes): New.
855         (property_getName): New.
856         
857 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
859         * objc-private/runtime.h (__objc_update_classes_with_methods): New.
860         * class.c (__objc_update_classes_with_methods): New.
861         (objc_getClassList): Do not lock the class lock.
862         * methods.c (method_exchangeImplementations): New.
863         (method_setImplementation): New.
864         * objc/runtime.h (method_setImplementation): New.
865         (method_exchangeImplementations): New.
866         
867 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
869         * Protocol.m: Include objc/runtime.h and
870         objc-private/module-abi-8.h instead of objc/objc-api.h.  Do not
871         repeat Protocol's instance variables.
872         (struct objc_method_description_list): Do not define here.
873         ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
874         ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
875         selectors directly instead of getting names and then using strcmp.
876         ([descriptionForClassMethod:]): Same change.
877         ([-isEqual:]): Reimplemented on top of protocol_isEqual().
878         * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
879         to compare selectors directly instead of getting names and then
880         using strcmp.
881         * objc/Protocol.h: Updated comments.
882         
883 2010-10-15  Nicola Pero  <nicola.pero@meta-innovation.com>
885         * init.c (__objc_init_protocol): New function which fixes up a
886         protocol's class pointer, registers it with the runtime, register
887         all protocol selectors and registers associated protocols too.
888         (objc_init_statics): Detect if we are initializing protocols, and
889         if so, use __objc_init_protocol instead of only fixing up the
890         class pointer.
891         (__objc_init_protocls): Use __objc_init_protocol.
892         * objc-private/module-abi-8.h: Updated comments.
893         * objc-private/runtime.h
894         (__objc_register_selectors_from_description_list): New.
895         * selector.c (__objc_register_selectors_from_description_list):
896         New.  (struct objc_method_description_list): Declare.
897         * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
898         when accessing the name of a method, which is now correctly a SEL.
899         ([-descriptionForClassMethod:]): Same change.
900         * protocols.c (protocol_getMethodDescription): Same change.
901         * objc/runtime.h: Updated comments.
902         (sel_registerTypedName): Fixed typo in function name.
903         
904 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
906         PR libobjc/23214
907         * init.c (objc_init_statics): Do not skip the initialization of a
908         statics list if the first object has already been initialized; in
909         the case of Protocols, while the first one may have been
910         initialized, some others may not have been initialized yet.
912 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
914         * Makefile.in (OBJC_DEPRECATED_H): Added
915         objc_get_uninstalled_dtable, objc_object_alloc.h and
916         struct_objc_static_instances.h.
918 2010-10-13  Nicola Pero  <nicola.pero@meta-innovation.com>
920         * encoding.c (method_copyReturnType): New.
921         (method_copyArgumentType): New.
922         (method_getReturnType): New.
923         (method_getArgumentType): New.
924         * methods.c (method_getDescription): New.
925         * objc/runtime.h (method_copyReturnType): New.
926         (method_copyArgumentType): New.
927         (method_getReturnType): New.
928         (method_getArgumentType): New.
929         (method_getDescription): New.
930         
931 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
933         * encoding.c: Tidied up comments.
934         (objc_skip_variable_name): New static inline function.
935         (objc_sizeof_type): Use objc_skip_variable_name instead of copying
936         the same code over and over.
937         (objc_alignof_type): Same.
938         (objc_aligned_size): Same.
939         (objc_promoted_size): Same.
940         (objc_skip_typespec): Same.
941         (objc_layout_structure_next_member): Same.
942         (objc_skip_offset): Skip a '-' before the digits (if any).  Fixed
943         historical bug where objc_skip_offset would skip one byte even if
944         there is no offset: check that the first offset digit is actually
945         a digit before skipping it.
946         (objc_skip_type_qualifiers): Mark as inline.
947         (objc_skip_typespec): Mark as inline.   
948         
949 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
951         * Makefile.in (C_SOURCE_FILES): Added methods.c.
952         * encoding.c (method_getNumberOfArguments): New.
953         (method_get_number_of_arguments): Call
954         method_getNumberOfArguments.
955         * ivars.c (ivar_getName): Check for NULL variable argument.
956         (ivar_getOffset): Check for NULL variable argument.
957         (ivar_getTypeEncoding): Check for NULL variable argument.
958         (class_copyIvarList): New.
959         * methods.c: New.
960         * protocols.c (class_copyProtocolList): Check for Nil class_
961         argument.
962         * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
963         'struct objc_method_list *' instead of MethodList_t.
964         (class_getMethodImplementation): New.
965         (class_respondsToSelector): New.
966         (class_getInstanceMethod): New.
967         (class_getClassMethod): New.
968         * objc/runtime.h: Updated comments.
969         (class_copyIvarList): New.
970         (class_getInstanceMethod): New.
971         (class_getClassMethod): New.
972         (class_getMethodImplementation): New.
973         (class_respondsToSelector): New.
974         (method_getName): New.
975         (method_getImplementation): New.
976         (method_getTypeEncoding): New.
977         (class_copyMethodList): New.
978         (method_getNumberOfArguments): New.
979         
980 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
982         * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
983         instead of objc/objc-api.h.
984         (objc_get_unknown_class_handler): Do not define.
985         (class_isMetaClass): New.
986         (class_getSuperclass): New.
987         (class_getVersion): New.
988         (class_setVersion): New.
989         (class_getInstanceSize): New.
990         * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
991         (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
992         objc_get_super_class.
993         (get_ttype_entry): Use objc_getRequiredClass instead of
994         objc_get_class.
995         * ivars.c (class_getClassVariable): New.
996         * objects.c: Include objc/runtime.h, objc/thr.h and
997         objc-private/module-abi-8.h instead of objc/objc-api.h
998         * objc/runtime.h (class_getClassVariable): New.
999         (class_isMetaClass): New.
1000         (class_getSuperclass): New.
1001         (class_getVersion): New.
1002         (class_setVersion): New.
1003         (class_getInstanceSize): New.
1004         * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1005         objc/objc-api.h)
1006         (__CLS_INFO): Same.
1007         (__CLS_ISINFO): Same.
1008         (__CLS_SETINFO): Same.
1009         (CLS_ISMETA): Same.
1010         (CLS_ISCLASS): Same.
1011         (CLS_ISRESOLV): Same.
1012         (CLS_SETRESOLV): Same.
1013         (CLS_ISINITIALIZED): Same.
1014         (CLS_SETINITIALIZED): Same.
1015         (CLS_GETNUMBER): Same.
1016         (CLS_SETNUMBER): Same.
1018 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1020         * archive.c: Do not include objc/objc.h.
1021         * class.c: Do not include objc/objc.h.
1022         * encoding.c: Include objc/runtime.h, ctype.h and
1023         objc-private/module-abi-8.h instead of objc/objc-api.h and
1024         objc/encoding.h.
1025         * error.c: Do not include objc/objc.h.
1026         * gc.c: Include tconfig.h and objc/encoding.h only if
1027         OBJC_WITH_GC.
1028         * hash.c: Include objc/runtime.h and objc/thr.h instead of
1029         objc/objc-api.h.  Do not include objc/objc.h.
1030         * init.c: Do not include objc/objc.h.
1031         * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1032         objc/thr.h instead of objc/objc-api.h.  Do not include
1033         objc/objc.h.
1034         * linking.m: Tidied comment.
1035         * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1036         Do not include objc/objc.h.
1037         * objects.c: Do not include objc/objc.h.
1038         * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1039         * protocols.c: Do not include objc/objc.h.
1040         * sarray.c: Include objc/runtime.h instead of objc/objc-api.h.  Do
1041         not include objc/objc.h.
1042         * selector.c: Do not include objc/objc.h.
1043         * sendmsg.c: Do not include objc/objc.h.        
1044         * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1045         Do not include objc/objc.h.
1046         * objc/objc-decls.h: Reindented code.
1047         * objc/runtime.h Include objc-decls.h.  Updated comments.
1048         (objc_malloc): New.
1049         (objc_atomic_malloc): New.
1050         (objc_calloc): New.
1051         (objc_realloc): New.
1052         (objc_free): New.
1053         * objc-private/runtime.h: Updated comments.
1054         
1055 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1057         * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1058         * objc-private/protocols.h: New.
1059         * protocols.c: New.
1060         * init.c: Include objc-private/protocols.h.
1061         (__objc_exec_class): Call __objc_protocols_init on startup.
1062         (__objc_init_protocols): Call __objc_protocols_add_protocol.
1063         * objc-private/runtime.h: Use (struct objc_method_list *) instead
1064         of MethodList_t, and (struct objc_method *) instead of Method_t.
1065         * objc/deprecated/struct_objc_class.h: Define
1066         __objc_STRUCT_OBJC_CLASS_defined.
1067         * objc-private/module-abi-8.h (struct
1068         objc_method_description_list): New.
1069         (struct objc_class): Only define if
1070         __objc_STRUCT_OBJC_CLASS_defined is undefined.
1071         * objc/runtime.h (class_getName): New.
1072         (objc_getProtocol): New.
1073         (objc_copyProtocolList): New.
1074         (class_addProtocol): New.
1075         (class_conformsToProtocol): New.
1076         (class_copyProtocolList): New.
1077         (protocol_conformsToProtocol): New.
1078         (protocol_isEqual): New.
1079         (protocol_getName): New.
1080         (protocol_getMethodDescription): New.
1081         (protocol_copyMethodDescriptionList): New.
1082         (protocol_getProperty): New.
1083         (protocol_copyPropertyList): New.
1084         (protocol_copyProtocolList): New.
1085         * class.c (class_getName): New.
1086         * selector.c (sel_isEqual): New.
1087         
1088 2010-10-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1090         * selector.c (sel_getName): Return "<null selector>" for a NULL
1091         argument.
1092         (sel_get_name): Return 0 for a NULL argument.
1093         * objc/runtime.h (sel_getName): Updated documentation.
1095         * objc-private/hash.h (class_hash_table): Unused declaration
1096         removed.
1097         (module_hash_table): Same.
1098         * objc/deprecated/hash.h: Same changes.
1099         
1100 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1102         * class.c (objc_getClassList): New.
1103         (objc_getRequiredClass): New.
1104         (objc_getMetaClass): New.
1105         (objc_lookupClass): New.
1106         (objc_getClass): New.
1107         (__objc_get_unknown_class_handler): New.
1108         (objc_setGetUnknownClassHandler): New.
1109         (objc_get_class): Use __objc_get_unknown_class_handler.
1110         (objc_lookup_class): Call objc_getClass.
1111         * objc/objc-api.h: Updated comment and copyright notice.
1112         * objc/runtime.h: Updated comments.
1113         (objc_getClass): New.
1114         (objc_lookupClass): New.
1115         (objc_getMetaClass): New.
1116         (objc_getRequiredClass): New.
1117         (objc_getClassList): New.
1118         (objc_setGetUnknownClassHandler): New.
1119         (objc_get_unknown_class_handler): New.
1120         * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1121         instead of __objc_runtime_INCLUDE_GNU as include guard.
1122         * objc-private/error.h (_objc_abort): Mark as noreturn.
1123         
1124 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1126         * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1127         * ivars.c: New.
1128         * objc/objc.h: Updated comments.
1129         * objc/runtime.h (object_getClass): New.
1130         (object_getClassName): New.
1131         (object_setClass): New.
1132         (class_getInstanceVariable): New.
1133         (object_getIndexedIvars): New.
1134         (object_getInstanceVariable): New.
1135         (object_setInstanceVariable): New.
1136         (object_getIvar): New.
1137         (object_setIvar): New.  
1138         (ivar_getName): New.
1139         (ivar_getOffset): New.
1140         (ivar_getTypeEncoding): New.
1141         * objc-private/module-abi-8.h (struct objc_class): Added.
1142         * objects.c (object_getClassName): New.
1143         (object_setClass): New.
1144         
1145 2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1147         * objc/objc.h: Updated comments.
1148         * objc/objc-api.h: (object_copy): Added one argument; use a
1149         #define to maintain backwards-compatibility.  Moved
1150         _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1151         objc_get_uninstalled_dtable into
1152         objc/deprecated/objc_get_uninstalled_dtable.h and
1153         objc/deprecated/objc_object_alloc.h.  Include these files.
1154         * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1155         * objc/deprecated/objc_object_alloc.h: New.
1156         * objc/runtime.h (set_getName): New.
1157         (sel_getType): New.
1158         (sel_getUid): New.
1159         (sel_registerName): New.
1160         (sel_registerTypedName): New.
1161         (sel_isEqual): New.
1162         (class_createInstance): New.
1163         (object_copy): New.
1164         (object_dispose): New.
1165         * objects.c: Do not include tconfig.h.  Include gc_typed.h if
1166         building the garbage collection version.
1167         (__objc_object_alloc): Removed.
1168         (__objc_object_copy): Removed.
1169         (__objc_object_dispose): Removed.
1170         (class_createInstance): New from code in class_create_instance.
1171         Cast second argument of GC_malloc_explicitly_typed.  Use
1172         objc_calloc.  Do not call _objc_object_alloc.
1173         (class_create_instance): Call class_createInstance.
1174         (object_copy): Added extraBytes argument.  Do not call
1175         _objc_object_copy.
1176         (object_dispose): Do not call _objc_object_dispose.
1177         * memory.c (objc_free): When using garbage collection, mark the
1178         argument as unused.
1179         * selector.c (sel_getName): New.
1180         (sel_get_name): Call sel_getName.
1181         (sel_getType): New.
1182         (sel_get_type): Call sel_getType.
1183         (sel_registerName): New.
1184         (sel_register_name): Call sel_registerName.
1185         (sel_registerTypedName): New.
1186         (sel_register_typed_name): Call sel_registerTypedName.
1187         (sel_getUid): New.
1188         (sel_get_uid): Call sel_getUid.
1189         
1190 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1192         * objc/objc-api.h: Define Method, Method_t, Category and
1193         Category_t.  Prevent including this file at the same time as
1194         objc/runtime.h.  Updated comments.
1195         * objc/deprecated/struct_objc_method.h: Do not define Method,
1196         Method_t.
1197         * objc/deprecated/struct_objc_category.h: Do not define Category,
1198         Category_t.
1199         * objc-private/module-abi-8.h: New file containing a copy of all
1200         the structure definitions.  Not used yet.
1201         * objc/encoding.h (objc_aligned_size): Removed duplicate
1202         declaration.  Updated comments.
1203         * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1204         Category, struct objc_method_description, _C_ID and similar,
1205         _C_CONST and similar and _F_CONST and similar.  Added
1206         objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1207         objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1208         objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1209         struct objc_struct_layout, objc_layout_structure,
1210         objc_layout_structure_next_member, objc_layout_finish_structure,
1211         objc_layout_structure_get_info.  Prevent including this file at
1212         the same time as objc/objc-api.h.
1213         
1214 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1216         * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1217         struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1218         struct_objc_method_list.h, struct_objc_module.h,
1219         struct_objc_protocol_list.h, struct_objc_symtab.h.
1220         * objc/deprecated/struct_objc_category.h: New.
1221         * objc/deprecated/struct_objc_ivar.h: New.
1222         * objc/deprecated/struct_objc_ivar_list.h: New.
1223         * objc/deprecated/struct_objc_method.h: New.
1224         * objc/deprecated/struct_objc_method_list.h: New.
1225         * objc/deprecated/struct_objc_module.h: New.
1226         * objc/deprecated/struct_objc_protocol_list.h: New.
1227         * objc/deprecated/struct_objc_symtab.h: New.
1228         * objc/deprecated/struct_objc_static_instances.h: New.
1229         * objc/objc-api.h: Definitions of deprecated structures moved into
1230         the above header fragment files in objc/deprecated/.  Include the
1231         files instead of definition the structures here.  Updated
1232         comments.
1233         * objc/runtime.h: Updated comments.  Do not include objc-api.h.
1234         (objc_set_enumeration_mutation_handler): Renamed to
1235         objc_setEnumerationMutationHandler.
1236         * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1237         to objc_setEnumerationMutationHandler.
1238         * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1239         objc_setExceptionMatcher.
1240         (objc_set_uncaught_exception_handler): Renamed to
1241         objc_setUncaughtExceptionHandler.
1242         * exception.c: Same changes.
1244 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1246         * objc-sync.c: Include objc-private/common.h.
1248 2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1250         * objc-foreach.c: Include objc-private/common.h.
1251         * objc/deprecated/METHOD_NULL.h: New file.
1252         * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1253         defining METHOD_NULL here.
1254         * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1255         * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1256         METHOD_NULL.
1257         ([-respondsTo:]): Same change.
1258         * objc/objc-api.h (method_get_imp): Converted it into a normal
1259         function so that we can hide the internals of struct objc_method.
1260         * sendmsg.c (method_get_imp): Implemented.
1262 2010-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>
1264         * objc/objc-api.h (struct objc_super, Super, Super_t,
1265         objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1266         objc_msg_forward2): Declarations moved to objc/message.h.  Include
1267         message.h here.
1268         * objc/message.h: Added such declarations; updated comments.
1270 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1272         Implemented fast enumeration for Objective-C.
1273         * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1274         (OBJC_H): Added runtime.h
1275         * objc-foreach.c: New file.
1276         * objc/runtime.h: New file.
1277         
1278 2010-09-30  Kai Tietz  <kai.tietz@onevision.com>
1280         * objc/deprecated/struct_objc_class.h: Add padding
1281         to avoid warning with -Wpadded.
1283 2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
1285         * encoding.c (objc_sizeof_type): Added support for vector type and
1286         for double long types.  
1287         (objc_alignof_type): Same change.
1288         (objc_skip_typespec): Same change.
1289         * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1290         instead of '!' since '!' is already used for _C_VECTOR.
1291         * objc/objc-api.h (_C_LNG_DBL): Added.
1292         
1293 2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
1295         * libobjc_entry.c: File removed.
1297 2010-09-26  Kai Tietz  <kai.tietz@onevision.com>
1299         * sendmsg.c (objc_msg_lookup): Remove inline.
1300         (objc_get_uninstalled_dtable): Likewise.
1301         * encoding.c (objc_skip_type_qualifiers): Likewise.
1302         (objc_skip_offset): Likewise.
1303         * archive.c (__objc_write_object): Likewise
1304         (__objc_write_class):
1305         (__objc_write_selector):
1306         (objc_read_char):
1307         (objc_read_unsigned_char):
1308         (objc_read_short):
1309         (objc_read_unsigned_short):
1310         (objc_read_int):
1311         (objc_read_long):
1312         (__objc_read_nbyte_uint):
1313         (objc_read_unsigned_int):
1314         (objc_read_unsigned_long):
1315         * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1316         (objc_EXPORT): Likewise.
1317         * objc/message.h (objc-decls.h): Add include.
1318         * objc/objc-api.h: Mark API by objc_EXPORT.
1319         * libobjc.def (__objc_responds_to): Removed.
1321 2010-09-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1323         * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1325         * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1326         objc/sarray.h replaced with a placeholder including the file from
1327         the deprecated/ directory.
1328         * objc-private/sarray.h: New file (private copy of sarray.h).
1329         * hash.c: Include <assert.h> instead of "assert.h"
1330         * sarray.c: Include <assert.h> instead of "assert.h".  Include
1331         objc-private/sarray.h instead of objc/sarray.h.
1332         * selector.c: Include objc-private/sarray.h instead of
1333         objc/sarray.h.
1334         * sendmsg.c: Include <assert.h>.  Include objc-private/sarray.h
1335         instead of objc/sarray.h.
1336         * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.      
1338 2010-09-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1340         * objc-private/objc-list.h (list_remove_elem): Unused function
1341         removed.  (list_nth): Unused function removed.  (list_find):
1342         Unused function removed.  (list_lenght): Unused function removed.
1343         
1344 2010-09-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1346         * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1347         replaced with a placeholder including the file from the
1348         deprecated/ directory.
1349         * objc/objc-api.h: Updated includes.
1350         * objc/typedstream.h: Updated includes.
1351         * objc-private/hash.h: New file (private copy of hash.h).
1352         * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1353         objc/objc-list.h replaced with a placeholder including the file
1354         from the deprecated/ directory.
1355         * objc-private/objc-list.h: New file (private copy of objc-list.h).
1356         * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1357         instead of objc/hash.h and objc/objc-list.h.
1358         * selector.c: Same change.
1359         * class.c: Added include <string.h>, which used to be implicitly included
1360         when hash.h was included.
1361         * exception.c: Same change.
1362         * objects.c: Same change.
1363         * sarray.c: Same change.
1364         * sendmsg.c: Same change.
1365         * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1367 2010-09-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1369         Implemented objc_sync_enter() and objc_sync_exit(), which are
1370         required by @synchronized() to work.
1371         * objc-sync.c: New file.
1372         * objc/objc-sync.h: New file.
1373         * objc-private/objc-sync.h: New file.
1374         * init.c (__objc_exec_class): Call __objc_sync_init() during the
1375         Objective-C runtime startup.
1376         * Makefile.in: Added objc-sync.c and objc-sync.h.
1377         * configure.ac: Added GCC_CHECK_TLS.
1378         * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1379         * configure: Regenerated.
1380         * config.h.in: Regenerated.
1381         
1382 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1384         * Makefile.in (%_gc.lo): New pattern rules to build the
1385         garbage-collected version of the library.  Removed rules for
1386         specific files that are no longer needed.  Standardized all rules.
1387         (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1388         (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1389         OBJC_SOURCE_FILES.
1390         (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1392 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1393         
1394         * memory.c (objc_calloc): Fixed call to GC_malloc when building
1395         with Garbage Colletion.
1396         
1397 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1399         * memory.c: Do not include objc-private/runtime.h.
1401 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1402         
1403         * objc/deprecated/objc_malloc.h: New file.
1404         * objc/deprecated/objc_valloc.h: New file.
1405         * objc/objc-api.h: Include the files instead of defining
1406         objc_valloc, _objc_malloc() and similar.
1407         * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1408         objc_malloc.h.
1409         * memory.c: Removed the extra layer of indirection of _objc_malloc
1410         and similar.
1411         (objc_calloc): Use GC_malloc in the garbage-collected
1412         implementation as GC_malloc returns memory that is already freed.
1413         (objc_valloc): Deprecated.      
1414         
1415 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1417         * objc/deprecated/objc_error.h: New file.
1418         * objc/objc-api.h: Include deprecated/objc_error.h instead of
1419         defining objc_error and related.
1420         * error.c: New file.  Added _objc_abort function which replaces
1421         objc_error.  No change in functionality as they both print an
1422         error and abort.
1423         * misc.c: File removed.  Code moved into memory.c and error.c.
1424         * memory.c: New file.
1425         * objc-private/error.h: New file.
1426         * archive.c: Include objc-private/error.h and use _objc_abort
1427         instead of objc_error everywhere.
1428         * class.c: Same change.
1429         * encoding.c: Same change.
1430         * init.c: Same change, and simplified init_check_module_version.
1431         * memory.c: Same change.
1432         * sendmsg.c:  Same change.
1433         * thr.c: Same change.
1434         * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1435         (OBJ_H): Reordered list.
1436         (OBJS): Removed misc.lo, added memory.lo and error.lo.
1437         (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1438         (misc_gc.lo): Rule removed.
1439         (error_gc.lo): Rule added.
1440         (memory_gc.lo): Rule added.
1441         
1442 2010-09-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1444         * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1445         to check the API version.  Added some comments.
1447         * objc-private/common.h: New file.
1448         * NXConstStr.m: Include objc-private/common.h.
1449         * Object.m: Same change.
1450         * Protocol.m: Same change.
1451         * archive.c: Same change.
1452         * class.c: Same change.
1453         * encoding.c: Same change.
1454         * exception.c: Same change.
1455         * gc.c: Same change.
1456         * hash.c: Same change.
1457         * init.c: Same change.
1458         * libobjc_entry.c: Same change.
1459         * linking.m: Same change.
1460         * misc.c: Same change (and added a comment).
1461         * nil_method.c: Same change.
1462         * objects.c: Same change.
1463         * sarray.c: Same change.
1464         * selector.c: Same change.
1465         * sendmsg.c: Same change.
1466         * thr.c: Same change.
1468 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1470         * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1472 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1474         * archive.c: Removed not needed includes.
1475         * class.c: Same change.
1476         * hash.c: Same change.
1477         * misc.c: Same change.
1478         * nil_method.c: Same change.
1479         * objects.c: Same change.
1480         * sarray.c: Same change.
1481         * sendmsg.c: Same change.
1482         * thr.c: Same change.
1484 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1486         * objc/runtime.h: Moved to objc-private/runtime.h.  Do not include
1487         all the objc/*.h files.
1488         * objc-private/runtime.h: New file.
1489         * archive.c: Include objc-private/runtime.h (and required objc/*.h
1490         files) instead of objc/runtime.h.
1491         * class.c: Same change.
1492         * hash.c: Same change.
1493         * init.c: Same change.
1494         * misc.c: Same change.
1495         * nil_method.c: Same change.
1496         * objects.c: Same change.
1497         * sarray.c: Same change.
1498         * selector.c: Same change.
1499         * sendmsg.c: Same change.
1500         * thr.c: Same change.
1501         
1502 2010-09-11  Nicola Pero  <nicola.pero@meta-innovation.com>
1504         * objc/deprecated/struct_objc_selector.h: New file.  Definition of
1505         'struct objc_selector' and 'sel_eq' moved here.
1506         * objc/deprecated/struct_objc_protocol.h: New file.  Definition of
1507         'struct objc_procotol' moved here.
1508         * objc/deprecated/struct_objc_class.h: New file.  Definition of
1509         'struct objc_class' moved here.
1510         * objc/deprecated/MetaClass.h: New file.  Definition of MetClass
1511         moved here.
1512         * objc/deprecated/STR.h: New file.  Definition of STR moved here.       
1513         * objc/message.h: New file.  Definitions for relval_t, apply_t,
1514         arglist, arglist_t and objc_msg_lookup were moved here.
1515         * objc/objc.h: Include the above files instead of defining the
1516         corresponding structs, types and functions here.  Added new opaque
1517         definitions for SEL and Class.  Use Class and not 'struct
1518         objc_class *' in the definition of 'struct objc_object'.
1519         Commented all types defined in the file.  Removed special
1520         definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1521         there as well.
1522         * objc/deprecated/objc-unexpected-exception.h: Renamed to
1523         objc_unexpected_exception.h.
1524         * objc/objc-api.h: Updated include of
1525         objc-unexpetected-exception.h
1526         * objc/objc-exception.h: Updated comments.
1527         * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1528         files.  Reindented list of files.
1529         
1530 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1532         * objc/objc-api.h (objc_trace): Unused variable removed.
1534 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1536         * objc/deprecated: New directory.
1537         * objc/deprecated/README: New file.
1538         * objc/README: New file.
1539         * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1540         objc/typedstream.h replaced with a placeholder including the file
1541         from the deprecated/ directory.
1542         * objc/deprecated/objc-unexpected-exception.h: New file with the
1543         definition of _objc_unexpected_exception.       
1544         * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1545         instead of defining _objc_unexpected_exception.
1546         * objc/deprecated/Object.h: New file with the deprecated Object
1547         methods in a 'Deprecated' category.
1548         * objc/Object.h Include deprecated/Object.h instead of defining
1549         the deprecated methods.
1550         * Object.m: Moved deprecated methods into 'Deprecated' category.
1551         * objc-private: New directory.
1552         * objc-private/README: New file.
1553         * Makefile.in (OBJC_DEPRECATED_H): New variable.
1554         (install-headers): Create installation directory for
1555         OBJC_DEPRECATED_H headers, and install them.
1557 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1559         * objc/objc-exception.h: Fixed include of objc.h.
1560         
1561 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1563         * objc/objc-exception.h: New file.
1564         * exception.c (objc_set_uncaught_exception_handler): Implemented.
1565         (objc_set_exception_matcher): Implemented.
1566         (objc_exception_throw): Use the uncaught exception handler if set.
1567         (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1568         hardcoded isKindOf.
1569         (isKindOf): Renamed to is_kind_of_exception_matcher.  Tidied code
1570         up.  Removed segmentation fault when value is 'nil'.
1571         * objc/objc-api.h (_objc_unexpected_exception): Mark as
1572         deprecated.
1573         * Makefile.in (exception.lo, exception_gc.lo): Use
1574         -Wno-deprecated-declarations when compiling.
1575         (OBJC_H): Added objc-exception.h
1577 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1579         * objc/typedstream.h: Deprecate all functions in the file.  This
1580         file is obsolete.
1581         * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1582         [-awake]): Documented that these methods are deprecated.  Added a
1583         brief description of the Object class and its relationship to the
1584         NSObject class.
1585         * Makefile.in: Compile archive.c and Object.m with
1586         -Wno-deprecated-declarations.
1588 2010-09-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1590         Removed obsolete intermediate threading layer.
1591         * thr.c: Use __gthread_objc_xxx functions directly instead of
1592         __objc_thread_xxx ones.
1593         * objc/thr.h: Removed prototypes of no longer existing
1594         __objc_thread_xxx functions.
1595         * Makefile.in: Removed thr-objc.lo.
1596         * thr-dce.c: File removed.
1597         * thr-decosf1.c: File removed.
1598         * thr-irix.c: File removed.
1599         * thr-mach.c: File removed.
1600         * thr-objc.c: File removed.
1601         * thr-os2.c: File removed.
1602         * thr-posix.c: File removed.
1603         * thr-pthreads.c: File removed.
1604         * thr-rtems.c: File removed.
1605         * thr-single.c: File removed.
1606         * thr-solaris.c: File removed.
1607         * thr-vxworks.c: File removed.
1608         * thr-win32.c: File removed.
1609         * README.threads: File removed.
1610         * THREADS.MACH: File removed.
1611         * THREADS: Updated.
1613 2010-09-07  Nicola Pero  <nicola.pero@meta-innovation.com>
1615         * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1617 2010-09-06  Iain Sandoe  <iains@gcc.gnu.org>
1619         * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1620         Add a comment as to why, update FIXME comments.
1622 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1624         * makefile.dos: Obsolete file removed.
1625         
1626 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1628         * aclocal.m4: Regenerate.
1630 2010-03-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1632         PR libobjc/30445
1633         * configure.ac (extra_ldflags_libobjc): Define appropriately for
1634         Cygwin and MinGW hosts.
1635         * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1636         (libobjc.dll): Likewise.
1637         * configure: Regenerate.
1639 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1641         * configure: Regenerate.
1643 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
1645         * sarray.c (sarray_free): Use old_buckets variable.
1646         * encoding.c (objc_layout_structure_next_member): Remove unused
1647         bfld_type_size variable.
1649 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1651         * configure.ac (AC_PREREQ): Bump to 2.64.
1653 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1655         * aclocal.m4: Regenerate.
1656         * configure: Regenerate.
1657         * config.h.in: Regenerate.
1659 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1661         * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1663 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1665         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1666         New variables.
1667         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1669 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1671         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1673 2009-04-09  Nick Clifton  <nickc@redhat.com>
1675         * sendmsg.c: Change copyright header to refer to version 3 of
1676         the GNU General Public License with version 3.1 of the GCC
1677         Runtime Library Exception and to point readers at the COPYING3
1678         and COPYING3.RUNTIME files and the FSF's license web page.
1679         * NXConstStr.m: Likewise.
1680         * Object.m: Likewise.
1681         * Protocol.m: Likewise.
1682         * archive.c: Likewise.
1683         * class.c: Likewise.
1684         * encoding.c: Likewise.
1685         * exception.c: Likewise.
1686         * gc.c: Likewise.
1687         * hash.c: Likewise.
1688         * init.c: Likewise.
1689         * libobjc_entry.c: Likewise.
1690         * linking.m: Likewise.
1691         * misc.c: Likewise.
1692         * nil_method.c: Likewise.
1693         * objc/NXConstStr.h: Likewise.
1694         * objc/Object.h: Likewise.
1695         * objc/Protocol.h: Likewise.
1696         * objc/encoding.h: Likewise.
1697         * objc/hash.h: Likewise.
1698         * objc/objc-api.h: Likewise.
1699         * objc/objc-decls.h: Likewise.
1700         * objc/objc-list.h: Likewise.
1701         * objc/objc.h: Likewise.
1702         * objc/runtime.h: Likewise.
1703         * objc/sarray.h: Likewise.
1704         * objc/thr.h: Likewise.
1705         * objc/typedstream.h: Likewise.
1706         * objects.c: Likewise.
1707         * sarray.c: Likewise.
1708         * selector.c: Likewise.
1709         * thr-dce.c: Likewise.
1710         * thr-decosf1.c: Likewise.
1711         * thr-irix.c: Likewise.
1712         * thr-mach.c: Likewise.
1713         * thr-objc.c: Likewise.
1714         * thr-os2.c: Likewise.
1715         * thr-posix.c: Likewise.
1716         * thr-pthreads.c: Likewise.
1717         * thr-rtems.c: Likewise.
1718         * thr-single.c: Likewise.
1719         * thr-solaris.c: Likewise.
1720         * thr-vxworks.c: Likewise.
1721         * thr-win32.c: Likewise.
1722         * thr.c: Likewise.
1723         * libobjc.def: Change copyright header to refer to version 3 of
1724         the GNU General Public License and to point readers at the COPYING3
1725         file and the FSF's license web page.
1726         * makefile.dos: Likewise.
1728 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1730         * Makefile.in: Change copyright header to refer to version
1731         3 of the GNU General Public License and to point readers at the
1732         COPYING3 file and the FSF's license web page.
1733         * configure.ac: Likewise.
1735 2009-03-12  Richard Frith-Macdonald  <rfm@gnu.org>
1736             David Ayers  <ayers@fsfe.org>
1738         PR libobjc/27466
1739         * objc/objc-api.h (_objc_unexpected_exception): Declare
1740         new hook.  Update copyright dates.
1741         * exception.c (objc_exception_throw): Use hook.  Update
1742         copyright dates.
1743         * libobjc.def (_objc_unexpected_exception): Export hook.
1744         Update copyright dates.
1745         
1746 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1748         * configure: Regenerate.
1750 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1752         * configure: Regenerate.
1754 2008-11-21  Kai Tietz  <kai.tietz@onevision.com>
1756         *  Object.m (errno): Replaced by errno.h include.
1757         (compare): Cast self to id to prevent warning on comparison.
1758         * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1759         already there.
1760         * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1761         * thr-win32.c (__objc_thread_detach): Remove type warning.
1762         (__objc_thread_id): Likewise.
1763         * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1764         for noreturn.
1766 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1767             Steve Ellcey  <sje@cup.hp.com>
1769         * configure: Regenerate for new libtool.
1770         * config.h.in: Regenerate for new libtool.
1772 2008-07-18  Matthias Klose  <doko@ubuntu.com> 
1774         * Makefile.in: Ignore missing ../boehm-gc/threads.mk. 
1776 2008-07-18  Matthias Klose  <doko@ubuntu.com> 
1778         * Makefile.in: Include ../boehm-gc/threads.mk. 
1779         (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1781 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1783         * Makefile.in (install-info): New stub target.
1785 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1787         * configure: Regenerate.
1789 2008-06-14  Kai Tietz  <kai.tietz@onevision.com>
1791         * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1792         if HAVE_GETIPINFO is not defined.
1794 2008-06-10  Kai Tietz  <kai.tietz@onevision.com>
1796         * Object.m (compare): Add type id.
1797         * objc/Object.h: Likewise.
1798         * archive.c (objc_read_class): Use size_t to extend version to be
1799         size of pointer scalar width.
1800         * sendmsg.c (rtx): Undefine it before redefinition.
1801         (__objc_print_dtable_stats): Cast arguments to long as intended.
1803 2008-05-30  Julian Brown  <julian@codesourcery.com>
1805         * exception.c (__objc_exception_class): Initialise as constant
1806         array for ARM EABI. Change macro to static const for non-ARM EABI.
1807         (ObjcException): Add note about structure layout. Remove landingPad
1808         and handlerSwitchValue for ARM EABI.
1809         (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1810         of function.
1811         (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1812         (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1813         ARM EABI unwinding support.
1814         (objc_exception_throw): Use memcpy to initialise exception class.
1816 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
1818         * encoding.c (strip_array_types): Rename from get_inner_array_type.
1819         (rs6000_special_round_type_align): Update.
1821 2008-05-09  Julian Brown  <julian@codesourcery.com>
1823         * Makefile.in (LTLDFLAGS): New.
1824         (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1826 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1828         PR bootstrap/35457
1829         * aclocal.m4: Regenerate.
1830         * configure: Regenerate.
1832 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1834         * configure: Regenerate.
1836 2007-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1838         * configure.ac: Don't run config-ml.in directly.
1839         (multilib_arg): New.
1840         * configure: Regenerated.
1842 2007-08-06  Andrew Pinski  <pinskia@gmail.com>
1844         PR libobjc/30731
1845         * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1846         of _Unwind_Word for variables which are used in
1847         read_uleb128/read_sleb128.
1848         (PERSONALITY_FUNCTION): Likewise.
1850 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1852         * aclocal.m4: Regenerated.
1854 2007-06-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1856         * configure.ac: Fix a typo in *-*-darwin clause.
1857         * configure: Regenerated.
1859 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1861         * configure.ac: Fix a typo.
1862         * configure: Regenerated.
1864 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1866         * configure: Regenerate.
1868 2007-06-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1870         * Makefile.in: Replace all uses of libext with libsuffix.
1871         * configure.ac: Likewise.
1872         * configure: Regenerate.
1874         Revert:
1875         * Makefile.in: Remove all uses of $(libext).
1877 2007-05-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1879         * Makefile.in: Remove all uses of $(libext).
1881 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1883         * configure: Regenerate.
1884         * aclocal.m4: Regenerate.
1886 2007-04-21  Andrew Ruder  <andy@aeruder.net>
1888         * sendmsg.c (__objc_get_forward_imp): Call
1889         __objc_msg_forward2 for real.
1891 2007-04-09  Andrew Ruder  <andy@aeruder.net>
1893         * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1894         external libraries to provide a function that returns the real
1895         forwarding function based on both the selector and the receiver.
1896         * objc/objc-api.h: Define __objc_msg_forward2.
1898 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1900         * Makefile.in: Add dummy install-pdf target.
1902 2007-02-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1904         * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1905         unused warning.
1906         
1907 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
1909         * encoding.c (darwin_rs6000_special_round_type_align): New.
1911 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1913         * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1914         * configure.ac: Use multi.m4 from aclocal rather than custom
1915         code.  Use multi_basedir instead of toplevel_srcdir.
1916         * aclocal.m4: Regenerate.
1917         * configure: Regenerate.
1919 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
1921         * Makefile.in: Added empty "pdf" target.
1923 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
1925         * configure: Regenerate.
1927 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
1929         * Makefile.in: Add install-html target. Add install-html to .PHONY
1931 2006-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1933         PR libobjc/26309
1934         * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1936 2006-01-24  David Ayers  <d.ayers@inode.at>
1938         PR libobjc/9751
1939         * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1940         and insure the new strings are '\0' termintated.
1942 2006-01-24  David Ayers  <d.ayers@inode.at>
1944         PR libobjc/13946
1945         * configure.ac: Add include directives for --enable-objc-gc.
1946         * Makefile.in: Ditto.
1947         * configure: Regenerate.
1949         * gc.c (__objc_class_structure_encoding): Increment the used bytes
1950         instead of the local pointer to them.
1952 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
1954         PR objc/25360
1955         * objc/objc-api.c (_C_COMPLEX): New define.
1956         * encoding.c (objc_sizeof_type): Handle _C_Complex.
1957         (objc_alignof_type): Likewise.
1958         (objc_skip_typespec): Likewise.
1960 2005-12-15  David Ayers  <d.ayers@inode.at>
1962         PR libobjc/14382
1963         * README (+load,+initialize): Fix documentation to reflect
1964         intended and implemented semantics for +load and +initialize.
1965         
1966 2005-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
1968         * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1969         the name.
1970         (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1971         (rs6000_special_round_type_align): Update for the ABI fix.
1972         (objc_layout_finish_structure): Correct the encoding which is passed to
1973         ROUND_TYPE_ALIGN.
1975 2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
1977         PR libobjc/25347
1978         * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1979         but use the struct layout functions.
1980         (objc_alignof_type): Likewise.
1981         (objc_layout_structure): Handle _C_UNION_B also.
1982         (objc_layout_structure_next_member): Likewise.
1983         (objc_layout_finish_structure): Likewise.
1985 2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>
1987         PR libobjc/25346
1988         * objc/objc-api.h (_C_BOOL): New define.
1989         * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1990         (objc_alignof_type): Likewise.
1991         (objc_skip_typespec): Likewise.
1993 2005-11-20  David Ayers  <d.ayers@inode.at>
1995         PR libobjc/19024
1996         * objc/hash.h: Remove deprecated hash API.
1997         * hash_compat.c: Remove.
1998         * Makefile.in: Remove reference to hash_compat.c.
2000         * configure.ac (VERSION): Bump library version to 2:0:0.
2001         * configure: Regenerate.
2003 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
2005         PR other/4372
2006         * thr-objc.c (_XOPEN_SOURCE): Define.
2008 2005-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
2010         PR libobjc/23612
2011         * objc/objc-api.h (struct objc_ivar): Move definition to
2012         global scope.
2014 2005-09-04  Andrew Pinski  <pinskia@physics.uc.edu>
2015             Rasmus Hahn  <rassahah@neofonie.de>
2017         PR libobjc/23108
2018         * archive.c (objc_write_type): Correct the element offset.
2019         (objc_read_type): Likewise.
2021 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
2023         * All files: Update FSF address.
2025 2005-08-13  Marcin Koziej  <creep@desk.pl>
2026             Andrew Pinski  <pinskia@physics.uc.edu>
2028         PR libobjc/22492
2029         * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2031 2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
2033         * Makefile.in (extra_ldflags_libobjc): New.
2034         (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2035         (libobjc_gc$(libext).la): Likewise.
2036         * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2037         "-Wl,-single_module".
2038         * configure: Regenerate.
2039         * linking.m (_objcInit): Remove.
2041 2005-07-26  Andrew Pinski  <pinskia@physics.uc.edu>
2043         PR libobjc/22606
2044         * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2046 2005-06-08  David Ayers  <d.ayers@inode.at>
2048         * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2049         objc/encoding.h, objc/hash.h, objc/objc-api.h,
2050         objc/runtime.h, objc/sarray.h, objc/thr.h, 
2051         objc/typedstream.h: Do not include Objective-C headers as
2052         system headers.
2054 2005-06-07  David Ayers  <d.ayers@inode.at>
2056         * archive.c, init.c, selector.c: Include hash.h.
2057         * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2058         init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2059         sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2060         thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2061         thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2062         Include Objective-C headers with quotes and objc/ directory
2063         prefix.
2065 2005-05-19  Richard Henderson  <rth@redhat.com>
2067         * exception.c: Revert last change.
2069 2005-05-19  David Ayers  <d.ayers@inode.at>
2071         * exception.c: Include tsystem.h for unwind.h.
2073 2005-05-09  Mike Stump  <mrs@apple.com>
2075         * configure: Regenerate.
2077 2005-04-12  Mike Stump  <mrs@apple.com>
2079         * configure: Regenerate.
2081 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
2083         * Makefile.in: Set gcc_version here.
2084         * configure.ac: Do not invoke TL_AC_GCC_VERSION.  Adjust quoting
2085         in definition of toolexeclibdir so that $(gcc_version) is expanded
2086         by the Makefile.
2087         * aclocal.m4, configure: Regenerate.
2089 2005-03-03  David Ayers  <d.ayers@inode.at>
2091         * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2092         version reference.  Correct typo.
2094 2005-03-02  David Ayers  <d.ayers@inode.at>
2096         PR libobjc/19024
2097         * Makefile.in (OBJS): Add hash_compat.lo.
2098         (OBJS_GC): Add hash_compat_gc.lo.
2099         (hash_compat_gc.lo): New target and rule.
2100         * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2101         (hash_next, hash_value_for_key, hash_is_key_in_hash)
2102         (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2103         with objc_.  Add deprecated non prefixed inlined versions.
2104         (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2105         declarations.
2106         * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2107         (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2108         update callers.
2109         * hash_compat.c: New file.
2110         * archive.c: Update callers.
2111         * init.c: Likewise.
2112         * selector.c: Likewise.
2113         * libobjc.def: Add objc_ versions of hash functions.
2115 2005-02-28  Andrew Pinski <pinskia@physics.uc.edu>
2117         PR libobjc/20252
2118         * Makefile.in (GTHREAD_FLAGS): Remove.
2119         (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2120         * thr-objc.c: Include config.h.
2121         * configure.ac: Instead of looking at GCC's makefile, figure out if
2122         GTHREAD_FLAGS should be defined by looking at the `thread model'
2123         of the current gcc.
2124         * configure: Regenerate.
2125         * config.h.in: Regenerate.
2127 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
2129         PR bootstrap/17383
2130         * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2131         (Determine CFLAGS for gthread): Use $host_subdir.
2132         * configure: Regenerate.
2133         * Makefile.in (host_subdir): New.
2134         (INCLUDES): Use it.
2136 2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
2138         PR libobjc/12035
2139         * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2140         they are not used.
2141         Include limits.h and stdlib.h.
2142         Define BITS_PER_WORD.
2144 2004-12-12  Alexander Malmberg  <alexander@malmberg.org>
2146         * selector.c (__objc_init_selector_tables): Add missing void to
2147         definition.
2149 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
2151         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2152         * configure, aclocal.m4: Regenerate.
2154 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
2156         * configure: Regenerate for libtool change.
2158 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
2160         * configure: Regenerate for libtool reversion.
2162 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
2164         * configure: Regenerate for libtool change.
2166 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
2168         * aclocal.m4, config.h.in: Regenerate.
2170 2004-10-08  Mike Stump  <mrs@apple.com>
2171             Andrew Pinski  <pinskia@physics.uc.edu>
2173         * aclocal.m4: Rename to ...
2174         * acinclude.m4: here and also use m4_include instead of sinclude.
2175         * aclocal.m4: Regenerate.
2176         * configure: Regenerate.
2177         * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2178         * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2180 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
2182         * archive.c: Fix all the warnings about passing unsigned char*
2183         to char* and the other way too.
2185 2004-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
2187         PR libobjc/16448
2188         * exception.c: Include config.h
2189         (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2190         SJLJ_EXCEPTIONS.
2191         * configure.ac: Find out what exception handling code we use.
2192         * configure: Regenerate.
2193         * config.h.in: New file, regenerate.
2195 2004-09-16  Andrew Pinski  <apinski@apple.com>
2197         * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2199 2004-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
2201         * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2202         ACX_NONCANONICAL_TARGET.
2203         * configure: Regenerate.
2205 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
2207         * objc/sarray.h: Hoist include of assert.h near the top of file,
2208         and mark the remainder of the file 'extern "C"'.
2210 2004-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
2212         * objc/Object.h: Move includes out of extern "C" blocks.
2213         * objc/encoding.h: Likewise.
2214         * objc/hash.h: Likewise.
2215         * objc/objc-api.h: Likewise.
2216         * objc/runtime.h: Likewise.
2217         * objc/sarray.h: Likewise.
2218         * objc/typedstream.h: Likewise.
2220 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
2222         * objc/NXConstStr.h: Update copyright date; bracket with
2223         'extern "C"' for C++ use; make include syntax consistent
2224         by using <...> instead of "..."; hoist <objc/...> includes
2225         above the 'extern "C"' block.
2226         * objc/Object.h: Likewise.
2227         * objc/Protocol.h: Likewise.
2228         * objc/encoding.h: Likewise.
2229         * objc/hash.h: Likewise.
2230         * objc/runtime.h: Likewise.
2231         * objc/sarray.h: Likewise.
2232         * objc/thr.h: Likewise.
2233         * objc/typedstream.h: Likewise.
2234         * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2235         (objc_static_instances): For C++ case, do away with
2236         zero-sized array.
2237         (objc_method): Hoist definition to file scope.
2238         (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2239         class_get_instance_method, class_create_instance,
2240         class_get_class_name, class_get_instance_size,
2241         class_get_meta_class, class_get_super_class, class_get_version,
2242         class_is_class, class_is_meta_class, class_set_version,
2243         class_get_gc_object_type, class_ivar_set_gcinvisible,
2244         get_imp): Rename 'class' parameter to '_class'.
2245         * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2246         * objc/objc.h: Update copyright date.
2247         (arglist_t): Provide a union tag.
2249 2004-07-22  Andrew Pinski  <pinskia@physics.uc.edu>
2251         * thr.c (__objc_thread_detach_function): Do not mark as volatile
2252         but instead use the attribute noreturn.
2254 2004-06-28  Zack Weinberg  <zack@codesourcery.com>
2256         * encoding.c: Rename target_flags with a #define to avoid
2257         conflict with a prior declaration.
2259 2004-06-24  Andrew Pinski  <apinski@apple.com>
2261         * objc/encoding.h: Wrap the functions with extern "C" for C++
2262         mode.
2263         * objc/hash.h: Likewise.
2264         * objc/objc-api.h: Likewise.
2265         * objc/objc-list.h: Likewise.
2266         * objc/runtime.h: Likewise.
2267         * objc/sarray.h: Likewise.
2268         * objc/thr.h: Likewise.
2269         * objc/typedstream.h: Likewise.
2272 2004-06-21  Nick Clifton  <nickc@redhat.com>
2274         * encoding.c (BITS_PER_UNIT): Define if a definition is not
2275         provided.
2277 2004-06-20  Alexander Malmberg  <alexander@malmberg.org>
2279         * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2280         (exception_gc.lo): New.
2281         (OBJS_GC): Add exception_gc.lo.
2283 2004-06-17  Richard Henderson  <rth@redhat.com>
2285         * exception.c: New file.
2286         * Makefile.in (exception.lo): New.
2287         (OBJS): Add it.
2289 2004-06-14  Andrew Pinski  <pinskia@physics.uc.edu>
2291         * linking.m (_objcInit): New empty function
2292         for Darwin only.
2294 2004-06-11  Andrew Pinski  <pinskia@physics.uc.edu>
2296         * configure.ac: Support --enable-shared=libobjc.
2297         * configure: Regenerate.
2299         PR libobjc/15901
2300         * configure.ac: Do not disable shared by default.
2301         * configure: Regenerate.
2303 2004-06-03  Nicola Pero  <n.pero@mi.flashnet.it>
2305         * Protocol.m ([-isEqual:]): Small optimizations returning
2306         immediately if the argument is equal to self, and accessing
2307         the argument's name directly if it's a protocol.
2309 2004-06-03  David Ayers  <d.ayers@inode.at>
2311         * Protocol.m ([-isEqual:]): Test the class of the argument.
2313 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
2315         * configure.ac (includedir): Rename to ...
2316         (includedirname).
2317         * Makefile.in: s/includedir/includedirname/.
2319         PR target/11572
2320         * configure.ac (includedir): Set to "include"
2321         except for Darwin.
2322         (libext) Set to empty except for Darwin.
2323         * configure: Regenerate
2324         * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2325         s/include/$(includedir)/g.
2327 2004-05-25  Daniel Jacobowitz  <drow@false.org>
2329         * Makefile.in: Add .NOEXPORT.
2331 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
2333         Merge from the libobjc-branch
2334         2004-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
2336                 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2338         2004-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
2340                 * Makefile.in (OBJC_H): Add objc-deps.h.
2342         2004-01-27  Nicola Pero  <n.pero@mi.flashnet.it>
2344                 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2345                 ([-hash], [-isEqual:]): New methods.
2347         2004-01-27  Richard Frith-Macdonald <rfm@gnu.org>
2349                 * sarray.c (sarray_free): Add a better comment.
2351         2004-01-27  Adam Fedor  <fedor@gnu.org>
2353                 * hash.c (hash_add): Cast cachep to int.
2354                 * selector.c (__sel_register_typed_name): Cast
2355                 soffset_decode to int.
2357         2004-01-27  Alexander Malmberg  <alexander@malmberg.org>
2359                 * selector.c: Rename register_selectors_from_list to
2360                 __objc_register_selectors_from_list. Update caller.
2361                 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2362                 while registering selectors. Use __sel_register_typed_name instead
2363                 of sel_register_typed_name. Check for NULL method_name:s.
2364                 (pool_alloc_selector): New function.
2365                 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2366                 selector structures.
2367                 * sendmsg.c (class_add_method_list): Use
2368                 __objc_register_selectors_from_list.
2369                 * objc/runtime.h: Add __objc_register_selectors_from_list.
2371         2004-01-25  Adam Fedor  <fedor@gnu.org>
2372                     Nicola Pero  <n.pero@mi.flashnet.it>
2373                     Andrew Pinski  <pinskia@physics.uc.edu>
2375                 * objc/objc-decls.h: New file.
2376                 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2377                 (_objc_load_callback): Likewise.
2378                 (_objc_object_alloc): Likewise.
2379                 (_objc_object_copy): Likewise.
2380                 (_objc_object_dispose): Likewise.
2382         2004-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
2384                 * archive.c: s/__inline__/inline
2385                 * sendmsg.c: Likewise.
2387                 * encoding.c: Remove FIXME about the warning
2388                 about unused variable.
2389                 * sendmsg.c: Add a FIXME comment saying that
2390                 this should be using libffi.
2392                 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2395 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
2397         * archive.c (objc_read_class): Initialize class_name.
2398         (objc_read_selector): Initialize selector_name.
2400 2004-05-09  Richard Sandiford  <rsandifo@redhat.com>
2402         * Makefile.in (toolexecdir): Remove trailing space.
2404 2004-04-15  Nathanael Nerode  <neroden@gcc.gnu.org>
2406         PR libobjc/14948
2407         * configure.ac: De-precious CC so multilibs work.
2408         * configure: Regenerate.
2410 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2412         * configure.ac: Restore toolexecdir.
2413         * Makefile.in: Restore toolexecdir.
2414         * configure: Regenerate.
2416 2004-04-09  Nathanael Nerode  <neroden@gcc.gnu.org>
2418         * configure.ac: Remove (unused) glibcpp_prefixdir.
2419         * configure: Regenerate.
2421         * configure.in: Rename to configure.ac.
2422         * Makefile.in: Update to match.
2424         * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2425         Replace glibcpp_toolexeclibdir with toolexeclibdir.
2426         * configure.in: Remove glibcpp_toolexecdir (unused).
2427         Replace glibcpp_toolexeclibdir with toolexeclibdir.  Don't generate
2428         config.h or stamp-h (unused).  Move one comment to the right place.
2429         * configure: Regenerate.
2430         * config.h.in: Remove (unused).
2432         * config.h.in: Regenerate with autoheader.
2434         * Makefile.in: Remove (unused) gcc_version_trigger.
2435         * configure.in: Remove (unused) glibcpp_builddir.  Don't AC_SUBST
2436         gcc_version_trigger.
2437         * configure: Regenerate.
2439         * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2440         Sort file into sections.  Remove dnl where appropriate.  Fix
2441         other style issues.
2442         * configure: Regenerate.
2444         * configure.in: Replace old AC_PROG_CC hack with new one.
2445         Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2446         are no subdirectory output files, so this is fine).  Change prereq
2447         to autoconf 2.59.
2448         * aclocal.m4: Include ../config/no-executables.m4.
2449         * configure: Regenerate with autoconf 2.59.
2451         * configure.in: Improve comments on gthread_cflags.  Improve m4
2452         quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2453         * configure: Regenerate.
2455         * configure.in: Move PACKAGE and VERSION settings up top.  Remove
2456         unused call to AC_PROG_LN_S.  Default RANLIB to ':'.  Remove
2457         redundant checks for values of RANLIB, AR, INSTALL.
2458         * configure: Regenerate.
2460         * configure.in: Clean up handling of
2461         --enable-version-specific-runtime-libs and related variables;
2462         replace 'if test' with 'case' where reasonable.  Fix comments.
2463         Remove useless libstdcxx_interface.
2464         * configure: Regenerate.
2466         * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2467         Replace uses of target_alias with target_noncanonical.
2468         * aclocal.m4: Include ../config/acx.m4.
2469         * configure: Regenerate.
2470         * Makefile.in: Replace uses of target_alias with target_noncanonical.
2471         Fix copyright statement.
2473         * configure.in: Hand-inline bulky, confusing macros from
2474         aclocal.m4.  Replace references to "GNU Objective C" with "GCC".
2475         Update copyright notice.  Remove stuff for automake, which isn't
2476         used in this directory.  Remove emacs local variables.
2477         * aclocal.m4: Remove hand-inlined macros.  Update copyright notice.
2478         * configure: Regenerate.
2480 2004-03-16  Manfred Hollstein  <mh@suse.com>
2482         * Makefile.in, configure.in, configure: Update copyright years.
2484 2004-03-15  Manfred Hollstein  <mh@suse.com>
2486         * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2487         definition from configure.in.
2488         * configure.in (PACKAGE): Add definition.
2489         (VERSION): Add definition; substitute it in output files.
2490         * configure: Re-generate.
2492 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
2494         * objc/hash.h (hash_string, compare_strings):
2495         Add type-casts to make Objective-C++ happy.
2496         * objc/typedstream.h (objc_get_stream_class_version):
2497         Rename parameter from 'class' to 'class_name' to make
2498         Objective-C++ happy.
2500 2004-03-01  Michael Matz  <matz@suse.de>
2502         * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2504 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
2506         * objc/objc-api.h (objc_super): The 'class' field shall
2507         be named 'super_class' #ifdef __cplusplus.
2509 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
2511         PR target/10781
2512         * encoding.c (rs6000_special_round_type_align): Define.
2514 2004-01-14  Adam Fedor  <fedor@gnu.org>
2516         PR libobjc/12155
2517         * selector.c (__objc_register_instance_methods_to_class): Free
2518         new_list if not used.
2520 2004-01-09  Andrew Ruder  <aeruder@ksu.edu>
2522         PR libobjc/11904
2523         * sarray.c (sarray_free): Free array->is_copy_of latter.
2525 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
2527         PR 11433
2528         * Protocol.m (descriptionForInstanceMethod): Don't dereference
2529         instance_methods if it's NULL.
2530         (descriptionForClassMethod): Likewise for class_methods.
2532 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2534         * Makefile.in (runtime-info.h): Remove -Wp.
2536 2003-10-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2538         * Makefile.in (CC1OBJ): Remove.
2539         (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2540         correctly.
2541         Use .m extension for temporary file.
2542         Remove assembler temp file.
2544 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2546         * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2548 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2550         * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2552 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2554         * configure: Regenerate.
2556 2003-08-27  Alexander Malmberg  <alexander@malmberg.org>
2558         * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2559         (libdir)/gcc-lib/ when installing.
2560         * configure: Regenerate.
2562 Thu Jul 10 10:27:43 2003  Nicola Pero  <n.pero@mi.flashnet.it>
2564         libobjc/9969
2565         * sendmsg.c (get_imp): Fixed rare threading problem.
2566         (__objc_responds_to): Similar fixes.
2567         (objc_msg_lookup): Similar fixes.
2568         (__objc_init_install_dtable): Lock the runtime before checking if the
2569         table is installed.
2571 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2573         * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2574         makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2575         selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2576         thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2577         thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2578         thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2579         * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2580         class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2581         objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2582         objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2583         objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2585 Tue May 13 14:56:03 2003  Richard Frith-Macdonald <rfm@gnu.org>
2586                           Nicola Pero  <n.pero@mi.flashnet.it>
2588         libobjc/10742
2589         * init.c (class_superclass_of_class): New function.
2590         (create_tree_of_subclasses_inherited_from): Use it.
2591         (__objc_tree_insert_class): Likewise.
2592         (class_is_subclass_of_class): Likewise.
2594 2003-04-11  David Chad  <davidc@freebsd.org>
2595             Loren J. Rittle  <ljrittle@acm.org>
2597         libobjc/8562
2598         * objc/hash.h (hash_string): Constify correctly.
2599         (compare_ptrs): Use direct compare.
2600         * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2601         * objc/sarray.h: Global rename index to indx to avoid shadow.
2603 2003-03-12  Andreas Schwab  <schwab@suse.de>
2605         * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2606         glibcpp_toolexeclibdir.
2607         * configure: Rebuilt.
2609 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2611         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2612         config.status.
2613         * configure: Rebuilt.
2615 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2617         * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2618         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2619         version_specific_libs is enabled.
2620         * configure: Rebuilt.
2622 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
2624         * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2625         (install-libs, install-headers): Prepend $(DESTDIR) to
2626         destination paths in all (un)installation commands.
2628 2002-12-02  Zack Weinberg  <zack@codesourcery.com>
2630         * thr-objc.c: Include coretypes.h and tm.h.
2632 2002-12-01  Zack Weinberg  <zack@codesourcery.com>
2634         * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2636 2002-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2638         * configure.in: Remove skip-this-dir support.
2639         * configure: Regenerate.
2641 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2643         * Makefile.in (all): Fix multilib parallel build.
2645 Thu Sep 12 12:44:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2647         * sendmsg.c (nil_method): Declare not to take a variable number of
2648         args.
2649         (objc_msg_lookup): Cast nil_method to IMP before returning it.
2650         (objc_msg_lookup_super): The same.
2652 2002-09-10  Jan Hubicka  <jh@suse.cz>
2654         * nil_method.c (nil_method): No longer defined with variable
2655         arguments.
2657 2002-07-02  Rodney Brown  <rbrown64@csc.com.au>
2659         * objc/encoding.h: Fix formatting.
2660         * objc/hash.h: Likewise.
2661         * objc/objc-api.h: Likewise.
2662         * objc/runtime.h: Likewise.
2663         * objc/thr.h: Likewise.
2664         * archive.c: Likewise.
2665         * class.c: Likewise.
2666         * encoding.c: Likewise.
2667         * gc.c: Likewise.
2668         * hash.c: Likewise.
2669         * init.c: Likewise.
2670         * misc.c: Likewise.
2671         * nil_method.c: Likewise.
2672         * objects.c: Likewise.
2673         * sarray.c: Likewise.
2674         * selector.c: Likewise.
2675         * sendmsg.c: Likewise.
2676         * thr-mach.c: Likewise.
2677         * thr.c: Likewise.
2679 2002-06-25  DJ Delorie  <dj@redhat.com>
2681         * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2682         GLIBCPP_TOPREL_CONFIGURE.
2683         * configure.in: Call it before AC_CANONICAL_SYSTEM.
2684         * configure: Regenerate.
2686 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2688         * Object.m (forward, read, write): Fix unused parameter warnings.
2689         * encoding.c: Include <stdlib.h>.
2690         (target_flags): Mark with attribute unused.
2691         (atoi): Delete.
2692         * runtime.h (__objc_selector_max_index): Change to unsigned int.
2693         (__objc_generate_gc_type_description): Prototype.
2694         * selector.c (__objc_selector_max_index): Change to unsigned int.
2696 Mon Jun 17 18:37:42 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2698         * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2699         we always have a return value: if __objc_msg_forward does not
2700         supply a forwarding implementation, return the default
2701         __builtin_apply based one.
2703 2002-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2705         * Object.m: Fix signed/unsigned warning.
2706         * Protocol.m: Likewise.
2707         * archive.c: Always include stdlib.h.
2708         (objc_read_short, objc_read_unsigned_short, objc_read_int,
2709         objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2710         Fix signed/unsigned warning.
2711         (objc_write_type, objc_read_type, objc_write_types,
2712         objc_read_types): Ensure ctype 8-bit safety.
2713         (__objc_no_write, __objc_no_read): Mark unused parameters.
2714         * class.c (class_table_setup): Specify void arg.
2715         * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2716         objc_skip_typespec, objc_skip_offset,
2717         objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2718         (objc_layout_structure_next_member): Ensure variables are
2719         initialized.
2720         * gc.c (__objc_generate_gc_type_description,
2721         class_ivar_set_gcinvisible): Mark unused parameters.
2722         * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2723         unused parameters.
2724         (__objc_init_protocols) Fix signed/unsigned warning.
2725         * nil_method.c (nil_method): Mark unused parameters.
2726         * thr.h (objc_thread_callback): Specify void arg.
2727         * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2728         signed/unsigned warning.
2729         (sarray_free): Fix formatting.
2730         * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2731         * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2733 2002-06-09  Andreas Jaeger  <aj@suse.de>
2735         * encoding.c (objc_layout_structure_next_member): Remove unused
2736         variable.
2738 2002-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2740         * Makefile.in (SHELL): Set to @SHELL@.
2741         (WARN_CFLAGS): New.
2742         (ALL_CFLAGS): Add $(WARN_CFLAGS).
2744 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2746         * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2747         * configure: Regenerate.
2749 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
2751         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2752         script entry, and set LD to it when configuring multilibs.
2753         * configure: Rebuilt.
2755 2002-04-19  David O'Brien  <obrien@FreeBSD.org>
2757         * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2759 2002-04-09  Hans-Peter Nilsson  <hp@bitrange.com>
2761         PR objc/6107
2762         * objc/objc-api.h (struct objc_protocol_list): Change type of
2763         member count from int to size_t.
2765 2002-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2767         PR libobjc/4039
2768         * aclocal.m4: Replace with version copied from libstdc++-v3.
2769         * configure.in: Update for changes to aclocal and Makefile.
2770         * configure: Regenerate.
2771         * Makefile.in: Correct install of multilibs and shared libs, use
2772         INSTALL_DATA for include files.
2774 Mon Dec 17 17:02:12 2001  Nicola Pero  <nicola@brainstorm.co.uk>
2776         * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2777         categories - when an unclaimed category was found, the loop was
2778         doing two steps forward instead of one, so that in certain cases
2779         it was failing to properly load all the categories.  (Reported
2780         with fix by Alexander Malmberg <alexander@malmberg.org>).
2782 2001-11-14  Aldy Hernandez  <aldyh@redhat.com>
2784         * encoding.c: Add target_flags.
2786 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2788          * objc/objc-api.h (_C_VECTOR): New.
2790          * encoding.c (VECTOR_TYPE): New.
2792 Mon Oct 29 21:29:21 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2794         * class.c: Rewritten the class table to use optimized, lock-free
2795         lookup.  This more than doubles the speed of class method
2796         invocations.  (class_table_setup), (class_table_insert),
2797         (class_table_replace), (class_table_get_safe),
2798         (class_table_next), (class_table_print),
2799         (class_table_print_histogram): New functions.
2800         (__objc_init_class_tables): Use class_table_setup.
2801         (__objc_add_class_to_hash): Use class_table_get_safe and
2802         class_table_insert.  (objc_lookup_class), (objc_get_class): Do not
2803         assert the existence of the table; do not lock the runtime; use
2804         class_table_get_safe.  (objc_next_class): Use class_table_next.
2805         (__objc_resolve_class_links): Use class_table_next.
2806         (class_pose_as): Use class_table_replace.
2808 2001-09-10  Ovidiu Predescu  <ovidiu@cup.hp.com>
2810         * gc.c: Removed the DEBUG declaration.
2812 Wed Jul 18 12:48:56 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2814         * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2815         rather than through objc_thread_id, to save a function call.
2816         (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2817         Ditto.
2819 Mon Jul 16 12:15:00 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2821         * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2822         to cast an id to a Class, which can not be done.  Make the check
2823         by using CLS_ISMETA on the class pointer instead.
2824         (object_is_meta_class): Similar fix.
2826 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>, Stephen L Moshier  <moshier@mediaone.net>
2828         * configure.in (AC_EXEEXT): Work around in case it expands to
2829         nothing, as in autoconf 2.50.
2830         * acinclude.m4: Likewise.
2831         * configure: Rebuilt.
2833 2001-06-08  Nicola Pero  <n.pero@mi.flashnet.it>
2835         * THREADS: Explain that when we compile libobjc inside GCC, we
2836         always use thr-objc.c as a backend, which uses GCC's thread code.
2838 2001-06-06  Richard Frith-Macdonald  <rrfm@gnu.org>
2840         * init.c (__objc_send_message_in_list): When setting a new entry
2841         in __objc_load_methods use the method IMP as key, but check to see
2842         if the method is in the hashtable by looking at the IMP also.
2843         Also ... call the method after adding it to the hashtable rather
2844         than before ... thus preventing an obscure possibility of infinite
2845         recursion if a +load method itself loads a subclass.
2847 2001-05-25  Ovidiu Predescu  <ovidiu@cup.hp.com>
2849         * init.c (__objc_send_message_in_list): When setting a new entry
2850         in __objc_load_methods use the method name as key, not the method
2851         IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2853 2001-05-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2855         * objc-features.texi: Move to ../gcc/objc.texi.
2856         * fdl.texi: Remove.
2857         * Makefile.in: Don't generate documentation from
2858         objc-features.texi.
2860 2001-05-01  Mark Mitchell  <mark@codesourcery.com>
2862         * fdl.texi: New file.
2863         * objc-features.texi: Simplify.
2864         * Makefile.in: Adjust accordingly.
2866 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
2868         * objc-features.texi: Use the GFDL.
2870 Wed Mar 21 04:44:58 EST 2001  John Wehle  (john@feith.com)
2872         * encoding.c (REAL_TYPE): Define.
2874 2001-03-19  David Edelsohn  <edelsohn@gnu.org>
2876         * encoding.c (TYPE_MODE): Define.
2878 2001-03-14  Nicola Pero  <n.pero@mi.flashnet.it>
2880         * thr.c (objc_thread_add): New function.
2881         (objc_thread_remove): Ditto.
2882         * objc/thr.h: Declare them.
2883         * libobjc.def: Mention them.
2885 2001-02-28  Ovidiu Predescu  <ovidiu@cup.hp.com>
2887         * objc-features.texi: Document the @compatibility_alias compiler
2888         directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2890 Fri Feb 23 18:12:00 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2892         * sendmsg.c (__objc_forward): Delete strlen() declaration.
2894 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
2896         * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2897         we're not interested in the result and they might fail.
2898         * configure: Regenerated.
2900 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2902         * objc-features.texi: Use @email.
2904 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2906         * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2907         printf.
2909 2000-01-11  Richard Earnshaw  <rearnsha@arm.com>
2911         * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2912         determines the value dynamically.
2914 Wed Jan  3 00:49:10 2001  Ovidiu Predescu  <ovidiu@cup.hp.com>
2916         * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2917         libraries to provide a function that returns the real forwarding
2918         function. This can alleviate problems __builtin_apply() and
2919         friends have on various platforms. (Solution suggested by Helge
2920         Hess.)
2922         * objc/objc-api.h: Define __objc_msg_forward.
2924         * sendmsg.c: Define gen_rtx_REG.
2926 2000-12-06      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2928         * thr-rtems.c: New file. Stub to compile.
2930 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
2932         * configure: Rebuilt with new libtool.m4.
2934 Tue Aug 15 00:38:56 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
2936         * configure.in: Create a config.h file. Check for <sched.h>.
2937         * configure: Regenerate.
2939         * config.h.in: Check for <sched.h>.
2941 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
2943         * configure: Regenerate after change to ../libtool.m4.
2945 2000-08-14  Andreas Schwab  <schwab@suse.de>
2947         * objc-features.texi (Top): Move @menu at end of node.
2949 2000-08-11  Manfred Hollstein  <manfredh@redhat.com>
2951         * objc-features.texi: Move @node Top before @menu.
2953 Sun Aug  6 23:27:49 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
2955         * objc-features.texi: Documented the new -fconstant-string-class
2956         option.
2958 Sun Aug  6 22:51:16 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
2960         * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2961         improve the Posix thread support for Objective-C.
2963 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
2965         * aclocal.m4: Replace copy of ../libtool.m4 with
2966         sinclude(../libtool.m4).
2968 Fri Jul 28 08:58:02 2000  Nicola Pero  <nicola@brainstorm.co.uk>
2970         * configure.in: Added libtool support; build shared libraries
2971         if --enable-shared was passed on command line.
2972         * Makefile.in: Modified most compilation commands to use libtool.
2973         * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2974         libtool distribution.
2976 Sat Jul 29 00:10:21 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
2978         * sarray.c, Object.m: Removed the explicit prototypes for strlen
2979         and memcpy on 64-bit platforms (Suggested by Rodney Brown
2980         <rdb@cup.hp.com>).
2982 2000-05-12  H.J. Lu  (hjl@gnu.org)
2984         * Makefile.in (GTHREAD_FLAGS): New.
2985         (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2986         (OBJC_THREAD_FILE): Changed to thr-objc.
2988         * configure.in (GTHREAD_FLAGS): New, check and replace it for
2989         Makefile.
2990         (OBJC_THREAD_FILE): Removed.
2992         * thr-objc.c: New.
2994 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2996         * objc/hash.h: Include string.h.
2998 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
3000         * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3002 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
3004         * Object.m (strlen): Provide prototype on all 64bit platforms,
3005         not only alpha.
3006         * sarray.c (memcpy): Likewise.
3007         * encoding.c (objc_layout_finish_structure): Don't use
3008         ROUND_TYPE_ALIGN on sparc.
3010         * encoding.c (objc_layout_structure_next_member): Do the whole
3011         procedure even for the first member, so that we get correct
3012         alignment.
3014 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
3016         * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3017         comments.
3019 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
3021         * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3023 Thu Sep 23 07:19:12 1999   Chris Ball <cball@fmco.com>
3025         * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3027 Tue Sep 21 07:47:10 1999  Jeffrey A Law  (law@cygnus.com)
3029         * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3030         the compiler when building C code.
3032 Fri Aug  6 23:32:29 1999  Daniel Jacobowitz <drow@drow.them.org>
3034         * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3035         libdir, libsubdir and tooldir.
3037 Mon Jun 21 05:40:15 1999  John David Anglin <dave@hiauly1>
3039         * init.c (__objc_force_linking): Make global.
3041 Thu May 20 03:20:59 1999  Jeffrey A Law  (law@cygnus.com)
3043         * configure.in (AC_EXEEXT): Remove call.
3044         (compiler_name): Explicitly check with no extension and .exe
3045         extension.
3046         * configure: Regenerate.
3048 Sun Apr 25 01:15:34 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3050         * Makefile.in (CC1OBJ): Define in terms of CC.
3051         (runtime-info.h): Use.
3053 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3055         * objc-features.texi: Updated the URL to Boehm's GC page.
3057 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3059         * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3060         the char as being signed (patch from Daniel Jacobowitz
3061         <drow@false.org>).
3063 Wed Mar 24 22:41:28 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3065         * configure.in (AC_PREREQ): Update to 2.13.
3066         (AC_EXEEXT): Call to find possible file extension.
3067         (compiler_name): Use.
3068         * configure: Regenerate.
3070 Wed Jan 27 02:31:01 1999  Jeffrey A Law  (law@cygnus.com)
3072         * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3074 Tue Jan  5 01:38:53 1999  Jeffrey A Law  (law@cygnus.com)
3076         * configure.in (thread_file): Correct and simplify code to find
3077         the thread file.
3078         * configure: Rebuilt.
3080 1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
3082         * configure.in (compiler_name): Add check to detect if this
3083         language's compiler has been built.
3084         * configure: Regenerate.
3086 Mon Nov 23 16:50:28 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3088         *  configure.in: Use AC_PREREQ(2.12.1).
3090 Thu Nov 19 20:33:37 1998  Jeffrey A Law  (law@cygnus.com)
3092         * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3094 Sun Nov  8 17:46:14 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3096         * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3098 Thu Oct 22 14:34:06 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3100         * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3102 Sat Oct 17 05:21:31 1998  Ovidiu Predescu  <ovidiu@slip.net>
3104         * objc-features.texi (Top): Changed the email address.
3105         * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3107 Mon Oct 11 21:25:27 1998  Ovidiu Predescu  <ovidiu@slip.net>
3109         * encoding.c: Redefine get_inner_array_type to get the first entry
3110         in the structure.
3112 Thu Oct  8 12:21:14 1998  Richard Frith-Macdonald <richard@brainstorm.co.uk>
3114         * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3115         (objc_get_type_qualifiers): Similarly.
3116         * objc/encoding.h (_C_BYREF): Define.
3117         (_F_BYREF): Define.
3119 1998-10-07  David S. Miller  <davem@pierdol.cobaltmicro.com>
3121         * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3122         works out on 64-bit systems.
3124 Tue Oct  6 20:32:06 1998  Alexandre Oliva  <oliva@dcc.unicamp.br>
3126         * Makefile.in (INCLUDES): Make it multilib-friendly.
3128 Fri Oct  2 07:12:14 1998  H.J. Lu  (hjl@gnu.org)
3130         * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3132 Thu Oct  1 22:33:03 1998 Robert Lipe  <robertl@dgii.com>
3133                          Jeffrey A Law  (law@cygnus.com)
3135         * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3136         (FLAGS_TO_PASS): Added.
3137         (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3139         * archive.c: Change config.h to tconfig.h.
3141         * configure.in: Find gcc's object directory even for multilibs.
3143 Wed Sep 30 18:17:17 1998  Robert Lipe  <robertl@dgii.com>
3145         * configure.in: Escape ^ in grep string.
3146         * configure: Rebuilt.
3148 Wed Sep 30 09:14:52 1998  Jeffrey A Law  (law@cygnus.com)
3150         * All .h files pushed down into the objc/ subdirectory.
3151         * Makefile.in (copy_headers): Corresponding changes.
3152         * configure.in (AC_INIT): Corresponding changes.
3153         * configure: Rebuilt.
3155 1998-09-30  Ben Elliston  <bje@cygnus.com>
3156             Jeff Law      <law@cygnus.com>
3158         * Makefile.in: Rewrite.
3160         * configure.in: Likewise.
3162         * configure: Regenerate.
3164         * All .c files.  Remove "objc" prefix when including objc header
3165         files.  Include tconfig.h, not ../tconfig.h.
3167 Mon Sep 21 23:27:10 1998  Ovidiu Predescu <ovidiu@slip.net>
3169         * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3170         (get_inner_array_type): Define.
3172 1998-09-21  Ben Elliston  <bje@cygnus.com>
3174         * New directory.  Moved files from ../gcc/objc.