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