OSDN Git Service

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