1 2011-11-20 Andreas Tobler <andreast@fgznet.ch>
3 * configure: Regenerate.
5 2011-10-26 Release Manager
9 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
11 Backport from mainline
12 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
15 * init.c (__objc_exec_class): Work around a bug in clang's code
16 generation. Clang sets the class->info field to values different
17 from 0x1 or 0x2 (the only allowed values in the traditional GNU
18 Objective-C runtime ABI) to store some additional information, but
19 this breaks backwards compatibility. Wipe out all the bits in the
20 fields other than the first two upon loading a class.
22 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
24 Backport from mainline
25 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
28 * class.c (__objc_update_classes_with_methods): Iterate over meta
29 classes as well as normal classes when refreshing the method
30 implementations. This fixes replacing class methods.
32 2011-06-27 Release Manager
36 2011-05-25 Nicola Pero <nicola.pero@meta-innovation.com>
38 Backport from mainline
39 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
42 * selector.c (__sel_register_typed_name): Use sel_types_match()
43 instead of strcmp() to compare selector types (Suggestion by
44 Richard Frith-Macdonald <rfm@gnu.org>).
46 2011-03-25 Release Manager
50 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
52 * selector.c (sel_getTypedSelector): Return NULL if there are
53 multiple selectors with conflicting types.
54 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
56 2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
59 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
62 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64 * configure: Regenerate.
66 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
68 * init.c (create_tree_of_subclasses_inherited_from): Use
69 class_superclass_of_class instead of assuming a class is
70 unresolved when it could be resolved. Tidied up assignment and
72 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
73 (objc_tree_insert_class): Tidied up loop; return immediately upon
75 (__objc_exec_class): Do not set __objc_class_tree_list.
77 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
79 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
81 (sel_registerTypedName): Same.
82 (sel_registerName): Same.
83 * objc/runtime.h: Updated documentation.
85 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
87 * objc/runtime.h (class_addIvar): Updated documentation. The
88 alignment is actually the log_2 of the alignment in bytes.
89 * ivars.c (class_addIvar): Corresponding change to the
92 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
94 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
95 be consistent with method_getTypeEncoding and
97 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
98 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
99 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
100 (sel_get_type): Updated call to sel_getType.
102 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
104 * objc/runtime.h (class_conformsToProtocol,
105 class_copyProtocolList): Updated documentation.
107 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
109 * init.c (create_tree_of_subclasses_inherited_from): Updated
110 DEBUG_PRINTF messages.
111 (__objc_tree_insert_class): Same.
112 (__objc_send_load_using_method_list): Same.
113 (__objc_send_load): Same.
114 (__objc_exec_class): Same. In particular, do not print the module
115 name since it is no longer used.
116 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
117 tracking +initialize calls.
118 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
119 tracking updates of dispatch tables.
120 (__objc_install_dispatch_table_for_class): Same.
122 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
124 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
125 (libobjc_gc$(libsuffix).la): Likewise.
127 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
129 * sendmsg.c (class_addMethod): Return NO if the method already
132 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
134 * init.c (duplicate_classes): New.
135 (__objc_exec_class): Initialize duplicate_classes.
136 (__objc_create_classes_tree): Ignore classes in the
137 duplicate_classes table.
138 (__objc_call_load_callback): Same.
139 (__objc_init_class): If a duplicate class is found, add it to
140 duplicate_classes instead of aborting. Return YES if the class is
141 not a duplicate, and NO if it is.
142 * objc-private/runtime.h (__objc_init_class): Updated prototype.
144 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
146 * objc-private/objc-list.h: Reindented file. No code changes.
147 * objc-private/sarray.h: Same change.
149 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
151 * objc-private/accessors.h: Removed 'extern "C"' guards. This
152 file is never compiled with C++.
153 * objc-private/hash.h: Same change.
154 * objc-private/objc-list.h: Same change.
155 * objc-private/objc-sync.h: Same change.
156 * objc-private/protocols.h: Same change.
157 * objc-private/runtime.h: Same change.
158 * objc-private/sarray.h: Same change.
159 * objc-private/selector.h: Same change.
161 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
164 * class.c (__objc_add_class_to_hash): Return YES if the class was
165 added, and NO if it already existed.
166 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
167 NO, then abort the program with an error message.
168 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
171 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
173 * init.c (_objc_load_callback): Initialize with 0.
174 (__objc_call_callback): Renamed to __objc_call_load_callback.
175 Check _objc_load_callback only once, and if it is not set, return
177 (objc_send_load): Updated call to __objc_call_callback.
179 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
182 * init.c (__objc_send_message_in_list): Renamed to
183 __objc_send_load_using_method_list. Do not take an 'op' argument.
184 Register the 'load' selector if needed.
185 (__objc_send_load): Do not register the 'load' selector. Updated
186 call to __objc_send_message_in_list.
187 (__objc_create_classes_tree): Add the class of any claimed
188 category that was loaded in the module to the list of classes for
189 which we try to execute +load.
191 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
193 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
195 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
196 a pointer using DEBUG_PRINTF.
198 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
201 * selector.c (__sel_register_typed_name): When registering a new
202 selector with the same name as an existing one, reuse the existing
203 name string. Also updated types, casts and comments in the whole
206 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
208 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
209 to be 'struct objc_selector *' and not 'SEL'.
210 * init.c (__objc_exec_class): Call
211 __objc_register_selectors_from_module instead of iterating over
212 each selector and calling __sel_register_typed_name for each.
213 * objc-private/selector.h: Declare
214 __objc_register_selectors_from_module instead of
215 __sel_register_typed_name.
216 * selector.c (__objc_register_selectors_from_module): New.
217 (__sel_register_typed_name): Made static.
219 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
221 * linking.m: Do not include objc/NXConstStr.h.
223 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
225 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
226 * objc-private/common.h (DEBUG_PRINTF): To here.
227 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
229 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
231 * hash.c: Tidied up comments and indentation. No code changes.
233 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
236 * accessors.m (objc_getProperty): If not atomic, do not
237 retain/autorelease the returned value.
239 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
241 * objc-private/runtime.h (__objc_selector_max_index,
242 __objc_init_selector_tables, __objc_register_selectors_from_class,
243 __objc_register_selectors_from_list,
244 __objc_register_selectors_from_description_list): Moved to ...
245 * objc-private/selector.h: ... here.
247 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
249 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
250 (__objc_print_dtable_stats): Removed.
251 (__sel_register_typed_name): Removed.
252 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
254 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
256 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
257 if appropriate, after loading the module.
259 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
261 * sendmsg.c (method_setImplementation): Do not declare.
263 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
265 * objc/message.h: Updated comments.
266 * objc/runtime.h: Updated comments.
268 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
270 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
271 * protocols.c: Updated all calls to objc_lookupClass to call
272 objc_lookUpClass instead.
273 * sendmsg.c (objc_lookupClass): Do not declare.
274 (get_imp): Update call to objc_lookupClass to call
275 objc_lookUpClass instead.
276 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
278 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
280 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
281 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
282 define. Updated comments.
284 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
286 * objc/encoding.h: Updated comments.
287 * objc/runtime.h: Updated comments.
288 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
289 (objc_sizeof_type): Same.
290 (objc_alignof_type): Same.
291 (objc_aligned_size): Same.
292 (objc_promoted_size): Same.
293 (objc_skip_type_qualifiers): Same.
294 (objc_skip_typespec): Same.
295 (objc_skip_offset): Same.
296 (objc_skip_argspec): Same.
297 (objc_get_type_qualifiers): Same.
298 (objc_layout_structure): Same.
299 (objc_layout_structure_next_member): Same.
300 (objc_layout_finish_structure): Same.
301 (objc_layout_structure_get_info): Same.
303 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
305 * init.c: Updated comments.
306 * objc/objc-api.h: Updated comments.
307 * objc/runtime.h (_objc_load_callback): Declare.
309 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
311 * objc/Object.h: Include deprecated/typedstream.h and
312 deprecated/hash.h instead of typedstream.h. Updated comments.
314 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
316 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
317 * objc/deprecated/objc_msg_sendv.h: New.
318 * objc/message.h: Do not define retval_t, apply_t, arglist,
319 arglist_t, objc_msg_sendv, now in
320 objc/deprecated/objc_msg_sendv.h.
321 * objc/objc.h: Do not include message.h; include
322 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
323 * sendmsg.c: Include objc/message.h.
324 * thr.c: Include objc/message.h.
326 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
328 * objc/objc-exception.h: Include objc-decls.h. Mark all
329 functions with objc_EXPORT.
330 * objc/objc-sync.h: Same change.
332 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
334 * Protocol.m: Moved all methods, with the exception of -isEqual:,
335 into the 'Deprecated' category.
336 * objc/Protocol.h: Removed all methods, moved to
337 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
338 * objc/deprecated/Protocol.h: New.
339 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
341 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
343 * init.c: Include objc-private/selector.h. Do not declare
344 __sel_register_typed_name.
345 * objc-private/selector.h (__sel_register_typed_name): Declare.
346 * selector.c: Include objc-private/selector.h.
348 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
350 * class.c: Tidied up comments and indentation. No code changes.
356 * objc-foreach.c: Same.
363 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
365 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
366 instead of objc/objc-api.h.
367 (init_check_module_version): Take a 'struct objc_module *'
368 argument instead of 'Module_t'. Use 'struct objc_module *'
369 instead of 'Module_t'.
370 (__objc_created_classes_tree): Take a 'struct objc_module *'
371 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
373 (__objc_call_callback): Take a 'struct objc_module *' argument
374 instead of 'Module_t'; use 'struct objc_symtab *' instead of
375 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
376 (_objc_load_callback): Take a 'struct objc_category *' argument
377 instead of 'Category *'.
378 (class_superclass_of_class): Use objc_getClass() instead of
380 (create_tree_of_subclasses_inherited_from): Same change (also, use
381 an explicit 'if' instead of '?').
382 (objc_init_statics): Same change.
383 (objc_send_load): Same change.
384 (__objc_init_protocol): same change.
385 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
386 argument instead of 'MethodList_t'. Use 'struct objc_method *'
387 instead of 'Method_t'.
388 (__objc_send_load): Use 'struct objc_method_list *' instead of
389 'MethodList_t'. Use sel_registerName() instead of
391 (__objc_exec_class): Take a 'struct objc_module *' argument
392 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
393 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
394 Use 'struct objc_category *' instead of 'Category_t'.
396 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
398 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
399 Include objc-private/module-abi-8.h and objc-private/selector.h
400 instead of objc/encoding.h.
401 (objc_msg_lookup_super): Use super->super_class instead of
403 (method_get_first_argument, method_get_next_argument): Declare
405 (class_get_instance_method): Declare before using.
406 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
407 (__objc_init_dispatch_tables, __objc_send_initialize): Use
408 sel_registerName() instead of sel_register_name().
409 (__objc_forward): Use sel_getName() instead of sel_get_name().
410 (objc_get_uninstalled_dtable): Use 'void' as argument.
411 * objc-private/selector.h: New.
413 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
415 * objc/message.h (objc_super): When using the modern API, do not
416 define Super and Super_t, and always use 'super_class' for the
418 (objc_msg_lookup_super): Updated prototype to use 'struct
419 objc_super *' instead of 'Super_t'.
420 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
421 'struct objc_super *' instead of 'Super_t'.
423 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
425 * objc/message.h: Update comments, reindented code and moved
426 deprecated types and functions at the end of the file. No code
429 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
431 * ivars.c (class_addIvar): Use the 'size' argument instead of
432 trying to calculate it using objc_sizeof_type().
433 * objc/runtime.h (class_addIvar): Updated comments.
435 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
437 * sendmsg.c: Reindented some code and tidied up comments. No
440 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
442 * objc/Object.h: Moved all the methods, with the exception of
443 -class and -isEqual:, into ...
444 * objc/deprecated/Object.h: here.
445 * Object.m: Moved all the methods, with the exception of -class
446 and -isEqual: into the 'Deprecated' category.
448 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
450 * objects.c (object_copy): Do not #undef as we are no longer
451 including objc/objc-api.h.
452 * selector.c: Include objc/runtime.h and
453 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
454 objc/encoding.h. Updated
455 (__objc_register_selectors_from_class): Use struct
456 objc_method_list * instead of MethodList_t.
457 (__objc_register_selectors_from_list): Use Method instead of
459 (struct objc_method_description_list): Do not define here.
460 (__objc_register_instance_methods_to_class): Use struct
461 objc_method_list * instead of MethodList_t and Method instead of
464 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
466 * selector.c: Reindented some code and tidied up comments. No
469 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
471 * encoding.c (_darwin_rs6000_special_round_type_align): New.
472 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
474 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
476 * sendmsg.c (selector_resolveClassMethod): New.
477 (selector_resolveInstanceMethod): New.
478 (__objc_resolve_class_method): New.
479 (__objc_resolve_instance_method): New.
480 (get_imp): Call __objc_resolve_class_method or
481 __objc_resolve_instance_method at the appropriate time.
482 (objc_msg_lookup): Same.
483 (class_getClassMethod): Same.
484 (class_getInstanceMethod): Same.
485 (__objc_init_dispatch_tables): Initialize
486 selector_resolveClassMethod and selector_resolveInstanceMethod.
487 * objc/runtime.h: Updated documentation of class_getClassMethod,
488 class_getInstanceMethod and class_getMethodImplementation.
490 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
492 * objc-private/module-abi-8.h (struct objc_symtab): Updated
493 description of sel_ref_cnt and refs.
494 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
496 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
500 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
501 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
502 * aclocal.m4: Regenerate.
503 * configure: Regenerate.
505 2010-12-03 Matthias Klose <doko@ubuntu.com>
507 * configure.ac (VERSION): Bump the version to 3:0:0.
508 * configure: Regenerate.
510 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
512 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
513 pass nil as the receiver since we don't know the receiver at this
516 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
518 * ivars.c: Include stdlib.h.
519 * protocols.c: Same change.
521 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
523 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
525 * init.c: Include objc-private/accessors.h.
526 (__objc_exec_class): Call __objc_accessors_init.
527 * objc-private/accessors.h: New.
529 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
531 * objc/message.h: Moved initial includes outside of extern "C".
532 * objc/runtime.h: Add extern "C" for Objective-C++.
534 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
536 * init.c (objc_send_load): Do not wait for NXConstantString to be
537 registered before executing +load. There is no point if
538 -fconstant-string-class=xxx is used when compiling all modules,
539 as is the case for almost all users.
540 * linking.m (__objc_linking): Do not try to forcefully link in
543 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
545 * objc/runtime.h: Updated comments.
546 (class_addMethod): New.
547 (class_addIvar): New.
548 (class_replaceMethod): New.
549 (objc_allocateClassPair): New.
550 (objc_registerClassPair): New.
551 (objc_disposeClassPair): New.
552 * class.c (objc_allocateClassPair): New.
553 (objc_registerClassPair): New.
554 (objc_disposeClassPair): New.
555 (class_getSuperclass): Return Nil if a class is in construction.
556 * init.c (__objc_exec_class): Call __objc_init_class.
557 (__objc_init_class): New.
558 * ivars.c (class_copyIvarList): Return NULL if class is in
559 construction. Do not lock the runtime mutex.
560 (class_getInstanceVariable): Return NULL if class is in
561 construction. Do not lock the runtime mutex.
562 (class_addIvar): New.
563 * sendmsg.c (class_addMethod): New.
564 (class_replaceMethod): New.
565 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
566 (_CLS_IN_CONSTRUCTION): New.
567 (CLS_IS_IN_CONSTRUCTION): New.
568 (CLS_SET_IN_CONSTRUCTION): New.
569 (CLS_SET_NOT_IN_CONSTRUCTION): New.
570 * objc-private/runtime.h (__objc_init_class): New.
572 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
574 * class.c (class_getSuperclass): Call __objc_resolve_class_links
575 if the class is not resolved yet.
576 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
578 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
580 * objc/runtime.h (class_getIvarLayout): New.
581 (class_getWeakIvarLayout): New.
582 (class_setIvarLayout): New.
583 (class_setWeakIvarLayout): New.
584 * ivars.c (class_getIvarLayout): New.
585 (class_getWeakIvarLayout): New.
586 (class_setIvarLayout): New.
587 (class_setWeakIvarLayout): New.
589 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
591 * objc/runtime.h (class_copyPropertyList): New.
592 (class_getProperty): New.
593 (property_getAttributes): New.
594 (property_getName): New.
595 * ivars.c (class_copyPropertyList): New.
596 (class_getProperty): New.
597 (property_getAttributes): New.
598 (property_getName): New.
600 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
602 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
603 * class.c (__objc_update_classes_with_methods): New.
604 (objc_getClassList): Do not lock the class lock.
605 * methods.c (method_exchangeImplementations): New.
606 (method_setImplementation): New.
607 * objc/runtime.h (method_setImplementation): New.
608 (method_exchangeImplementations): New.
610 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
612 * Protocol.m: Include objc/runtime.h and
613 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
614 repeat Protocol's instance variables.
615 (struct objc_method_description_list): Do not define here.
616 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
617 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
618 selectors directly instead of getting names and then using strcmp.
619 ([descriptionForClassMethod:]): Same change.
620 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
621 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
622 to compare selectors directly instead of getting names and then
624 * objc/Protocol.h: Updated comments.
626 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
628 * init.c (__objc_init_protocol): New function which fixes up a
629 protocol's class pointer, registers it with the runtime, register
630 all protocol selectors and registers associated protocols too.
631 (objc_init_statics): Detect if we are initializing protocols, and
632 if so, use __objc_init_protocol instead of only fixing up the
634 (__objc_init_protocls): Use __objc_init_protocol.
635 * objc-private/module-abi-8.h: Updated comments.
636 * objc-private/runtime.h
637 (__objc_register_selectors_from_description_list): New.
638 * selector.c (__objc_register_selectors_from_description_list):
639 New. (struct objc_method_description_list): Declare.
640 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
641 when accessing the name of a method, which is now correctly a SEL.
642 ([-descriptionForClassMethod:]): Same change.
643 * protocols.c (protocol_getMethodDescription): Same change.
644 * objc/runtime.h: Updated comments.
645 (sel_registerTypedName): Fixed typo in function name.
647 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
650 * init.c (objc_init_statics): Do not skip the initialization of a
651 statics list if the first object has already been initialized; in
652 the case of Protocols, while the first one may have been
653 initialized, some others may not have been initialized yet.
655 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
657 * Makefile.in (OBJC_DEPRECATED_H): Added
658 objc_get_uninstalled_dtable, objc_object_alloc.h and
659 struct_objc_static_instances.h.
661 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
663 * encoding.c (method_copyReturnType): New.
664 (method_copyArgumentType): New.
665 (method_getReturnType): New.
666 (method_getArgumentType): New.
667 * methods.c (method_getDescription): New.
668 * objc/runtime.h (method_copyReturnType): New.
669 (method_copyArgumentType): New.
670 (method_getReturnType): New.
671 (method_getArgumentType): New.
672 (method_getDescription): New.
674 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
676 * encoding.c: Tidied up comments.
677 (objc_skip_variable_name): New static inline function.
678 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
679 the same code over and over.
680 (objc_alignof_type): Same.
681 (objc_aligned_size): Same.
682 (objc_promoted_size): Same.
683 (objc_skip_typespec): Same.
684 (objc_layout_structure_next_member): Same.
685 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
686 historical bug where objc_skip_offset would skip one byte even if
687 there is no offset: check that the first offset digit is actually
688 a digit before skipping it.
689 (objc_skip_type_qualifiers): Mark as inline.
690 (objc_skip_typespec): Mark as inline.
692 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
694 * Makefile.in (C_SOURCE_FILES): Added methods.c.
695 * encoding.c (method_getNumberOfArguments): New.
696 (method_get_number_of_arguments): Call
697 method_getNumberOfArguments.
698 * ivars.c (ivar_getName): Check for NULL variable argument.
699 (ivar_getOffset): Check for NULL variable argument.
700 (ivar_getTypeEncoding): Check for NULL variable argument.
701 (class_copyIvarList): New.
703 * protocols.c (class_copyProtocolList): Check for Nil class_
705 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
706 'struct objc_method_list *' instead of MethodList_t.
707 (class_getMethodImplementation): New.
708 (class_respondsToSelector): New.
709 (class_getInstanceMethod): New.
710 (class_getClassMethod): New.
711 * objc/runtime.h: Updated comments.
712 (class_copyIvarList): New.
713 (class_getInstanceMethod): New.
714 (class_getClassMethod): New.
715 (class_getMethodImplementation): New.
716 (class_respondsToSelector): New.
717 (method_getName): New.
718 (method_getImplementation): New.
719 (method_getTypeEncoding): New.
720 (class_copyMethodList): New.
721 (method_getNumberOfArguments): New.
723 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
725 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
726 instead of objc/objc-api.h.
727 (objc_get_unknown_class_handler): Do not define.
728 (class_isMetaClass): New.
729 (class_getSuperclass): New.
730 (class_getVersion): New.
731 (class_setVersion): New.
732 (class_getInstanceSize): New.
733 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
734 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
735 objc_get_super_class.
736 (get_ttype_entry): Use objc_getRequiredClass instead of
738 * ivars.c (class_getClassVariable): New.
739 * objects.c: Include objc/runtime.h, objc/thr.h and
740 objc-private/module-abi-8.h instead of objc/objc-api.h
741 * objc/runtime.h (class_getClassVariable): New.
742 (class_isMetaClass): New.
743 (class_getSuperclass): New.
744 (class_getVersion): New.
745 (class_setVersion): New.
746 (class_getInstanceSize): New.
747 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
750 (__CLS_ISINFO): Same.
751 (__CLS_SETINFO): Same.
754 (CLS_ISRESOLV): Same.
755 (CLS_SETRESOLV): Same.
756 (CLS_ISINITIALIZED): Same.
757 (CLS_SETINITIALIZED): Same.
758 (CLS_GETNUMBER): Same.
759 (CLS_SETNUMBER): Same.
761 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
763 * archive.c: Do not include objc/objc.h.
764 * class.c: Do not include objc/objc.h.
765 * encoding.c: Include objc/runtime.h, ctype.h and
766 objc-private/module-abi-8.h instead of objc/objc-api.h and
768 * error.c: Do not include objc/objc.h.
769 * gc.c: Include tconfig.h and objc/encoding.h only if
771 * hash.c: Include objc/runtime.h and objc/thr.h instead of
772 objc/objc-api.h. Do not include objc/objc.h.
773 * init.c: Do not include objc/objc.h.
774 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
775 objc/thr.h instead of objc/objc-api.h. Do not include
777 * linking.m: Tidied comment.
778 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
779 Do not include objc/objc.h.
780 * objects.c: Do not include objc/objc.h.
781 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
782 * protocols.c: Do not include objc/objc.h.
783 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
784 not include objc/objc.h.
785 * selector.c: Do not include objc/objc.h.
786 * sendmsg.c: Do not include objc/objc.h.
787 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
788 Do not include objc/objc.h.
789 * objc/objc-decls.h: Reindented code.
790 * objc/runtime.h Include objc-decls.h. Updated comments.
792 (objc_atomic_malloc): New.
796 * objc-private/runtime.h: Updated comments.
798 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
800 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
801 * objc-private/protocols.h: New.
803 * init.c: Include objc-private/protocols.h.
804 (__objc_exec_class): Call __objc_protocols_init on startup.
805 (__objc_init_protocols): Call __objc_protocols_add_protocol.
806 * objc-private/runtime.h: Use (struct objc_method_list *) instead
807 of MethodList_t, and (struct objc_method *) instead of Method_t.
808 * objc/deprecated/struct_objc_class.h: Define
809 __objc_STRUCT_OBJC_CLASS_defined.
810 * objc-private/module-abi-8.h (struct
811 objc_method_description_list): New.
812 (struct objc_class): Only define if
813 __objc_STRUCT_OBJC_CLASS_defined is undefined.
814 * objc/runtime.h (class_getName): New.
815 (objc_getProtocol): New.
816 (objc_copyProtocolList): New.
817 (class_addProtocol): New.
818 (class_conformsToProtocol): New.
819 (class_copyProtocolList): New.
820 (protocol_conformsToProtocol): New.
821 (protocol_isEqual): New.
822 (protocol_getName): New.
823 (protocol_getMethodDescription): New.
824 (protocol_copyMethodDescriptionList): New.
825 (protocol_getProperty): New.
826 (protocol_copyPropertyList): New.
827 (protocol_copyProtocolList): New.
828 * class.c (class_getName): New.
829 * selector.c (sel_isEqual): New.
831 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
833 * selector.c (sel_getName): Return "<null selector>" for a NULL
835 (sel_get_name): Return 0 for a NULL argument.
836 * objc/runtime.h (sel_getName): Updated documentation.
838 * objc-private/hash.h (class_hash_table): Unused declaration
840 (module_hash_table): Same.
841 * objc/deprecated/hash.h: Same changes.
843 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
845 * class.c (objc_getClassList): New.
846 (objc_getRequiredClass): New.
847 (objc_getMetaClass): New.
848 (objc_lookupClass): New.
849 (objc_getClass): New.
850 (__objc_get_unknown_class_handler): New.
851 (objc_setGetUnknownClassHandler): New.
852 (objc_get_class): Use __objc_get_unknown_class_handler.
853 (objc_lookup_class): Call objc_getClass.
854 * objc/objc-api.h: Updated comment and copyright notice.
855 * objc/runtime.h: Updated comments.
856 (objc_getClass): New.
857 (objc_lookupClass): New.
858 (objc_getMetaClass): New.
859 (objc_getRequiredClass): New.
860 (objc_getClassList): New.
861 (objc_setGetUnknownClassHandler): New.
862 (objc_get_unknown_class_handler): New.
863 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
864 instead of __objc_runtime_INCLUDE_GNU as include guard.
865 * objc-private/error.h (_objc_abort): Mark as noreturn.
867 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
869 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
871 * objc/objc.h: Updated comments.
872 * objc/runtime.h (object_getClass): New.
873 (object_getClassName): New.
874 (object_setClass): New.
875 (class_getInstanceVariable): New.
876 (object_getIndexedIvars): New.
877 (object_getInstanceVariable): New.
878 (object_setInstanceVariable): New.
879 (object_getIvar): New.
880 (object_setIvar): New.
882 (ivar_getOffset): New.
883 (ivar_getTypeEncoding): New.
884 * objc-private/module-abi-8.h (struct objc_class): Added.
885 * objects.c (object_getClassName): New.
886 (object_setClass): New.
888 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
890 * objc/objc.h: Updated comments.
891 * objc/objc-api.h: (object_copy): Added one argument; use a
892 #define to maintain backwards-compatibility. Moved
893 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
894 objc_get_uninstalled_dtable into
895 objc/deprecated/objc_get_uninstalled_dtable.h and
896 objc/deprecated/objc_object_alloc.h. Include these files.
897 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
898 * objc/deprecated/objc_object_alloc.h: New.
899 * objc/runtime.h (set_getName): New.
902 (sel_registerName): New.
903 (sel_registerTypedName): New.
905 (class_createInstance): New.
907 (object_dispose): New.
908 * objects.c: Do not include tconfig.h. Include gc_typed.h if
909 building the garbage collection version.
910 (__objc_object_alloc): Removed.
911 (__objc_object_copy): Removed.
912 (__objc_object_dispose): Removed.
913 (class_createInstance): New from code in class_create_instance.
914 Cast second argument of GC_malloc_explicitly_typed. Use
915 objc_calloc. Do not call _objc_object_alloc.
916 (class_create_instance): Call class_createInstance.
917 (object_copy): Added extraBytes argument. Do not call
919 (object_dispose): Do not call _objc_object_dispose.
920 * memory.c (objc_free): When using garbage collection, mark the
922 * selector.c (sel_getName): New.
923 (sel_get_name): Call sel_getName.
925 (sel_get_type): Call sel_getType.
926 (sel_registerName): New.
927 (sel_register_name): Call sel_registerName.
928 (sel_registerTypedName): New.
929 (sel_register_typed_name): Call sel_registerTypedName.
931 (sel_get_uid): Call sel_getUid.
933 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
935 * objc/objc-api.h: Define Method, Method_t, Category and
936 Category_t. Prevent including this file at the same time as
937 objc/runtime.h. Updated comments.
938 * objc/deprecated/struct_objc_method.h: Do not define Method,
940 * objc/deprecated/struct_objc_category.h: Do not define Category,
942 * objc-private/module-abi-8.h: New file containing a copy of all
943 the structure definitions. Not used yet.
944 * objc/encoding.h (objc_aligned_size): Removed duplicate
945 declaration. Updated comments.
946 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
947 Category, struct objc_method_description, _C_ID and similar,
948 _C_CONST and similar and _F_CONST and similar. Added
949 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
950 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
951 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
952 struct objc_struct_layout, objc_layout_structure,
953 objc_layout_structure_next_member, objc_layout_finish_structure,
954 objc_layout_structure_get_info. Prevent including this file at
955 the same time as objc/objc-api.h.
957 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
959 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
960 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
961 struct_objc_method_list.h, struct_objc_module.h,
962 struct_objc_protocol_list.h, struct_objc_symtab.h.
963 * objc/deprecated/struct_objc_category.h: New.
964 * objc/deprecated/struct_objc_ivar.h: New.
965 * objc/deprecated/struct_objc_ivar_list.h: New.
966 * objc/deprecated/struct_objc_method.h: New.
967 * objc/deprecated/struct_objc_method_list.h: New.
968 * objc/deprecated/struct_objc_module.h: New.
969 * objc/deprecated/struct_objc_protocol_list.h: New.
970 * objc/deprecated/struct_objc_symtab.h: New.
971 * objc/deprecated/struct_objc_static_instances.h: New.
972 * objc/objc-api.h: Definitions of deprecated structures moved into
973 the above header fragment files in objc/deprecated/. Include the
974 files instead of definition the structures here. Updated
976 * objc/runtime.h: Updated comments. Do not include objc-api.h.
977 (objc_set_enumeration_mutation_handler): Renamed to
978 objc_setEnumerationMutationHandler.
979 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
980 to objc_setEnumerationMutationHandler.
981 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
982 objc_setExceptionMatcher.
983 (objc_set_uncaught_exception_handler): Renamed to
984 objc_setUncaughtExceptionHandler.
985 * exception.c: Same changes.
987 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
989 * objc-sync.c: Include objc-private/common.h.
991 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
993 * objc-foreach.c: Include objc-private/common.h.
994 * objc/deprecated/METHOD_NULL.h: New file.
995 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
996 defining METHOD_NULL here.
997 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
998 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1000 ([-respondsTo:]): Same change.
1001 * objc/objc-api.h (method_get_imp): Converted it into a normal
1002 function so that we can hide the internals of struct objc_method.
1003 * sendmsg.c (method_get_imp): Implemented.
1005 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1007 * objc/objc-api.h (struct objc_super, Super, Super_t,
1008 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1009 objc_msg_forward2): Declarations moved to objc/message.h. Include
1011 * objc/message.h: Added such declarations; updated comments.
1013 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1015 Implemented fast enumeration for Objective-C.
1016 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1017 (OBJC_H): Added runtime.h
1018 * objc-foreach.c: New file.
1019 * objc/runtime.h: New file.
1021 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
1023 * objc/deprecated/struct_objc_class.h: Add padding
1024 to avoid warning with -Wpadded.
1026 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1028 * encoding.c (objc_sizeof_type): Added support for vector type and
1029 for double long types.
1030 (objc_alignof_type): Same change.
1031 (objc_skip_typespec): Same change.
1032 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1033 instead of '!' since '!' is already used for _C_VECTOR.
1034 * objc/objc-api.h (_C_LNG_DBL): Added.
1036 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1038 * libobjc_entry.c: File removed.
1040 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
1042 * sendmsg.c (objc_msg_lookup): Remove inline.
1043 (objc_get_uninstalled_dtable): Likewise.
1044 * encoding.c (objc_skip_type_qualifiers): Likewise.
1045 (objc_skip_offset): Likewise.
1046 * archive.c (__objc_write_object): Likewise
1047 (__objc_write_class):
1048 (__objc_write_selector):
1050 (objc_read_unsigned_char):
1052 (objc_read_unsigned_short):
1055 (__objc_read_nbyte_uint):
1056 (objc_read_unsigned_int):
1057 (objc_read_unsigned_long):
1058 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1059 (objc_EXPORT): Likewise.
1060 * objc/message.h (objc-decls.h): Add include.
1061 * objc/objc-api.h: Mark API by objc_EXPORT.
1062 * libobjc.def (__objc_responds_to): Removed.
1064 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1066 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1068 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1069 objc/sarray.h replaced with a placeholder including the file from
1070 the deprecated/ directory.
1071 * objc-private/sarray.h: New file (private copy of sarray.h).
1072 * hash.c: Include <assert.h> instead of "assert.h"
1073 * sarray.c: Include <assert.h> instead of "assert.h". Include
1074 objc-private/sarray.h instead of objc/sarray.h.
1075 * selector.c: Include objc-private/sarray.h instead of
1077 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1078 instead of objc/sarray.h.
1079 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1081 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1083 * objc-private/objc-list.h (list_remove_elem): Unused function
1084 removed. (list_nth): Unused function removed. (list_find):
1085 Unused function removed. (list_lenght): Unused function removed.
1087 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1089 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1090 replaced with a placeholder including the file from the
1091 deprecated/ directory.
1092 * objc/objc-api.h: Updated includes.
1093 * objc/typedstream.h: Updated includes.
1094 * objc-private/hash.h: New file (private copy of hash.h).
1095 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1096 objc/objc-list.h replaced with a placeholder including the file
1097 from the deprecated/ directory.
1098 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1099 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1100 instead of objc/hash.h and objc/objc-list.h.
1101 * selector.c: Same change.
1102 * class.c: Added include <string.h>, which used to be implicitly included
1103 when hash.h was included.
1104 * exception.c: Same change.
1105 * objects.c: Same change.
1106 * sarray.c: Same change.
1107 * sendmsg.c: Same change.
1108 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1110 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1112 Implemented objc_sync_enter() and objc_sync_exit(), which are
1113 required by @synchronized() to work.
1114 * objc-sync.c: New file.
1115 * objc/objc-sync.h: New file.
1116 * objc-private/objc-sync.h: New file.
1117 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1118 Objective-C runtime startup.
1119 * Makefile.in: Added objc-sync.c and objc-sync.h.
1120 * configure.ac: Added GCC_CHECK_TLS.
1121 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1122 * configure: Regenerated.
1123 * config.h.in: Regenerated.
1125 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1127 * Makefile.in (%_gc.lo): New pattern rules to build the
1128 garbage-collected version of the library. Removed rules for
1129 specific files that are no longer needed. Standardized all rules.
1130 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1131 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1133 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1135 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1137 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1138 with Garbage Colletion.
1140 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1142 * memory.c: Do not include objc-private/runtime.h.
1144 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1146 * objc/deprecated/objc_malloc.h: New file.
1147 * objc/deprecated/objc_valloc.h: New file.
1148 * objc/objc-api.h: Include the files instead of defining
1149 objc_valloc, _objc_malloc() and similar.
1150 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1152 * memory.c: Removed the extra layer of indirection of _objc_malloc
1154 (objc_calloc): Use GC_malloc in the garbage-collected
1155 implementation as GC_malloc returns memory that is already freed.
1156 (objc_valloc): Deprecated.
1158 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1160 * objc/deprecated/objc_error.h: New file.
1161 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1162 defining objc_error and related.
1163 * error.c: New file. Added _objc_abort function which replaces
1164 objc_error. No change in functionality as they both print an
1166 * misc.c: File removed. Code moved into memory.c and error.c.
1167 * memory.c: New file.
1168 * objc-private/error.h: New file.
1169 * archive.c: Include objc-private/error.h and use _objc_abort
1170 instead of objc_error everywhere.
1171 * class.c: Same change.
1172 * encoding.c: Same change.
1173 * init.c: Same change, and simplified init_check_module_version.
1174 * memory.c: Same change.
1175 * sendmsg.c: Same change.
1176 * thr.c: Same change.
1177 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1178 (OBJ_H): Reordered list.
1179 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1180 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1181 (misc_gc.lo): Rule removed.
1182 (error_gc.lo): Rule added.
1183 (memory_gc.lo): Rule added.
1185 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1187 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1188 to check the API version. Added some comments.
1190 * objc-private/common.h: New file.
1191 * NXConstStr.m: Include objc-private/common.h.
1192 * Object.m: Same change.
1193 * Protocol.m: Same change.
1194 * archive.c: Same change.
1195 * class.c: Same change.
1196 * encoding.c: Same change.
1197 * exception.c: Same change.
1198 * gc.c: Same change.
1199 * hash.c: Same change.
1200 * init.c: Same change.
1201 * libobjc_entry.c: Same change.
1202 * linking.m: Same change.
1203 * misc.c: Same change (and added a comment).
1204 * nil_method.c: Same change.
1205 * objects.c: Same change.
1206 * sarray.c: Same change.
1207 * selector.c: Same change.
1208 * sendmsg.c: Same change.
1209 * thr.c: Same change.
1211 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1213 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1215 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1217 * archive.c: Removed not needed includes.
1218 * class.c: Same change.
1219 * hash.c: Same change.
1220 * misc.c: Same change.
1221 * nil_method.c: Same change.
1222 * objects.c: Same change.
1223 * sarray.c: Same change.
1224 * sendmsg.c: Same change.
1225 * thr.c: Same change.
1227 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1229 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1230 all the objc/*.h files.
1231 * objc-private/runtime.h: New file.
1232 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1233 files) instead of objc/runtime.h.
1234 * class.c: Same change.
1235 * hash.c: Same change.
1236 * init.c: Same change.
1237 * misc.c: Same change.
1238 * nil_method.c: Same change.
1239 * objects.c: Same change.
1240 * sarray.c: Same change.
1241 * selector.c: Same change.
1242 * sendmsg.c: Same change.
1243 * thr.c: Same change.
1245 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1247 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1248 'struct objc_selector' and 'sel_eq' moved here.
1249 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1250 'struct objc_procotol' moved here.
1251 * objc/deprecated/struct_objc_class.h: New file. Definition of
1252 'struct objc_class' moved here.
1253 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1255 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1256 * objc/message.h: New file. Definitions for relval_t, apply_t,
1257 arglist, arglist_t and objc_msg_lookup were moved here.
1258 * objc/objc.h: Include the above files instead of defining the
1259 corresponding structs, types and functions here. Added new opaque
1260 definitions for SEL and Class. Use Class and not 'struct
1261 objc_class *' in the definition of 'struct objc_object'.
1262 Commented all types defined in the file. Removed special
1263 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1265 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1266 objc_unexpected_exception.h.
1267 * objc/objc-api.h: Updated include of
1268 objc-unexpetected-exception.h
1269 * objc/objc-exception.h: Updated comments.
1270 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1271 files. Reindented list of files.
1273 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1275 * objc/objc-api.h (objc_trace): Unused variable removed.
1277 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1279 * objc/deprecated: New directory.
1280 * objc/deprecated/README: New file.
1281 * objc/README: New file.
1282 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1283 objc/typedstream.h replaced with a placeholder including the file
1284 from the deprecated/ directory.
1285 * objc/deprecated/objc-unexpected-exception.h: New file with the
1286 definition of _objc_unexpected_exception.
1287 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1288 instead of defining _objc_unexpected_exception.
1289 * objc/deprecated/Object.h: New file with the deprecated Object
1290 methods in a 'Deprecated' category.
1291 * objc/Object.h Include deprecated/Object.h instead of defining
1292 the deprecated methods.
1293 * Object.m: Moved deprecated methods into 'Deprecated' category.
1294 * objc-private: New directory.
1295 * objc-private/README: New file.
1296 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1297 (install-headers): Create installation directory for
1298 OBJC_DEPRECATED_H headers, and install them.
1300 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1302 * objc/objc-exception.h: Fixed include of objc.h.
1304 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1306 * objc/objc-exception.h: New file.
1307 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1308 (objc_set_exception_matcher): Implemented.
1309 (objc_exception_throw): Use the uncaught exception handler if set.
1310 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1312 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1313 up. Removed segmentation fault when value is 'nil'.
1314 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1316 * Makefile.in (exception.lo, exception_gc.lo): Use
1317 -Wno-deprecated-declarations when compiling.
1318 (OBJC_H): Added objc-exception.h
1320 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1322 * objc/typedstream.h: Deprecate all functions in the file. This
1324 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1325 [-awake]): Documented that these methods are deprecated. Added a
1326 brief description of the Object class and its relationship to the
1328 * Makefile.in: Compile archive.c and Object.m with
1329 -Wno-deprecated-declarations.
1331 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1333 Removed obsolete intermediate threading layer.
1334 * thr.c: Use __gthread_objc_xxx functions directly instead of
1335 __objc_thread_xxx ones.
1336 * objc/thr.h: Removed prototypes of no longer existing
1337 __objc_thread_xxx functions.
1338 * Makefile.in: Removed thr-objc.lo.
1339 * thr-dce.c: File removed.
1340 * thr-decosf1.c: File removed.
1341 * thr-irix.c: File removed.
1342 * thr-mach.c: File removed.
1343 * thr-objc.c: File removed.
1344 * thr-os2.c: File removed.
1345 * thr-posix.c: File removed.
1346 * thr-pthreads.c: File removed.
1347 * thr-rtems.c: File removed.
1348 * thr-single.c: File removed.
1349 * thr-solaris.c: File removed.
1350 * thr-vxworks.c: File removed.
1351 * thr-win32.c: File removed.
1352 * README.threads: File removed.
1353 * THREADS.MACH: File removed.
1356 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1358 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1360 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1362 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1363 Add a comment as to why, update FIXME comments.
1365 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1367 * makefile.dos: Obsolete file removed.
1369 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1371 * aclocal.m4: Regenerate.
1373 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1376 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1377 Cygwin and MinGW hosts.
1378 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1379 (libobjc.dll): Likewise.
1380 * configure: Regenerate.
1382 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1384 * configure: Regenerate.
1386 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1388 * sarray.c (sarray_free): Use old_buckets variable.
1389 * encoding.c (objc_layout_structure_next_member): Remove unused
1390 bfld_type_size variable.
1392 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1394 * configure.ac (AC_PREREQ): Bump to 2.64.
1396 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1398 * aclocal.m4: Regenerate.
1399 * configure: Regenerate.
1400 * config.h.in: Regenerate.
1402 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1404 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1406 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1408 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1410 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1412 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1414 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1416 2009-04-09 Nick Clifton <nickc@redhat.com>
1418 * sendmsg.c: Change copyright header to refer to version 3 of
1419 the GNU General Public License with version 3.1 of the GCC
1420 Runtime Library Exception and to point readers at the COPYING3
1421 and COPYING3.RUNTIME files and the FSF's license web page.
1422 * NXConstStr.m: Likewise.
1423 * Object.m: Likewise.
1424 * Protocol.m: Likewise.
1425 * archive.c: Likewise.
1426 * class.c: Likewise.
1427 * encoding.c: Likewise.
1428 * exception.c: Likewise.
1432 * libobjc_entry.c: Likewise.
1433 * linking.m: Likewise.
1435 * nil_method.c: Likewise.
1436 * objc/NXConstStr.h: Likewise.
1437 * objc/Object.h: Likewise.
1438 * objc/Protocol.h: Likewise.
1439 * objc/encoding.h: Likewise.
1440 * objc/hash.h: Likewise.
1441 * objc/objc-api.h: Likewise.
1442 * objc/objc-decls.h: Likewise.
1443 * objc/objc-list.h: Likewise.
1444 * objc/objc.h: Likewise.
1445 * objc/runtime.h: Likewise.
1446 * objc/sarray.h: Likewise.
1447 * objc/thr.h: Likewise.
1448 * objc/typedstream.h: Likewise.
1449 * objects.c: Likewise.
1450 * sarray.c: Likewise.
1451 * selector.c: Likewise.
1452 * thr-dce.c: Likewise.
1453 * thr-decosf1.c: Likewise.
1454 * thr-irix.c: Likewise.
1455 * thr-mach.c: Likewise.
1456 * thr-objc.c: Likewise.
1457 * thr-os2.c: Likewise.
1458 * thr-posix.c: Likewise.
1459 * thr-pthreads.c: Likewise.
1460 * thr-rtems.c: Likewise.
1461 * thr-single.c: Likewise.
1462 * thr-solaris.c: Likewise.
1463 * thr-vxworks.c: Likewise.
1464 * thr-win32.c: Likewise.
1466 * libobjc.def: Change copyright header to refer to version 3 of
1467 the GNU General Public License and to point readers at the COPYING3
1468 file and the FSF's license web page.
1469 * makefile.dos: Likewise.
1471 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1473 * Makefile.in: Change copyright header to refer to version
1474 3 of the GNU General Public License and to point readers at the
1475 COPYING3 file and the FSF's license web page.
1476 * configure.ac: Likewise.
1478 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1479 David Ayers <ayers@fsfe.org>
1482 * objc/objc-api.h (_objc_unexpected_exception): Declare
1483 new hook. Update copyright dates.
1484 * exception.c (objc_exception_throw): Use hook. Update
1486 * libobjc.def (_objc_unexpected_exception): Export hook.
1487 Update copyright dates.
1489 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1491 * configure: Regenerate.
1493 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1495 * configure: Regenerate.
1497 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1499 * Object.m (errno): Replaced by errno.h include.
1500 (compare): Cast self to id to prevent warning on comparison.
1501 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1503 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1504 * thr-win32.c (__objc_thread_detach): Remove type warning.
1505 (__objc_thread_id): Likewise.
1506 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1509 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1510 Steve Ellcey <sje@cup.hp.com>
1512 * configure: Regenerate for new libtool.
1513 * config.h.in: Regenerate for new libtool.
1515 2008-07-18 Matthias Klose <doko@ubuntu.com>
1517 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1519 2008-07-18 Matthias Klose <doko@ubuntu.com>
1521 * Makefile.in: Include ../boehm-gc/threads.mk.
1522 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1524 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1526 * Makefile.in (install-info): New stub target.
1528 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1530 * configure: Regenerate.
1532 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1534 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1535 if HAVE_GETIPINFO is not defined.
1537 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1539 * Object.m (compare): Add type id.
1540 * objc/Object.h: Likewise.
1541 * archive.c (objc_read_class): Use size_t to extend version to be
1542 size of pointer scalar width.
1543 * sendmsg.c (rtx): Undefine it before redefinition.
1544 (__objc_print_dtable_stats): Cast arguments to long as intended.
1546 2008-05-30 Julian Brown <julian@codesourcery.com>
1548 * exception.c (__objc_exception_class): Initialise as constant
1549 array for ARM EABI. Change macro to static const for non-ARM EABI.
1550 (ObjcException): Add note about structure layout. Remove landingPad
1551 and handlerSwitchValue for ARM EABI.
1552 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1554 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1555 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1556 ARM EABI unwinding support.
1557 (objc_exception_throw): Use memcpy to initialise exception class.
1559 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1561 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1562 (rs6000_special_round_type_align): Update.
1564 2008-05-09 Julian Brown <julian@codesourcery.com>
1566 * Makefile.in (LTLDFLAGS): New.
1567 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1569 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1572 * aclocal.m4: Regenerate.
1573 * configure: Regenerate.
1575 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1577 * configure: Regenerate.
1579 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1581 * configure.ac: Don't run config-ml.in directly.
1582 (multilib_arg): New.
1583 * configure: Regenerated.
1585 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1588 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1589 of _Unwind_Word for variables which are used in
1590 read_uleb128/read_sleb128.
1591 (PERSONALITY_FUNCTION): Likewise.
1593 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1595 * aclocal.m4: Regenerated.
1597 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1599 * configure.ac: Fix a typo in *-*-darwin clause.
1600 * configure: Regenerated.
1602 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1604 * configure.ac: Fix a typo.
1605 * configure: Regenerated.
1607 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1609 * configure: Regenerate.
1611 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1613 * Makefile.in: Replace all uses of libext with libsuffix.
1614 * configure.ac: Likewise.
1615 * configure: Regenerate.
1618 * Makefile.in: Remove all uses of $(libext).
1620 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1622 * Makefile.in: Remove all uses of $(libext).
1624 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1626 * configure: Regenerate.
1627 * aclocal.m4: Regenerate.
1629 2007-04-21 Andrew Ruder <andy@aeruder.net>
1631 * sendmsg.c (__objc_get_forward_imp): Call
1632 __objc_msg_forward2 for real.
1634 2007-04-09 Andrew Ruder <andy@aeruder.net>
1636 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1637 external libraries to provide a function that returns the real
1638 forwarding function based on both the selector and the receiver.
1639 * objc/objc-api.h: Define __objc_msg_forward2.
1641 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1643 * Makefile.in: Add dummy install-pdf target.
1645 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1647 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1650 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1652 * encoding.c (darwin_rs6000_special_round_type_align): New.
1654 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1656 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1657 * configure.ac: Use multi.m4 from aclocal rather than custom
1658 code. Use multi_basedir instead of toplevel_srcdir.
1659 * aclocal.m4: Regenerate.
1660 * configure: Regenerate.
1662 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1664 * Makefile.in: Added empty "pdf" target.
1666 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1668 * configure: Regenerate.
1670 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1672 * Makefile.in: Add install-html target. Add install-html to .PHONY
1674 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1677 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1679 2006-01-24 David Ayers <d.ayers@inode.at>
1682 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1683 and insure the new strings are '\0' termintated.
1685 2006-01-24 David Ayers <d.ayers@inode.at>
1688 * configure.ac: Add include directives for --enable-objc-gc.
1689 * Makefile.in: Ditto.
1690 * configure: Regenerate.
1692 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1693 instead of the local pointer to them.
1695 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1698 * objc/objc-api.c (_C_COMPLEX): New define.
1699 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1700 (objc_alignof_type): Likewise.
1701 (objc_skip_typespec): Likewise.
1703 2005-12-15 David Ayers <d.ayers@inode.at>
1706 * README (+load,+initialize): Fix documentation to reflect
1707 intended and implemented semantics for +load and +initialize.
1709 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1711 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1713 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1714 (rs6000_special_round_type_align): Update for the ABI fix.
1715 (objc_layout_finish_structure): Correct the encoding which is passed to
1718 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1721 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1722 but use the struct layout functions.
1723 (objc_alignof_type): Likewise.
1724 (objc_layout_structure): Handle _C_UNION_B also.
1725 (objc_layout_structure_next_member): Likewise.
1726 (objc_layout_finish_structure): Likewise.
1728 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1731 * objc/objc-api.h (_C_BOOL): New define.
1732 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1733 (objc_alignof_type): Likewise.
1734 (objc_skip_typespec): Likewise.
1736 2005-11-20 David Ayers <d.ayers@inode.at>
1739 * objc/hash.h: Remove deprecated hash API.
1740 * hash_compat.c: Remove.
1741 * Makefile.in: Remove reference to hash_compat.c.
1743 * configure.ac (VERSION): Bump library version to 2:0:0.
1744 * configure: Regenerate.
1746 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1749 * thr-objc.c (_XOPEN_SOURCE): Define.
1751 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1754 * objc/objc-api.h (struct objc_ivar): Move definition to
1757 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1758 Rasmus Hahn <rassahah@neofonie.de>
1761 * archive.c (objc_write_type): Correct the element offset.
1762 (objc_read_type): Likewise.
1764 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1766 * All files: Update FSF address.
1768 2005-08-13 Marcin Koziej <creep@desk.pl>
1769 Andrew Pinski <pinskia@physics.uc.edu>
1772 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1774 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1776 * Makefile.in (extra_ldflags_libobjc): New.
1777 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1778 (libobjc_gc$(libext).la): Likewise.
1779 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1780 "-Wl,-single_module".
1781 * configure: Regenerate.
1782 * linking.m (_objcInit): Remove.
1784 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1787 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1789 2005-06-08 David Ayers <d.ayers@inode.at>
1791 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1792 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1793 objc/runtime.h, objc/sarray.h, objc/thr.h,
1794 objc/typedstream.h: Do not include Objective-C headers as
1797 2005-06-07 David Ayers <d.ayers@inode.at>
1799 * archive.c, init.c, selector.c: Include hash.h.
1800 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1801 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1802 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1803 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1804 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1805 Include Objective-C headers with quotes and objc/ directory
1808 2005-05-19 Richard Henderson <rth@redhat.com>
1810 * exception.c: Revert last change.
1812 2005-05-19 David Ayers <d.ayers@inode.at>
1814 * exception.c: Include tsystem.h for unwind.h.
1816 2005-05-09 Mike Stump <mrs@apple.com>
1818 * configure: Regenerate.
1820 2005-04-12 Mike Stump <mrs@apple.com>
1822 * configure: Regenerate.
1824 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1826 * Makefile.in: Set gcc_version here.
1827 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1828 in definition of toolexeclibdir so that $(gcc_version) is expanded
1830 * aclocal.m4, configure: Regenerate.
1832 2005-03-03 David Ayers <d.ayers@inode.at>
1834 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1835 version reference. Correct typo.
1837 2005-03-02 David Ayers <d.ayers@inode.at>
1840 * Makefile.in (OBJS): Add hash_compat.lo.
1841 (OBJS_GC): Add hash_compat_gc.lo.
1842 (hash_compat_gc.lo): New target and rule.
1843 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1844 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1845 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1846 with objc_. Add deprecated non prefixed inlined versions.
1847 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1849 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1850 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1852 * hash_compat.c: New file.
1853 * archive.c: Update callers.
1855 * selector.c: Likewise.
1856 * libobjc.def: Add objc_ versions of hash functions.
1858 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1861 * Makefile.in (GTHREAD_FLAGS): Remove.
1862 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1863 * thr-objc.c: Include config.h.
1864 * configure.ac: Instead of looking at GCC's makefile, figure out if
1865 GTHREAD_FLAGS should be defined by looking at the `thread model'
1867 * configure: Regenerate.
1868 * config.h.in: Regenerate.
1870 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1873 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1874 (Determine CFLAGS for gthread): Use $host_subdir.
1875 * configure: Regenerate.
1876 * Makefile.in (host_subdir): New.
1879 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1882 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1884 Include limits.h and stdlib.h.
1885 Define BITS_PER_WORD.
1887 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1889 * selector.c (__objc_init_selector_tables): Add missing void to
1892 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1894 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1895 * configure, aclocal.m4: Regenerate.
1897 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1899 * configure: Regenerate for libtool change.
1901 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1903 * configure: Regenerate for libtool reversion.
1905 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1907 * configure: Regenerate for libtool change.
1909 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1911 * aclocal.m4, config.h.in: Regenerate.
1913 2004-10-08 Mike Stump <mrs@apple.com>
1914 Andrew Pinski <pinskia@physics.uc.edu>
1916 * aclocal.m4: Rename to ...
1917 * acinclude.m4: here and also use m4_include instead of sinclude.
1918 * aclocal.m4: Regenerate.
1919 * configure: Regenerate.
1920 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1921 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1923 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1925 * archive.c: Fix all the warnings about passing unsigned char*
1926 to char* and the other way too.
1928 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1931 * exception.c: Include config.h
1932 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1934 * configure.ac: Find out what exception handling code we use.
1935 * configure: Regenerate.
1936 * config.h.in: New file, regenerate.
1938 2004-09-16 Andrew Pinski <apinski@apple.com>
1940 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1942 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1944 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1945 ACX_NONCANONICAL_TARGET.
1946 * configure: Regenerate.
1948 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1950 * objc/sarray.h: Hoist include of assert.h near the top of file,
1951 and mark the remainder of the file 'extern "C"'.
1953 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1955 * objc/Object.h: Move includes out of extern "C" blocks.
1956 * objc/encoding.h: Likewise.
1957 * objc/hash.h: Likewise.
1958 * objc/objc-api.h: Likewise.
1959 * objc/runtime.h: Likewise.
1960 * objc/sarray.h: Likewise.
1961 * objc/typedstream.h: Likewise.
1963 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1965 * objc/NXConstStr.h: Update copyright date; bracket with
1966 'extern "C"' for C++ use; make include syntax consistent
1967 by using <...> instead of "..."; hoist <objc/...> includes
1968 above the 'extern "C"' block.
1969 * objc/Object.h: Likewise.
1970 * objc/Protocol.h: Likewise.
1971 * objc/encoding.h: Likewise.
1972 * objc/hash.h: Likewise.
1973 * objc/runtime.h: Likewise.
1974 * objc/sarray.h: Likewise.
1975 * objc/thr.h: Likewise.
1976 * objc/typedstream.h: Likewise.
1977 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1978 (objc_static_instances): For C++ case, do away with
1980 (objc_method): Hoist definition to file scope.
1981 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1982 class_get_instance_method, class_create_instance,
1983 class_get_class_name, class_get_instance_size,
1984 class_get_meta_class, class_get_super_class, class_get_version,
1985 class_is_class, class_is_meta_class, class_set_version,
1986 class_get_gc_object_type, class_ivar_set_gcinvisible,
1987 get_imp): Rename 'class' parameter to '_class'.
1988 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1989 * objc/objc.h: Update copyright date.
1990 (arglist_t): Provide a union tag.
1992 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1994 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1995 but instead use the attribute noreturn.
1997 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1999 * encoding.c: Rename target_flags with a #define to avoid
2000 conflict with a prior declaration.
2002 2004-06-24 Andrew Pinski <apinski@apple.com>
2004 * objc/encoding.h: Wrap the functions with extern "C" for C++
2006 * objc/hash.h: Likewise.
2007 * objc/objc-api.h: Likewise.
2008 * objc/objc-list.h: Likewise.
2009 * objc/runtime.h: Likewise.
2010 * objc/sarray.h: Likewise.
2011 * objc/thr.h: Likewise.
2012 * objc/typedstream.h: Likewise.
2015 2004-06-21 Nick Clifton <nickc@redhat.com>
2017 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2020 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
2022 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2023 (exception_gc.lo): New.
2024 (OBJS_GC): Add exception_gc.lo.
2026 2004-06-17 Richard Henderson <rth@redhat.com>
2028 * exception.c: New file.
2029 * Makefile.in (exception.lo): New.
2032 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2034 * linking.m (_objcInit): New empty function
2037 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2039 * configure.ac: Support --enable-shared=libobjc.
2040 * configure: Regenerate.
2043 * configure.ac: Do not disable shared by default.
2044 * configure: Regenerate.
2046 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2048 * Protocol.m ([-isEqual:]): Small optimizations returning
2049 immediately if the argument is equal to self, and accessing
2050 the argument's name directly if it's a protocol.
2052 2004-06-03 David Ayers <d.ayers@inode.at>
2054 * Protocol.m ([-isEqual:]): Test the class of the argument.
2056 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2058 * configure.ac (includedir): Rename to ...
2060 * Makefile.in: s/includedir/includedirname/.
2063 * configure.ac (includedir): Set to "include"
2065 (libext) Set to empty except for Darwin.
2066 * configure: Regenerate
2067 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2068 s/include/$(includedir)/g.
2070 2004-05-25 Daniel Jacobowitz <drow@false.org>
2072 * Makefile.in: Add .NOEXPORT.
2074 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2076 Merge from the libobjc-branch
2077 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2079 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2081 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2083 * Makefile.in (OBJC_H): Add objc-deps.h.
2085 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2087 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2088 ([-hash], [-isEqual:]): New methods.
2090 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2092 * sarray.c (sarray_free): Add a better comment.
2094 2004-01-27 Adam Fedor <fedor@gnu.org>
2096 * hash.c (hash_add): Cast cachep to int.
2097 * selector.c (__sel_register_typed_name): Cast
2098 soffset_decode to int.
2100 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2102 * selector.c: Rename register_selectors_from_list to
2103 __objc_register_selectors_from_list. Update caller.
2104 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2105 while registering selectors. Use __sel_register_typed_name instead
2106 of sel_register_typed_name. Check for NULL method_name:s.
2107 (pool_alloc_selector): New function.
2108 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2109 selector structures.
2110 * sendmsg.c (class_add_method_list): Use
2111 __objc_register_selectors_from_list.
2112 * objc/runtime.h: Add __objc_register_selectors_from_list.
2114 2004-01-25 Adam Fedor <fedor@gnu.org>
2115 Nicola Pero <n.pero@mi.flashnet.it>
2116 Andrew Pinski <pinskia@physics.uc.edu>
2118 * objc/objc-decls.h: New file.
2119 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2120 (_objc_load_callback): Likewise.
2121 (_objc_object_alloc): Likewise.
2122 (_objc_object_copy): Likewise.
2123 (_objc_object_dispose): Likewise.
2125 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2127 * archive.c: s/__inline__/inline
2128 * sendmsg.c: Likewise.
2130 * encoding.c: Remove FIXME about the warning
2131 about unused variable.
2132 * sendmsg.c: Add a FIXME comment saying that
2133 this should be using libffi.
2135 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2138 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2140 * archive.c (objc_read_class): Initialize class_name.
2141 (objc_read_selector): Initialize selector_name.
2143 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2145 * Makefile.in (toolexecdir): Remove trailing space.
2147 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2150 * configure.ac: De-precious CC so multilibs work.
2151 * configure: Regenerate.
2153 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2155 * configure.ac: Restore toolexecdir.
2156 * Makefile.in: Restore toolexecdir.
2157 * configure: Regenerate.
2159 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2161 * configure.ac: Remove (unused) glibcpp_prefixdir.
2162 * configure: Regenerate.
2164 * configure.in: Rename to configure.ac.
2165 * Makefile.in: Update to match.
2167 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2168 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2169 * configure.in: Remove glibcpp_toolexecdir (unused).
2170 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2171 config.h or stamp-h (unused). Move one comment to the right place.
2172 * configure: Regenerate.
2173 * config.h.in: Remove (unused).
2175 * config.h.in: Regenerate with autoheader.
2177 * Makefile.in: Remove (unused) gcc_version_trigger.
2178 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2179 gcc_version_trigger.
2180 * configure: Regenerate.
2182 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2183 Sort file into sections. Remove dnl where appropriate. Fix
2185 * configure: Regenerate.
2187 * configure.in: Replace old AC_PROG_CC hack with new one.
2188 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2189 are no subdirectory output files, so this is fine). Change prereq
2191 * aclocal.m4: Include ../config/no-executables.m4.
2192 * configure: Regenerate with autoconf 2.59.
2194 * configure.in: Improve comments on gthread_cflags. Improve m4
2195 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2196 * configure: Regenerate.
2198 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2199 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2200 redundant checks for values of RANLIB, AR, INSTALL.
2201 * configure: Regenerate.
2203 * configure.in: Clean up handling of
2204 --enable-version-specific-runtime-libs and related variables;
2205 replace 'if test' with 'case' where reasonable. Fix comments.
2206 Remove useless libstdcxx_interface.
2207 * configure: Regenerate.
2209 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2210 Replace uses of target_alias with target_noncanonical.
2211 * aclocal.m4: Include ../config/acx.m4.
2212 * configure: Regenerate.
2213 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2214 Fix copyright statement.
2216 * configure.in: Hand-inline bulky, confusing macros from
2217 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2218 Update copyright notice. Remove stuff for automake, which isn't
2219 used in this directory. Remove emacs local variables.
2220 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2221 * configure: Regenerate.
2223 2004-03-16 Manfred Hollstein <mh@suse.com>
2225 * Makefile.in, configure.in, configure: Update copyright years.
2227 2004-03-15 Manfred Hollstein <mh@suse.com>
2229 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2230 definition from configure.in.
2231 * configure.in (PACKAGE): Add definition.
2232 (VERSION): Add definition; substitute it in output files.
2233 * configure: Re-generate.
2235 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2237 * objc/hash.h (hash_string, compare_strings):
2238 Add type-casts to make Objective-C++ happy.
2239 * objc/typedstream.h (objc_get_stream_class_version):
2240 Rename parameter from 'class' to 'class_name' to make
2241 Objective-C++ happy.
2243 2004-03-01 Michael Matz <matz@suse.de>
2245 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2247 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2249 * objc/objc-api.h (objc_super): The 'class' field shall
2250 be named 'super_class' #ifdef __cplusplus.
2252 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2255 * encoding.c (rs6000_special_round_type_align): Define.
2257 2004-01-14 Adam Fedor <fedor@gnu.org>
2260 * selector.c (__objc_register_instance_methods_to_class): Free
2261 new_list if not used.
2263 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2266 * sarray.c (sarray_free): Free array->is_copy_of latter.
2268 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2271 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2272 instance_methods if it's NULL.
2273 (descriptionForClassMethod): Likewise for class_methods.
2275 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2277 * Makefile.in (runtime-info.h): Remove -Wp.
2279 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2281 * Makefile.in (CC1OBJ): Remove.
2282 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2284 Use .m extension for temporary file.
2285 Remove assembler temp file.
2287 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2289 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2291 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2293 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2295 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2297 * configure: Regenerate.
2299 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2301 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2302 (libdir)/gcc-lib/ when installing.
2303 * configure: Regenerate.
2305 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2308 * sendmsg.c (get_imp): Fixed rare threading problem.
2309 (__objc_responds_to): Similar fixes.
2310 (objc_msg_lookup): Similar fixes.
2311 (__objc_init_install_dtable): Lock the runtime before checking if the
2314 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2316 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2317 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2318 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2319 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2320 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2321 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2322 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2323 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2324 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2325 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2326 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2328 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2329 Nicola Pero <n.pero@mi.flashnet.it>
2332 * init.c (class_superclass_of_class): New function.
2333 (create_tree_of_subclasses_inherited_from): Use it.
2334 (__objc_tree_insert_class): Likewise.
2335 (class_is_subclass_of_class): Likewise.
2337 2003-04-11 David Chad <davidc@freebsd.org>
2338 Loren J. Rittle <ljrittle@acm.org>
2341 * objc/hash.h (hash_string): Constify correctly.
2342 (compare_ptrs): Use direct compare.
2343 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2344 * objc/sarray.h: Global rename index to indx to avoid shadow.
2346 2003-03-12 Andreas Schwab <schwab@suse.de>
2348 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2349 glibcpp_toolexeclibdir.
2350 * configure: Rebuilt.
2352 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2354 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2356 * configure: Rebuilt.
2358 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2360 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2361 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2362 version_specific_libs is enabled.
2363 * configure: Rebuilt.
2365 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2367 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2368 (install-libs, install-headers): Prepend $(DESTDIR) to
2369 destination paths in all (un)installation commands.
2371 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2373 * thr-objc.c: Include coretypes.h and tm.h.
2375 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2377 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2379 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2381 * configure.in: Remove skip-this-dir support.
2382 * configure: Regenerate.
2384 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2386 * Makefile.in (all): Fix multilib parallel build.
2388 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2390 * sendmsg.c (nil_method): Declare not to take a variable number of
2392 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2393 (objc_msg_lookup_super): The same.
2395 2002-09-10 Jan Hubicka <jh@suse.cz>
2397 * nil_method.c (nil_method): No longer defined with variable
2400 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2402 * objc/encoding.h: Fix formatting.
2403 * objc/hash.h: Likewise.
2404 * objc/objc-api.h: Likewise.
2405 * objc/runtime.h: Likewise.
2406 * objc/thr.h: Likewise.
2407 * archive.c: Likewise.
2408 * class.c: Likewise.
2409 * encoding.c: Likewise.
2414 * nil_method.c: Likewise.
2415 * objects.c: Likewise.
2416 * sarray.c: Likewise.
2417 * selector.c: Likewise.
2418 * sendmsg.c: Likewise.
2419 * thr-mach.c: Likewise.
2422 2002-06-25 DJ Delorie <dj@redhat.com>
2424 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2425 GLIBCPP_TOPREL_CONFIGURE.
2426 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2427 * configure: Regenerate.
2429 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2431 * Object.m (forward, read, write): Fix unused parameter warnings.
2432 * encoding.c: Include <stdlib.h>.
2433 (target_flags): Mark with attribute unused.
2435 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2436 (__objc_generate_gc_type_description): Prototype.
2437 * selector.c (__objc_selector_max_index): Change to unsigned int.
2439 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2441 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2442 we always have a return value: if __objc_msg_forward does not
2443 supply a forwarding implementation, return the default
2444 __builtin_apply based one.
2446 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2448 * Object.m: Fix signed/unsigned warning.
2449 * Protocol.m: Likewise.
2450 * archive.c: Always include stdlib.h.
2451 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2452 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2453 Fix signed/unsigned warning.
2454 (objc_write_type, objc_read_type, objc_write_types,
2455 objc_read_types): Ensure ctype 8-bit safety.
2456 (__objc_no_write, __objc_no_read): Mark unused parameters.
2457 * class.c (class_table_setup): Specify void arg.
2458 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2459 objc_skip_typespec, objc_skip_offset,
2460 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2461 (objc_layout_structure_next_member): Ensure variables are
2463 * gc.c (__objc_generate_gc_type_description,
2464 class_ivar_set_gcinvisible): Mark unused parameters.
2465 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2467 (__objc_init_protocols) Fix signed/unsigned warning.
2468 * nil_method.c (nil_method): Mark unused parameters.
2469 * thr.h (objc_thread_callback): Specify void arg.
2470 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2471 signed/unsigned warning.
2472 (sarray_free): Fix formatting.
2473 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2474 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2476 2002-06-09 Andreas Jaeger <aj@suse.de>
2478 * encoding.c (objc_layout_structure_next_member): Remove unused
2481 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2483 * Makefile.in (SHELL): Set to @SHELL@.
2485 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2487 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2489 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2490 * configure: Regenerate.
2492 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2494 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2495 script entry, and set LD to it when configuring multilibs.
2496 * configure: Rebuilt.
2498 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2500 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2502 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2505 * objc/objc-api.h (struct objc_protocol_list): Change type of
2506 member count from int to size_t.
2508 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2511 * aclocal.m4: Replace with version copied from libstdc++-v3.
2512 * configure.in: Update for changes to aclocal and Makefile.
2513 * configure: Regenerate.
2514 * Makefile.in: Correct install of multilibs and shared libs, use
2515 INSTALL_DATA for include files.
2517 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2519 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2520 categories - when an unclaimed category was found, the loop was
2521 doing two steps forward instead of one, so that in certain cases
2522 it was failing to properly load all the categories. (Reported
2523 with fix by Alexander Malmberg <alexander@malmberg.org>).
2525 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2527 * encoding.c: Add target_flags.
2529 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2531 * objc/objc-api.h (_C_VECTOR): New.
2533 * encoding.c (VECTOR_TYPE): New.
2535 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2537 * class.c: Rewritten the class table to use optimized, lock-free
2538 lookup. This more than doubles the speed of class method
2539 invocations. (class_table_setup), (class_table_insert),
2540 (class_table_replace), (class_table_get_safe),
2541 (class_table_next), (class_table_print),
2542 (class_table_print_histogram): New functions.
2543 (__objc_init_class_tables): Use class_table_setup.
2544 (__objc_add_class_to_hash): Use class_table_get_safe and
2545 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2546 assert the existence of the table; do not lock the runtime; use
2547 class_table_get_safe. (objc_next_class): Use class_table_next.
2548 (__objc_resolve_class_links): Use class_table_next.
2549 (class_pose_as): Use class_table_replace.
2551 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2553 * gc.c: Removed the DEBUG declaration.
2555 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2557 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2558 rather than through objc_thread_id, to save a function call.
2559 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2562 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2564 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2565 to cast an id to a Class, which can not be done. Make the check
2566 by using CLS_ISMETA on the class pointer instead.
2567 (object_is_meta_class): Similar fix.
2569 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2571 * configure.in (AC_EXEEXT): Work around in case it expands to
2572 nothing, as in autoconf 2.50.
2573 * acinclude.m4: Likewise.
2574 * configure: Rebuilt.
2576 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2578 * THREADS: Explain that when we compile libobjc inside GCC, we
2579 always use thr-objc.c as a backend, which uses GCC's thread code.
2581 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2583 * init.c (__objc_send_message_in_list): When setting a new entry
2584 in __objc_load_methods use the method IMP as key, but check to see
2585 if the method is in the hashtable by looking at the IMP also.
2586 Also ... call the method after adding it to the hashtable rather
2587 than before ... thus preventing an obscure possibility of infinite
2588 recursion if a +load method itself loads a subclass.
2590 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2592 * init.c (__objc_send_message_in_list): When setting a new entry
2593 in __objc_load_methods use the method name as key, not the method
2594 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2596 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2598 * objc-features.texi: Move to ../gcc/objc.texi.
2600 * Makefile.in: Don't generate documentation from
2603 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2605 * fdl.texi: New file.
2606 * objc-features.texi: Simplify.
2607 * Makefile.in: Adjust accordingly.
2609 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2611 * objc-features.texi: Use the GFDL.
2613 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2615 * encoding.c (REAL_TYPE): Define.
2617 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2619 * encoding.c (TYPE_MODE): Define.
2621 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2623 * thr.c (objc_thread_add): New function.
2624 (objc_thread_remove): Ditto.
2625 * objc/thr.h: Declare them.
2626 * libobjc.def: Mention them.
2628 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2630 * objc-features.texi: Document the @compatibility_alias compiler
2631 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2633 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2635 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2637 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2639 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2640 we're not interested in the result and they might fail.
2641 * configure: Regenerated.
2643 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2645 * objc-features.texi: Use @email.
2647 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2649 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2652 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2654 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2655 determines the value dynamically.
2657 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2659 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2660 libraries to provide a function that returns the real forwarding
2661 function. This can alleviate problems __builtin_apply() and
2662 friends have on various platforms. (Solution suggested by Helge
2665 * objc/objc-api.h: Define __objc_msg_forward.
2667 * sendmsg.c: Define gen_rtx_REG.
2669 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2671 * thr-rtems.c: New file. Stub to compile.
2673 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2675 * configure: Rebuilt with new libtool.m4.
2677 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2679 * configure.in: Create a config.h file. Check for <sched.h>.
2680 * configure: Regenerate.
2682 * config.h.in: Check for <sched.h>.
2684 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2686 * configure: Regenerate after change to ../libtool.m4.
2688 2000-08-14 Andreas Schwab <schwab@suse.de>
2690 * objc-features.texi (Top): Move @menu at end of node.
2692 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2694 * objc-features.texi: Move @node Top before @menu.
2696 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2698 * objc-features.texi: Documented the new -fconstant-string-class
2701 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2703 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2704 improve the Posix thread support for Objective-C.
2706 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2708 * aclocal.m4: Replace copy of ../libtool.m4 with
2709 sinclude(../libtool.m4).
2711 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2713 * configure.in: Added libtool support; build shared libraries
2714 if --enable-shared was passed on command line.
2715 * Makefile.in: Modified most compilation commands to use libtool.
2716 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2717 libtool distribution.
2719 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2721 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2722 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2725 2000-05-12 H.J. Lu (hjl@gnu.org)
2727 * Makefile.in (GTHREAD_FLAGS): New.
2728 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2729 (OBJC_THREAD_FILE): Changed to thr-objc.
2731 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2733 (OBJC_THREAD_FILE): Removed.
2737 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2739 * objc/hash.h: Include string.h.
2741 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2743 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2745 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2747 * Object.m (strlen): Provide prototype on all 64bit platforms,
2749 * sarray.c (memcpy): Likewise.
2750 * encoding.c (objc_layout_finish_structure): Don't use
2751 ROUND_TYPE_ALIGN on sparc.
2753 * encoding.c (objc_layout_structure_next_member): Do the whole
2754 procedure even for the first member, so that we get correct
2757 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2759 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2762 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2764 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2766 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2768 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2770 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2772 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2773 the compiler when building C code.
2775 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2777 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2778 libdir, libsubdir and tooldir.
2780 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2782 * init.c (__objc_force_linking): Make global.
2784 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2786 * configure.in (AC_EXEEXT): Remove call.
2787 (compiler_name): Explicitly check with no extension and .exe
2789 * configure: Regenerate.
2791 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2793 * Makefile.in (CC1OBJ): Define in terms of CC.
2794 (runtime-info.h): Use.
2796 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2798 * objc-features.texi: Updated the URL to Boehm's GC page.
2800 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2802 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2803 the char as being signed (patch from Daniel Jacobowitz
2806 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2808 * configure.in (AC_PREREQ): Update to 2.13.
2809 (AC_EXEEXT): Call to find possible file extension.
2810 (compiler_name): Use.
2811 * configure: Regenerate.
2813 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2815 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2817 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2819 * configure.in (thread_file): Correct and simplify code to find
2821 * configure: Rebuilt.
2823 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2825 * configure.in (compiler_name): Add check to detect if this
2826 language's compiler has been built.
2827 * configure: Regenerate.
2829 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2831 * configure.in: Use AC_PREREQ(2.12.1).
2833 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2835 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2837 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2839 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2841 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2843 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2845 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2847 * objc-features.texi (Top): Changed the email address.
2848 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2850 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2852 * encoding.c: Redefine get_inner_array_type to get the first entry
2855 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2857 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2858 (objc_get_type_qualifiers): Similarly.
2859 * objc/encoding.h (_C_BYREF): Define.
2862 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2864 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2865 works out on 64-bit systems.
2867 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2869 * Makefile.in (INCLUDES): Make it multilib-friendly.
2871 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2873 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2875 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2876 Jeffrey A Law (law@cygnus.com)
2878 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2879 (FLAGS_TO_PASS): Added.
2880 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2882 * archive.c: Change config.h to tconfig.h.
2884 * configure.in: Find gcc's object directory even for multilibs.
2886 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2888 * configure.in: Escape ^ in grep string.
2889 * configure: Rebuilt.
2891 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2893 * All .h files pushed down into the objc/ subdirectory.
2894 * Makefile.in (copy_headers): Corresponding changes.
2895 * configure.in (AC_INIT): Corresponding changes.
2896 * configure: Rebuilt.
2898 1998-09-30 Ben Elliston <bje@cygnus.com>
2899 Jeff Law <law@cygnus.com>
2901 * Makefile.in: Rewrite.
2903 * configure.in: Likewise.
2905 * configure: Regenerate.
2907 * All .c files. Remove "objc" prefix when including objc header
2908 files. Include tconfig.h, not ../tconfig.h.
2910 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2912 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2913 (get_inner_array_type): Define.
2915 1998-09-21 Ben Elliston <bje@cygnus.com>
2917 * New directory. Moved files from ../gcc/objc.