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