1 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
4 (libobjc_gc$(libsuffix).la): Likewise.
6 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
8 * sendmsg.c (class_addMethod): Return NO if the method already
11 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
13 * init.c (duplicate_classes): New.
14 (__objc_exec_class): Initialize duplicate_classes.
15 (__objc_create_classes_tree): Ignore classes in the
16 duplicate_classes table.
17 (__objc_call_load_callback): Same.
18 (__objc_init_class): If a duplicate class is found, add it to
19 duplicate_classes instead of aborting. Return YES if the class is
20 not a duplicate, and NO if it is.
21 * objc-private/runtime.h (__objc_init_class): Updated prototype.
23 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
25 * objc-private/objc-list.h: Reindented file. No code changes.
26 * objc-private/sarray.h: Same change.
28 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
30 * objc-private/accessors.h: Removed 'extern "C"' guards. This
31 file is never compiled with C++.
32 * objc-private/hash.h: Same change.
33 * objc-private/objc-list.h: Same change.
34 * objc-private/objc-sync.h: Same change.
35 * objc-private/protocols.h: Same change.
36 * objc-private/runtime.h: Same change.
37 * objc-private/sarray.h: Same change.
38 * objc-private/selector.h: Same change.
40 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
43 * class.c (__objc_add_class_to_hash): Return YES if the class was
44 added, and NO if it already existed.
45 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
46 NO, then abort the program with an error message.
47 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
50 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
52 * init.c (_objc_load_callback): Initialize with 0.
53 (__objc_call_callback): Renamed to __objc_call_load_callback.
54 Check _objc_load_callback only once, and if it is not set, return
56 (objc_send_load): Updated call to __objc_call_callback.
58 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
61 * init.c (__objc_send_message_in_list): Renamed to
62 __objc_send_load_using_method_list. Do not take an 'op' argument.
63 Register the 'load' selector if needed.
64 (__objc_send_load): Do not register the 'load' selector. Updated
65 call to __objc_send_message_in_list.
66 (__objc_create_classes_tree): Add the class of any claimed
67 category that was loaded in the module to the list of classes for
68 which we try to execute +load.
70 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
72 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
74 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
75 a pointer using DEBUG_PRINTF.
77 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
80 * selector.c (__sel_register_typed_name): When registering a new
81 selector with the same name as an existing one, reuse the existing
82 name string. Also updated types, casts and comments in the whole
85 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
87 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
88 to be 'struct objc_selector *' and not 'SEL'.
89 * init.c (__objc_exec_class): Call
90 __objc_register_selectors_from_module instead of iterating over
91 each selector and calling __sel_register_typed_name for each.
92 * objc-private/selector.h: Declare
93 __objc_register_selectors_from_module instead of
94 __sel_register_typed_name.
95 * selector.c (__objc_register_selectors_from_module): New.
96 (__sel_register_typed_name): Made static.
98 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
100 * linking.m: Do not include objc/NXConstStr.h.
102 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
104 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
105 * objc-private/common.h (DEBUG_PRINTF): To here.
106 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
108 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
110 * hash.c: Tidied up comments and indentation. No code changes.
112 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
115 * accessors.m (objc_getProperty): If not atomic, do not
116 retain/autorelease the returned value.
118 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
120 * objc-private/runtime.h (__objc_selector_max_index,
121 __objc_init_selector_tables, __objc_register_selectors_from_class,
122 __objc_register_selectors_from_list,
123 __objc_register_selectors_from_description_list): Moved to ...
124 * objc-private/selector.h: ... here.
126 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
128 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
129 (__objc_print_dtable_stats): Removed.
130 (__sel_register_typed_name): Removed.
131 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
133 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
135 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
136 if appropriate, after loading the module.
138 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
140 * sendmsg.c (method_setImplementation): Do not declare.
142 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
144 * objc/message.h: Updated comments.
145 * objc/runtime.h: Updated comments.
147 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
149 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
150 * protocols.c: Updated all calls to objc_lookupClass to call
151 objc_lookUpClass instead.
152 * sendmsg.c (objc_lookupClass): Do not declare.
153 (get_imp): Update call to objc_lookupClass to call
154 objc_lookUpClass instead.
155 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
157 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
159 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
160 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
161 define. Updated comments.
163 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
165 * objc/encoding.h: Updated comments.
166 * objc/runtime.h: Updated comments.
167 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
168 (objc_sizeof_type): Same.
169 (objc_alignof_type): Same.
170 (objc_aligned_size): Same.
171 (objc_promoted_size): Same.
172 (objc_skip_type_qualifiers): Same.
173 (objc_skip_typespec): Same.
174 (objc_skip_offset): Same.
175 (objc_skip_argspec): Same.
176 (objc_get_type_qualifiers): Same.
177 (objc_layout_structure): Same.
178 (objc_layout_structure_next_member): Same.
179 (objc_layout_finish_structure): Same.
180 (objc_layout_structure_get_info): Same.
182 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
184 * init.c: Updated comments.
185 * objc/objc-api.h: Updated comments.
186 * objc/runtime.h (_objc_load_callback): Declare.
188 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
190 * objc/Object.h: Include deprecated/typedstream.h and
191 deprecated/hash.h instead of typedstream.h. Updated comments.
193 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
195 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
196 * objc/deprecated/objc_msg_sendv.h: New.
197 * objc/message.h: Do not define retval_t, apply_t, arglist,
198 arglist_t, objc_msg_sendv, now in
199 objc/deprecated/objc_msg_sendv.h.
200 * objc/objc.h: Do not include message.h; include
201 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
202 * sendmsg.c: Include objc/message.h.
203 * thr.c: Include objc/message.h.
205 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
207 * objc/objc-exception.h: Include objc-decls.h. Mark all
208 functions with objc_EXPORT.
209 * objc/objc-sync.h: Same change.
211 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
213 * Protocol.m: Moved all methods, with the exception of -isEqual:,
214 into the 'Deprecated' category.
215 * objc/Protocol.h: Removed all methods, moved to
216 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
217 * objc/deprecated/Protocol.h: New.
218 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
220 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
222 * init.c: Include objc-private/selector.h. Do not declare
223 __sel_register_typed_name.
224 * objc-private/selector.h (__sel_register_typed_name): Declare.
225 * selector.c: Include objc-private/selector.h.
227 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
229 * class.c: Tidied up comments and indentation. No code changes.
235 * objc-foreach.c: Same.
242 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
244 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
245 instead of objc/objc-api.h.
246 (init_check_module_version): Take a 'struct objc_module *'
247 argument instead of 'Module_t'. Use 'struct objc_module *'
248 instead of 'Module_t'.
249 (__objc_created_classes_tree): Take a 'struct objc_module *'
250 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
252 (__objc_call_callback): Take a 'struct objc_module *' argument
253 instead of 'Module_t'; use 'struct objc_symtab *' instead of
254 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
255 (_objc_load_callback): Take a 'struct objc_category *' argument
256 instead of 'Category *'.
257 (class_superclass_of_class): Use objc_getClass() instead of
259 (create_tree_of_subclasses_inherited_from): Same change (also, use
260 an explicit 'if' instead of '?').
261 (objc_init_statics): Same change.
262 (objc_send_load): Same change.
263 (__objc_init_protocol): same change.
264 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
265 argument instead of 'MethodList_t'. Use 'struct objc_method *'
266 instead of 'Method_t'.
267 (__objc_send_load): Use 'struct objc_method_list *' instead of
268 'MethodList_t'. Use sel_registerName() instead of
270 (__objc_exec_class): Take a 'struct objc_module *' argument
271 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
272 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
273 Use 'struct objc_category *' instead of 'Category_t'.
275 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
277 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
278 Include objc-private/module-abi-8.h and objc-private/selector.h
279 instead of objc/encoding.h.
280 (objc_msg_lookup_super): Use super->super_class instead of
282 (method_get_first_argument, method_get_next_argument): Declare
284 (class_get_instance_method): Declare before using.
285 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
286 (__objc_init_dispatch_tables, __objc_send_initialize): Use
287 sel_registerName() instead of sel_register_name().
288 (__objc_forward): Use sel_getName() instead of sel_get_name().
289 (objc_get_uninstalled_dtable): Use 'void' as argument.
290 * objc-private/selector.h: New.
292 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
294 * objc/message.h (objc_super): When using the modern API, do not
295 define Super and Super_t, and always use 'super_class' for the
297 (objc_msg_lookup_super): Updated prototype to use 'struct
298 objc_super *' instead of 'Super_t'.
299 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
300 'struct objc_super *' instead of 'Super_t'.
302 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
304 * objc/message.h: Update comments, reindented code and moved
305 deprecated types and functions at the end of the file. No code
308 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
310 * ivars.c (class_addIvar): Use the 'size' argument instead of
311 trying to calculate it using objc_sizeof_type().
312 * objc/runtime.h (class_addIvar): Updated comments.
314 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
316 * sendmsg.c: Reindented some code and tidied up comments. No
319 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
321 * objc/Object.h: Moved all the methods, with the exception of
322 -class and -isEqual:, into ...
323 * objc/deprecated/Object.h: here.
324 * Object.m: Moved all the methods, with the exception of -class
325 and -isEqual: into the 'Deprecated' category.
327 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
329 * objects.c (object_copy): Do not #undef as we are no longer
330 including objc/objc-api.h.
331 * selector.c: Include objc/runtime.h and
332 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
333 objc/encoding.h. Updated
334 (__objc_register_selectors_from_class): Use struct
335 objc_method_list * instead of MethodList_t.
336 (__objc_register_selectors_from_list): Use Method instead of
338 (struct objc_method_description_list): Do not define here.
339 (__objc_register_instance_methods_to_class): Use struct
340 objc_method_list * instead of MethodList_t and Method instead of
343 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
345 * selector.c: Reindented some code and tidied up comments. No
348 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
350 * encoding.c (_darwin_rs6000_special_round_type_align): New.
351 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
353 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
355 * sendmsg.c (selector_resolveClassMethod): New.
356 (selector_resolveInstanceMethod): New.
357 (__objc_resolve_class_method): New.
358 (__objc_resolve_instance_method): New.
359 (get_imp): Call __objc_resolve_class_method or
360 __objc_resolve_instance_method at the appropriate time.
361 (objc_msg_lookup): Same.
362 (class_getClassMethod): Same.
363 (class_getInstanceMethod): Same.
364 (__objc_init_dispatch_tables): Initialize
365 selector_resolveClassMethod and selector_resolveInstanceMethod.
366 * objc/runtime.h: Updated documentation of class_getClassMethod,
367 class_getInstanceMethod and class_getMethodImplementation.
369 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
371 * objc-private/module-abi-8.h (struct objc_symtab): Updated
372 description of sel_ref_cnt and refs.
373 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
375 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
379 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
380 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
381 * aclocal.m4: Regenerate.
382 * configure: Regenerate.
384 2010-12-03 Matthias Klose <doko@ubuntu.com>
386 * configure.ac (VERSION): Bump the version to 3:0:0.
387 * configure: Regenerate.
389 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
391 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
392 pass nil as the receiver since we don't know the receiver at this
395 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
397 * ivars.c: Include stdlib.h.
398 * protocols.c: Same change.
400 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
402 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
404 * init.c: Include objc-private/accessors.h.
405 (__objc_exec_class): Call __objc_accessors_init.
406 * objc-private/accessors.h: New.
408 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
410 * objc/message.h: Moved initial includes outside of extern "C".
411 * objc/runtime.h: Add extern "C" for Objective-C++.
413 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
415 * init.c (objc_send_load): Do not wait for NXConstantString to be
416 registered before executing +load. There is no point if
417 -fconstant-string-class=xxx is used when compiling all modules,
418 as is the case for almost all users.
419 * linking.m (__objc_linking): Do not try to forcefully link in
422 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
424 * objc/runtime.h: Updated comments.
425 (class_addMethod): New.
426 (class_addIvar): New.
427 (class_replaceMethod): New.
428 (objc_allocateClassPair): New.
429 (objc_registerClassPair): New.
430 (objc_disposeClassPair): New.
431 * class.c (objc_allocateClassPair): New.
432 (objc_registerClassPair): New.
433 (objc_disposeClassPair): New.
434 (class_getSuperclass): Return Nil if a class is in construction.
435 * init.c (__objc_exec_class): Call __objc_init_class.
436 (__objc_init_class): New.
437 * ivars.c (class_copyIvarList): Return NULL if class is in
438 construction. Do not lock the runtime mutex.
439 (class_getInstanceVariable): Return NULL if class is in
440 construction. Do not lock the runtime mutex.
441 (class_addIvar): New.
442 * sendmsg.c (class_addMethod): New.
443 (class_replaceMethod): New.
444 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
445 (_CLS_IN_CONSTRUCTION): New.
446 (CLS_IS_IN_CONSTRUCTION): New.
447 (CLS_SET_IN_CONSTRUCTION): New.
448 (CLS_SET_NOT_IN_CONSTRUCTION): New.
449 * objc-private/runtime.h (__objc_init_class): New.
451 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
453 * class.c (class_getSuperclass): Call __objc_resolve_class_links
454 if the class is not resolved yet.
455 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
457 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
459 * objc/runtime.h (class_getIvarLayout): New.
460 (class_getWeakIvarLayout): New.
461 (class_setIvarLayout): New.
462 (class_setWeakIvarLayout): New.
463 * ivars.c (class_getIvarLayout): New.
464 (class_getWeakIvarLayout): New.
465 (class_setIvarLayout): New.
466 (class_setWeakIvarLayout): New.
468 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
470 * objc/runtime.h (class_copyPropertyList): New.
471 (class_getProperty): New.
472 (property_getAttributes): New.
473 (property_getName): New.
474 * ivars.c (class_copyPropertyList): New.
475 (class_getProperty): New.
476 (property_getAttributes): New.
477 (property_getName): New.
479 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
481 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
482 * class.c (__objc_update_classes_with_methods): New.
483 (objc_getClassList): Do not lock the class lock.
484 * methods.c (method_exchangeImplementations): New.
485 (method_setImplementation): New.
486 * objc/runtime.h (method_setImplementation): New.
487 (method_exchangeImplementations): New.
489 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
491 * Protocol.m: Include objc/runtime.h and
492 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
493 repeat Protocol's instance variables.
494 (struct objc_method_description_list): Do not define here.
495 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
496 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
497 selectors directly instead of getting names and then using strcmp.
498 ([descriptionForClassMethod:]): Same change.
499 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
500 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
501 to compare selectors directly instead of getting names and then
503 * objc/Protocol.h: Updated comments.
505 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
507 * init.c (__objc_init_protocol): New function which fixes up a
508 protocol's class pointer, registers it with the runtime, register
509 all protocol selectors and registers associated protocols too.
510 (objc_init_statics): Detect if we are initializing protocols, and
511 if so, use __objc_init_protocol instead of only fixing up the
513 (__objc_init_protocls): Use __objc_init_protocol.
514 * objc-private/module-abi-8.h: Updated comments.
515 * objc-private/runtime.h
516 (__objc_register_selectors_from_description_list): New.
517 * selector.c (__objc_register_selectors_from_description_list):
518 New. (struct objc_method_description_list): Declare.
519 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
520 when accessing the name of a method, which is now correctly a SEL.
521 ([-descriptionForClassMethod:]): Same change.
522 * protocols.c (protocol_getMethodDescription): Same change.
523 * objc/runtime.h: Updated comments.
524 (sel_registerTypedName): Fixed typo in function name.
526 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
529 * init.c (objc_init_statics): Do not skip the initialization of a
530 statics list if the first object has already been initialized; in
531 the case of Protocols, while the first one may have been
532 initialized, some others may not have been initialized yet.
534 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
536 * Makefile.in (OBJC_DEPRECATED_H): Added
537 objc_get_uninstalled_dtable, objc_object_alloc.h and
538 struct_objc_static_instances.h.
540 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
542 * encoding.c (method_copyReturnType): New.
543 (method_copyArgumentType): New.
544 (method_getReturnType): New.
545 (method_getArgumentType): New.
546 * methods.c (method_getDescription): New.
547 * objc/runtime.h (method_copyReturnType): New.
548 (method_copyArgumentType): New.
549 (method_getReturnType): New.
550 (method_getArgumentType): New.
551 (method_getDescription): New.
553 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
555 * encoding.c: Tidied up comments.
556 (objc_skip_variable_name): New static inline function.
557 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
558 the same code over and over.
559 (objc_alignof_type): Same.
560 (objc_aligned_size): Same.
561 (objc_promoted_size): Same.
562 (objc_skip_typespec): Same.
563 (objc_layout_structure_next_member): Same.
564 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
565 historical bug where objc_skip_offset would skip one byte even if
566 there is no offset: check that the first offset digit is actually
567 a digit before skipping it.
568 (objc_skip_type_qualifiers): Mark as inline.
569 (objc_skip_typespec): Mark as inline.
571 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
573 * Makefile.in (C_SOURCE_FILES): Added methods.c.
574 * encoding.c (method_getNumberOfArguments): New.
575 (method_get_number_of_arguments): Call
576 method_getNumberOfArguments.
577 * ivars.c (ivar_getName): Check for NULL variable argument.
578 (ivar_getOffset): Check for NULL variable argument.
579 (ivar_getTypeEncoding): Check for NULL variable argument.
580 (class_copyIvarList): New.
582 * protocols.c (class_copyProtocolList): Check for Nil class_
584 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
585 'struct objc_method_list *' instead of MethodList_t.
586 (class_getMethodImplementation): New.
587 (class_respondsToSelector): New.
588 (class_getInstanceMethod): New.
589 (class_getClassMethod): New.
590 * objc/runtime.h: Updated comments.
591 (class_copyIvarList): New.
592 (class_getInstanceMethod): New.
593 (class_getClassMethod): New.
594 (class_getMethodImplementation): New.
595 (class_respondsToSelector): New.
596 (method_getName): New.
597 (method_getImplementation): New.
598 (method_getTypeEncoding): New.
599 (class_copyMethodList): New.
600 (method_getNumberOfArguments): New.
602 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
604 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
605 instead of objc/objc-api.h.
606 (objc_get_unknown_class_handler): Do not define.
607 (class_isMetaClass): New.
608 (class_getSuperclass): New.
609 (class_getVersion): New.
610 (class_setVersion): New.
611 (class_getInstanceSize): New.
612 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
613 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
614 objc_get_super_class.
615 (get_ttype_entry): Use objc_getRequiredClass instead of
617 * ivars.c (class_getClassVariable): New.
618 * objects.c: Include objc/runtime.h, objc/thr.h and
619 objc-private/module-abi-8.h instead of objc/objc-api.h
620 * objc/runtime.h (class_getClassVariable): New.
621 (class_isMetaClass): New.
622 (class_getSuperclass): New.
623 (class_getVersion): New.
624 (class_setVersion): New.
625 (class_getInstanceSize): New.
626 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
629 (__CLS_ISINFO): Same.
630 (__CLS_SETINFO): Same.
633 (CLS_ISRESOLV): Same.
634 (CLS_SETRESOLV): Same.
635 (CLS_ISINITIALIZED): Same.
636 (CLS_SETINITIALIZED): Same.
637 (CLS_GETNUMBER): Same.
638 (CLS_SETNUMBER): Same.
640 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
642 * archive.c: Do not include objc/objc.h.
643 * class.c: Do not include objc/objc.h.
644 * encoding.c: Include objc/runtime.h, ctype.h and
645 objc-private/module-abi-8.h instead of objc/objc-api.h and
647 * error.c: Do not include objc/objc.h.
648 * gc.c: Include tconfig.h and objc/encoding.h only if
650 * hash.c: Include objc/runtime.h and objc/thr.h instead of
651 objc/objc-api.h. Do not include objc/objc.h.
652 * init.c: Do not include objc/objc.h.
653 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
654 objc/thr.h instead of objc/objc-api.h. Do not include
656 * linking.m: Tidied comment.
657 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
658 Do not include objc/objc.h.
659 * objects.c: Do not include objc/objc.h.
660 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
661 * protocols.c: Do not include objc/objc.h.
662 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
663 not include objc/objc.h.
664 * selector.c: Do not include objc/objc.h.
665 * sendmsg.c: Do not include objc/objc.h.
666 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
667 Do not include objc/objc.h.
668 * objc/objc-decls.h: Reindented code.
669 * objc/runtime.h Include objc-decls.h. Updated comments.
671 (objc_atomic_malloc): New.
675 * objc-private/runtime.h: Updated comments.
677 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
679 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
680 * objc-private/protocols.h: New.
682 * init.c: Include objc-private/protocols.h.
683 (__objc_exec_class): Call __objc_protocols_init on startup.
684 (__objc_init_protocols): Call __objc_protocols_add_protocol.
685 * objc-private/runtime.h: Use (struct objc_method_list *) instead
686 of MethodList_t, and (struct objc_method *) instead of Method_t.
687 * objc/deprecated/struct_objc_class.h: Define
688 __objc_STRUCT_OBJC_CLASS_defined.
689 * objc-private/module-abi-8.h (struct
690 objc_method_description_list): New.
691 (struct objc_class): Only define if
692 __objc_STRUCT_OBJC_CLASS_defined is undefined.
693 * objc/runtime.h (class_getName): New.
694 (objc_getProtocol): New.
695 (objc_copyProtocolList): New.
696 (class_addProtocol): New.
697 (class_conformsToProtocol): New.
698 (class_copyProtocolList): New.
699 (protocol_conformsToProtocol): New.
700 (protocol_isEqual): New.
701 (protocol_getName): New.
702 (protocol_getMethodDescription): New.
703 (protocol_copyMethodDescriptionList): New.
704 (protocol_getProperty): New.
705 (protocol_copyPropertyList): New.
706 (protocol_copyProtocolList): New.
707 * class.c (class_getName): New.
708 * selector.c (sel_isEqual): New.
710 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
712 * selector.c (sel_getName): Return "<null selector>" for a NULL
714 (sel_get_name): Return 0 for a NULL argument.
715 * objc/runtime.h (sel_getName): Updated documentation.
717 * objc-private/hash.h (class_hash_table): Unused declaration
719 (module_hash_table): Same.
720 * objc/deprecated/hash.h: Same changes.
722 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
724 * class.c (objc_getClassList): New.
725 (objc_getRequiredClass): New.
726 (objc_getMetaClass): New.
727 (objc_lookupClass): New.
728 (objc_getClass): New.
729 (__objc_get_unknown_class_handler): New.
730 (objc_setGetUnknownClassHandler): New.
731 (objc_get_class): Use __objc_get_unknown_class_handler.
732 (objc_lookup_class): Call objc_getClass.
733 * objc/objc-api.h: Updated comment and copyright notice.
734 * objc/runtime.h: Updated comments.
735 (objc_getClass): New.
736 (objc_lookupClass): New.
737 (objc_getMetaClass): New.
738 (objc_getRequiredClass): New.
739 (objc_getClassList): New.
740 (objc_setGetUnknownClassHandler): New.
741 (objc_get_unknown_class_handler): New.
742 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
743 instead of __objc_runtime_INCLUDE_GNU as include guard.
744 * objc-private/error.h (_objc_abort): Mark as noreturn.
746 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
748 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
750 * objc/objc.h: Updated comments.
751 * objc/runtime.h (object_getClass): New.
752 (object_getClassName): New.
753 (object_setClass): New.
754 (class_getInstanceVariable): New.
755 (object_getIndexedIvars): New.
756 (object_getInstanceVariable): New.
757 (object_setInstanceVariable): New.
758 (object_getIvar): New.
759 (object_setIvar): New.
761 (ivar_getOffset): New.
762 (ivar_getTypeEncoding): New.
763 * objc-private/module-abi-8.h (struct objc_class): Added.
764 * objects.c (object_getClassName): New.
765 (object_setClass): New.
767 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
769 * objc/objc.h: Updated comments.
770 * objc/objc-api.h: (object_copy): Added one argument; use a
771 #define to maintain backwards-compatibility. Moved
772 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
773 objc_get_uninstalled_dtable into
774 objc/deprecated/objc_get_uninstalled_dtable.h and
775 objc/deprecated/objc_object_alloc.h. Include these files.
776 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
777 * objc/deprecated/objc_object_alloc.h: New.
778 * objc/runtime.h (set_getName): New.
781 (sel_registerName): New.
782 (sel_registerTypedName): New.
784 (class_createInstance): New.
786 (object_dispose): New.
787 * objects.c: Do not include tconfig.h. Include gc_typed.h if
788 building the garbage collection version.
789 (__objc_object_alloc): Removed.
790 (__objc_object_copy): Removed.
791 (__objc_object_dispose): Removed.
792 (class_createInstance): New from code in class_create_instance.
793 Cast second argument of GC_malloc_explicitly_typed. Use
794 objc_calloc. Do not call _objc_object_alloc.
795 (class_create_instance): Call class_createInstance.
796 (object_copy): Added extraBytes argument. Do not call
798 (object_dispose): Do not call _objc_object_dispose.
799 * memory.c (objc_free): When using garbage collection, mark the
801 * selector.c (sel_getName): New.
802 (sel_get_name): Call sel_getName.
804 (sel_get_type): Call sel_getType.
805 (sel_registerName): New.
806 (sel_register_name): Call sel_registerName.
807 (sel_registerTypedName): New.
808 (sel_register_typed_name): Call sel_registerTypedName.
810 (sel_get_uid): Call sel_getUid.
812 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
814 * objc/objc-api.h: Define Method, Method_t, Category and
815 Category_t. Prevent including this file at the same time as
816 objc/runtime.h. Updated comments.
817 * objc/deprecated/struct_objc_method.h: Do not define Method,
819 * objc/deprecated/struct_objc_category.h: Do not define Category,
821 * objc-private/module-abi-8.h: New file containing a copy of all
822 the structure definitions. Not used yet.
823 * objc/encoding.h (objc_aligned_size): Removed duplicate
824 declaration. Updated comments.
825 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
826 Category, struct objc_method_description, _C_ID and similar,
827 _C_CONST and similar and _F_CONST and similar. Added
828 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
829 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
830 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
831 struct objc_struct_layout, objc_layout_structure,
832 objc_layout_structure_next_member, objc_layout_finish_structure,
833 objc_layout_structure_get_info. Prevent including this file at
834 the same time as objc/objc-api.h.
836 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
838 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
839 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
840 struct_objc_method_list.h, struct_objc_module.h,
841 struct_objc_protocol_list.h, struct_objc_symtab.h.
842 * objc/deprecated/struct_objc_category.h: New.
843 * objc/deprecated/struct_objc_ivar.h: New.
844 * objc/deprecated/struct_objc_ivar_list.h: New.
845 * objc/deprecated/struct_objc_method.h: New.
846 * objc/deprecated/struct_objc_method_list.h: New.
847 * objc/deprecated/struct_objc_module.h: New.
848 * objc/deprecated/struct_objc_protocol_list.h: New.
849 * objc/deprecated/struct_objc_symtab.h: New.
850 * objc/deprecated/struct_objc_static_instances.h: New.
851 * objc/objc-api.h: Definitions of deprecated structures moved into
852 the above header fragment files in objc/deprecated/. Include the
853 files instead of definition the structures here. Updated
855 * objc/runtime.h: Updated comments. Do not include objc-api.h.
856 (objc_set_enumeration_mutation_handler): Renamed to
857 objc_setEnumerationMutationHandler.
858 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
859 to objc_setEnumerationMutationHandler.
860 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
861 objc_setExceptionMatcher.
862 (objc_set_uncaught_exception_handler): Renamed to
863 objc_setUncaughtExceptionHandler.
864 * exception.c: Same changes.
866 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
868 * objc-sync.c: Include objc-private/common.h.
870 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
872 * objc-foreach.c: Include objc-private/common.h.
873 * objc/deprecated/METHOD_NULL.h: New file.
874 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
875 defining METHOD_NULL here.
876 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
877 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
879 ([-respondsTo:]): Same change.
880 * objc/objc-api.h (method_get_imp): Converted it into a normal
881 function so that we can hide the internals of struct objc_method.
882 * sendmsg.c (method_get_imp): Implemented.
884 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
886 * objc/objc-api.h (struct objc_super, Super, Super_t,
887 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
888 objc_msg_forward2): Declarations moved to objc/message.h. Include
890 * objc/message.h: Added such declarations; updated comments.
892 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
894 Implemented fast enumeration for Objective-C.
895 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
896 (OBJC_H): Added runtime.h
897 * objc-foreach.c: New file.
898 * objc/runtime.h: New file.
900 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
902 * objc/deprecated/struct_objc_class.h: Add padding
903 to avoid warning with -Wpadded.
905 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
907 * encoding.c (objc_sizeof_type): Added support for vector type and
908 for double long types.
909 (objc_alignof_type): Same change.
910 (objc_skip_typespec): Same change.
911 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
912 instead of '!' since '!' is already used for _C_VECTOR.
913 * objc/objc-api.h (_C_LNG_DBL): Added.
915 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
917 * libobjc_entry.c: File removed.
919 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
921 * sendmsg.c (objc_msg_lookup): Remove inline.
922 (objc_get_uninstalled_dtable): Likewise.
923 * encoding.c (objc_skip_type_qualifiers): Likewise.
924 (objc_skip_offset): Likewise.
925 * archive.c (__objc_write_object): Likewise
926 (__objc_write_class):
927 (__objc_write_selector):
929 (objc_read_unsigned_char):
931 (objc_read_unsigned_short):
934 (__objc_read_nbyte_uint):
935 (objc_read_unsigned_int):
936 (objc_read_unsigned_long):
937 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
938 (objc_EXPORT): Likewise.
939 * objc/message.h (objc-decls.h): Add include.
940 * objc/objc-api.h: Mark API by objc_EXPORT.
941 * libobjc.def (__objc_responds_to): Removed.
943 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
945 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
947 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
948 objc/sarray.h replaced with a placeholder including the file from
949 the deprecated/ directory.
950 * objc-private/sarray.h: New file (private copy of sarray.h).
951 * hash.c: Include <assert.h> instead of "assert.h"
952 * sarray.c: Include <assert.h> instead of "assert.h". Include
953 objc-private/sarray.h instead of objc/sarray.h.
954 * selector.c: Include objc-private/sarray.h instead of
956 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
957 instead of objc/sarray.h.
958 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
960 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
962 * objc-private/objc-list.h (list_remove_elem): Unused function
963 removed. (list_nth): Unused function removed. (list_find):
964 Unused function removed. (list_lenght): Unused function removed.
966 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
968 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
969 replaced with a placeholder including the file from the
970 deprecated/ directory.
971 * objc/objc-api.h: Updated includes.
972 * objc/typedstream.h: Updated includes.
973 * objc-private/hash.h: New file (private copy of hash.h).
974 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
975 objc/objc-list.h replaced with a placeholder including the file
976 from the deprecated/ directory.
977 * objc-private/objc-list.h: New file (private copy of objc-list.h).
978 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
979 instead of objc/hash.h and objc/objc-list.h.
980 * selector.c: Same change.
981 * class.c: Added include <string.h>, which used to be implicitly included
982 when hash.h was included.
983 * exception.c: Same change.
984 * objects.c: Same change.
985 * sarray.c: Same change.
986 * sendmsg.c: Same change.
987 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
989 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
991 Implemented objc_sync_enter() and objc_sync_exit(), which are
992 required by @synchronized() to work.
993 * objc-sync.c: New file.
994 * objc/objc-sync.h: New file.
995 * objc-private/objc-sync.h: New file.
996 * init.c (__objc_exec_class): Call __objc_sync_init() during the
997 Objective-C runtime startup.
998 * Makefile.in: Added objc-sync.c and objc-sync.h.
999 * configure.ac: Added GCC_CHECK_TLS.
1000 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1001 * configure: Regenerated.
1002 * config.h.in: Regenerated.
1004 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1006 * Makefile.in (%_gc.lo): New pattern rules to build the
1007 garbage-collected version of the library. Removed rules for
1008 specific files that are no longer needed. Standardized all rules.
1009 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1010 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1012 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1014 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1016 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1017 with Garbage Colletion.
1019 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1021 * memory.c: Do not include objc-private/runtime.h.
1023 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1025 * objc/deprecated/objc_malloc.h: New file.
1026 * objc/deprecated/objc_valloc.h: New file.
1027 * objc/objc-api.h: Include the files instead of defining
1028 objc_valloc, _objc_malloc() and similar.
1029 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1031 * memory.c: Removed the extra layer of indirection of _objc_malloc
1033 (objc_calloc): Use GC_malloc in the garbage-collected
1034 implementation as GC_malloc returns memory that is already freed.
1035 (objc_valloc): Deprecated.
1037 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1039 * objc/deprecated/objc_error.h: New file.
1040 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1041 defining objc_error and related.
1042 * error.c: New file. Added _objc_abort function which replaces
1043 objc_error. No change in functionality as they both print an
1045 * misc.c: File removed. Code moved into memory.c and error.c.
1046 * memory.c: New file.
1047 * objc-private/error.h: New file.
1048 * archive.c: Include objc-private/error.h and use _objc_abort
1049 instead of objc_error everywhere.
1050 * class.c: Same change.
1051 * encoding.c: Same change.
1052 * init.c: Same change, and simplified init_check_module_version.
1053 * memory.c: Same change.
1054 * sendmsg.c: Same change.
1055 * thr.c: Same change.
1056 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1057 (OBJ_H): Reordered list.
1058 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1059 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1060 (misc_gc.lo): Rule removed.
1061 (error_gc.lo): Rule added.
1062 (memory_gc.lo): Rule added.
1064 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1066 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1067 to check the API version. Added some comments.
1069 * objc-private/common.h: New file.
1070 * NXConstStr.m: Include objc-private/common.h.
1071 * Object.m: Same change.
1072 * Protocol.m: Same change.
1073 * archive.c: Same change.
1074 * class.c: Same change.
1075 * encoding.c: Same change.
1076 * exception.c: Same change.
1077 * gc.c: Same change.
1078 * hash.c: Same change.
1079 * init.c: Same change.
1080 * libobjc_entry.c: Same change.
1081 * linking.m: Same change.
1082 * misc.c: Same change (and added a comment).
1083 * nil_method.c: Same change.
1084 * objects.c: Same change.
1085 * sarray.c: Same change.
1086 * selector.c: Same change.
1087 * sendmsg.c: Same change.
1088 * thr.c: Same change.
1090 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1092 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1094 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1096 * archive.c: Removed not needed includes.
1097 * class.c: Same change.
1098 * hash.c: Same change.
1099 * misc.c: Same change.
1100 * nil_method.c: Same change.
1101 * objects.c: Same change.
1102 * sarray.c: Same change.
1103 * sendmsg.c: Same change.
1104 * thr.c: Same change.
1106 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1108 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1109 all the objc/*.h files.
1110 * objc-private/runtime.h: New file.
1111 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1112 files) instead of objc/runtime.h.
1113 * class.c: Same change.
1114 * hash.c: Same change.
1115 * init.c: Same change.
1116 * misc.c: Same change.
1117 * nil_method.c: Same change.
1118 * objects.c: Same change.
1119 * sarray.c: Same change.
1120 * selector.c: Same change.
1121 * sendmsg.c: Same change.
1122 * thr.c: Same change.
1124 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1126 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1127 'struct objc_selector' and 'sel_eq' moved here.
1128 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1129 'struct objc_procotol' moved here.
1130 * objc/deprecated/struct_objc_class.h: New file. Definition of
1131 'struct objc_class' moved here.
1132 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1134 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1135 * objc/message.h: New file. Definitions for relval_t, apply_t,
1136 arglist, arglist_t and objc_msg_lookup were moved here.
1137 * objc/objc.h: Include the above files instead of defining the
1138 corresponding structs, types and functions here. Added new opaque
1139 definitions for SEL and Class. Use Class and not 'struct
1140 objc_class *' in the definition of 'struct objc_object'.
1141 Commented all types defined in the file. Removed special
1142 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1144 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1145 objc_unexpected_exception.h.
1146 * objc/objc-api.h: Updated include of
1147 objc-unexpetected-exception.h
1148 * objc/objc-exception.h: Updated comments.
1149 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1150 files. Reindented list of files.
1152 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1154 * objc/objc-api.h (objc_trace): Unused variable removed.
1156 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1158 * objc/deprecated: New directory.
1159 * objc/deprecated/README: New file.
1160 * objc/README: New file.
1161 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1162 objc/typedstream.h replaced with a placeholder including the file
1163 from the deprecated/ directory.
1164 * objc/deprecated/objc-unexpected-exception.h: New file with the
1165 definition of _objc_unexpected_exception.
1166 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1167 instead of defining _objc_unexpected_exception.
1168 * objc/deprecated/Object.h: New file with the deprecated Object
1169 methods in a 'Deprecated' category.
1170 * objc/Object.h Include deprecated/Object.h instead of defining
1171 the deprecated methods.
1172 * Object.m: Moved deprecated methods into 'Deprecated' category.
1173 * objc-private: New directory.
1174 * objc-private/README: New file.
1175 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1176 (install-headers): Create installation directory for
1177 OBJC_DEPRECATED_H headers, and install them.
1179 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1181 * objc/objc-exception.h: Fixed include of objc.h.
1183 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1185 * objc/objc-exception.h: New file.
1186 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1187 (objc_set_exception_matcher): Implemented.
1188 (objc_exception_throw): Use the uncaught exception handler if set.
1189 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1191 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1192 up. Removed segmentation fault when value is 'nil'.
1193 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1195 * Makefile.in (exception.lo, exception_gc.lo): Use
1196 -Wno-deprecated-declarations when compiling.
1197 (OBJC_H): Added objc-exception.h
1199 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1201 * objc/typedstream.h: Deprecate all functions in the file. This
1203 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1204 [-awake]): Documented that these methods are deprecated. Added a
1205 brief description of the Object class and its relationship to the
1207 * Makefile.in: Compile archive.c and Object.m with
1208 -Wno-deprecated-declarations.
1210 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1212 Removed obsolete intermediate threading layer.
1213 * thr.c: Use __gthread_objc_xxx functions directly instead of
1214 __objc_thread_xxx ones.
1215 * objc/thr.h: Removed prototypes of no longer existing
1216 __objc_thread_xxx functions.
1217 * Makefile.in: Removed thr-objc.lo.
1218 * thr-dce.c: File removed.
1219 * thr-decosf1.c: File removed.
1220 * thr-irix.c: File removed.
1221 * thr-mach.c: File removed.
1222 * thr-objc.c: File removed.
1223 * thr-os2.c: File removed.
1224 * thr-posix.c: File removed.
1225 * thr-pthreads.c: File removed.
1226 * thr-rtems.c: File removed.
1227 * thr-single.c: File removed.
1228 * thr-solaris.c: File removed.
1229 * thr-vxworks.c: File removed.
1230 * thr-win32.c: File removed.
1231 * README.threads: File removed.
1232 * THREADS.MACH: File removed.
1235 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1237 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1239 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1241 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1242 Add a comment as to why, update FIXME comments.
1244 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1246 * makefile.dos: Obsolete file removed.
1248 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1250 * aclocal.m4: Regenerate.
1252 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1255 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1256 Cygwin and MinGW hosts.
1257 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1258 (libobjc.dll): Likewise.
1259 * configure: Regenerate.
1261 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1263 * configure: Regenerate.
1265 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1267 * sarray.c (sarray_free): Use old_buckets variable.
1268 * encoding.c (objc_layout_structure_next_member): Remove unused
1269 bfld_type_size variable.
1271 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1273 * configure.ac (AC_PREREQ): Bump to 2.64.
1275 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1277 * aclocal.m4: Regenerate.
1278 * configure: Regenerate.
1279 * config.h.in: Regenerate.
1281 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1283 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1285 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1287 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1289 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1291 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1293 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1295 2009-04-09 Nick Clifton <nickc@redhat.com>
1297 * sendmsg.c: Change copyright header to refer to version 3 of
1298 the GNU General Public License with version 3.1 of the GCC
1299 Runtime Library Exception and to point readers at the COPYING3
1300 and COPYING3.RUNTIME files and the FSF's license web page.
1301 * NXConstStr.m: Likewise.
1302 * Object.m: Likewise.
1303 * Protocol.m: Likewise.
1304 * archive.c: Likewise.
1305 * class.c: Likewise.
1306 * encoding.c: Likewise.
1307 * exception.c: Likewise.
1311 * libobjc_entry.c: Likewise.
1312 * linking.m: Likewise.
1314 * nil_method.c: Likewise.
1315 * objc/NXConstStr.h: Likewise.
1316 * objc/Object.h: Likewise.
1317 * objc/Protocol.h: Likewise.
1318 * objc/encoding.h: Likewise.
1319 * objc/hash.h: Likewise.
1320 * objc/objc-api.h: Likewise.
1321 * objc/objc-decls.h: Likewise.
1322 * objc/objc-list.h: Likewise.
1323 * objc/objc.h: Likewise.
1324 * objc/runtime.h: Likewise.
1325 * objc/sarray.h: Likewise.
1326 * objc/thr.h: Likewise.
1327 * objc/typedstream.h: Likewise.
1328 * objects.c: Likewise.
1329 * sarray.c: Likewise.
1330 * selector.c: Likewise.
1331 * thr-dce.c: Likewise.
1332 * thr-decosf1.c: Likewise.
1333 * thr-irix.c: Likewise.
1334 * thr-mach.c: Likewise.
1335 * thr-objc.c: Likewise.
1336 * thr-os2.c: Likewise.
1337 * thr-posix.c: Likewise.
1338 * thr-pthreads.c: Likewise.
1339 * thr-rtems.c: Likewise.
1340 * thr-single.c: Likewise.
1341 * thr-solaris.c: Likewise.
1342 * thr-vxworks.c: Likewise.
1343 * thr-win32.c: Likewise.
1345 * libobjc.def: Change copyright header to refer to version 3 of
1346 the GNU General Public License and to point readers at the COPYING3
1347 file and the FSF's license web page.
1348 * makefile.dos: Likewise.
1350 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1352 * Makefile.in: Change copyright header to refer to version
1353 3 of the GNU General Public License and to point readers at the
1354 COPYING3 file and the FSF's license web page.
1355 * configure.ac: Likewise.
1357 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1358 David Ayers <ayers@fsfe.org>
1361 * objc/objc-api.h (_objc_unexpected_exception): Declare
1362 new hook. Update copyright dates.
1363 * exception.c (objc_exception_throw): Use hook. Update
1365 * libobjc.def (_objc_unexpected_exception): Export hook.
1366 Update copyright dates.
1368 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1370 * configure: Regenerate.
1372 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1374 * configure: Regenerate.
1376 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1378 * Object.m (errno): Replaced by errno.h include.
1379 (compare): Cast self to id to prevent warning on comparison.
1380 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1382 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1383 * thr-win32.c (__objc_thread_detach): Remove type warning.
1384 (__objc_thread_id): Likewise.
1385 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1388 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1389 Steve Ellcey <sje@cup.hp.com>
1391 * configure: Regenerate for new libtool.
1392 * config.h.in: Regenerate for new libtool.
1394 2008-07-18 Matthias Klose <doko@ubuntu.com>
1396 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1398 2008-07-18 Matthias Klose <doko@ubuntu.com>
1400 * Makefile.in: Include ../boehm-gc/threads.mk.
1401 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1403 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1405 * Makefile.in (install-info): New stub target.
1407 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1409 * configure: Regenerate.
1411 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1413 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1414 if HAVE_GETIPINFO is not defined.
1416 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1418 * Object.m (compare): Add type id.
1419 * objc/Object.h: Likewise.
1420 * archive.c (objc_read_class): Use size_t to extend version to be
1421 size of pointer scalar width.
1422 * sendmsg.c (rtx): Undefine it before redefinition.
1423 (__objc_print_dtable_stats): Cast arguments to long as intended.
1425 2008-05-30 Julian Brown <julian@codesourcery.com>
1427 * exception.c (__objc_exception_class): Initialise as constant
1428 array for ARM EABI. Change macro to static const for non-ARM EABI.
1429 (ObjcException): Add note about structure layout. Remove landingPad
1430 and handlerSwitchValue for ARM EABI.
1431 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1433 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1434 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1435 ARM EABI unwinding support.
1436 (objc_exception_throw): Use memcpy to initialise exception class.
1438 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1440 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1441 (rs6000_special_round_type_align): Update.
1443 2008-05-09 Julian Brown <julian@codesourcery.com>
1445 * Makefile.in (LTLDFLAGS): New.
1446 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1448 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1451 * aclocal.m4: Regenerate.
1452 * configure: Regenerate.
1454 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1456 * configure: Regenerate.
1458 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1460 * configure.ac: Don't run config-ml.in directly.
1461 (multilib_arg): New.
1462 * configure: Regenerated.
1464 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1467 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1468 of _Unwind_Word for variables which are used in
1469 read_uleb128/read_sleb128.
1470 (PERSONALITY_FUNCTION): Likewise.
1472 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1474 * aclocal.m4: Regenerated.
1476 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1478 * configure.ac: Fix a typo in *-*-darwin clause.
1479 * configure: Regenerated.
1481 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1483 * configure.ac: Fix a typo.
1484 * configure: Regenerated.
1486 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1488 * configure: Regenerate.
1490 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1492 * Makefile.in: Replace all uses of libext with libsuffix.
1493 * configure.ac: Likewise.
1494 * configure: Regenerate.
1497 * Makefile.in: Remove all uses of $(libext).
1499 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1501 * Makefile.in: Remove all uses of $(libext).
1503 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1505 * configure: Regenerate.
1506 * aclocal.m4: Regenerate.
1508 2007-04-21 Andrew Ruder <andy@aeruder.net>
1510 * sendmsg.c (__objc_get_forward_imp): Call
1511 __objc_msg_forward2 for real.
1513 2007-04-09 Andrew Ruder <andy@aeruder.net>
1515 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1516 external libraries to provide a function that returns the real
1517 forwarding function based on both the selector and the receiver.
1518 * objc/objc-api.h: Define __objc_msg_forward2.
1520 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1522 * Makefile.in: Add dummy install-pdf target.
1524 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1526 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1529 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1531 * encoding.c (darwin_rs6000_special_round_type_align): New.
1533 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1535 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1536 * configure.ac: Use multi.m4 from aclocal rather than custom
1537 code. Use multi_basedir instead of toplevel_srcdir.
1538 * aclocal.m4: Regenerate.
1539 * configure: Regenerate.
1541 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1543 * Makefile.in: Added empty "pdf" target.
1545 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1547 * configure: Regenerate.
1549 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1551 * Makefile.in: Add install-html target. Add install-html to .PHONY
1553 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1556 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1558 2006-01-24 David Ayers <d.ayers@inode.at>
1561 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1562 and insure the new strings are '\0' termintated.
1564 2006-01-24 David Ayers <d.ayers@inode.at>
1567 * configure.ac: Add include directives for --enable-objc-gc.
1568 * Makefile.in: Ditto.
1569 * configure: Regenerate.
1571 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1572 instead of the local pointer to them.
1574 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1577 * objc/objc-api.c (_C_COMPLEX): New define.
1578 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1579 (objc_alignof_type): Likewise.
1580 (objc_skip_typespec): Likewise.
1582 2005-12-15 David Ayers <d.ayers@inode.at>
1585 * README (+load,+initialize): Fix documentation to reflect
1586 intended and implemented semantics for +load and +initialize.
1588 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1590 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1592 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1593 (rs6000_special_round_type_align): Update for the ABI fix.
1594 (objc_layout_finish_structure): Correct the encoding which is passed to
1597 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1600 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1601 but use the struct layout functions.
1602 (objc_alignof_type): Likewise.
1603 (objc_layout_structure): Handle _C_UNION_B also.
1604 (objc_layout_structure_next_member): Likewise.
1605 (objc_layout_finish_structure): Likewise.
1607 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1610 * objc/objc-api.h (_C_BOOL): New define.
1611 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1612 (objc_alignof_type): Likewise.
1613 (objc_skip_typespec): Likewise.
1615 2005-11-20 David Ayers <d.ayers@inode.at>
1618 * objc/hash.h: Remove deprecated hash API.
1619 * hash_compat.c: Remove.
1620 * Makefile.in: Remove reference to hash_compat.c.
1622 * configure.ac (VERSION): Bump library version to 2:0:0.
1623 * configure: Regenerate.
1625 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1628 * thr-objc.c (_XOPEN_SOURCE): Define.
1630 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1633 * objc/objc-api.h (struct objc_ivar): Move definition to
1636 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1637 Rasmus Hahn <rassahah@neofonie.de>
1640 * archive.c (objc_write_type): Correct the element offset.
1641 (objc_read_type): Likewise.
1643 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1645 * All files: Update FSF address.
1647 2005-08-13 Marcin Koziej <creep@desk.pl>
1648 Andrew Pinski <pinskia@physics.uc.edu>
1651 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1653 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1655 * Makefile.in (extra_ldflags_libobjc): New.
1656 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1657 (libobjc_gc$(libext).la): Likewise.
1658 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1659 "-Wl,-single_module".
1660 * configure: Regenerate.
1661 * linking.m (_objcInit): Remove.
1663 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1666 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1668 2005-06-08 David Ayers <d.ayers@inode.at>
1670 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1671 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1672 objc/runtime.h, objc/sarray.h, objc/thr.h,
1673 objc/typedstream.h: Do not include Objective-C headers as
1676 2005-06-07 David Ayers <d.ayers@inode.at>
1678 * archive.c, init.c, selector.c: Include hash.h.
1679 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1680 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1681 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1682 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1683 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1684 Include Objective-C headers with quotes and objc/ directory
1687 2005-05-19 Richard Henderson <rth@redhat.com>
1689 * exception.c: Revert last change.
1691 2005-05-19 David Ayers <d.ayers@inode.at>
1693 * exception.c: Include tsystem.h for unwind.h.
1695 2005-05-09 Mike Stump <mrs@apple.com>
1697 * configure: Regenerate.
1699 2005-04-12 Mike Stump <mrs@apple.com>
1701 * configure: Regenerate.
1703 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1705 * Makefile.in: Set gcc_version here.
1706 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1707 in definition of toolexeclibdir so that $(gcc_version) is expanded
1709 * aclocal.m4, configure: Regenerate.
1711 2005-03-03 David Ayers <d.ayers@inode.at>
1713 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1714 version reference. Correct typo.
1716 2005-03-02 David Ayers <d.ayers@inode.at>
1719 * Makefile.in (OBJS): Add hash_compat.lo.
1720 (OBJS_GC): Add hash_compat_gc.lo.
1721 (hash_compat_gc.lo): New target and rule.
1722 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1723 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1724 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1725 with objc_. Add deprecated non prefixed inlined versions.
1726 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1728 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1729 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1731 * hash_compat.c: New file.
1732 * archive.c: Update callers.
1734 * selector.c: Likewise.
1735 * libobjc.def: Add objc_ versions of hash functions.
1737 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1740 * Makefile.in (GTHREAD_FLAGS): Remove.
1741 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1742 * thr-objc.c: Include config.h.
1743 * configure.ac: Instead of looking at GCC's makefile, figure out if
1744 GTHREAD_FLAGS should be defined by looking at the `thread model'
1746 * configure: Regenerate.
1747 * config.h.in: Regenerate.
1749 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1752 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1753 (Determine CFLAGS for gthread): Use $host_subdir.
1754 * configure: Regenerate.
1755 * Makefile.in (host_subdir): New.
1758 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1761 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1763 Include limits.h and stdlib.h.
1764 Define BITS_PER_WORD.
1766 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1768 * selector.c (__objc_init_selector_tables): Add missing void to
1771 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1773 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1774 * configure, aclocal.m4: Regenerate.
1776 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1778 * configure: Regenerate for libtool change.
1780 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1782 * configure: Regenerate for libtool reversion.
1784 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1786 * configure: Regenerate for libtool change.
1788 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1790 * aclocal.m4, config.h.in: Regenerate.
1792 2004-10-08 Mike Stump <mrs@apple.com>
1793 Andrew Pinski <pinskia@physics.uc.edu>
1795 * aclocal.m4: Rename to ...
1796 * acinclude.m4: here and also use m4_include instead of sinclude.
1797 * aclocal.m4: Regenerate.
1798 * configure: Regenerate.
1799 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1800 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1802 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1804 * archive.c: Fix all the warnings about passing unsigned char*
1805 to char* and the other way too.
1807 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1810 * exception.c: Include config.h
1811 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1813 * configure.ac: Find out what exception handling code we use.
1814 * configure: Regenerate.
1815 * config.h.in: New file, regenerate.
1817 2004-09-16 Andrew Pinski <apinski@apple.com>
1819 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1821 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1823 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1824 ACX_NONCANONICAL_TARGET.
1825 * configure: Regenerate.
1827 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1829 * objc/sarray.h: Hoist include of assert.h near the top of file,
1830 and mark the remainder of the file 'extern "C"'.
1832 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1834 * objc/Object.h: Move includes out of extern "C" blocks.
1835 * objc/encoding.h: Likewise.
1836 * objc/hash.h: Likewise.
1837 * objc/objc-api.h: Likewise.
1838 * objc/runtime.h: Likewise.
1839 * objc/sarray.h: Likewise.
1840 * objc/typedstream.h: Likewise.
1842 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1844 * objc/NXConstStr.h: Update copyright date; bracket with
1845 'extern "C"' for C++ use; make include syntax consistent
1846 by using <...> instead of "..."; hoist <objc/...> includes
1847 above the 'extern "C"' block.
1848 * objc/Object.h: Likewise.
1849 * objc/Protocol.h: Likewise.
1850 * objc/encoding.h: Likewise.
1851 * objc/hash.h: Likewise.
1852 * objc/runtime.h: Likewise.
1853 * objc/sarray.h: Likewise.
1854 * objc/thr.h: Likewise.
1855 * objc/typedstream.h: Likewise.
1856 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1857 (objc_static_instances): For C++ case, do away with
1859 (objc_method): Hoist definition to file scope.
1860 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1861 class_get_instance_method, class_create_instance,
1862 class_get_class_name, class_get_instance_size,
1863 class_get_meta_class, class_get_super_class, class_get_version,
1864 class_is_class, class_is_meta_class, class_set_version,
1865 class_get_gc_object_type, class_ivar_set_gcinvisible,
1866 get_imp): Rename 'class' parameter to '_class'.
1867 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1868 * objc/objc.h: Update copyright date.
1869 (arglist_t): Provide a union tag.
1871 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1873 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1874 but instead use the attribute noreturn.
1876 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1878 * encoding.c: Rename target_flags with a #define to avoid
1879 conflict with a prior declaration.
1881 2004-06-24 Andrew Pinski <apinski@apple.com>
1883 * objc/encoding.h: Wrap the functions with extern "C" for C++
1885 * objc/hash.h: Likewise.
1886 * objc/objc-api.h: Likewise.
1887 * objc/objc-list.h: Likewise.
1888 * objc/runtime.h: Likewise.
1889 * objc/sarray.h: Likewise.
1890 * objc/thr.h: Likewise.
1891 * objc/typedstream.h: Likewise.
1894 2004-06-21 Nick Clifton <nickc@redhat.com>
1896 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1899 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1901 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1902 (exception_gc.lo): New.
1903 (OBJS_GC): Add exception_gc.lo.
1905 2004-06-17 Richard Henderson <rth@redhat.com>
1907 * exception.c: New file.
1908 * Makefile.in (exception.lo): New.
1911 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1913 * linking.m (_objcInit): New empty function
1916 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1918 * configure.ac: Support --enable-shared=libobjc.
1919 * configure: Regenerate.
1922 * configure.ac: Do not disable shared by default.
1923 * configure: Regenerate.
1925 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1927 * Protocol.m ([-isEqual:]): Small optimizations returning
1928 immediately if the argument is equal to self, and accessing
1929 the argument's name directly if it's a protocol.
1931 2004-06-03 David Ayers <d.ayers@inode.at>
1933 * Protocol.m ([-isEqual:]): Test the class of the argument.
1935 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1937 * configure.ac (includedir): Rename to ...
1939 * Makefile.in: s/includedir/includedirname/.
1942 * configure.ac (includedir): Set to "include"
1944 (libext) Set to empty except for Darwin.
1945 * configure: Regenerate
1946 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1947 s/include/$(includedir)/g.
1949 2004-05-25 Daniel Jacobowitz <drow@false.org>
1951 * Makefile.in: Add .NOEXPORT.
1953 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1955 Merge from the libobjc-branch
1956 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1958 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1960 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1962 * Makefile.in (OBJC_H): Add objc-deps.h.
1964 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1966 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1967 ([-hash], [-isEqual:]): New methods.
1969 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1971 * sarray.c (sarray_free): Add a better comment.
1973 2004-01-27 Adam Fedor <fedor@gnu.org>
1975 * hash.c (hash_add): Cast cachep to int.
1976 * selector.c (__sel_register_typed_name): Cast
1977 soffset_decode to int.
1979 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1981 * selector.c: Rename register_selectors_from_list to
1982 __objc_register_selectors_from_list. Update caller.
1983 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1984 while registering selectors. Use __sel_register_typed_name instead
1985 of sel_register_typed_name. Check for NULL method_name:s.
1986 (pool_alloc_selector): New function.
1987 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1988 selector structures.
1989 * sendmsg.c (class_add_method_list): Use
1990 __objc_register_selectors_from_list.
1991 * objc/runtime.h: Add __objc_register_selectors_from_list.
1993 2004-01-25 Adam Fedor <fedor@gnu.org>
1994 Nicola Pero <n.pero@mi.flashnet.it>
1995 Andrew Pinski <pinskia@physics.uc.edu>
1997 * objc/objc-decls.h: New file.
1998 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1999 (_objc_load_callback): Likewise.
2000 (_objc_object_alloc): Likewise.
2001 (_objc_object_copy): Likewise.
2002 (_objc_object_dispose): Likewise.
2004 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2006 * archive.c: s/__inline__/inline
2007 * sendmsg.c: Likewise.
2009 * encoding.c: Remove FIXME about the warning
2010 about unused variable.
2011 * sendmsg.c: Add a FIXME comment saying that
2012 this should be using libffi.
2014 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2017 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2019 * archive.c (objc_read_class): Initialize class_name.
2020 (objc_read_selector): Initialize selector_name.
2022 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2024 * Makefile.in (toolexecdir): Remove trailing space.
2026 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2029 * configure.ac: De-precious CC so multilibs work.
2030 * configure: Regenerate.
2032 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2034 * configure.ac: Restore toolexecdir.
2035 * Makefile.in: Restore toolexecdir.
2036 * configure: Regenerate.
2038 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2040 * configure.ac: Remove (unused) glibcpp_prefixdir.
2041 * configure: Regenerate.
2043 * configure.in: Rename to configure.ac.
2044 * Makefile.in: Update to match.
2046 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2047 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2048 * configure.in: Remove glibcpp_toolexecdir (unused).
2049 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2050 config.h or stamp-h (unused). Move one comment to the right place.
2051 * configure: Regenerate.
2052 * config.h.in: Remove (unused).
2054 * config.h.in: Regenerate with autoheader.
2056 * Makefile.in: Remove (unused) gcc_version_trigger.
2057 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2058 gcc_version_trigger.
2059 * configure: Regenerate.
2061 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2062 Sort file into sections. Remove dnl where appropriate. Fix
2064 * configure: Regenerate.
2066 * configure.in: Replace old AC_PROG_CC hack with new one.
2067 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2068 are no subdirectory output files, so this is fine). Change prereq
2070 * aclocal.m4: Include ../config/no-executables.m4.
2071 * configure: Regenerate with autoconf 2.59.
2073 * configure.in: Improve comments on gthread_cflags. Improve m4
2074 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2075 * configure: Regenerate.
2077 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2078 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2079 redundant checks for values of RANLIB, AR, INSTALL.
2080 * configure: Regenerate.
2082 * configure.in: Clean up handling of
2083 --enable-version-specific-runtime-libs and related variables;
2084 replace 'if test' with 'case' where reasonable. Fix comments.
2085 Remove useless libstdcxx_interface.
2086 * configure: Regenerate.
2088 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2089 Replace uses of target_alias with target_noncanonical.
2090 * aclocal.m4: Include ../config/acx.m4.
2091 * configure: Regenerate.
2092 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2093 Fix copyright statement.
2095 * configure.in: Hand-inline bulky, confusing macros from
2096 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2097 Update copyright notice. Remove stuff for automake, which isn't
2098 used in this directory. Remove emacs local variables.
2099 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2100 * configure: Regenerate.
2102 2004-03-16 Manfred Hollstein <mh@suse.com>
2104 * Makefile.in, configure.in, configure: Update copyright years.
2106 2004-03-15 Manfred Hollstein <mh@suse.com>
2108 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2109 definition from configure.in.
2110 * configure.in (PACKAGE): Add definition.
2111 (VERSION): Add definition; substitute it in output files.
2112 * configure: Re-generate.
2114 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2116 * objc/hash.h (hash_string, compare_strings):
2117 Add type-casts to make Objective-C++ happy.
2118 * objc/typedstream.h (objc_get_stream_class_version):
2119 Rename parameter from 'class' to 'class_name' to make
2120 Objective-C++ happy.
2122 2004-03-01 Michael Matz <matz@suse.de>
2124 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2126 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2128 * objc/objc-api.h (objc_super): The 'class' field shall
2129 be named 'super_class' #ifdef __cplusplus.
2131 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2134 * encoding.c (rs6000_special_round_type_align): Define.
2136 2004-01-14 Adam Fedor <fedor@gnu.org>
2139 * selector.c (__objc_register_instance_methods_to_class): Free
2140 new_list if not used.
2142 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2145 * sarray.c (sarray_free): Free array->is_copy_of latter.
2147 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2150 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2151 instance_methods if it's NULL.
2152 (descriptionForClassMethod): Likewise for class_methods.
2154 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2156 * Makefile.in (runtime-info.h): Remove -Wp.
2158 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2160 * Makefile.in (CC1OBJ): Remove.
2161 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2163 Use .m extension for temporary file.
2164 Remove assembler temp file.
2166 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2168 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2170 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2172 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2174 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2176 * configure: Regenerate.
2178 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2180 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2181 (libdir)/gcc-lib/ when installing.
2182 * configure: Regenerate.
2184 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2187 * sendmsg.c (get_imp): Fixed rare threading problem.
2188 (__objc_responds_to): Similar fixes.
2189 (objc_msg_lookup): Similar fixes.
2190 (__objc_init_install_dtable): Lock the runtime before checking if the
2193 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2195 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2196 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2197 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2198 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2199 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2200 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2201 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2202 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2203 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2204 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2205 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2207 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2208 Nicola Pero <n.pero@mi.flashnet.it>
2211 * init.c (class_superclass_of_class): New function.
2212 (create_tree_of_subclasses_inherited_from): Use it.
2213 (__objc_tree_insert_class): Likewise.
2214 (class_is_subclass_of_class): Likewise.
2216 2003-04-11 David Chad <davidc@freebsd.org>
2217 Loren J. Rittle <ljrittle@acm.org>
2220 * objc/hash.h (hash_string): Constify correctly.
2221 (compare_ptrs): Use direct compare.
2222 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2223 * objc/sarray.h: Global rename index to indx to avoid shadow.
2225 2003-03-12 Andreas Schwab <schwab@suse.de>
2227 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2228 glibcpp_toolexeclibdir.
2229 * configure: Rebuilt.
2231 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2233 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2235 * configure: Rebuilt.
2237 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2239 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2240 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2241 version_specific_libs is enabled.
2242 * configure: Rebuilt.
2244 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2246 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2247 (install-libs, install-headers): Prepend $(DESTDIR) to
2248 destination paths in all (un)installation commands.
2250 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2252 * thr-objc.c: Include coretypes.h and tm.h.
2254 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2256 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2258 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2260 * configure.in: Remove skip-this-dir support.
2261 * configure: Regenerate.
2263 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2265 * Makefile.in (all): Fix multilib parallel build.
2267 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2269 * sendmsg.c (nil_method): Declare not to take a variable number of
2271 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2272 (objc_msg_lookup_super): The same.
2274 2002-09-10 Jan Hubicka <jh@suse.cz>
2276 * nil_method.c (nil_method): No longer defined with variable
2279 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2281 * objc/encoding.h: Fix formatting.
2282 * objc/hash.h: Likewise.
2283 * objc/objc-api.h: Likewise.
2284 * objc/runtime.h: Likewise.
2285 * objc/thr.h: Likewise.
2286 * archive.c: Likewise.
2287 * class.c: Likewise.
2288 * encoding.c: Likewise.
2293 * nil_method.c: Likewise.
2294 * objects.c: Likewise.
2295 * sarray.c: Likewise.
2296 * selector.c: Likewise.
2297 * sendmsg.c: Likewise.
2298 * thr-mach.c: Likewise.
2301 2002-06-25 DJ Delorie <dj@redhat.com>
2303 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2304 GLIBCPP_TOPREL_CONFIGURE.
2305 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2306 * configure: Regenerate.
2308 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2310 * Object.m (forward, read, write): Fix unused parameter warnings.
2311 * encoding.c: Include <stdlib.h>.
2312 (target_flags): Mark with attribute unused.
2314 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2315 (__objc_generate_gc_type_description): Prototype.
2316 * selector.c (__objc_selector_max_index): Change to unsigned int.
2318 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2320 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2321 we always have a return value: if __objc_msg_forward does not
2322 supply a forwarding implementation, return the default
2323 __builtin_apply based one.
2325 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2327 * Object.m: Fix signed/unsigned warning.
2328 * Protocol.m: Likewise.
2329 * archive.c: Always include stdlib.h.
2330 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2331 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2332 Fix signed/unsigned warning.
2333 (objc_write_type, objc_read_type, objc_write_types,
2334 objc_read_types): Ensure ctype 8-bit safety.
2335 (__objc_no_write, __objc_no_read): Mark unused parameters.
2336 * class.c (class_table_setup): Specify void arg.
2337 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2338 objc_skip_typespec, objc_skip_offset,
2339 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2340 (objc_layout_structure_next_member): Ensure variables are
2342 * gc.c (__objc_generate_gc_type_description,
2343 class_ivar_set_gcinvisible): Mark unused parameters.
2344 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2346 (__objc_init_protocols) Fix signed/unsigned warning.
2347 * nil_method.c (nil_method): Mark unused parameters.
2348 * thr.h (objc_thread_callback): Specify void arg.
2349 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2350 signed/unsigned warning.
2351 (sarray_free): Fix formatting.
2352 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2353 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2355 2002-06-09 Andreas Jaeger <aj@suse.de>
2357 * encoding.c (objc_layout_structure_next_member): Remove unused
2360 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2362 * Makefile.in (SHELL): Set to @SHELL@.
2364 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2366 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2368 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2369 * configure: Regenerate.
2371 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2373 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2374 script entry, and set LD to it when configuring multilibs.
2375 * configure: Rebuilt.
2377 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2379 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2381 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2384 * objc/objc-api.h (struct objc_protocol_list): Change type of
2385 member count from int to size_t.
2387 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2390 * aclocal.m4: Replace with version copied from libstdc++-v3.
2391 * configure.in: Update for changes to aclocal and Makefile.
2392 * configure: Regenerate.
2393 * Makefile.in: Correct install of multilibs and shared libs, use
2394 INSTALL_DATA for include files.
2396 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2398 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2399 categories - when an unclaimed category was found, the loop was
2400 doing two steps forward instead of one, so that in certain cases
2401 it was failing to properly load all the categories. (Reported
2402 with fix by Alexander Malmberg <alexander@malmberg.org>).
2404 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2406 * encoding.c: Add target_flags.
2408 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2410 * objc/objc-api.h (_C_VECTOR): New.
2412 * encoding.c (VECTOR_TYPE): New.
2414 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2416 * class.c: Rewritten the class table to use optimized, lock-free
2417 lookup. This more than doubles the speed of class method
2418 invocations. (class_table_setup), (class_table_insert),
2419 (class_table_replace), (class_table_get_safe),
2420 (class_table_next), (class_table_print),
2421 (class_table_print_histogram): New functions.
2422 (__objc_init_class_tables): Use class_table_setup.
2423 (__objc_add_class_to_hash): Use class_table_get_safe and
2424 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2425 assert the existence of the table; do not lock the runtime; use
2426 class_table_get_safe. (objc_next_class): Use class_table_next.
2427 (__objc_resolve_class_links): Use class_table_next.
2428 (class_pose_as): Use class_table_replace.
2430 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2432 * gc.c: Removed the DEBUG declaration.
2434 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2436 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2437 rather than through objc_thread_id, to save a function call.
2438 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2441 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2443 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2444 to cast an id to a Class, which can not be done. Make the check
2445 by using CLS_ISMETA on the class pointer instead.
2446 (object_is_meta_class): Similar fix.
2448 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2450 * configure.in (AC_EXEEXT): Work around in case it expands to
2451 nothing, as in autoconf 2.50.
2452 * acinclude.m4: Likewise.
2453 * configure: Rebuilt.
2455 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2457 * THREADS: Explain that when we compile libobjc inside GCC, we
2458 always use thr-objc.c as a backend, which uses GCC's thread code.
2460 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2462 * init.c (__objc_send_message_in_list): When setting a new entry
2463 in __objc_load_methods use the method IMP as key, but check to see
2464 if the method is in the hashtable by looking at the IMP also.
2465 Also ... call the method after adding it to the hashtable rather
2466 than before ... thus preventing an obscure possibility of infinite
2467 recursion if a +load method itself loads a subclass.
2469 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2471 * init.c (__objc_send_message_in_list): When setting a new entry
2472 in __objc_load_methods use the method name as key, not the method
2473 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2475 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2477 * objc-features.texi: Move to ../gcc/objc.texi.
2479 * Makefile.in: Don't generate documentation from
2482 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2484 * fdl.texi: New file.
2485 * objc-features.texi: Simplify.
2486 * Makefile.in: Adjust accordingly.
2488 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2490 * objc-features.texi: Use the GFDL.
2492 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2494 * encoding.c (REAL_TYPE): Define.
2496 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2498 * encoding.c (TYPE_MODE): Define.
2500 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2502 * thr.c (objc_thread_add): New function.
2503 (objc_thread_remove): Ditto.
2504 * objc/thr.h: Declare them.
2505 * libobjc.def: Mention them.
2507 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2509 * objc-features.texi: Document the @compatibility_alias compiler
2510 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2512 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2514 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2516 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2518 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2519 we're not interested in the result and they might fail.
2520 * configure: Regenerated.
2522 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2524 * objc-features.texi: Use @email.
2526 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2528 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2531 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2533 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2534 determines the value dynamically.
2536 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2538 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2539 libraries to provide a function that returns the real forwarding
2540 function. This can alleviate problems __builtin_apply() and
2541 friends have on various platforms. (Solution suggested by Helge
2544 * objc/objc-api.h: Define __objc_msg_forward.
2546 * sendmsg.c: Define gen_rtx_REG.
2548 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2550 * thr-rtems.c: New file. Stub to compile.
2552 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2554 * configure: Rebuilt with new libtool.m4.
2556 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2558 * configure.in: Create a config.h file. Check for <sched.h>.
2559 * configure: Regenerate.
2561 * config.h.in: Check for <sched.h>.
2563 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2565 * configure: Regenerate after change to ../libtool.m4.
2567 2000-08-14 Andreas Schwab <schwab@suse.de>
2569 * objc-features.texi (Top): Move @menu at end of node.
2571 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2573 * objc-features.texi: Move @node Top before @menu.
2575 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2577 * objc-features.texi: Documented the new -fconstant-string-class
2580 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2582 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2583 improve the Posix thread support for Objective-C.
2585 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2587 * aclocal.m4: Replace copy of ../libtool.m4 with
2588 sinclude(../libtool.m4).
2590 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2592 * configure.in: Added libtool support; build shared libraries
2593 if --enable-shared was passed on command line.
2594 * Makefile.in: Modified most compilation commands to use libtool.
2595 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2596 libtool distribution.
2598 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2600 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2601 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2604 2000-05-12 H.J. Lu (hjl@gnu.org)
2606 * Makefile.in (GTHREAD_FLAGS): New.
2607 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2608 (OBJC_THREAD_FILE): Changed to thr-objc.
2610 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2612 (OBJC_THREAD_FILE): Removed.
2616 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2618 * objc/hash.h: Include string.h.
2620 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2622 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2624 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2626 * Object.m (strlen): Provide prototype on all 64bit platforms,
2628 * sarray.c (memcpy): Likewise.
2629 * encoding.c (objc_layout_finish_structure): Don't use
2630 ROUND_TYPE_ALIGN on sparc.
2632 * encoding.c (objc_layout_structure_next_member): Do the whole
2633 procedure even for the first member, so that we get correct
2636 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2638 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2641 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2643 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2645 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2647 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2649 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2651 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2652 the compiler when building C code.
2654 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2656 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2657 libdir, libsubdir and tooldir.
2659 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2661 * init.c (__objc_force_linking): Make global.
2663 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2665 * configure.in (AC_EXEEXT): Remove call.
2666 (compiler_name): Explicitly check with no extension and .exe
2668 * configure: Regenerate.
2670 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2672 * Makefile.in (CC1OBJ): Define in terms of CC.
2673 (runtime-info.h): Use.
2675 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2677 * objc-features.texi: Updated the URL to Boehm's GC page.
2679 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2681 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2682 the char as being signed (patch from Daniel Jacobowitz
2685 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2687 * configure.in (AC_PREREQ): Update to 2.13.
2688 (AC_EXEEXT): Call to find possible file extension.
2689 (compiler_name): Use.
2690 * configure: Regenerate.
2692 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2694 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2696 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2698 * configure.in (thread_file): Correct and simplify code to find
2700 * configure: Rebuilt.
2702 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2704 * configure.in (compiler_name): Add check to detect if this
2705 language's compiler has been built.
2706 * configure: Regenerate.
2708 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2710 * configure.in: Use AC_PREREQ(2.12.1).
2712 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2714 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2716 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2718 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2720 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2722 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2724 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2726 * objc-features.texi (Top): Changed the email address.
2727 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2729 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2731 * encoding.c: Redefine get_inner_array_type to get the first entry
2734 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2736 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2737 (objc_get_type_qualifiers): Similarly.
2738 * objc/encoding.h (_C_BYREF): Define.
2741 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2743 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2744 works out on 64-bit systems.
2746 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2748 * Makefile.in (INCLUDES): Make it multilib-friendly.
2750 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2752 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2754 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2755 Jeffrey A Law (law@cygnus.com)
2757 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2758 (FLAGS_TO_PASS): Added.
2759 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2761 * archive.c: Change config.h to tconfig.h.
2763 * configure.in: Find gcc's object directory even for multilibs.
2765 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2767 * configure.in: Escape ^ in grep string.
2768 * configure: Rebuilt.
2770 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2772 * All .h files pushed down into the objc/ subdirectory.
2773 * Makefile.in (copy_headers): Corresponding changes.
2774 * configure.in (AC_INIT): Corresponding changes.
2775 * configure: Rebuilt.
2777 1998-09-30 Ben Elliston <bje@cygnus.com>
2778 Jeff Law <law@cygnus.com>
2780 * Makefile.in: Rewrite.
2782 * configure.in: Likewise.
2784 * configure: Regenerate.
2786 * All .c files. Remove "objc" prefix when including objc header
2787 files. Include tconfig.h, not ../tconfig.h.
2789 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2791 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2792 (get_inner_array_type): Define.
2794 1998-09-21 Ben Elliston <bje@cygnus.com>
2796 * New directory. Moved files from ../gcc/objc.