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