OSDN Git Service

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