OSDN Git Service

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