OSDN Git Service

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