OSDN Git Service

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