1 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
3 * objc/runtime.h (class_conformsToProtocol,
4 class_copyProtocolList): Updated documentation.
6 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
8 * init.c (create_tree_of_subclasses_inherited_from): Updated
10 (__objc_tree_insert_class): Same.
11 (__objc_send_load_using_method_list): Same.
12 (__objc_send_load): Same.
13 (__objc_exec_class): Same. In particular, do not print the module
14 name since it is no longer used.
15 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
16 tracking +initialize calls.
17 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
18 tracking updates of dispatch tables.
19 (__objc_install_dispatch_table_for_class): Same.
21 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
24 (libobjc_gc$(libsuffix).la): Likewise.
26 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
28 * sendmsg.c (class_addMethod): Return NO if the method already
31 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
33 * init.c (duplicate_classes): New.
34 (__objc_exec_class): Initialize duplicate_classes.
35 (__objc_create_classes_tree): Ignore classes in the
36 duplicate_classes table.
37 (__objc_call_load_callback): Same.
38 (__objc_init_class): If a duplicate class is found, add it to
39 duplicate_classes instead of aborting. Return YES if the class is
40 not a duplicate, and NO if it is.
41 * objc-private/runtime.h (__objc_init_class): Updated prototype.
43 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
45 * objc-private/objc-list.h: Reindented file. No code changes.
46 * objc-private/sarray.h: Same change.
48 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
50 * objc-private/accessors.h: Removed 'extern "C"' guards. This
51 file is never compiled with C++.
52 * objc-private/hash.h: Same change.
53 * objc-private/objc-list.h: Same change.
54 * objc-private/objc-sync.h: Same change.
55 * objc-private/protocols.h: Same change.
56 * objc-private/runtime.h: Same change.
57 * objc-private/sarray.h: Same change.
58 * objc-private/selector.h: Same change.
60 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
63 * class.c (__objc_add_class_to_hash): Return YES if the class was
64 added, and NO if it already existed.
65 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
66 NO, then abort the program with an error message.
67 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
70 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
72 * init.c (_objc_load_callback): Initialize with 0.
73 (__objc_call_callback): Renamed to __objc_call_load_callback.
74 Check _objc_load_callback only once, and if it is not set, return
76 (objc_send_load): Updated call to __objc_call_callback.
78 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
81 * init.c (__objc_send_message_in_list): Renamed to
82 __objc_send_load_using_method_list. Do not take an 'op' argument.
83 Register the 'load' selector if needed.
84 (__objc_send_load): Do not register the 'load' selector. Updated
85 call to __objc_send_message_in_list.
86 (__objc_create_classes_tree): Add the class of any claimed
87 category that was loaded in the module to the list of classes for
88 which we try to execute +load.
90 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
92 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
94 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
95 a pointer using DEBUG_PRINTF.
97 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
100 * selector.c (__sel_register_typed_name): When registering a new
101 selector with the same name as an existing one, reuse the existing
102 name string. Also updated types, casts and comments in the whole
105 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
107 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
108 to be 'struct objc_selector *' and not 'SEL'.
109 * init.c (__objc_exec_class): Call
110 __objc_register_selectors_from_module instead of iterating over
111 each selector and calling __sel_register_typed_name for each.
112 * objc-private/selector.h: Declare
113 __objc_register_selectors_from_module instead of
114 __sel_register_typed_name.
115 * selector.c (__objc_register_selectors_from_module): New.
116 (__sel_register_typed_name): Made static.
118 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
120 * linking.m: Do not include objc/NXConstStr.h.
122 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
124 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
125 * objc-private/common.h (DEBUG_PRINTF): To here.
126 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
128 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
130 * hash.c: Tidied up comments and indentation. No code changes.
132 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
135 * accessors.m (objc_getProperty): If not atomic, do not
136 retain/autorelease the returned value.
138 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
140 * objc-private/runtime.h (__objc_selector_max_index,
141 __objc_init_selector_tables, __objc_register_selectors_from_class,
142 __objc_register_selectors_from_list,
143 __objc_register_selectors_from_description_list): Moved to ...
144 * objc-private/selector.h: ... here.
146 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
148 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
149 (__objc_print_dtable_stats): Removed.
150 (__sel_register_typed_name): Removed.
151 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
153 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
155 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
156 if appropriate, after loading the module.
158 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
160 * sendmsg.c (method_setImplementation): Do not declare.
162 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
164 * objc/message.h: Updated comments.
165 * objc/runtime.h: Updated comments.
167 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
169 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
170 * protocols.c: Updated all calls to objc_lookupClass to call
171 objc_lookUpClass instead.
172 * sendmsg.c (objc_lookupClass): Do not declare.
173 (get_imp): Update call to objc_lookupClass to call
174 objc_lookUpClass instead.
175 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
177 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
179 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
180 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
181 define. Updated comments.
183 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
185 * objc/encoding.h: Updated comments.
186 * objc/runtime.h: Updated comments.
187 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
188 (objc_sizeof_type): Same.
189 (objc_alignof_type): Same.
190 (objc_aligned_size): Same.
191 (objc_promoted_size): Same.
192 (objc_skip_type_qualifiers): Same.
193 (objc_skip_typespec): Same.
194 (objc_skip_offset): Same.
195 (objc_skip_argspec): Same.
196 (objc_get_type_qualifiers): Same.
197 (objc_layout_structure): Same.
198 (objc_layout_structure_next_member): Same.
199 (objc_layout_finish_structure): Same.
200 (objc_layout_structure_get_info): Same.
202 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
204 * init.c: Updated comments.
205 * objc/objc-api.h: Updated comments.
206 * objc/runtime.h (_objc_load_callback): Declare.
208 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
210 * objc/Object.h: Include deprecated/typedstream.h and
211 deprecated/hash.h instead of typedstream.h. Updated comments.
213 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
215 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
216 * objc/deprecated/objc_msg_sendv.h: New.
217 * objc/message.h: Do not define retval_t, apply_t, arglist,
218 arglist_t, objc_msg_sendv, now in
219 objc/deprecated/objc_msg_sendv.h.
220 * objc/objc.h: Do not include message.h; include
221 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
222 * sendmsg.c: Include objc/message.h.
223 * thr.c: Include objc/message.h.
225 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
227 * objc/objc-exception.h: Include objc-decls.h. Mark all
228 functions with objc_EXPORT.
229 * objc/objc-sync.h: Same change.
231 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
233 * Protocol.m: Moved all methods, with the exception of -isEqual:,
234 into the 'Deprecated' category.
235 * objc/Protocol.h: Removed all methods, moved to
236 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
237 * objc/deprecated/Protocol.h: New.
238 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
240 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
242 * init.c: Include objc-private/selector.h. Do not declare
243 __sel_register_typed_name.
244 * objc-private/selector.h (__sel_register_typed_name): Declare.
245 * selector.c: Include objc-private/selector.h.
247 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
249 * class.c: Tidied up comments and indentation. No code changes.
255 * objc-foreach.c: Same.
262 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
264 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
265 instead of objc/objc-api.h.
266 (init_check_module_version): Take a 'struct objc_module *'
267 argument instead of 'Module_t'. Use 'struct objc_module *'
268 instead of 'Module_t'.
269 (__objc_created_classes_tree): Take a 'struct objc_module *'
270 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
272 (__objc_call_callback): Take a 'struct objc_module *' argument
273 instead of 'Module_t'; use 'struct objc_symtab *' instead of
274 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
275 (_objc_load_callback): Take a 'struct objc_category *' argument
276 instead of 'Category *'.
277 (class_superclass_of_class): Use objc_getClass() instead of
279 (create_tree_of_subclasses_inherited_from): Same change (also, use
280 an explicit 'if' instead of '?').
281 (objc_init_statics): Same change.
282 (objc_send_load): Same change.
283 (__objc_init_protocol): same change.
284 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
285 argument instead of 'MethodList_t'. Use 'struct objc_method *'
286 instead of 'Method_t'.
287 (__objc_send_load): Use 'struct objc_method_list *' instead of
288 'MethodList_t'. Use sel_registerName() instead of
290 (__objc_exec_class): Take a 'struct objc_module *' argument
291 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
292 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
293 Use 'struct objc_category *' instead of 'Category_t'.
295 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
297 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
298 Include objc-private/module-abi-8.h and objc-private/selector.h
299 instead of objc/encoding.h.
300 (objc_msg_lookup_super): Use super->super_class instead of
302 (method_get_first_argument, method_get_next_argument): Declare
304 (class_get_instance_method): Declare before using.
305 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
306 (__objc_init_dispatch_tables, __objc_send_initialize): Use
307 sel_registerName() instead of sel_register_name().
308 (__objc_forward): Use sel_getName() instead of sel_get_name().
309 (objc_get_uninstalled_dtable): Use 'void' as argument.
310 * objc-private/selector.h: New.
312 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
314 * objc/message.h (objc_super): When using the modern API, do not
315 define Super and Super_t, and always use 'super_class' for the
317 (objc_msg_lookup_super): Updated prototype to use 'struct
318 objc_super *' instead of 'Super_t'.
319 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
320 'struct objc_super *' instead of 'Super_t'.
322 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
324 * objc/message.h: Update comments, reindented code and moved
325 deprecated types and functions at the end of the file. No code
328 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
330 * ivars.c (class_addIvar): Use the 'size' argument instead of
331 trying to calculate it using objc_sizeof_type().
332 * objc/runtime.h (class_addIvar): Updated comments.
334 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
336 * sendmsg.c: Reindented some code and tidied up comments. No
339 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
341 * objc/Object.h: Moved all the methods, with the exception of
342 -class and -isEqual:, into ...
343 * objc/deprecated/Object.h: here.
344 * Object.m: Moved all the methods, with the exception of -class
345 and -isEqual: into the 'Deprecated' category.
347 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
349 * objects.c (object_copy): Do not #undef as we are no longer
350 including objc/objc-api.h.
351 * selector.c: Include objc/runtime.h and
352 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
353 objc/encoding.h. Updated
354 (__objc_register_selectors_from_class): Use struct
355 objc_method_list * instead of MethodList_t.
356 (__objc_register_selectors_from_list): Use Method instead of
358 (struct objc_method_description_list): Do not define here.
359 (__objc_register_instance_methods_to_class): Use struct
360 objc_method_list * instead of MethodList_t and Method instead of
363 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
365 * selector.c: Reindented some code and tidied up comments. No
368 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
370 * encoding.c (_darwin_rs6000_special_round_type_align): New.
371 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
373 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
375 * sendmsg.c (selector_resolveClassMethod): New.
376 (selector_resolveInstanceMethod): New.
377 (__objc_resolve_class_method): New.
378 (__objc_resolve_instance_method): New.
379 (get_imp): Call __objc_resolve_class_method or
380 __objc_resolve_instance_method at the appropriate time.
381 (objc_msg_lookup): Same.
382 (class_getClassMethod): Same.
383 (class_getInstanceMethod): Same.
384 (__objc_init_dispatch_tables): Initialize
385 selector_resolveClassMethod and selector_resolveInstanceMethod.
386 * objc/runtime.h: Updated documentation of class_getClassMethod,
387 class_getInstanceMethod and class_getMethodImplementation.
389 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
391 * objc-private/module-abi-8.h (struct objc_symtab): Updated
392 description of sel_ref_cnt and refs.
393 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
395 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
399 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
400 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
401 * aclocal.m4: Regenerate.
402 * configure: Regenerate.
404 2010-12-03 Matthias Klose <doko@ubuntu.com>
406 * configure.ac (VERSION): Bump the version to 3:0:0.
407 * configure: Regenerate.
409 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
411 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
412 pass nil as the receiver since we don't know the receiver at this
415 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
417 * ivars.c: Include stdlib.h.
418 * protocols.c: Same change.
420 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
422 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
424 * init.c: Include objc-private/accessors.h.
425 (__objc_exec_class): Call __objc_accessors_init.
426 * objc-private/accessors.h: New.
428 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
430 * objc/message.h: Moved initial includes outside of extern "C".
431 * objc/runtime.h: Add extern "C" for Objective-C++.
433 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
435 * init.c (objc_send_load): Do not wait for NXConstantString to be
436 registered before executing +load. There is no point if
437 -fconstant-string-class=xxx is used when compiling all modules,
438 as is the case for almost all users.
439 * linking.m (__objc_linking): Do not try to forcefully link in
442 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
444 * objc/runtime.h: Updated comments.
445 (class_addMethod): New.
446 (class_addIvar): New.
447 (class_replaceMethod): New.
448 (objc_allocateClassPair): New.
449 (objc_registerClassPair): New.
450 (objc_disposeClassPair): New.
451 * class.c (objc_allocateClassPair): New.
452 (objc_registerClassPair): New.
453 (objc_disposeClassPair): New.
454 (class_getSuperclass): Return Nil if a class is in construction.
455 * init.c (__objc_exec_class): Call __objc_init_class.
456 (__objc_init_class): New.
457 * ivars.c (class_copyIvarList): Return NULL if class is in
458 construction. Do not lock the runtime mutex.
459 (class_getInstanceVariable): Return NULL if class is in
460 construction. Do not lock the runtime mutex.
461 (class_addIvar): New.
462 * sendmsg.c (class_addMethod): New.
463 (class_replaceMethod): New.
464 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
465 (_CLS_IN_CONSTRUCTION): New.
466 (CLS_IS_IN_CONSTRUCTION): New.
467 (CLS_SET_IN_CONSTRUCTION): New.
468 (CLS_SET_NOT_IN_CONSTRUCTION): New.
469 * objc-private/runtime.h (__objc_init_class): New.
471 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
473 * class.c (class_getSuperclass): Call __objc_resolve_class_links
474 if the class is not resolved yet.
475 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
477 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
479 * objc/runtime.h (class_getIvarLayout): New.
480 (class_getWeakIvarLayout): New.
481 (class_setIvarLayout): New.
482 (class_setWeakIvarLayout): New.
483 * ivars.c (class_getIvarLayout): New.
484 (class_getWeakIvarLayout): New.
485 (class_setIvarLayout): New.
486 (class_setWeakIvarLayout): New.
488 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
490 * objc/runtime.h (class_copyPropertyList): New.
491 (class_getProperty): New.
492 (property_getAttributes): New.
493 (property_getName): New.
494 * ivars.c (class_copyPropertyList): New.
495 (class_getProperty): New.
496 (property_getAttributes): New.
497 (property_getName): New.
499 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
501 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
502 * class.c (__objc_update_classes_with_methods): New.
503 (objc_getClassList): Do not lock the class lock.
504 * methods.c (method_exchangeImplementations): New.
505 (method_setImplementation): New.
506 * objc/runtime.h (method_setImplementation): New.
507 (method_exchangeImplementations): New.
509 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
511 * Protocol.m: Include objc/runtime.h and
512 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
513 repeat Protocol's instance variables.
514 (struct objc_method_description_list): Do not define here.
515 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
516 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
517 selectors directly instead of getting names and then using strcmp.
518 ([descriptionForClassMethod:]): Same change.
519 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
520 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
521 to compare selectors directly instead of getting names and then
523 * objc/Protocol.h: Updated comments.
525 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
527 * init.c (__objc_init_protocol): New function which fixes up a
528 protocol's class pointer, registers it with the runtime, register
529 all protocol selectors and registers associated protocols too.
530 (objc_init_statics): Detect if we are initializing protocols, and
531 if so, use __objc_init_protocol instead of only fixing up the
533 (__objc_init_protocls): Use __objc_init_protocol.
534 * objc-private/module-abi-8.h: Updated comments.
535 * objc-private/runtime.h
536 (__objc_register_selectors_from_description_list): New.
537 * selector.c (__objc_register_selectors_from_description_list):
538 New. (struct objc_method_description_list): Declare.
539 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
540 when accessing the name of a method, which is now correctly a SEL.
541 ([-descriptionForClassMethod:]): Same change.
542 * protocols.c (protocol_getMethodDescription): Same change.
543 * objc/runtime.h: Updated comments.
544 (sel_registerTypedName): Fixed typo in function name.
546 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
549 * init.c (objc_init_statics): Do not skip the initialization of a
550 statics list if the first object has already been initialized; in
551 the case of Protocols, while the first one may have been
552 initialized, some others may not have been initialized yet.
554 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
556 * Makefile.in (OBJC_DEPRECATED_H): Added
557 objc_get_uninstalled_dtable, objc_object_alloc.h and
558 struct_objc_static_instances.h.
560 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
562 * encoding.c (method_copyReturnType): New.
563 (method_copyArgumentType): New.
564 (method_getReturnType): New.
565 (method_getArgumentType): New.
566 * methods.c (method_getDescription): New.
567 * objc/runtime.h (method_copyReturnType): New.
568 (method_copyArgumentType): New.
569 (method_getReturnType): New.
570 (method_getArgumentType): New.
571 (method_getDescription): New.
573 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
575 * encoding.c: Tidied up comments.
576 (objc_skip_variable_name): New static inline function.
577 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
578 the same code over and over.
579 (objc_alignof_type): Same.
580 (objc_aligned_size): Same.
581 (objc_promoted_size): Same.
582 (objc_skip_typespec): Same.
583 (objc_layout_structure_next_member): Same.
584 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
585 historical bug where objc_skip_offset would skip one byte even if
586 there is no offset: check that the first offset digit is actually
587 a digit before skipping it.
588 (objc_skip_type_qualifiers): Mark as inline.
589 (objc_skip_typespec): Mark as inline.
591 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
593 * Makefile.in (C_SOURCE_FILES): Added methods.c.
594 * encoding.c (method_getNumberOfArguments): New.
595 (method_get_number_of_arguments): Call
596 method_getNumberOfArguments.
597 * ivars.c (ivar_getName): Check for NULL variable argument.
598 (ivar_getOffset): Check for NULL variable argument.
599 (ivar_getTypeEncoding): Check for NULL variable argument.
600 (class_copyIvarList): New.
602 * protocols.c (class_copyProtocolList): Check for Nil class_
604 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
605 'struct objc_method_list *' instead of MethodList_t.
606 (class_getMethodImplementation): New.
607 (class_respondsToSelector): New.
608 (class_getInstanceMethod): New.
609 (class_getClassMethod): New.
610 * objc/runtime.h: Updated comments.
611 (class_copyIvarList): New.
612 (class_getInstanceMethod): New.
613 (class_getClassMethod): New.
614 (class_getMethodImplementation): New.
615 (class_respondsToSelector): New.
616 (method_getName): New.
617 (method_getImplementation): New.
618 (method_getTypeEncoding): New.
619 (class_copyMethodList): New.
620 (method_getNumberOfArguments): New.
622 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
624 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
625 instead of objc/objc-api.h.
626 (objc_get_unknown_class_handler): Do not define.
627 (class_isMetaClass): New.
628 (class_getSuperclass): New.
629 (class_getVersion): New.
630 (class_setVersion): New.
631 (class_getInstanceSize): New.
632 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
633 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
634 objc_get_super_class.
635 (get_ttype_entry): Use objc_getRequiredClass instead of
637 * ivars.c (class_getClassVariable): New.
638 * objects.c: Include objc/runtime.h, objc/thr.h and
639 objc-private/module-abi-8.h instead of objc/objc-api.h
640 * objc/runtime.h (class_getClassVariable): New.
641 (class_isMetaClass): New.
642 (class_getSuperclass): New.
643 (class_getVersion): New.
644 (class_setVersion): New.
645 (class_getInstanceSize): New.
646 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
649 (__CLS_ISINFO): Same.
650 (__CLS_SETINFO): Same.
653 (CLS_ISRESOLV): Same.
654 (CLS_SETRESOLV): Same.
655 (CLS_ISINITIALIZED): Same.
656 (CLS_SETINITIALIZED): Same.
657 (CLS_GETNUMBER): Same.
658 (CLS_SETNUMBER): Same.
660 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
662 * archive.c: Do not include objc/objc.h.
663 * class.c: Do not include objc/objc.h.
664 * encoding.c: Include objc/runtime.h, ctype.h and
665 objc-private/module-abi-8.h instead of objc/objc-api.h and
667 * error.c: Do not include objc/objc.h.
668 * gc.c: Include tconfig.h and objc/encoding.h only if
670 * hash.c: Include objc/runtime.h and objc/thr.h instead of
671 objc/objc-api.h. Do not include objc/objc.h.
672 * init.c: Do not include objc/objc.h.
673 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
674 objc/thr.h instead of objc/objc-api.h. Do not include
676 * linking.m: Tidied comment.
677 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
678 Do not include objc/objc.h.
679 * objects.c: Do not include objc/objc.h.
680 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
681 * protocols.c: Do not include objc/objc.h.
682 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
683 not include objc/objc.h.
684 * selector.c: Do not include objc/objc.h.
685 * sendmsg.c: Do not include objc/objc.h.
686 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
687 Do not include objc/objc.h.
688 * objc/objc-decls.h: Reindented code.
689 * objc/runtime.h Include objc-decls.h. Updated comments.
691 (objc_atomic_malloc): New.
695 * objc-private/runtime.h: Updated comments.
697 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
699 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
700 * objc-private/protocols.h: New.
702 * init.c: Include objc-private/protocols.h.
703 (__objc_exec_class): Call __objc_protocols_init on startup.
704 (__objc_init_protocols): Call __objc_protocols_add_protocol.
705 * objc-private/runtime.h: Use (struct objc_method_list *) instead
706 of MethodList_t, and (struct objc_method *) instead of Method_t.
707 * objc/deprecated/struct_objc_class.h: Define
708 __objc_STRUCT_OBJC_CLASS_defined.
709 * objc-private/module-abi-8.h (struct
710 objc_method_description_list): New.
711 (struct objc_class): Only define if
712 __objc_STRUCT_OBJC_CLASS_defined is undefined.
713 * objc/runtime.h (class_getName): New.
714 (objc_getProtocol): New.
715 (objc_copyProtocolList): New.
716 (class_addProtocol): New.
717 (class_conformsToProtocol): New.
718 (class_copyProtocolList): New.
719 (protocol_conformsToProtocol): New.
720 (protocol_isEqual): New.
721 (protocol_getName): New.
722 (protocol_getMethodDescription): New.
723 (protocol_copyMethodDescriptionList): New.
724 (protocol_getProperty): New.
725 (protocol_copyPropertyList): New.
726 (protocol_copyProtocolList): New.
727 * class.c (class_getName): New.
728 * selector.c (sel_isEqual): New.
730 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
732 * selector.c (sel_getName): Return "<null selector>" for a NULL
734 (sel_get_name): Return 0 for a NULL argument.
735 * objc/runtime.h (sel_getName): Updated documentation.
737 * objc-private/hash.h (class_hash_table): Unused declaration
739 (module_hash_table): Same.
740 * objc/deprecated/hash.h: Same changes.
742 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
744 * class.c (objc_getClassList): New.
745 (objc_getRequiredClass): New.
746 (objc_getMetaClass): New.
747 (objc_lookupClass): New.
748 (objc_getClass): New.
749 (__objc_get_unknown_class_handler): New.
750 (objc_setGetUnknownClassHandler): New.
751 (objc_get_class): Use __objc_get_unknown_class_handler.
752 (objc_lookup_class): Call objc_getClass.
753 * objc/objc-api.h: Updated comment and copyright notice.
754 * objc/runtime.h: Updated comments.
755 (objc_getClass): New.
756 (objc_lookupClass): New.
757 (objc_getMetaClass): New.
758 (objc_getRequiredClass): New.
759 (objc_getClassList): New.
760 (objc_setGetUnknownClassHandler): New.
761 (objc_get_unknown_class_handler): New.
762 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
763 instead of __objc_runtime_INCLUDE_GNU as include guard.
764 * objc-private/error.h (_objc_abort): Mark as noreturn.
766 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
768 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
770 * objc/objc.h: Updated comments.
771 * objc/runtime.h (object_getClass): New.
772 (object_getClassName): New.
773 (object_setClass): New.
774 (class_getInstanceVariable): New.
775 (object_getIndexedIvars): New.
776 (object_getInstanceVariable): New.
777 (object_setInstanceVariable): New.
778 (object_getIvar): New.
779 (object_setIvar): New.
781 (ivar_getOffset): New.
782 (ivar_getTypeEncoding): New.
783 * objc-private/module-abi-8.h (struct objc_class): Added.
784 * objects.c (object_getClassName): New.
785 (object_setClass): New.
787 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
789 * objc/objc.h: Updated comments.
790 * objc/objc-api.h: (object_copy): Added one argument; use a
791 #define to maintain backwards-compatibility. Moved
792 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
793 objc_get_uninstalled_dtable into
794 objc/deprecated/objc_get_uninstalled_dtable.h and
795 objc/deprecated/objc_object_alloc.h. Include these files.
796 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
797 * objc/deprecated/objc_object_alloc.h: New.
798 * objc/runtime.h (set_getName): New.
801 (sel_registerName): New.
802 (sel_registerTypedName): New.
804 (class_createInstance): New.
806 (object_dispose): New.
807 * objects.c: Do not include tconfig.h. Include gc_typed.h if
808 building the garbage collection version.
809 (__objc_object_alloc): Removed.
810 (__objc_object_copy): Removed.
811 (__objc_object_dispose): Removed.
812 (class_createInstance): New from code in class_create_instance.
813 Cast second argument of GC_malloc_explicitly_typed. Use
814 objc_calloc. Do not call _objc_object_alloc.
815 (class_create_instance): Call class_createInstance.
816 (object_copy): Added extraBytes argument. Do not call
818 (object_dispose): Do not call _objc_object_dispose.
819 * memory.c (objc_free): When using garbage collection, mark the
821 * selector.c (sel_getName): New.
822 (sel_get_name): Call sel_getName.
824 (sel_get_type): Call sel_getType.
825 (sel_registerName): New.
826 (sel_register_name): Call sel_registerName.
827 (sel_registerTypedName): New.
828 (sel_register_typed_name): Call sel_registerTypedName.
830 (sel_get_uid): Call sel_getUid.
832 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
834 * objc/objc-api.h: Define Method, Method_t, Category and
835 Category_t. Prevent including this file at the same time as
836 objc/runtime.h. Updated comments.
837 * objc/deprecated/struct_objc_method.h: Do not define Method,
839 * objc/deprecated/struct_objc_category.h: Do not define Category,
841 * objc-private/module-abi-8.h: New file containing a copy of all
842 the structure definitions. Not used yet.
843 * objc/encoding.h (objc_aligned_size): Removed duplicate
844 declaration. Updated comments.
845 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
846 Category, struct objc_method_description, _C_ID and similar,
847 _C_CONST and similar and _F_CONST and similar. Added
848 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
849 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
850 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
851 struct objc_struct_layout, objc_layout_structure,
852 objc_layout_structure_next_member, objc_layout_finish_structure,
853 objc_layout_structure_get_info. Prevent including this file at
854 the same time as objc/objc-api.h.
856 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
858 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
859 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
860 struct_objc_method_list.h, struct_objc_module.h,
861 struct_objc_protocol_list.h, struct_objc_symtab.h.
862 * objc/deprecated/struct_objc_category.h: New.
863 * objc/deprecated/struct_objc_ivar.h: New.
864 * objc/deprecated/struct_objc_ivar_list.h: New.
865 * objc/deprecated/struct_objc_method.h: New.
866 * objc/deprecated/struct_objc_method_list.h: New.
867 * objc/deprecated/struct_objc_module.h: New.
868 * objc/deprecated/struct_objc_protocol_list.h: New.
869 * objc/deprecated/struct_objc_symtab.h: New.
870 * objc/deprecated/struct_objc_static_instances.h: New.
871 * objc/objc-api.h: Definitions of deprecated structures moved into
872 the above header fragment files in objc/deprecated/. Include the
873 files instead of definition the structures here. Updated
875 * objc/runtime.h: Updated comments. Do not include objc-api.h.
876 (objc_set_enumeration_mutation_handler): Renamed to
877 objc_setEnumerationMutationHandler.
878 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
879 to objc_setEnumerationMutationHandler.
880 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
881 objc_setExceptionMatcher.
882 (objc_set_uncaught_exception_handler): Renamed to
883 objc_setUncaughtExceptionHandler.
884 * exception.c: Same changes.
886 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
888 * objc-sync.c: Include objc-private/common.h.
890 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
892 * objc-foreach.c: Include objc-private/common.h.
893 * objc/deprecated/METHOD_NULL.h: New file.
894 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
895 defining METHOD_NULL here.
896 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
897 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
899 ([-respondsTo:]): Same change.
900 * objc/objc-api.h (method_get_imp): Converted it into a normal
901 function so that we can hide the internals of struct objc_method.
902 * sendmsg.c (method_get_imp): Implemented.
904 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
906 * objc/objc-api.h (struct objc_super, Super, Super_t,
907 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
908 objc_msg_forward2): Declarations moved to objc/message.h. Include
910 * objc/message.h: Added such declarations; updated comments.
912 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
914 Implemented fast enumeration for Objective-C.
915 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
916 (OBJC_H): Added runtime.h
917 * objc-foreach.c: New file.
918 * objc/runtime.h: New file.
920 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
922 * objc/deprecated/struct_objc_class.h: Add padding
923 to avoid warning with -Wpadded.
925 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
927 * encoding.c (objc_sizeof_type): Added support for vector type and
928 for double long types.
929 (objc_alignof_type): Same change.
930 (objc_skip_typespec): Same change.
931 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
932 instead of '!' since '!' is already used for _C_VECTOR.
933 * objc/objc-api.h (_C_LNG_DBL): Added.
935 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
937 * libobjc_entry.c: File removed.
939 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
941 * sendmsg.c (objc_msg_lookup): Remove inline.
942 (objc_get_uninstalled_dtable): Likewise.
943 * encoding.c (objc_skip_type_qualifiers): Likewise.
944 (objc_skip_offset): Likewise.
945 * archive.c (__objc_write_object): Likewise
946 (__objc_write_class):
947 (__objc_write_selector):
949 (objc_read_unsigned_char):
951 (objc_read_unsigned_short):
954 (__objc_read_nbyte_uint):
955 (objc_read_unsigned_int):
956 (objc_read_unsigned_long):
957 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
958 (objc_EXPORT): Likewise.
959 * objc/message.h (objc-decls.h): Add include.
960 * objc/objc-api.h: Mark API by objc_EXPORT.
961 * libobjc.def (__objc_responds_to): Removed.
963 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
965 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
967 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
968 objc/sarray.h replaced with a placeholder including the file from
969 the deprecated/ directory.
970 * objc-private/sarray.h: New file (private copy of sarray.h).
971 * hash.c: Include <assert.h> instead of "assert.h"
972 * sarray.c: Include <assert.h> instead of "assert.h". Include
973 objc-private/sarray.h instead of objc/sarray.h.
974 * selector.c: Include objc-private/sarray.h instead of
976 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
977 instead of objc/sarray.h.
978 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
980 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
982 * objc-private/objc-list.h (list_remove_elem): Unused function
983 removed. (list_nth): Unused function removed. (list_find):
984 Unused function removed. (list_lenght): Unused function removed.
986 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
988 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
989 replaced with a placeholder including the file from the
990 deprecated/ directory.
991 * objc/objc-api.h: Updated includes.
992 * objc/typedstream.h: Updated includes.
993 * objc-private/hash.h: New file (private copy of hash.h).
994 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
995 objc/objc-list.h replaced with a placeholder including the file
996 from the deprecated/ directory.
997 * objc-private/objc-list.h: New file (private copy of objc-list.h).
998 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
999 instead of objc/hash.h and objc/objc-list.h.
1000 * selector.c: Same change.
1001 * class.c: Added include <string.h>, which used to be implicitly included
1002 when hash.h was included.
1003 * exception.c: Same change.
1004 * objects.c: Same change.
1005 * sarray.c: Same change.
1006 * sendmsg.c: Same change.
1007 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1009 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1011 Implemented objc_sync_enter() and objc_sync_exit(), which are
1012 required by @synchronized() to work.
1013 * objc-sync.c: New file.
1014 * objc/objc-sync.h: New file.
1015 * objc-private/objc-sync.h: New file.
1016 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1017 Objective-C runtime startup.
1018 * Makefile.in: Added objc-sync.c and objc-sync.h.
1019 * configure.ac: Added GCC_CHECK_TLS.
1020 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1021 * configure: Regenerated.
1022 * config.h.in: Regenerated.
1024 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1026 * Makefile.in (%_gc.lo): New pattern rules to build the
1027 garbage-collected version of the library. Removed rules for
1028 specific files that are no longer needed. Standardized all rules.
1029 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1030 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1032 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1034 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1036 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1037 with Garbage Colletion.
1039 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1041 * memory.c: Do not include objc-private/runtime.h.
1043 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1045 * objc/deprecated/objc_malloc.h: New file.
1046 * objc/deprecated/objc_valloc.h: New file.
1047 * objc/objc-api.h: Include the files instead of defining
1048 objc_valloc, _objc_malloc() and similar.
1049 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1051 * memory.c: Removed the extra layer of indirection of _objc_malloc
1053 (objc_calloc): Use GC_malloc in the garbage-collected
1054 implementation as GC_malloc returns memory that is already freed.
1055 (objc_valloc): Deprecated.
1057 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1059 * objc/deprecated/objc_error.h: New file.
1060 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1061 defining objc_error and related.
1062 * error.c: New file. Added _objc_abort function which replaces
1063 objc_error. No change in functionality as they both print an
1065 * misc.c: File removed. Code moved into memory.c and error.c.
1066 * memory.c: New file.
1067 * objc-private/error.h: New file.
1068 * archive.c: Include objc-private/error.h and use _objc_abort
1069 instead of objc_error everywhere.
1070 * class.c: Same change.
1071 * encoding.c: Same change.
1072 * init.c: Same change, and simplified init_check_module_version.
1073 * memory.c: Same change.
1074 * sendmsg.c: Same change.
1075 * thr.c: Same change.
1076 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1077 (OBJ_H): Reordered list.
1078 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1079 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1080 (misc_gc.lo): Rule removed.
1081 (error_gc.lo): Rule added.
1082 (memory_gc.lo): Rule added.
1084 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1086 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1087 to check the API version. Added some comments.
1089 * objc-private/common.h: New file.
1090 * NXConstStr.m: Include objc-private/common.h.
1091 * Object.m: Same change.
1092 * Protocol.m: Same change.
1093 * archive.c: Same change.
1094 * class.c: Same change.
1095 * encoding.c: Same change.
1096 * exception.c: Same change.
1097 * gc.c: Same change.
1098 * hash.c: Same change.
1099 * init.c: Same change.
1100 * libobjc_entry.c: Same change.
1101 * linking.m: Same change.
1102 * misc.c: Same change (and added a comment).
1103 * nil_method.c: Same change.
1104 * objects.c: Same change.
1105 * sarray.c: Same change.
1106 * selector.c: Same change.
1107 * sendmsg.c: Same change.
1108 * thr.c: Same change.
1110 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1112 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1114 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1116 * archive.c: Removed not needed includes.
1117 * class.c: Same change.
1118 * hash.c: Same change.
1119 * misc.c: Same change.
1120 * nil_method.c: Same change.
1121 * objects.c: Same change.
1122 * sarray.c: Same change.
1123 * sendmsg.c: Same change.
1124 * thr.c: Same change.
1126 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1128 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1129 all the objc/*.h files.
1130 * objc-private/runtime.h: New file.
1131 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1132 files) instead of objc/runtime.h.
1133 * class.c: Same change.
1134 * hash.c: Same change.
1135 * init.c: Same change.
1136 * misc.c: Same change.
1137 * nil_method.c: Same change.
1138 * objects.c: Same change.
1139 * sarray.c: Same change.
1140 * selector.c: Same change.
1141 * sendmsg.c: Same change.
1142 * thr.c: Same change.
1144 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1146 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1147 'struct objc_selector' and 'sel_eq' moved here.
1148 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1149 'struct objc_procotol' moved here.
1150 * objc/deprecated/struct_objc_class.h: New file. Definition of
1151 'struct objc_class' moved here.
1152 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1154 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1155 * objc/message.h: New file. Definitions for relval_t, apply_t,
1156 arglist, arglist_t and objc_msg_lookup were moved here.
1157 * objc/objc.h: Include the above files instead of defining the
1158 corresponding structs, types and functions here. Added new opaque
1159 definitions for SEL and Class. Use Class and not 'struct
1160 objc_class *' in the definition of 'struct objc_object'.
1161 Commented all types defined in the file. Removed special
1162 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1164 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1165 objc_unexpected_exception.h.
1166 * objc/objc-api.h: Updated include of
1167 objc-unexpetected-exception.h
1168 * objc/objc-exception.h: Updated comments.
1169 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1170 files. Reindented list of files.
1172 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1174 * objc/objc-api.h (objc_trace): Unused variable removed.
1176 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1178 * objc/deprecated: New directory.
1179 * objc/deprecated/README: New file.
1180 * objc/README: New file.
1181 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1182 objc/typedstream.h replaced with a placeholder including the file
1183 from the deprecated/ directory.
1184 * objc/deprecated/objc-unexpected-exception.h: New file with the
1185 definition of _objc_unexpected_exception.
1186 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1187 instead of defining _objc_unexpected_exception.
1188 * objc/deprecated/Object.h: New file with the deprecated Object
1189 methods in a 'Deprecated' category.
1190 * objc/Object.h Include deprecated/Object.h instead of defining
1191 the deprecated methods.
1192 * Object.m: Moved deprecated methods into 'Deprecated' category.
1193 * objc-private: New directory.
1194 * objc-private/README: New file.
1195 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1196 (install-headers): Create installation directory for
1197 OBJC_DEPRECATED_H headers, and install them.
1199 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1201 * objc/objc-exception.h: Fixed include of objc.h.
1203 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1205 * objc/objc-exception.h: New file.
1206 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1207 (objc_set_exception_matcher): Implemented.
1208 (objc_exception_throw): Use the uncaught exception handler if set.
1209 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1211 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1212 up. Removed segmentation fault when value is 'nil'.
1213 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1215 * Makefile.in (exception.lo, exception_gc.lo): Use
1216 -Wno-deprecated-declarations when compiling.
1217 (OBJC_H): Added objc-exception.h
1219 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1221 * objc/typedstream.h: Deprecate all functions in the file. This
1223 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1224 [-awake]): Documented that these methods are deprecated. Added a
1225 brief description of the Object class and its relationship to the
1227 * Makefile.in: Compile archive.c and Object.m with
1228 -Wno-deprecated-declarations.
1230 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1232 Removed obsolete intermediate threading layer.
1233 * thr.c: Use __gthread_objc_xxx functions directly instead of
1234 __objc_thread_xxx ones.
1235 * objc/thr.h: Removed prototypes of no longer existing
1236 __objc_thread_xxx functions.
1237 * Makefile.in: Removed thr-objc.lo.
1238 * thr-dce.c: File removed.
1239 * thr-decosf1.c: File removed.
1240 * thr-irix.c: File removed.
1241 * thr-mach.c: File removed.
1242 * thr-objc.c: File removed.
1243 * thr-os2.c: File removed.
1244 * thr-posix.c: File removed.
1245 * thr-pthreads.c: File removed.
1246 * thr-rtems.c: File removed.
1247 * thr-single.c: File removed.
1248 * thr-solaris.c: File removed.
1249 * thr-vxworks.c: File removed.
1250 * thr-win32.c: File removed.
1251 * README.threads: File removed.
1252 * THREADS.MACH: File removed.
1255 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1257 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1259 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1261 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1262 Add a comment as to why, update FIXME comments.
1264 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1266 * makefile.dos: Obsolete file removed.
1268 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1270 * aclocal.m4: Regenerate.
1272 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1275 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1276 Cygwin and MinGW hosts.
1277 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1278 (libobjc.dll): Likewise.
1279 * configure: Regenerate.
1281 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1283 * configure: Regenerate.
1285 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1287 * sarray.c (sarray_free): Use old_buckets variable.
1288 * encoding.c (objc_layout_structure_next_member): Remove unused
1289 bfld_type_size variable.
1291 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1293 * configure.ac (AC_PREREQ): Bump to 2.64.
1295 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1297 * aclocal.m4: Regenerate.
1298 * configure: Regenerate.
1299 * config.h.in: Regenerate.
1301 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1303 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1305 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1307 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1309 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1311 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1313 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1315 2009-04-09 Nick Clifton <nickc@redhat.com>
1317 * sendmsg.c: Change copyright header to refer to version 3 of
1318 the GNU General Public License with version 3.1 of the GCC
1319 Runtime Library Exception and to point readers at the COPYING3
1320 and COPYING3.RUNTIME files and the FSF's license web page.
1321 * NXConstStr.m: Likewise.
1322 * Object.m: Likewise.
1323 * Protocol.m: Likewise.
1324 * archive.c: Likewise.
1325 * class.c: Likewise.
1326 * encoding.c: Likewise.
1327 * exception.c: Likewise.
1331 * libobjc_entry.c: Likewise.
1332 * linking.m: Likewise.
1334 * nil_method.c: Likewise.
1335 * objc/NXConstStr.h: Likewise.
1336 * objc/Object.h: Likewise.
1337 * objc/Protocol.h: Likewise.
1338 * objc/encoding.h: Likewise.
1339 * objc/hash.h: Likewise.
1340 * objc/objc-api.h: Likewise.
1341 * objc/objc-decls.h: Likewise.
1342 * objc/objc-list.h: Likewise.
1343 * objc/objc.h: Likewise.
1344 * objc/runtime.h: Likewise.
1345 * objc/sarray.h: Likewise.
1346 * objc/thr.h: Likewise.
1347 * objc/typedstream.h: Likewise.
1348 * objects.c: Likewise.
1349 * sarray.c: Likewise.
1350 * selector.c: Likewise.
1351 * thr-dce.c: Likewise.
1352 * thr-decosf1.c: Likewise.
1353 * thr-irix.c: Likewise.
1354 * thr-mach.c: Likewise.
1355 * thr-objc.c: Likewise.
1356 * thr-os2.c: Likewise.
1357 * thr-posix.c: Likewise.
1358 * thr-pthreads.c: Likewise.
1359 * thr-rtems.c: Likewise.
1360 * thr-single.c: Likewise.
1361 * thr-solaris.c: Likewise.
1362 * thr-vxworks.c: Likewise.
1363 * thr-win32.c: Likewise.
1365 * libobjc.def: Change copyright header to refer to version 3 of
1366 the GNU General Public License and to point readers at the COPYING3
1367 file and the FSF's license web page.
1368 * makefile.dos: Likewise.
1370 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1372 * Makefile.in: Change copyright header to refer to version
1373 3 of the GNU General Public License and to point readers at the
1374 COPYING3 file and the FSF's license web page.
1375 * configure.ac: Likewise.
1377 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1378 David Ayers <ayers@fsfe.org>
1381 * objc/objc-api.h (_objc_unexpected_exception): Declare
1382 new hook. Update copyright dates.
1383 * exception.c (objc_exception_throw): Use hook. Update
1385 * libobjc.def (_objc_unexpected_exception): Export hook.
1386 Update copyright dates.
1388 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1390 * configure: Regenerate.
1392 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1394 * configure: Regenerate.
1396 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1398 * Object.m (errno): Replaced by errno.h include.
1399 (compare): Cast self to id to prevent warning on comparison.
1400 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1402 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1403 * thr-win32.c (__objc_thread_detach): Remove type warning.
1404 (__objc_thread_id): Likewise.
1405 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1408 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1409 Steve Ellcey <sje@cup.hp.com>
1411 * configure: Regenerate for new libtool.
1412 * config.h.in: Regenerate for new libtool.
1414 2008-07-18 Matthias Klose <doko@ubuntu.com>
1416 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1418 2008-07-18 Matthias Klose <doko@ubuntu.com>
1420 * Makefile.in: Include ../boehm-gc/threads.mk.
1421 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1423 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1425 * Makefile.in (install-info): New stub target.
1427 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1429 * configure: Regenerate.
1431 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1433 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1434 if HAVE_GETIPINFO is not defined.
1436 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1438 * Object.m (compare): Add type id.
1439 * objc/Object.h: Likewise.
1440 * archive.c (objc_read_class): Use size_t to extend version to be
1441 size of pointer scalar width.
1442 * sendmsg.c (rtx): Undefine it before redefinition.
1443 (__objc_print_dtable_stats): Cast arguments to long as intended.
1445 2008-05-30 Julian Brown <julian@codesourcery.com>
1447 * exception.c (__objc_exception_class): Initialise as constant
1448 array for ARM EABI. Change macro to static const for non-ARM EABI.
1449 (ObjcException): Add note about structure layout. Remove landingPad
1450 and handlerSwitchValue for ARM EABI.
1451 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1453 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1454 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1455 ARM EABI unwinding support.
1456 (objc_exception_throw): Use memcpy to initialise exception class.
1458 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1460 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1461 (rs6000_special_round_type_align): Update.
1463 2008-05-09 Julian Brown <julian@codesourcery.com>
1465 * Makefile.in (LTLDFLAGS): New.
1466 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1468 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1471 * aclocal.m4: Regenerate.
1472 * configure: Regenerate.
1474 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1476 * configure: Regenerate.
1478 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1480 * configure.ac: Don't run config-ml.in directly.
1481 (multilib_arg): New.
1482 * configure: Regenerated.
1484 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1487 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1488 of _Unwind_Word for variables which are used in
1489 read_uleb128/read_sleb128.
1490 (PERSONALITY_FUNCTION): Likewise.
1492 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1494 * aclocal.m4: Regenerated.
1496 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1498 * configure.ac: Fix a typo in *-*-darwin clause.
1499 * configure: Regenerated.
1501 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1503 * configure.ac: Fix a typo.
1504 * configure: Regenerated.
1506 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1508 * configure: Regenerate.
1510 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1512 * Makefile.in: Replace all uses of libext with libsuffix.
1513 * configure.ac: Likewise.
1514 * configure: Regenerate.
1517 * Makefile.in: Remove all uses of $(libext).
1519 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1521 * Makefile.in: Remove all uses of $(libext).
1523 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1525 * configure: Regenerate.
1526 * aclocal.m4: Regenerate.
1528 2007-04-21 Andrew Ruder <andy@aeruder.net>
1530 * sendmsg.c (__objc_get_forward_imp): Call
1531 __objc_msg_forward2 for real.
1533 2007-04-09 Andrew Ruder <andy@aeruder.net>
1535 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1536 external libraries to provide a function that returns the real
1537 forwarding function based on both the selector and the receiver.
1538 * objc/objc-api.h: Define __objc_msg_forward2.
1540 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1542 * Makefile.in: Add dummy install-pdf target.
1544 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1546 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1549 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1551 * encoding.c (darwin_rs6000_special_round_type_align): New.
1553 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1555 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1556 * configure.ac: Use multi.m4 from aclocal rather than custom
1557 code. Use multi_basedir instead of toplevel_srcdir.
1558 * aclocal.m4: Regenerate.
1559 * configure: Regenerate.
1561 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1563 * Makefile.in: Added empty "pdf" target.
1565 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1567 * configure: Regenerate.
1569 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1571 * Makefile.in: Add install-html target. Add install-html to .PHONY
1573 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1576 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1578 2006-01-24 David Ayers <d.ayers@inode.at>
1581 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1582 and insure the new strings are '\0' termintated.
1584 2006-01-24 David Ayers <d.ayers@inode.at>
1587 * configure.ac: Add include directives for --enable-objc-gc.
1588 * Makefile.in: Ditto.
1589 * configure: Regenerate.
1591 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1592 instead of the local pointer to them.
1594 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1597 * objc/objc-api.c (_C_COMPLEX): New define.
1598 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1599 (objc_alignof_type): Likewise.
1600 (objc_skip_typespec): Likewise.
1602 2005-12-15 David Ayers <d.ayers@inode.at>
1605 * README (+load,+initialize): Fix documentation to reflect
1606 intended and implemented semantics for +load and +initialize.
1608 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1610 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1612 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1613 (rs6000_special_round_type_align): Update for the ABI fix.
1614 (objc_layout_finish_structure): Correct the encoding which is passed to
1617 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1620 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1621 but use the struct layout functions.
1622 (objc_alignof_type): Likewise.
1623 (objc_layout_structure): Handle _C_UNION_B also.
1624 (objc_layout_structure_next_member): Likewise.
1625 (objc_layout_finish_structure): Likewise.
1627 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1630 * objc/objc-api.h (_C_BOOL): New define.
1631 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1632 (objc_alignof_type): Likewise.
1633 (objc_skip_typespec): Likewise.
1635 2005-11-20 David Ayers <d.ayers@inode.at>
1638 * objc/hash.h: Remove deprecated hash API.
1639 * hash_compat.c: Remove.
1640 * Makefile.in: Remove reference to hash_compat.c.
1642 * configure.ac (VERSION): Bump library version to 2:0:0.
1643 * configure: Regenerate.
1645 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1648 * thr-objc.c (_XOPEN_SOURCE): Define.
1650 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1653 * objc/objc-api.h (struct objc_ivar): Move definition to
1656 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1657 Rasmus Hahn <rassahah@neofonie.de>
1660 * archive.c (objc_write_type): Correct the element offset.
1661 (objc_read_type): Likewise.
1663 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1665 * All files: Update FSF address.
1667 2005-08-13 Marcin Koziej <creep@desk.pl>
1668 Andrew Pinski <pinskia@physics.uc.edu>
1671 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1673 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1675 * Makefile.in (extra_ldflags_libobjc): New.
1676 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1677 (libobjc_gc$(libext).la): Likewise.
1678 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1679 "-Wl,-single_module".
1680 * configure: Regenerate.
1681 * linking.m (_objcInit): Remove.
1683 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1686 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1688 2005-06-08 David Ayers <d.ayers@inode.at>
1690 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1691 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1692 objc/runtime.h, objc/sarray.h, objc/thr.h,
1693 objc/typedstream.h: Do not include Objective-C headers as
1696 2005-06-07 David Ayers <d.ayers@inode.at>
1698 * archive.c, init.c, selector.c: Include hash.h.
1699 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1700 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1701 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1702 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1703 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1704 Include Objective-C headers with quotes and objc/ directory
1707 2005-05-19 Richard Henderson <rth@redhat.com>
1709 * exception.c: Revert last change.
1711 2005-05-19 David Ayers <d.ayers@inode.at>
1713 * exception.c: Include tsystem.h for unwind.h.
1715 2005-05-09 Mike Stump <mrs@apple.com>
1717 * configure: Regenerate.
1719 2005-04-12 Mike Stump <mrs@apple.com>
1721 * configure: Regenerate.
1723 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1725 * Makefile.in: Set gcc_version here.
1726 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1727 in definition of toolexeclibdir so that $(gcc_version) is expanded
1729 * aclocal.m4, configure: Regenerate.
1731 2005-03-03 David Ayers <d.ayers@inode.at>
1733 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1734 version reference. Correct typo.
1736 2005-03-02 David Ayers <d.ayers@inode.at>
1739 * Makefile.in (OBJS): Add hash_compat.lo.
1740 (OBJS_GC): Add hash_compat_gc.lo.
1741 (hash_compat_gc.lo): New target and rule.
1742 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1743 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1744 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1745 with objc_. Add deprecated non prefixed inlined versions.
1746 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1748 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1749 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1751 * hash_compat.c: New file.
1752 * archive.c: Update callers.
1754 * selector.c: Likewise.
1755 * libobjc.def: Add objc_ versions of hash functions.
1757 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1760 * Makefile.in (GTHREAD_FLAGS): Remove.
1761 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1762 * thr-objc.c: Include config.h.
1763 * configure.ac: Instead of looking at GCC's makefile, figure out if
1764 GTHREAD_FLAGS should be defined by looking at the `thread model'
1766 * configure: Regenerate.
1767 * config.h.in: Regenerate.
1769 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1772 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1773 (Determine CFLAGS for gthread): Use $host_subdir.
1774 * configure: Regenerate.
1775 * Makefile.in (host_subdir): New.
1778 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1781 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1783 Include limits.h and stdlib.h.
1784 Define BITS_PER_WORD.
1786 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1788 * selector.c (__objc_init_selector_tables): Add missing void to
1791 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1793 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1794 * configure, aclocal.m4: Regenerate.
1796 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1798 * configure: Regenerate for libtool change.
1800 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1802 * configure: Regenerate for libtool reversion.
1804 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1806 * configure: Regenerate for libtool change.
1808 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1810 * aclocal.m4, config.h.in: Regenerate.
1812 2004-10-08 Mike Stump <mrs@apple.com>
1813 Andrew Pinski <pinskia@physics.uc.edu>
1815 * aclocal.m4: Rename to ...
1816 * acinclude.m4: here and also use m4_include instead of sinclude.
1817 * aclocal.m4: Regenerate.
1818 * configure: Regenerate.
1819 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1820 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1822 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1824 * archive.c: Fix all the warnings about passing unsigned char*
1825 to char* and the other way too.
1827 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1830 * exception.c: Include config.h
1831 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1833 * configure.ac: Find out what exception handling code we use.
1834 * configure: Regenerate.
1835 * config.h.in: New file, regenerate.
1837 2004-09-16 Andrew Pinski <apinski@apple.com>
1839 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1841 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1843 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1844 ACX_NONCANONICAL_TARGET.
1845 * configure: Regenerate.
1847 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1849 * objc/sarray.h: Hoist include of assert.h near the top of file,
1850 and mark the remainder of the file 'extern "C"'.
1852 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1854 * objc/Object.h: Move includes out of extern "C" blocks.
1855 * objc/encoding.h: Likewise.
1856 * objc/hash.h: Likewise.
1857 * objc/objc-api.h: Likewise.
1858 * objc/runtime.h: Likewise.
1859 * objc/sarray.h: Likewise.
1860 * objc/typedstream.h: Likewise.
1862 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1864 * objc/NXConstStr.h: Update copyright date; bracket with
1865 'extern "C"' for C++ use; make include syntax consistent
1866 by using <...> instead of "..."; hoist <objc/...> includes
1867 above the 'extern "C"' block.
1868 * objc/Object.h: Likewise.
1869 * objc/Protocol.h: Likewise.
1870 * objc/encoding.h: Likewise.
1871 * objc/hash.h: Likewise.
1872 * objc/runtime.h: Likewise.
1873 * objc/sarray.h: Likewise.
1874 * objc/thr.h: Likewise.
1875 * objc/typedstream.h: Likewise.
1876 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1877 (objc_static_instances): For C++ case, do away with
1879 (objc_method): Hoist definition to file scope.
1880 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1881 class_get_instance_method, class_create_instance,
1882 class_get_class_name, class_get_instance_size,
1883 class_get_meta_class, class_get_super_class, class_get_version,
1884 class_is_class, class_is_meta_class, class_set_version,
1885 class_get_gc_object_type, class_ivar_set_gcinvisible,
1886 get_imp): Rename 'class' parameter to '_class'.
1887 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1888 * objc/objc.h: Update copyright date.
1889 (arglist_t): Provide a union tag.
1891 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1893 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1894 but instead use the attribute noreturn.
1896 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1898 * encoding.c: Rename target_flags with a #define to avoid
1899 conflict with a prior declaration.
1901 2004-06-24 Andrew Pinski <apinski@apple.com>
1903 * objc/encoding.h: Wrap the functions with extern "C" for C++
1905 * objc/hash.h: Likewise.
1906 * objc/objc-api.h: Likewise.
1907 * objc/objc-list.h: Likewise.
1908 * objc/runtime.h: Likewise.
1909 * objc/sarray.h: Likewise.
1910 * objc/thr.h: Likewise.
1911 * objc/typedstream.h: Likewise.
1914 2004-06-21 Nick Clifton <nickc@redhat.com>
1916 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1919 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1921 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1922 (exception_gc.lo): New.
1923 (OBJS_GC): Add exception_gc.lo.
1925 2004-06-17 Richard Henderson <rth@redhat.com>
1927 * exception.c: New file.
1928 * Makefile.in (exception.lo): New.
1931 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1933 * linking.m (_objcInit): New empty function
1936 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1938 * configure.ac: Support --enable-shared=libobjc.
1939 * configure: Regenerate.
1942 * configure.ac: Do not disable shared by default.
1943 * configure: Regenerate.
1945 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1947 * Protocol.m ([-isEqual:]): Small optimizations returning
1948 immediately if the argument is equal to self, and accessing
1949 the argument's name directly if it's a protocol.
1951 2004-06-03 David Ayers <d.ayers@inode.at>
1953 * Protocol.m ([-isEqual:]): Test the class of the argument.
1955 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1957 * configure.ac (includedir): Rename to ...
1959 * Makefile.in: s/includedir/includedirname/.
1962 * configure.ac (includedir): Set to "include"
1964 (libext) Set to empty except for Darwin.
1965 * configure: Regenerate
1966 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1967 s/include/$(includedir)/g.
1969 2004-05-25 Daniel Jacobowitz <drow@false.org>
1971 * Makefile.in: Add .NOEXPORT.
1973 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1975 Merge from the libobjc-branch
1976 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1978 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1980 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1982 * Makefile.in (OBJC_H): Add objc-deps.h.
1984 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1986 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1987 ([-hash], [-isEqual:]): New methods.
1989 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1991 * sarray.c (sarray_free): Add a better comment.
1993 2004-01-27 Adam Fedor <fedor@gnu.org>
1995 * hash.c (hash_add): Cast cachep to int.
1996 * selector.c (__sel_register_typed_name): Cast
1997 soffset_decode to int.
1999 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2001 * selector.c: Rename register_selectors_from_list to
2002 __objc_register_selectors_from_list. Update caller.
2003 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2004 while registering selectors. Use __sel_register_typed_name instead
2005 of sel_register_typed_name. Check for NULL method_name:s.
2006 (pool_alloc_selector): New function.
2007 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2008 selector structures.
2009 * sendmsg.c (class_add_method_list): Use
2010 __objc_register_selectors_from_list.
2011 * objc/runtime.h: Add __objc_register_selectors_from_list.
2013 2004-01-25 Adam Fedor <fedor@gnu.org>
2014 Nicola Pero <n.pero@mi.flashnet.it>
2015 Andrew Pinski <pinskia@physics.uc.edu>
2017 * objc/objc-decls.h: New file.
2018 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2019 (_objc_load_callback): Likewise.
2020 (_objc_object_alloc): Likewise.
2021 (_objc_object_copy): Likewise.
2022 (_objc_object_dispose): Likewise.
2024 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2026 * archive.c: s/__inline__/inline
2027 * sendmsg.c: Likewise.
2029 * encoding.c: Remove FIXME about the warning
2030 about unused variable.
2031 * sendmsg.c: Add a FIXME comment saying that
2032 this should be using libffi.
2034 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2037 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2039 * archive.c (objc_read_class): Initialize class_name.
2040 (objc_read_selector): Initialize selector_name.
2042 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2044 * Makefile.in (toolexecdir): Remove trailing space.
2046 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2049 * configure.ac: De-precious CC so multilibs work.
2050 * configure: Regenerate.
2052 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2054 * configure.ac: Restore toolexecdir.
2055 * Makefile.in: Restore toolexecdir.
2056 * configure: Regenerate.
2058 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2060 * configure.ac: Remove (unused) glibcpp_prefixdir.
2061 * configure: Regenerate.
2063 * configure.in: Rename to configure.ac.
2064 * Makefile.in: Update to match.
2066 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2067 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2068 * configure.in: Remove glibcpp_toolexecdir (unused).
2069 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2070 config.h or stamp-h (unused). Move one comment to the right place.
2071 * configure: Regenerate.
2072 * config.h.in: Remove (unused).
2074 * config.h.in: Regenerate with autoheader.
2076 * Makefile.in: Remove (unused) gcc_version_trigger.
2077 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2078 gcc_version_trigger.
2079 * configure: Regenerate.
2081 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2082 Sort file into sections. Remove dnl where appropriate. Fix
2084 * configure: Regenerate.
2086 * configure.in: Replace old AC_PROG_CC hack with new one.
2087 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2088 are no subdirectory output files, so this is fine). Change prereq
2090 * aclocal.m4: Include ../config/no-executables.m4.
2091 * configure: Regenerate with autoconf 2.59.
2093 * configure.in: Improve comments on gthread_cflags. Improve m4
2094 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2095 * configure: Regenerate.
2097 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2098 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2099 redundant checks for values of RANLIB, AR, INSTALL.
2100 * configure: Regenerate.
2102 * configure.in: Clean up handling of
2103 --enable-version-specific-runtime-libs and related variables;
2104 replace 'if test' with 'case' where reasonable. Fix comments.
2105 Remove useless libstdcxx_interface.
2106 * configure: Regenerate.
2108 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2109 Replace uses of target_alias with target_noncanonical.
2110 * aclocal.m4: Include ../config/acx.m4.
2111 * configure: Regenerate.
2112 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2113 Fix copyright statement.
2115 * configure.in: Hand-inline bulky, confusing macros from
2116 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2117 Update copyright notice. Remove stuff for automake, which isn't
2118 used in this directory. Remove emacs local variables.
2119 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2120 * configure: Regenerate.
2122 2004-03-16 Manfred Hollstein <mh@suse.com>
2124 * Makefile.in, configure.in, configure: Update copyright years.
2126 2004-03-15 Manfred Hollstein <mh@suse.com>
2128 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2129 definition from configure.in.
2130 * configure.in (PACKAGE): Add definition.
2131 (VERSION): Add definition; substitute it in output files.
2132 * configure: Re-generate.
2134 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2136 * objc/hash.h (hash_string, compare_strings):
2137 Add type-casts to make Objective-C++ happy.
2138 * objc/typedstream.h (objc_get_stream_class_version):
2139 Rename parameter from 'class' to 'class_name' to make
2140 Objective-C++ happy.
2142 2004-03-01 Michael Matz <matz@suse.de>
2144 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2146 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2148 * objc/objc-api.h (objc_super): The 'class' field shall
2149 be named 'super_class' #ifdef __cplusplus.
2151 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2154 * encoding.c (rs6000_special_round_type_align): Define.
2156 2004-01-14 Adam Fedor <fedor@gnu.org>
2159 * selector.c (__objc_register_instance_methods_to_class): Free
2160 new_list if not used.
2162 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2165 * sarray.c (sarray_free): Free array->is_copy_of latter.
2167 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2170 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2171 instance_methods if it's NULL.
2172 (descriptionForClassMethod): Likewise for class_methods.
2174 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2176 * Makefile.in (runtime-info.h): Remove -Wp.
2178 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2180 * Makefile.in (CC1OBJ): Remove.
2181 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2183 Use .m extension for temporary file.
2184 Remove assembler temp file.
2186 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2188 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2190 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2192 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2194 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2196 * configure: Regenerate.
2198 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2200 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2201 (libdir)/gcc-lib/ when installing.
2202 * configure: Regenerate.
2204 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2207 * sendmsg.c (get_imp): Fixed rare threading problem.
2208 (__objc_responds_to): Similar fixes.
2209 (objc_msg_lookup): Similar fixes.
2210 (__objc_init_install_dtable): Lock the runtime before checking if the
2213 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2215 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2216 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2217 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2218 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2219 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2220 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2221 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2222 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2223 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2224 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2225 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2227 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2228 Nicola Pero <n.pero@mi.flashnet.it>
2231 * init.c (class_superclass_of_class): New function.
2232 (create_tree_of_subclasses_inherited_from): Use it.
2233 (__objc_tree_insert_class): Likewise.
2234 (class_is_subclass_of_class): Likewise.
2236 2003-04-11 David Chad <davidc@freebsd.org>
2237 Loren J. Rittle <ljrittle@acm.org>
2240 * objc/hash.h (hash_string): Constify correctly.
2241 (compare_ptrs): Use direct compare.
2242 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2243 * objc/sarray.h: Global rename index to indx to avoid shadow.
2245 2003-03-12 Andreas Schwab <schwab@suse.de>
2247 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2248 glibcpp_toolexeclibdir.
2249 * configure: Rebuilt.
2251 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2253 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2255 * configure: Rebuilt.
2257 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2259 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2260 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2261 version_specific_libs is enabled.
2262 * configure: Rebuilt.
2264 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2266 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2267 (install-libs, install-headers): Prepend $(DESTDIR) to
2268 destination paths in all (un)installation commands.
2270 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2272 * thr-objc.c: Include coretypes.h and tm.h.
2274 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2276 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2278 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2280 * configure.in: Remove skip-this-dir support.
2281 * configure: Regenerate.
2283 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2285 * Makefile.in (all): Fix multilib parallel build.
2287 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2289 * sendmsg.c (nil_method): Declare not to take a variable number of
2291 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2292 (objc_msg_lookup_super): The same.
2294 2002-09-10 Jan Hubicka <jh@suse.cz>
2296 * nil_method.c (nil_method): No longer defined with variable
2299 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2301 * objc/encoding.h: Fix formatting.
2302 * objc/hash.h: Likewise.
2303 * objc/objc-api.h: Likewise.
2304 * objc/runtime.h: Likewise.
2305 * objc/thr.h: Likewise.
2306 * archive.c: Likewise.
2307 * class.c: Likewise.
2308 * encoding.c: Likewise.
2313 * nil_method.c: Likewise.
2314 * objects.c: Likewise.
2315 * sarray.c: Likewise.
2316 * selector.c: Likewise.
2317 * sendmsg.c: Likewise.
2318 * thr-mach.c: Likewise.
2321 2002-06-25 DJ Delorie <dj@redhat.com>
2323 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2324 GLIBCPP_TOPREL_CONFIGURE.
2325 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2326 * configure: Regenerate.
2328 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2330 * Object.m (forward, read, write): Fix unused parameter warnings.
2331 * encoding.c: Include <stdlib.h>.
2332 (target_flags): Mark with attribute unused.
2334 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2335 (__objc_generate_gc_type_description): Prototype.
2336 * selector.c (__objc_selector_max_index): Change to unsigned int.
2338 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2340 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2341 we always have a return value: if __objc_msg_forward does not
2342 supply a forwarding implementation, return the default
2343 __builtin_apply based one.
2345 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2347 * Object.m: Fix signed/unsigned warning.
2348 * Protocol.m: Likewise.
2349 * archive.c: Always include stdlib.h.
2350 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2351 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2352 Fix signed/unsigned warning.
2353 (objc_write_type, objc_read_type, objc_write_types,
2354 objc_read_types): Ensure ctype 8-bit safety.
2355 (__objc_no_write, __objc_no_read): Mark unused parameters.
2356 * class.c (class_table_setup): Specify void arg.
2357 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2358 objc_skip_typespec, objc_skip_offset,
2359 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2360 (objc_layout_structure_next_member): Ensure variables are
2362 * gc.c (__objc_generate_gc_type_description,
2363 class_ivar_set_gcinvisible): Mark unused parameters.
2364 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2366 (__objc_init_protocols) Fix signed/unsigned warning.
2367 * nil_method.c (nil_method): Mark unused parameters.
2368 * thr.h (objc_thread_callback): Specify void arg.
2369 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2370 signed/unsigned warning.
2371 (sarray_free): Fix formatting.
2372 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2373 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2375 2002-06-09 Andreas Jaeger <aj@suse.de>
2377 * encoding.c (objc_layout_structure_next_member): Remove unused
2380 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2382 * Makefile.in (SHELL): Set to @SHELL@.
2384 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2386 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2388 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2389 * configure: Regenerate.
2391 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2393 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2394 script entry, and set LD to it when configuring multilibs.
2395 * configure: Rebuilt.
2397 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2399 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2401 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2404 * objc/objc-api.h (struct objc_protocol_list): Change type of
2405 member count from int to size_t.
2407 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2410 * aclocal.m4: Replace with version copied from libstdc++-v3.
2411 * configure.in: Update for changes to aclocal and Makefile.
2412 * configure: Regenerate.
2413 * Makefile.in: Correct install of multilibs and shared libs, use
2414 INSTALL_DATA for include files.
2416 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2418 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2419 categories - when an unclaimed category was found, the loop was
2420 doing two steps forward instead of one, so that in certain cases
2421 it was failing to properly load all the categories. (Reported
2422 with fix by Alexander Malmberg <alexander@malmberg.org>).
2424 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2426 * encoding.c: Add target_flags.
2428 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2430 * objc/objc-api.h (_C_VECTOR): New.
2432 * encoding.c (VECTOR_TYPE): New.
2434 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2436 * class.c: Rewritten the class table to use optimized, lock-free
2437 lookup. This more than doubles the speed of class method
2438 invocations. (class_table_setup), (class_table_insert),
2439 (class_table_replace), (class_table_get_safe),
2440 (class_table_next), (class_table_print),
2441 (class_table_print_histogram): New functions.
2442 (__objc_init_class_tables): Use class_table_setup.
2443 (__objc_add_class_to_hash): Use class_table_get_safe and
2444 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2445 assert the existence of the table; do not lock the runtime; use
2446 class_table_get_safe. (objc_next_class): Use class_table_next.
2447 (__objc_resolve_class_links): Use class_table_next.
2448 (class_pose_as): Use class_table_replace.
2450 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2452 * gc.c: Removed the DEBUG declaration.
2454 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2456 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2457 rather than through objc_thread_id, to save a function call.
2458 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2461 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2463 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2464 to cast an id to a Class, which can not be done. Make the check
2465 by using CLS_ISMETA on the class pointer instead.
2466 (object_is_meta_class): Similar fix.
2468 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2470 * configure.in (AC_EXEEXT): Work around in case it expands to
2471 nothing, as in autoconf 2.50.
2472 * acinclude.m4: Likewise.
2473 * configure: Rebuilt.
2475 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2477 * THREADS: Explain that when we compile libobjc inside GCC, we
2478 always use thr-objc.c as a backend, which uses GCC's thread code.
2480 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2482 * init.c (__objc_send_message_in_list): When setting a new entry
2483 in __objc_load_methods use the method IMP as key, but check to see
2484 if the method is in the hashtable by looking at the IMP also.
2485 Also ... call the method after adding it to the hashtable rather
2486 than before ... thus preventing an obscure possibility of infinite
2487 recursion if a +load method itself loads a subclass.
2489 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2491 * init.c (__objc_send_message_in_list): When setting a new entry
2492 in __objc_load_methods use the method name as key, not the method
2493 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2495 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2497 * objc-features.texi: Move to ../gcc/objc.texi.
2499 * Makefile.in: Don't generate documentation from
2502 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2504 * fdl.texi: New file.
2505 * objc-features.texi: Simplify.
2506 * Makefile.in: Adjust accordingly.
2508 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2510 * objc-features.texi: Use the GFDL.
2512 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2514 * encoding.c (REAL_TYPE): Define.
2516 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2518 * encoding.c (TYPE_MODE): Define.
2520 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2522 * thr.c (objc_thread_add): New function.
2523 (objc_thread_remove): Ditto.
2524 * objc/thr.h: Declare them.
2525 * libobjc.def: Mention them.
2527 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2529 * objc-features.texi: Document the @compatibility_alias compiler
2530 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2532 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2534 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2536 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2538 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2539 we're not interested in the result and they might fail.
2540 * configure: Regenerated.
2542 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2544 * objc-features.texi: Use @email.
2546 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2548 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2551 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2553 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2554 determines the value dynamically.
2556 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2558 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2559 libraries to provide a function that returns the real forwarding
2560 function. This can alleviate problems __builtin_apply() and
2561 friends have on various platforms. (Solution suggested by Helge
2564 * objc/objc-api.h: Define __objc_msg_forward.
2566 * sendmsg.c: Define gen_rtx_REG.
2568 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2570 * thr-rtems.c: New file. Stub to compile.
2572 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2574 * configure: Rebuilt with new libtool.m4.
2576 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2578 * configure.in: Create a config.h file. Check for <sched.h>.
2579 * configure: Regenerate.
2581 * config.h.in: Check for <sched.h>.
2583 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2585 * configure: Regenerate after change to ../libtool.m4.
2587 2000-08-14 Andreas Schwab <schwab@suse.de>
2589 * objc-features.texi (Top): Move @menu at end of node.
2591 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2593 * objc-features.texi: Move @node Top before @menu.
2595 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2597 * objc-features.texi: Documented the new -fconstant-string-class
2600 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2602 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2603 improve the Posix thread support for Objective-C.
2605 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2607 * aclocal.m4: Replace copy of ../libtool.m4 with
2608 sinclude(../libtool.m4).
2610 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2612 * configure.in: Added libtool support; build shared libraries
2613 if --enable-shared was passed on command line.
2614 * Makefile.in: Modified most compilation commands to use libtool.
2615 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2616 libtool distribution.
2618 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2620 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2621 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2624 2000-05-12 H.J. Lu (hjl@gnu.org)
2626 * Makefile.in (GTHREAD_FLAGS): New.
2627 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2628 (OBJC_THREAD_FILE): Changed to thr-objc.
2630 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2632 (OBJC_THREAD_FILE): Removed.
2636 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2638 * objc/hash.h: Include string.h.
2640 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2642 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2644 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2646 * Object.m (strlen): Provide prototype on all 64bit platforms,
2648 * sarray.c (memcpy): Likewise.
2649 * encoding.c (objc_layout_finish_structure): Don't use
2650 ROUND_TYPE_ALIGN on sparc.
2652 * encoding.c (objc_layout_structure_next_member): Do the whole
2653 procedure even for the first member, so that we get correct
2656 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2658 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2661 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2663 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2665 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2667 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2669 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2671 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2672 the compiler when building C code.
2674 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2676 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2677 libdir, libsubdir and tooldir.
2679 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2681 * init.c (__objc_force_linking): Make global.
2683 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2685 * configure.in (AC_EXEEXT): Remove call.
2686 (compiler_name): Explicitly check with no extension and .exe
2688 * configure: Regenerate.
2690 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2692 * Makefile.in (CC1OBJ): Define in terms of CC.
2693 (runtime-info.h): Use.
2695 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2697 * objc-features.texi: Updated the URL to Boehm's GC page.
2699 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2701 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2702 the char as being signed (patch from Daniel Jacobowitz
2705 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2707 * configure.in (AC_PREREQ): Update to 2.13.
2708 (AC_EXEEXT): Call to find possible file extension.
2709 (compiler_name): Use.
2710 * configure: Regenerate.
2712 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2714 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2716 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2718 * configure.in (thread_file): Correct and simplify code to find
2720 * configure: Rebuilt.
2722 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2724 * configure.in (compiler_name): Add check to detect if this
2725 language's compiler has been built.
2726 * configure: Regenerate.
2728 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2730 * configure.in: Use AC_PREREQ(2.12.1).
2732 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2734 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2736 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2738 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2740 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2742 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2744 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2746 * objc-features.texi (Top): Changed the email address.
2747 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2749 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2751 * encoding.c: Redefine get_inner_array_type to get the first entry
2754 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2756 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2757 (objc_get_type_qualifiers): Similarly.
2758 * objc/encoding.h (_C_BYREF): Define.
2761 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2763 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2764 works out on 64-bit systems.
2766 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2768 * Makefile.in (INCLUDES): Make it multilib-friendly.
2770 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2772 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2774 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2775 Jeffrey A Law (law@cygnus.com)
2777 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2778 (FLAGS_TO_PASS): Added.
2779 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2781 * archive.c: Change config.h to tconfig.h.
2783 * configure.in: Find gcc's object directory even for multilibs.
2785 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2787 * configure.in: Escape ^ in grep string.
2788 * configure: Rebuilt.
2790 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2792 * All .h files pushed down into the objc/ subdirectory.
2793 * Makefile.in (copy_headers): Corresponding changes.
2794 * configure.in (AC_INIT): Corresponding changes.
2795 * configure: Rebuilt.
2797 1998-09-30 Ben Elliston <bje@cygnus.com>
2798 Jeff Law <law@cygnus.com>
2800 * Makefile.in: Rewrite.
2802 * configure.in: Likewise.
2804 * configure: Regenerate.
2806 * All .c files. Remove "objc" prefix when including objc header
2807 files. Include tconfig.h, not ../tconfig.h.
2809 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2811 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2812 (get_inner_array_type): Define.
2814 1998-09-21 Ben Elliston <bje@cygnus.com>
2816 * New directory. Moved files from ../gcc/objc.