1 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
3 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
5 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
6 a pointer using DEBUG_PRINTF.
8 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
11 * selector.c (__sel_register_typed_name): When registering a new
12 selector with the same name as an existing one, reuse the existing
13 name string. Also updated types, casts and comments in the whole
16 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
18 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
19 to be 'struct objc_selector *' and not 'SEL'.
20 * init.c (__objc_exec_class): Call
21 __objc_register_selectors_from_module instead of iterating over
22 each selector and calling __sel_register_typed_name for each.
23 * objc-private/selector.h: Declare
24 __objc_register_selectors_from_module instead of
25 __sel_register_typed_name.
26 * selector.c (__objc_register_selectors_from_module): New.
27 (__sel_register_typed_name): Made static.
29 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
31 * linking.m: Do not include objc/NXConstStr.h.
33 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
35 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
36 * objc-private/common.h (DEBUG_PRINTF): To here.
37 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
39 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
41 * hash.c: Tidied up comments and indentation. No code changes.
43 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
46 * accessors.m (objc_getProperty): If not atomic, do not
47 retain/autorelease the returned value. (Problem reported by
49 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
51 * objc-private/runtime.h (__objc_selector_max_index,
52 __objc_init_selector_tables, __objc_register_selectors_from_class,
53 __objc_register_selectors_from_list,
54 __objc_register_selectors_from_description_list): Moved to ...
55 * objc-private/selector.h: ... here.
57 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
59 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
60 (__objc_print_dtable_stats): Removed.
61 (__sel_register_typed_name): Removed.
62 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
64 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
66 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
67 if appropriate, after loading the module.
69 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
71 * sendmsg.c (method_setImplementation): Do not declare.
73 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
75 * objc/message.h: Updated comments.
76 * objc/runtime.h: Updated comments.
78 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
80 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
81 * protocols.c: Updated all calls to objc_lookupClass to call
82 objc_lookUpClass instead.
83 * sendmsg.c (objc_lookupClass): Do not declare.
84 (get_imp): Update call to objc_lookupClass to call
85 objc_lookUpClass instead.
86 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
88 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
90 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
91 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
92 define. Updated comments.
94 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
96 * objc/encoding.h: Updated comments.
97 * objc/runtime.h: Updated comments.
98 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
99 (objc_sizeof_type): Same.
100 (objc_alignof_type): Same.
101 (objc_aligned_size): Same.
102 (objc_promoted_size): Same.
103 (objc_skip_type_qualifiers): Same.
104 (objc_skip_typespec): Same.
105 (objc_skip_offset): Same.
106 (objc_skip_argspec): Same.
107 (objc_get_type_qualifiers): Same.
108 (objc_layout_structure): Same.
109 (objc_layout_structure_next_member): Same.
110 (objc_layout_finish_structure): Same.
111 (objc_layout_structure_get_info): Same.
113 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
115 * init.c: Updated comments.
116 * objc/objc-api.h: Updated comments.
117 * objc/runtime.h (_objc_load_callback): Declare.
119 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
121 * objc/Object.h: Include deprecated/typedstream.h and
122 deprecated/hash.h instead of typedstream.h. Updated comments.
124 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
126 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
127 * objc/deprecated/objc_msg_sendv.h: New.
128 * objc/message.h: Do not define retval_t, apply_t, arglist,
129 arglist_t, objc_msg_sendv, now in
130 objc/deprecated/objc_msg_sendv.h.
131 * objc/objc.h: Do not include message.h; include
132 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
133 * sendmsg.c: Include objc/message.h.
134 * thr.c: Include objc/message.h.
136 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
138 * objc/objc-exception.h: Include objc-decls.h. Mark all
139 functions with objc_EXPORT.
140 * objc/objc-sync.h: Same change.
142 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
144 * Protocol.m: Moved all methods, with the exception of -isEqual:,
145 into the 'Deprecated' category.
146 * objc/Protocol.h: Removed all methods, moved to
147 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
148 * objc/deprecated/Protocol.h: New.
149 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
151 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
153 * init.c: Include objc-private/selector.h. Do not declare
154 __sel_register_typed_name.
155 * objc-private/selector.h (__sel_register_typed_name): Declare.
156 * selector.c: Include objc-private/selector.h.
158 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
160 * class.c: Tidied up comments and indentation. No code changes.
166 * objc-foreach.c: Same.
173 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
175 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
176 instead of objc/objc-api.h.
177 (init_check_module_version): Take a 'struct objc_module *'
178 argument instead of 'Module_t'. Use 'struct objc_module *'
179 instead of 'Module_t'.
180 (__objc_created_classes_tree): Take a 'struct objc_module *'
181 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
183 (__objc_call_callback): Take a 'struct objc_module *' argument
184 instead of 'Module_t'; use 'struct objc_symtab *' instead of
185 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
186 (_objc_load_callback): Take a 'struct objc_category *' argument
187 instead of 'Category *'.
188 (class_superclass_of_class): Use objc_getClass() instead of
190 (create_tree_of_subclasses_inherited_from): Same change (also, use
191 an explicit 'if' instead of '?').
192 (objc_init_statics): Same change.
193 (objc_send_load): Same change.
194 (__objc_init_protocol): same change.
195 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
196 argument instead of 'MethodList_t'. Use 'struct objc_method *'
197 instead of 'Method_t'.
198 (__objc_send_load): Use 'struct objc_method_list *' instead of
199 'MethodList_t'. Use sel_registerName() instead of
201 (__objc_exec_class): Take a 'struct objc_module *' argument
202 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
203 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
204 Use 'struct objc_category *' instead of 'Category_t'.
206 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
208 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
209 Include objc-private/module-abi-8.h and objc-private/selector.h
210 instead of objc/encoding.h.
211 (objc_msg_lookup_super): Use super->super_class instead of
213 (method_get_first_argument, method_get_next_argument): Declare
215 (class_get_instance_method): Declare before using.
216 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
217 (__objc_init_dispatch_tables, __objc_send_initialize): Use
218 sel_registerName() instead of sel_register_name().
219 (__objc_forward): Use sel_getName() instead of sel_get_name().
220 (objc_get_uninstalled_dtable): Use 'void' as argument.
221 * objc-private/selector.h: New.
223 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
225 * objc/message.h (objc_super): When using the modern API, do not
226 define Super and Super_t, and always use 'super_class' for the
228 (objc_msg_lookup_super): Updated prototype to use 'struct
229 objc_super *' instead of 'Super_t'.
230 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
231 'struct objc_super *' instead of 'Super_t'.
233 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
235 * objc/message.h: Update comments, reindented code and moved
236 deprecated types and functions at the end of the file. No code
239 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
241 * ivars.c (class_addIvar): Use the 'size' argument instead of
242 trying to calculate it using objc_sizeof_type().
243 * objc/runtime.h (class_addIvar): Updated comments.
245 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
247 * sendmsg.c: Reindented some code and tidied up comments. No
250 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
252 * objc/Object.h: Moved all the methods, with the exception of
253 -class and -isEqual:, into ...
254 * objc/deprecated/Object.h: here.
255 * Object.m: Moved all the methods, with the exception of -class
256 and -isEqual: into the 'Deprecated' category.
258 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
260 * objects.c (object_copy): Do not #undef as we are no longer
261 including objc/objc-api.h.
262 * selector.c: Include objc/runtime.h and
263 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
264 objc/encoding.h. Updated
265 (__objc_register_selectors_from_class): Use struct
266 objc_method_list * instead of MethodList_t.
267 (__objc_register_selectors_from_list): Use Method instead of
269 (struct objc_method_description_list): Do not define here.
270 (__objc_register_instance_methods_to_class): Use struct
271 objc_method_list * instead of MethodList_t and Method instead of
274 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
276 * selector.c: Reindented some code and tidied up comments. No
279 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
281 * encoding.c (_darwin_rs6000_special_round_type_align): New.
282 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
284 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
286 * sendmsg.c (selector_resolveClassMethod): New.
287 (selector_resolveInstanceMethod): New.
288 (__objc_resolve_class_method): New.
289 (__objc_resolve_instance_method): New.
290 (get_imp): Call __objc_resolve_class_method or
291 __objc_resolve_instance_method at the appropriate time.
292 (objc_msg_lookup): Same.
293 (class_getClassMethod): Same.
294 (class_getInstanceMethod): Same.
295 (__objc_init_dispatch_tables): Initialize
296 selector_resolveClassMethod and selector_resolveInstanceMethod.
297 * objc/runtime.h: Updated documentation of class_getClassMethod,
298 class_getInstanceMethod and class_getMethodImplementation.
300 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
302 * objc-private/module-abi-8.h (struct objc_symtab): Updated
303 description of sel_ref_cnt and refs.
304 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
306 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
310 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
311 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
312 * aclocal.m4: Regenerate.
313 * configure: Regenerate.
315 2010-12-03 Matthias Klose <doko@ubuntu.com>
317 * configure.ac (VERSION): Bump the version to 3:0:0.
318 * configure: Regenerate.
320 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
322 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
323 pass nil as the receiver since we don't know the receiver at this
326 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
328 * ivars.c: Include stdlib.h.
329 * protocols.c: Same change.
331 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
333 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
335 * init.c: Include objc-private/accessors.h.
336 (__objc_exec_class): Call __objc_accessors_init.
337 * objc-private/accessors.h: New.
339 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
341 * objc/message.h: Moved initial includes outside of extern "C".
342 * objc/runtime.h: Add extern "C" for Objective-C++.
344 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
346 * init.c (objc_send_load): Do not wait for NXConstantString to be
347 registered before executing +load. There is no point if
348 -fconstant-string-class=xxx is used when compiling all modules,
349 as is the case for almost all users.
350 * linking.m (__objc_linking): Do not try to forcefully link in
353 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
355 * objc/runtime.h: Updated comments.
356 (class_addMethod): New.
357 (class_addIvar): New.
358 (class_replaceMethod): New.
359 (objc_allocateClassPair): New.
360 (objc_registerClassPair): New.
361 (objc_disposeClassPair): New.
362 * class.c (objc_allocateClassPair): New.
363 (objc_registerClassPair): New.
364 (objc_disposeClassPair): New.
365 (class_getSuperclass): Return Nil if a class is in construction.
366 * init.c (__objc_exec_class): Call __objc_init_class.
367 (__objc_init_class): New.
368 * ivars.c (class_copyIvarList): Return NULL if class is in
369 construction. Do not lock the runtime mutex.
370 (class_getInstanceVariable): Return NULL if class is in
371 construction. Do not lock the runtime mutex.
372 (class_addIvar): New.
373 * sendmsg.c (class_addMethod): New.
374 (class_replaceMethod): New.
375 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
376 (_CLS_IN_CONSTRUCTION): New.
377 (CLS_IS_IN_CONSTRUCTION): New.
378 (CLS_SET_IN_CONSTRUCTION): New.
379 (CLS_SET_NOT_IN_CONSTRUCTION): New.
380 * objc-private/runtime.h (__objc_init_class): New.
382 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
384 * class.c (class_getSuperclass): Call __objc_resolve_class_links
385 if the class is not resolved yet.
386 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
388 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
390 * objc/runtime.h (class_getIvarLayout): New.
391 (class_getWeakIvarLayout): New.
392 (class_setIvarLayout): New.
393 (class_setWeakIvarLayout): New.
394 * ivars.c (class_getIvarLayout): New.
395 (class_getWeakIvarLayout): New.
396 (class_setIvarLayout): New.
397 (class_setWeakIvarLayout): New.
399 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
401 * objc/runtime.h (class_copyPropertyList): New.
402 (class_getProperty): New.
403 (property_getAttributes): New.
404 (property_getName): New.
405 * ivars.c (class_copyPropertyList): New.
406 (class_getProperty): New.
407 (property_getAttributes): New.
408 (property_getName): New.
410 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
412 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
413 * class.c (__objc_update_classes_with_methods): New.
414 (objc_getClassList): Do not lock the class lock.
415 * methods.c (method_exchangeImplementations): New.
416 (method_setImplementation): New.
417 * objc/runtime.h (method_setImplementation): New.
418 (method_exchangeImplementations): New.
420 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
422 * Protocol.m: Include objc/runtime.h and
423 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
424 repeat Protocol's instance variables.
425 (struct objc_method_description_list): Do not define here.
426 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
427 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
428 selectors directly instead of getting names and then using strcmp.
429 ([descriptionForClassMethod:]): Same change.
430 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
431 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
432 to compare selectors directly instead of getting names and then
434 * objc/Protocol.h: Updated comments.
436 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
438 * init.c (__objc_init_protocol): New function which fixes up a
439 protocol's class pointer, registers it with the runtime, register
440 all protocol selectors and registers associated protocols too.
441 (objc_init_statics): Detect if we are initializing protocols, and
442 if so, use __objc_init_protocol instead of only fixing up the
444 (__objc_init_protocls): Use __objc_init_protocol.
445 * objc-private/module-abi-8.h: Updated comments.
446 * objc-private/runtime.h
447 (__objc_register_selectors_from_description_list): New.
448 * selector.c (__objc_register_selectors_from_description_list):
449 New. (struct objc_method_description_list): Declare.
450 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
451 when accessing the name of a method, which is now correctly a SEL.
452 ([-descriptionForClassMethod:]): Same change.
453 * protocols.c (protocol_getMethodDescription): Same change.
454 * objc/runtime.h: Updated comments.
455 (sel_registerTypedName): Fixed typo in function name.
457 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
460 * init.c (objc_init_statics): Do not skip the initialization of a
461 statics list if the first object has already been initialized; in
462 the case of Protocols, while the first one may have been
463 initialized, some others may not have been initialized yet.
465 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
467 * Makefile.in (OBJC_DEPRECATED_H): Added
468 objc_get_uninstalled_dtable, objc_object_alloc.h and
469 struct_objc_static_instances.h.
471 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
473 * encoding.c (method_copyReturnType): New.
474 (method_copyArgumentType): New.
475 (method_getReturnType): New.
476 (method_getArgumentType): New.
477 * methods.c (method_getDescription): New.
478 * objc/runtime.h (method_copyReturnType): New.
479 (method_copyArgumentType): New.
480 (method_getReturnType): New.
481 (method_getArgumentType): New.
482 (method_getDescription): New.
484 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
486 * encoding.c: Tidied up comments.
487 (objc_skip_variable_name): New static inline function.
488 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
489 the same code over and over.
490 (objc_alignof_type): Same.
491 (objc_aligned_size): Same.
492 (objc_promoted_size): Same.
493 (objc_skip_typespec): Same.
494 (objc_layout_structure_next_member): Same.
495 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
496 historical bug where objc_skip_offset would skip one byte even if
497 there is no offset: check that the first offset digit is actually
498 a digit before skipping it.
499 (objc_skip_type_qualifiers): Mark as inline.
500 (objc_skip_typespec): Mark as inline.
502 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
504 * Makefile.in (C_SOURCE_FILES): Added methods.c.
505 * encoding.c (method_getNumberOfArguments): New.
506 (method_get_number_of_arguments): Call
507 method_getNumberOfArguments.
508 * ivars.c (ivar_getName): Check for NULL variable argument.
509 (ivar_getOffset): Check for NULL variable argument.
510 (ivar_getTypeEncoding): Check for NULL variable argument.
511 (class_copyIvarList): New.
513 * protocols.c (class_copyProtocolList): Check for Nil class_
515 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
516 'struct objc_method_list *' instead of MethodList_t.
517 (class_getMethodImplementation): New.
518 (class_respondsToSelector): New.
519 (class_getInstanceMethod): New.
520 (class_getClassMethod): New.
521 * objc/runtime.h: Updated comments.
522 (class_copyIvarList): New.
523 (class_getInstanceMethod): New.
524 (class_getClassMethod): New.
525 (class_getMethodImplementation): New.
526 (class_respondsToSelector): New.
527 (method_getName): New.
528 (method_getImplementation): New.
529 (method_getTypeEncoding): New.
530 (class_copyMethodList): New.
531 (method_getNumberOfArguments): New.
533 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
535 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
536 instead of objc/objc-api.h.
537 (objc_get_unknown_class_handler): Do not define.
538 (class_isMetaClass): New.
539 (class_getSuperclass): New.
540 (class_getVersion): New.
541 (class_setVersion): New.
542 (class_getInstanceSize): New.
543 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
544 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
545 objc_get_super_class.
546 (get_ttype_entry): Use objc_getRequiredClass instead of
548 * ivars.c (class_getClassVariable): New.
549 * objects.c: Include objc/runtime.h, objc/thr.h and
550 objc-private/module-abi-8.h instead of objc/objc-api.h
551 * objc/runtime.h (class_getClassVariable): New.
552 (class_isMetaClass): New.
553 (class_getSuperclass): New.
554 (class_getVersion): New.
555 (class_setVersion): New.
556 (class_getInstanceSize): New.
557 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
560 (__CLS_ISINFO): Same.
561 (__CLS_SETINFO): Same.
564 (CLS_ISRESOLV): Same.
565 (CLS_SETRESOLV): Same.
566 (CLS_ISINITIALIZED): Same.
567 (CLS_SETINITIALIZED): Same.
568 (CLS_GETNUMBER): Same.
569 (CLS_SETNUMBER): Same.
571 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
573 * archive.c: Do not include objc/objc.h.
574 * class.c: Do not include objc/objc.h.
575 * encoding.c: Include objc/runtime.h, ctype.h and
576 objc-private/module-abi-8.h instead of objc/objc-api.h and
578 * error.c: Do not include objc/objc.h.
579 * gc.c: Include tconfig.h and objc/encoding.h only if
581 * hash.c: Include objc/runtime.h and objc/thr.h instead of
582 objc/objc-api.h. Do not include objc/objc.h.
583 * init.c: Do not include objc/objc.h.
584 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
585 objc/thr.h instead of objc/objc-api.h. Do not include
587 * linking.m: Tidied comment.
588 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
589 Do not include objc/objc.h.
590 * objects.c: Do not include objc/objc.h.
591 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
592 * protocols.c: Do not include objc/objc.h.
593 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
594 not include objc/objc.h.
595 * selector.c: Do not include objc/objc.h.
596 * sendmsg.c: Do not include objc/objc.h.
597 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
598 Do not include objc/objc.h.
599 * objc/objc-decls.h: Reindented code.
600 * objc/runtime.h Include objc-decls.h. Updated comments.
602 (objc_atomic_malloc): New.
606 * objc-private/runtime.h: Updated comments.
608 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
610 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
611 * objc-private/protocols.h: New.
613 * init.c: Include objc-private/protocols.h.
614 (__objc_exec_class): Call __objc_protocols_init on startup.
615 (__objc_init_protocols): Call __objc_protocols_add_protocol.
616 * objc-private/runtime.h: Use (struct objc_method_list *) instead
617 of MethodList_t, and (struct objc_method *) instead of Method_t.
618 * objc/deprecated/struct_objc_class.h: Define
619 __objc_STRUCT_OBJC_CLASS_defined.
620 * objc-private/module-abi-8.h (struct
621 objc_method_description_list): New.
622 (struct objc_class): Only define if
623 __objc_STRUCT_OBJC_CLASS_defined is undefined.
624 * objc/runtime.h (class_getName): New.
625 (objc_getProtocol): New.
626 (objc_copyProtocolList): New.
627 (class_addProtocol): New.
628 (class_conformsToProtocol): New.
629 (class_copyProtocolList): New.
630 (protocol_conformsToProtocol): New.
631 (protocol_isEqual): New.
632 (protocol_getName): New.
633 (protocol_getMethodDescription): New.
634 (protocol_copyMethodDescriptionList): New.
635 (protocol_getProperty): New.
636 (protocol_copyPropertyList): New.
637 (protocol_copyProtocolList): New.
638 * class.c (class_getName): New.
639 * selector.c (sel_isEqual): New.
641 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
643 * selector.c (sel_getName): Return "<null selector>" for a NULL
645 (sel_get_name): Return 0 for a NULL argument.
646 * objc/runtime.h (sel_getName): Updated documentation.
648 * objc-private/hash.h (class_hash_table): Unused declaration
650 (module_hash_table): Same.
651 * objc/deprecated/hash.h: Same changes.
653 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
655 * class.c (objc_getClassList): New.
656 (objc_getRequiredClass): New.
657 (objc_getMetaClass): New.
658 (objc_lookupClass): New.
659 (objc_getClass): New.
660 (__objc_get_unknown_class_handler): New.
661 (objc_setGetUnknownClassHandler): New.
662 (objc_get_class): Use __objc_get_unknown_class_handler.
663 (objc_lookup_class): Call objc_getClass.
664 * objc/objc-api.h: Updated comment and copyright notice.
665 * objc/runtime.h: Updated comments.
666 (objc_getClass): New.
667 (objc_lookupClass): New.
668 (objc_getMetaClass): New.
669 (objc_getRequiredClass): New.
670 (objc_getClassList): New.
671 (objc_setGetUnknownClassHandler): New.
672 (objc_get_unknown_class_handler): New.
673 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
674 instead of __objc_runtime_INCLUDE_GNU as include guard.
675 * objc-private/error.h (_objc_abort): Mark as noreturn.
677 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
679 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
681 * objc/objc.h: Updated comments.
682 * objc/runtime.h (object_getClass): New.
683 (object_getClassName): New.
684 (object_setClass): New.
685 (class_getInstanceVariable): New.
686 (object_getIndexedIvars): New.
687 (object_getInstanceVariable): New.
688 (object_setInstanceVariable): New.
689 (object_getIvar): New.
690 (object_setIvar): New.
692 (ivar_getOffset): New.
693 (ivar_getTypeEncoding): New.
694 * objc-private/module-abi-8.h (struct objc_class): Added.
695 * objects.c (object_getClassName): New.
696 (object_setClass): New.
698 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
700 * objc/objc.h: Updated comments.
701 * objc/objc-api.h: (object_copy): Added one argument; use a
702 #define to maintain backwards-compatibility. Moved
703 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
704 objc_get_uninstalled_dtable into
705 objc/deprecated/objc_get_uninstalled_dtable.h and
706 objc/deprecated/objc_object_alloc.h. Include these files.
707 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
708 * objc/deprecated/objc_object_alloc.h: New.
709 * objc/runtime.h (set_getName): New.
712 (sel_registerName): New.
713 (sel_registerTypedName): New.
715 (class_createInstance): New.
717 (object_dispose): New.
718 * objects.c: Do not include tconfig.h. Include gc_typed.h if
719 building the garbage collection version.
720 (__objc_object_alloc): Removed.
721 (__objc_object_copy): Removed.
722 (__objc_object_dispose): Removed.
723 (class_createInstance): New from code in class_create_instance.
724 Cast second argument of GC_malloc_explicitly_typed. Use
725 objc_calloc. Do not call _objc_object_alloc.
726 (class_create_instance): Call class_createInstance.
727 (object_copy): Added extraBytes argument. Do not call
729 (object_dispose): Do not call _objc_object_dispose.
730 * memory.c (objc_free): When using garbage collection, mark the
732 * selector.c (sel_getName): New.
733 (sel_get_name): Call sel_getName.
735 (sel_get_type): Call sel_getType.
736 (sel_registerName): New.
737 (sel_register_name): Call sel_registerName.
738 (sel_registerTypedName): New.
739 (sel_register_typed_name): Call sel_registerTypedName.
741 (sel_get_uid): Call sel_getUid.
743 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
745 * objc/objc-api.h: Define Method, Method_t, Category and
746 Category_t. Prevent including this file at the same time as
747 objc/runtime.h. Updated comments.
748 * objc/deprecated/struct_objc_method.h: Do not define Method,
750 * objc/deprecated/struct_objc_category.h: Do not define Category,
752 * objc-private/module-abi-8.h: New file containing a copy of all
753 the structure definitions. Not used yet.
754 * objc/encoding.h (objc_aligned_size): Removed duplicate
755 declaration. Updated comments.
756 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
757 Category, struct objc_method_description, _C_ID and similar,
758 _C_CONST and similar and _F_CONST and similar. Added
759 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
760 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
761 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
762 struct objc_struct_layout, objc_layout_structure,
763 objc_layout_structure_next_member, objc_layout_finish_structure,
764 objc_layout_structure_get_info. Prevent including this file at
765 the same time as objc/objc-api.h.
767 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
769 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
770 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
771 struct_objc_method_list.h, struct_objc_module.h,
772 struct_objc_protocol_list.h, struct_objc_symtab.h.
773 * objc/deprecated/struct_objc_category.h: New.
774 * objc/deprecated/struct_objc_ivar.h: New.
775 * objc/deprecated/struct_objc_ivar_list.h: New.
776 * objc/deprecated/struct_objc_method.h: New.
777 * objc/deprecated/struct_objc_method_list.h: New.
778 * objc/deprecated/struct_objc_module.h: New.
779 * objc/deprecated/struct_objc_protocol_list.h: New.
780 * objc/deprecated/struct_objc_symtab.h: New.
781 * objc/deprecated/struct_objc_static_instances.h: New.
782 * objc/objc-api.h: Definitions of deprecated structures moved into
783 the above header fragment files in objc/deprecated/. Include the
784 files instead of definition the structures here. Updated
786 * objc/runtime.h: Updated comments. Do not include objc-api.h.
787 (objc_set_enumeration_mutation_handler): Renamed to
788 objc_setEnumerationMutationHandler.
789 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
790 to objc_setEnumerationMutationHandler.
791 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
792 objc_setExceptionMatcher.
793 (objc_set_uncaught_exception_handler): Renamed to
794 objc_setUncaughtExceptionHandler.
795 * exception.c: Same changes.
797 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
799 * objc-sync.c: Include objc-private/common.h.
801 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
803 * objc-foreach.c: Include objc-private/common.h.
804 * objc/deprecated/METHOD_NULL.h: New file.
805 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
806 defining METHOD_NULL here.
807 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
808 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
810 ([-respondsTo:]): Same change.
811 * objc/objc-api.h (method_get_imp): Converted it into a normal
812 function so that we can hide the internals of struct objc_method.
813 * sendmsg.c (method_get_imp): Implemented.
815 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
817 * objc/objc-api.h (struct objc_super, Super, Super_t,
818 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
819 objc_msg_forward2): Declarations moved to objc/message.h. Include
821 * objc/message.h: Added such declarations; updated comments.
823 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
825 Implemented fast enumeration for Objective-C.
826 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
827 (OBJC_H): Added runtime.h
828 * objc-foreach.c: New file.
829 * objc/runtime.h: New file.
831 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
833 * objc/deprecated/struct_objc_class.h: Add padding
834 to avoid warning with -Wpadded.
836 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
838 * encoding.c (objc_sizeof_type): Added support for vector type and
839 for double long types.
840 (objc_alignof_type): Same change.
841 (objc_skip_typespec): Same change.
842 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
843 instead of '!' since '!' is already used for _C_VECTOR.
844 * objc/objc-api.h (_C_LNG_DBL): Added.
846 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
848 * libobjc_entry.c: File removed.
850 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
852 * sendmsg.c (objc_msg_lookup): Remove inline.
853 (objc_get_uninstalled_dtable): Likewise.
854 * encoding.c (objc_skip_type_qualifiers): Likewise.
855 (objc_skip_offset): Likewise.
856 * archive.c (__objc_write_object): Likewise
857 (__objc_write_class):
858 (__objc_write_selector):
860 (objc_read_unsigned_char):
862 (objc_read_unsigned_short):
865 (__objc_read_nbyte_uint):
866 (objc_read_unsigned_int):
867 (objc_read_unsigned_long):
868 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
869 (objc_EXPORT): Likewise.
870 * objc/message.h (objc-decls.h): Add include.
871 * objc/objc-api.h: Mark API by objc_EXPORT.
872 * libobjc.def (__objc_responds_to): Removed.
874 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
876 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
878 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
879 objc/sarray.h replaced with a placeholder including the file from
880 the deprecated/ directory.
881 * objc-private/sarray.h: New file (private copy of sarray.h).
882 * hash.c: Include <assert.h> instead of "assert.h"
883 * sarray.c: Include <assert.h> instead of "assert.h". Include
884 objc-private/sarray.h instead of objc/sarray.h.
885 * selector.c: Include objc-private/sarray.h instead of
887 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
888 instead of objc/sarray.h.
889 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
891 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
893 * objc-private/objc-list.h (list_remove_elem): Unused function
894 removed. (list_nth): Unused function removed. (list_find):
895 Unused function removed. (list_lenght): Unused function removed.
897 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
899 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
900 replaced with a placeholder including the file from the
901 deprecated/ directory.
902 * objc/objc-api.h: Updated includes.
903 * objc/typedstream.h: Updated includes.
904 * objc-private/hash.h: New file (private copy of hash.h).
905 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
906 objc/objc-list.h replaced with a placeholder including the file
907 from the deprecated/ directory.
908 * objc-private/objc-list.h: New file (private copy of objc-list.h).
909 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
910 instead of objc/hash.h and objc/objc-list.h.
911 * selector.c: Same change.
912 * class.c: Added include <string.h>, which used to be implicitly included
913 when hash.h was included.
914 * exception.c: Same change.
915 * objects.c: Same change.
916 * sarray.c: Same change.
917 * sendmsg.c: Same change.
918 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
920 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
922 Implemented objc_sync_enter() and objc_sync_exit(), which are
923 required by @synchronized() to work.
924 * objc-sync.c: New file.
925 * objc/objc-sync.h: New file.
926 * objc-private/objc-sync.h: New file.
927 * init.c (__objc_exec_class): Call __objc_sync_init() during the
928 Objective-C runtime startup.
929 * Makefile.in: Added objc-sync.c and objc-sync.h.
930 * configure.ac: Added GCC_CHECK_TLS.
931 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
932 * configure: Regenerated.
933 * config.h.in: Regenerated.
935 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
937 * Makefile.in (%_gc.lo): New pattern rules to build the
938 garbage-collected version of the library. Removed rules for
939 specific files that are no longer needed. Standardized all rules.
940 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
941 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
943 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
945 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
947 * memory.c (objc_calloc): Fixed call to GC_malloc when building
948 with Garbage Colletion.
950 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
952 * memory.c: Do not include objc-private/runtime.h.
954 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
956 * objc/deprecated/objc_malloc.h: New file.
957 * objc/deprecated/objc_valloc.h: New file.
958 * objc/objc-api.h: Include the files instead of defining
959 objc_valloc, _objc_malloc() and similar.
960 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
962 * memory.c: Removed the extra layer of indirection of _objc_malloc
964 (objc_calloc): Use GC_malloc in the garbage-collected
965 implementation as GC_malloc returns memory that is already freed.
966 (objc_valloc): Deprecated.
968 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
970 * objc/deprecated/objc_error.h: New file.
971 * objc/objc-api.h: Include deprecated/objc_error.h instead of
972 defining objc_error and related.
973 * error.c: New file. Added _objc_abort function which replaces
974 objc_error. No change in functionality as they both print an
976 * misc.c: File removed. Code moved into memory.c and error.c.
977 * memory.c: New file.
978 * objc-private/error.h: New file.
979 * archive.c: Include objc-private/error.h and use _objc_abort
980 instead of objc_error everywhere.
981 * class.c: Same change.
982 * encoding.c: Same change.
983 * init.c: Same change, and simplified init_check_module_version.
984 * memory.c: Same change.
985 * sendmsg.c: Same change.
986 * thr.c: Same change.
987 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
988 (OBJ_H): Reordered list.
989 (OBJS): Removed misc.lo, added memory.lo and error.lo.
990 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
991 (misc_gc.lo): Rule removed.
992 (error_gc.lo): Rule added.
993 (memory_gc.lo): Rule added.
995 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
997 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
998 to check the API version. Added some comments.
1000 * objc-private/common.h: New file.
1001 * NXConstStr.m: Include objc-private/common.h.
1002 * Object.m: Same change.
1003 * Protocol.m: Same change.
1004 * archive.c: Same change.
1005 * class.c: Same change.
1006 * encoding.c: Same change.
1007 * exception.c: Same change.
1008 * gc.c: Same change.
1009 * hash.c: Same change.
1010 * init.c: Same change.
1011 * libobjc_entry.c: Same change.
1012 * linking.m: Same change.
1013 * misc.c: Same change (and added a comment).
1014 * nil_method.c: Same change.
1015 * objects.c: Same change.
1016 * sarray.c: Same change.
1017 * selector.c: Same change.
1018 * sendmsg.c: Same change.
1019 * thr.c: Same change.
1021 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1023 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1025 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1027 * archive.c: Removed not needed includes.
1028 * class.c: Same change.
1029 * hash.c: Same change.
1030 * misc.c: Same change.
1031 * nil_method.c: Same change.
1032 * objects.c: Same change.
1033 * sarray.c: Same change.
1034 * sendmsg.c: Same change.
1035 * thr.c: Same change.
1037 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1039 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1040 all the objc/*.h files.
1041 * objc-private/runtime.h: New file.
1042 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1043 files) instead of objc/runtime.h.
1044 * class.c: Same change.
1045 * hash.c: Same change.
1046 * init.c: Same change.
1047 * misc.c: Same change.
1048 * nil_method.c: Same change.
1049 * objects.c: Same change.
1050 * sarray.c: Same change.
1051 * selector.c: Same change.
1052 * sendmsg.c: Same change.
1053 * thr.c: Same change.
1055 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1057 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1058 'struct objc_selector' and 'sel_eq' moved here.
1059 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1060 'struct objc_procotol' moved here.
1061 * objc/deprecated/struct_objc_class.h: New file. Definition of
1062 'struct objc_class' moved here.
1063 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1065 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1066 * objc/message.h: New file. Definitions for relval_t, apply_t,
1067 arglist, arglist_t and objc_msg_lookup were moved here.
1068 * objc/objc.h: Include the above files instead of defining the
1069 corresponding structs, types and functions here. Added new opaque
1070 definitions for SEL and Class. Use Class and not 'struct
1071 objc_class *' in the definition of 'struct objc_object'.
1072 Commented all types defined in the file. Removed special
1073 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1075 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1076 objc_unexpected_exception.h.
1077 * objc/objc-api.h: Updated include of
1078 objc-unexpetected-exception.h
1079 * objc/objc-exception.h: Updated comments.
1080 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1081 files. Reindented list of files.
1083 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1085 * objc/objc-api.h (objc_trace): Unused variable removed.
1087 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1089 * objc/deprecated: New directory.
1090 * objc/deprecated/README: New file.
1091 * objc/README: New file.
1092 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1093 objc/typedstream.h replaced with a placeholder including the file
1094 from the deprecated/ directory.
1095 * objc/deprecated/objc-unexpected-exception.h: New file with the
1096 definition of _objc_unexpected_exception.
1097 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1098 instead of defining _objc_unexpected_exception.
1099 * objc/deprecated/Object.h: New file with the deprecated Object
1100 methods in a 'Deprecated' category.
1101 * objc/Object.h Include deprecated/Object.h instead of defining
1102 the deprecated methods.
1103 * Object.m: Moved deprecated methods into 'Deprecated' category.
1104 * objc-private: New directory.
1105 * objc-private/README: New file.
1106 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1107 (install-headers): Create installation directory for
1108 OBJC_DEPRECATED_H headers, and install them.
1110 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1112 * objc/objc-exception.h: Fixed include of objc.h.
1114 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1116 * objc/objc-exception.h: New file.
1117 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1118 (objc_set_exception_matcher): Implemented.
1119 (objc_exception_throw): Use the uncaught exception handler if set.
1120 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1122 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1123 up. Removed segmentation fault when value is 'nil'.
1124 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1126 * Makefile.in (exception.lo, exception_gc.lo): Use
1127 -Wno-deprecated-declarations when compiling.
1128 (OBJC_H): Added objc-exception.h
1130 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1132 * objc/typedstream.h: Deprecate all functions in the file. This
1134 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1135 [-awake]): Documented that these methods are deprecated. Added a
1136 brief description of the Object class and its relationship to the
1138 * Makefile.in: Compile archive.c and Object.m with
1139 -Wno-deprecated-declarations.
1141 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1143 Removed obsolete intermediate threading layer.
1144 * thr.c: Use __gthread_objc_xxx functions directly instead of
1145 __objc_thread_xxx ones.
1146 * objc/thr.h: Removed prototypes of no longer existing
1147 __objc_thread_xxx functions.
1148 * Makefile.in: Removed thr-objc.lo.
1149 * thr-dce.c: File removed.
1150 * thr-decosf1.c: File removed.
1151 * thr-irix.c: File removed.
1152 * thr-mach.c: File removed.
1153 * thr-objc.c: File removed.
1154 * thr-os2.c: File removed.
1155 * thr-posix.c: File removed.
1156 * thr-pthreads.c: File removed.
1157 * thr-rtems.c: File removed.
1158 * thr-single.c: File removed.
1159 * thr-solaris.c: File removed.
1160 * thr-vxworks.c: File removed.
1161 * thr-win32.c: File removed.
1162 * README.threads: File removed.
1163 * THREADS.MACH: File removed.
1166 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1168 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1170 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1172 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1173 Add a comment as to why, update FIXME comments.
1175 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1177 * makefile.dos: Obsolete file removed.
1179 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1181 * aclocal.m4: Regenerate.
1183 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1186 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1187 Cygwin and MinGW hosts.
1188 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1189 (libobjc.dll): Likewise.
1190 * configure: Regenerate.
1192 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1194 * configure: Regenerate.
1196 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1198 * sarray.c (sarray_free): Use old_buckets variable.
1199 * encoding.c (objc_layout_structure_next_member): Remove unused
1200 bfld_type_size variable.
1202 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1204 * configure.ac (AC_PREREQ): Bump to 2.64.
1206 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1208 * aclocal.m4: Regenerate.
1209 * configure: Regenerate.
1210 * config.h.in: Regenerate.
1212 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1214 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1216 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1218 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1220 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1222 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1224 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1226 2009-04-09 Nick Clifton <nickc@redhat.com>
1228 * sendmsg.c: Change copyright header to refer to version 3 of
1229 the GNU General Public License with version 3.1 of the GCC
1230 Runtime Library Exception and to point readers at the COPYING3
1231 and COPYING3.RUNTIME files and the FSF's license web page.
1232 * NXConstStr.m: Likewise.
1233 * Object.m: Likewise.
1234 * Protocol.m: Likewise.
1235 * archive.c: Likewise.
1236 * class.c: Likewise.
1237 * encoding.c: Likewise.
1238 * exception.c: Likewise.
1242 * libobjc_entry.c: Likewise.
1243 * linking.m: Likewise.
1245 * nil_method.c: Likewise.
1246 * objc/NXConstStr.h: Likewise.
1247 * objc/Object.h: Likewise.
1248 * objc/Protocol.h: Likewise.
1249 * objc/encoding.h: Likewise.
1250 * objc/hash.h: Likewise.
1251 * objc/objc-api.h: Likewise.
1252 * objc/objc-decls.h: Likewise.
1253 * objc/objc-list.h: Likewise.
1254 * objc/objc.h: Likewise.
1255 * objc/runtime.h: Likewise.
1256 * objc/sarray.h: Likewise.
1257 * objc/thr.h: Likewise.
1258 * objc/typedstream.h: Likewise.
1259 * objects.c: Likewise.
1260 * sarray.c: Likewise.
1261 * selector.c: Likewise.
1262 * thr-dce.c: Likewise.
1263 * thr-decosf1.c: Likewise.
1264 * thr-irix.c: Likewise.
1265 * thr-mach.c: Likewise.
1266 * thr-objc.c: Likewise.
1267 * thr-os2.c: Likewise.
1268 * thr-posix.c: Likewise.
1269 * thr-pthreads.c: Likewise.
1270 * thr-rtems.c: Likewise.
1271 * thr-single.c: Likewise.
1272 * thr-solaris.c: Likewise.
1273 * thr-vxworks.c: Likewise.
1274 * thr-win32.c: Likewise.
1276 * libobjc.def: Change copyright header to refer to version 3 of
1277 the GNU General Public License and to point readers at the COPYING3
1278 file and the FSF's license web page.
1279 * makefile.dos: Likewise.
1281 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1283 * Makefile.in: Change copyright header to refer to version
1284 3 of the GNU General Public License and to point readers at the
1285 COPYING3 file and the FSF's license web page.
1286 * configure.ac: Likewise.
1288 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1289 David Ayers <ayers@fsfe.org>
1292 * objc/objc-api.h (_objc_unexpected_exception): Declare
1293 new hook. Update copyright dates.
1294 * exception.c (objc_exception_throw): Use hook. Update
1296 * libobjc.def (_objc_unexpected_exception): Export hook.
1297 Update copyright dates.
1299 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1301 * configure: Regenerate.
1303 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1305 * configure: Regenerate.
1307 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1309 * Object.m (errno): Replaced by errno.h include.
1310 (compare): Cast self to id to prevent warning on comparison.
1311 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1313 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1314 * thr-win32.c (__objc_thread_detach): Remove type warning.
1315 (__objc_thread_id): Likewise.
1316 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1319 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1320 Steve Ellcey <sje@cup.hp.com>
1322 * configure: Regenerate for new libtool.
1323 * config.h.in: Regenerate for new libtool.
1325 2008-07-18 Matthias Klose <doko@ubuntu.com>
1327 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1329 2008-07-18 Matthias Klose <doko@ubuntu.com>
1331 * Makefile.in: Include ../boehm-gc/threads.mk.
1332 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1334 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1336 * Makefile.in (install-info): New stub target.
1338 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1340 * configure: Regenerate.
1342 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1344 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1345 if HAVE_GETIPINFO is not defined.
1347 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1349 * Object.m (compare): Add type id.
1350 * objc/Object.h: Likewise.
1351 * archive.c (objc_read_class): Use size_t to extend version to be
1352 size of pointer scalar width.
1353 * sendmsg.c (rtx): Undefine it before redefinition.
1354 (__objc_print_dtable_stats): Cast arguments to long as intended.
1356 2008-05-30 Julian Brown <julian@codesourcery.com>
1358 * exception.c (__objc_exception_class): Initialise as constant
1359 array for ARM EABI. Change macro to static const for non-ARM EABI.
1360 (ObjcException): Add note about structure layout. Remove landingPad
1361 and handlerSwitchValue for ARM EABI.
1362 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1364 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1365 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1366 ARM EABI unwinding support.
1367 (objc_exception_throw): Use memcpy to initialise exception class.
1369 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1371 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1372 (rs6000_special_round_type_align): Update.
1374 2008-05-09 Julian Brown <julian@codesourcery.com>
1376 * Makefile.in (LTLDFLAGS): New.
1377 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1379 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1382 * aclocal.m4: Regenerate.
1383 * configure: Regenerate.
1385 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1387 * configure: Regenerate.
1389 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1391 * configure.ac: Don't run config-ml.in directly.
1392 (multilib_arg): New.
1393 * configure: Regenerated.
1395 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1398 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1399 of _Unwind_Word for variables which are used in
1400 read_uleb128/read_sleb128.
1401 (PERSONALITY_FUNCTION): Likewise.
1403 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1405 * aclocal.m4: Regenerated.
1407 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1409 * configure.ac: Fix a typo in *-*-darwin clause.
1410 * configure: Regenerated.
1412 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1414 * configure.ac: Fix a typo.
1415 * configure: Regenerated.
1417 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1419 * configure: Regenerate.
1421 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1423 * Makefile.in: Replace all uses of libext with libsuffix.
1424 * configure.ac: Likewise.
1425 * configure: Regenerate.
1428 * Makefile.in: Remove all uses of $(libext).
1430 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1432 * Makefile.in: Remove all uses of $(libext).
1434 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1436 * configure: Regenerate.
1437 * aclocal.m4: Regenerate.
1439 2007-04-21 Andrew Ruder <andy@aeruder.net>
1441 * sendmsg.c (__objc_get_forward_imp): Call
1442 __objc_msg_forward2 for real.
1444 2007-04-09 Andrew Ruder <andy@aeruder.net>
1446 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1447 external libraries to provide a function that returns the real
1448 forwarding function based on both the selector and the receiver.
1449 * objc/objc-api.h: Define __objc_msg_forward2.
1451 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1453 * Makefile.in: Add dummy install-pdf target.
1455 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1457 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1460 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1462 * encoding.c (darwin_rs6000_special_round_type_align): New.
1464 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1466 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1467 * configure.ac: Use multi.m4 from aclocal rather than custom
1468 code. Use multi_basedir instead of toplevel_srcdir.
1469 * aclocal.m4: Regenerate.
1470 * configure: Regenerate.
1472 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1474 * Makefile.in: Added empty "pdf" target.
1476 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1478 * configure: Regenerate.
1480 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1482 * Makefile.in: Add install-html target. Add install-html to .PHONY
1484 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1487 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1489 2006-01-24 David Ayers <d.ayers@inode.at>
1492 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1493 and insure the new strings are '\0' termintated.
1495 2006-01-24 David Ayers <d.ayers@inode.at>
1498 * configure.ac: Add include directives for --enable-objc-gc.
1499 * Makefile.in: Ditto.
1500 * configure: Regenerate.
1502 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1503 instead of the local pointer to them.
1505 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1508 * objc/objc-api.c (_C_COMPLEX): New define.
1509 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1510 (objc_alignof_type): Likewise.
1511 (objc_skip_typespec): Likewise.
1513 2005-12-15 David Ayers <d.ayers@inode.at>
1516 * README (+load,+initialize): Fix documentation to reflect
1517 intended and implemented semantics for +load and +initialize.
1519 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1521 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1523 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1524 (rs6000_special_round_type_align): Update for the ABI fix.
1525 (objc_layout_finish_structure): Correct the encoding which is passed to
1528 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1531 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1532 but use the struct layout functions.
1533 (objc_alignof_type): Likewise.
1534 (objc_layout_structure): Handle _C_UNION_B also.
1535 (objc_layout_structure_next_member): Likewise.
1536 (objc_layout_finish_structure): Likewise.
1538 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1541 * objc/objc-api.h (_C_BOOL): New define.
1542 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1543 (objc_alignof_type): Likewise.
1544 (objc_skip_typespec): Likewise.
1546 2005-11-20 David Ayers <d.ayers@inode.at>
1549 * objc/hash.h: Remove deprecated hash API.
1550 * hash_compat.c: Remove.
1551 * Makefile.in: Remove reference to hash_compat.c.
1553 * configure.ac (VERSION): Bump library version to 2:0:0.
1554 * configure: Regenerate.
1556 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1559 * thr-objc.c (_XOPEN_SOURCE): Define.
1561 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1564 * objc/objc-api.h (struct objc_ivar): Move definition to
1567 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1568 Rasmus Hahn <rassahah@neofonie.de>
1571 * archive.c (objc_write_type): Correct the element offset.
1572 (objc_read_type): Likewise.
1574 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1576 * All files: Update FSF address.
1578 2005-08-13 Marcin Koziej <creep@desk.pl>
1579 Andrew Pinski <pinskia@physics.uc.edu>
1582 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1584 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1586 * Makefile.in (extra_ldflags_libobjc): New.
1587 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1588 (libobjc_gc$(libext).la): Likewise.
1589 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1590 "-Wl,-single_module".
1591 * configure: Regenerate.
1592 * linking.m (_objcInit): Remove.
1594 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1597 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1599 2005-06-08 David Ayers <d.ayers@inode.at>
1601 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1602 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1603 objc/runtime.h, objc/sarray.h, objc/thr.h,
1604 objc/typedstream.h: Do not include Objective-C headers as
1607 2005-06-07 David Ayers <d.ayers@inode.at>
1609 * archive.c, init.c, selector.c: Include hash.h.
1610 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1611 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1612 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1613 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1614 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1615 Include Objective-C headers with quotes and objc/ directory
1618 2005-05-19 Richard Henderson <rth@redhat.com>
1620 * exception.c: Revert last change.
1622 2005-05-19 David Ayers <d.ayers@inode.at>
1624 * exception.c: Include tsystem.h for unwind.h.
1626 2005-05-09 Mike Stump <mrs@apple.com>
1628 * configure: Regenerate.
1630 2005-04-12 Mike Stump <mrs@apple.com>
1632 * configure: Regenerate.
1634 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1636 * Makefile.in: Set gcc_version here.
1637 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1638 in definition of toolexeclibdir so that $(gcc_version) is expanded
1640 * aclocal.m4, configure: Regenerate.
1642 2005-03-03 David Ayers <d.ayers@inode.at>
1644 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1645 version reference. Correct typo.
1647 2005-03-02 David Ayers <d.ayers@inode.at>
1650 * Makefile.in (OBJS): Add hash_compat.lo.
1651 (OBJS_GC): Add hash_compat_gc.lo.
1652 (hash_compat_gc.lo): New target and rule.
1653 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1654 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1655 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1656 with objc_. Add deprecated non prefixed inlined versions.
1657 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1659 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1660 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1662 * hash_compat.c: New file.
1663 * archive.c: Update callers.
1665 * selector.c: Likewise.
1666 * libobjc.def: Add objc_ versions of hash functions.
1668 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1671 * Makefile.in (GTHREAD_FLAGS): Remove.
1672 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1673 * thr-objc.c: Include config.h.
1674 * configure.ac: Instead of looking at GCC's makefile, figure out if
1675 GTHREAD_FLAGS should be defined by looking at the `thread model'
1677 * configure: Regenerate.
1678 * config.h.in: Regenerate.
1680 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1683 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1684 (Determine CFLAGS for gthread): Use $host_subdir.
1685 * configure: Regenerate.
1686 * Makefile.in (host_subdir): New.
1689 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1692 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1694 Include limits.h and stdlib.h.
1695 Define BITS_PER_WORD.
1697 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1699 * selector.c (__objc_init_selector_tables): Add missing void to
1702 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1704 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1705 * configure, aclocal.m4: Regenerate.
1707 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1709 * configure: Regenerate for libtool change.
1711 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1713 * configure: Regenerate for libtool reversion.
1715 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1717 * configure: Regenerate for libtool change.
1719 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1721 * aclocal.m4, config.h.in: Regenerate.
1723 2004-10-08 Mike Stump <mrs@apple.com>
1724 Andrew Pinski <pinskia@physics.uc.edu>
1726 * aclocal.m4: Rename to ...
1727 * acinclude.m4: here and also use m4_include instead of sinclude.
1728 * aclocal.m4: Regenerate.
1729 * configure: Regenerate.
1730 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1731 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1733 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1735 * archive.c: Fix all the warnings about passing unsigned char*
1736 to char* and the other way too.
1738 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1741 * exception.c: Include config.h
1742 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1744 * configure.ac: Find out what exception handling code we use.
1745 * configure: Regenerate.
1746 * config.h.in: New file, regenerate.
1748 2004-09-16 Andrew Pinski <apinski@apple.com>
1750 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1752 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1754 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1755 ACX_NONCANONICAL_TARGET.
1756 * configure: Regenerate.
1758 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1760 * objc/sarray.h: Hoist include of assert.h near the top of file,
1761 and mark the remainder of the file 'extern "C"'.
1763 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1765 * objc/Object.h: Move includes out of extern "C" blocks.
1766 * objc/encoding.h: Likewise.
1767 * objc/hash.h: Likewise.
1768 * objc/objc-api.h: Likewise.
1769 * objc/runtime.h: Likewise.
1770 * objc/sarray.h: Likewise.
1771 * objc/typedstream.h: Likewise.
1773 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1775 * objc/NXConstStr.h: Update copyright date; bracket with
1776 'extern "C"' for C++ use; make include syntax consistent
1777 by using <...> instead of "..."; hoist <objc/...> includes
1778 above the 'extern "C"' block.
1779 * objc/Object.h: Likewise.
1780 * objc/Protocol.h: Likewise.
1781 * objc/encoding.h: Likewise.
1782 * objc/hash.h: Likewise.
1783 * objc/runtime.h: Likewise.
1784 * objc/sarray.h: Likewise.
1785 * objc/thr.h: Likewise.
1786 * objc/typedstream.h: Likewise.
1787 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1788 (objc_static_instances): For C++ case, do away with
1790 (objc_method): Hoist definition to file scope.
1791 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1792 class_get_instance_method, class_create_instance,
1793 class_get_class_name, class_get_instance_size,
1794 class_get_meta_class, class_get_super_class, class_get_version,
1795 class_is_class, class_is_meta_class, class_set_version,
1796 class_get_gc_object_type, class_ivar_set_gcinvisible,
1797 get_imp): Rename 'class' parameter to '_class'.
1798 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1799 * objc/objc.h: Update copyright date.
1800 (arglist_t): Provide a union tag.
1802 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1804 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1805 but instead use the attribute noreturn.
1807 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1809 * encoding.c: Rename target_flags with a #define to avoid
1810 conflict with a prior declaration.
1812 2004-06-24 Andrew Pinski <apinski@apple.com>
1814 * objc/encoding.h: Wrap the functions with extern "C" for C++
1816 * objc/hash.h: Likewise.
1817 * objc/objc-api.h: Likewise.
1818 * objc/objc-list.h: Likewise.
1819 * objc/runtime.h: Likewise.
1820 * objc/sarray.h: Likewise.
1821 * objc/thr.h: Likewise.
1822 * objc/typedstream.h: Likewise.
1825 2004-06-21 Nick Clifton <nickc@redhat.com>
1827 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1830 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1832 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1833 (exception_gc.lo): New.
1834 (OBJS_GC): Add exception_gc.lo.
1836 2004-06-17 Richard Henderson <rth@redhat.com>
1838 * exception.c: New file.
1839 * Makefile.in (exception.lo): New.
1842 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1844 * linking.m (_objcInit): New empty function
1847 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1849 * configure.ac: Support --enable-shared=libobjc.
1850 * configure: Regenerate.
1853 * configure.ac: Do not disable shared by default.
1854 * configure: Regenerate.
1856 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1858 * Protocol.m ([-isEqual:]): Small optimizations returning
1859 immediately if the argument is equal to self, and accessing
1860 the argument's name directly if it's a protocol.
1862 2004-06-03 David Ayers <d.ayers@inode.at>
1864 * Protocol.m ([-isEqual:]): Test the class of the argument.
1866 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1868 * configure.ac (includedir): Rename to ...
1870 * Makefile.in: s/includedir/includedirname/.
1873 * configure.ac (includedir): Set to "include"
1875 (libext) Set to empty except for Darwin.
1876 * configure: Regenerate
1877 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1878 s/include/$(includedir)/g.
1880 2004-05-25 Daniel Jacobowitz <drow@false.org>
1882 * Makefile.in: Add .NOEXPORT.
1884 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1886 Merge from the libobjc-branch
1887 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1889 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1891 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1893 * Makefile.in (OBJC_H): Add objc-deps.h.
1895 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1897 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1898 ([-hash], [-isEqual:]): New methods.
1900 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1902 * sarray.c (sarray_free): Add a better comment.
1904 2004-01-27 Adam Fedor <fedor@gnu.org>
1906 * hash.c (hash_add): Cast cachep to int.
1907 * selector.c (__sel_register_typed_name): Cast
1908 soffset_decode to int.
1910 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1912 * selector.c: Rename register_selectors_from_list to
1913 __objc_register_selectors_from_list. Update caller.
1914 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1915 while registering selectors. Use __sel_register_typed_name instead
1916 of sel_register_typed_name. Check for NULL method_name:s.
1917 (pool_alloc_selector): New function.
1918 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1919 selector structures.
1920 * sendmsg.c (class_add_method_list): Use
1921 __objc_register_selectors_from_list.
1922 * objc/runtime.h: Add __objc_register_selectors_from_list.
1924 2004-01-25 Adam Fedor <fedor@gnu.org>
1925 Nicola Pero <n.pero@mi.flashnet.it>
1926 Andrew Pinski <pinskia@physics.uc.edu>
1928 * objc/objc-decls.h: New file.
1929 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1930 (_objc_load_callback): Likewise.
1931 (_objc_object_alloc): Likewise.
1932 (_objc_object_copy): Likewise.
1933 (_objc_object_dispose): Likewise.
1935 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1937 * archive.c: s/__inline__/inline
1938 * sendmsg.c: Likewise.
1940 * encoding.c: Remove FIXME about the warning
1941 about unused variable.
1942 * sendmsg.c: Add a FIXME comment saying that
1943 this should be using libffi.
1945 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1948 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1950 * archive.c (objc_read_class): Initialize class_name.
1951 (objc_read_selector): Initialize selector_name.
1953 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1955 * Makefile.in (toolexecdir): Remove trailing space.
1957 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1960 * configure.ac: De-precious CC so multilibs work.
1961 * configure: Regenerate.
1963 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1965 * configure.ac: Restore toolexecdir.
1966 * Makefile.in: Restore toolexecdir.
1967 * configure: Regenerate.
1969 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1971 * configure.ac: Remove (unused) glibcpp_prefixdir.
1972 * configure: Regenerate.
1974 * configure.in: Rename to configure.ac.
1975 * Makefile.in: Update to match.
1977 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1978 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1979 * configure.in: Remove glibcpp_toolexecdir (unused).
1980 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1981 config.h or stamp-h (unused). Move one comment to the right place.
1982 * configure: Regenerate.
1983 * config.h.in: Remove (unused).
1985 * config.h.in: Regenerate with autoheader.
1987 * Makefile.in: Remove (unused) gcc_version_trigger.
1988 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1989 gcc_version_trigger.
1990 * configure: Regenerate.
1992 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1993 Sort file into sections. Remove dnl where appropriate. Fix
1995 * configure: Regenerate.
1997 * configure.in: Replace old AC_PROG_CC hack with new one.
1998 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1999 are no subdirectory output files, so this is fine). Change prereq
2001 * aclocal.m4: Include ../config/no-executables.m4.
2002 * configure: Regenerate with autoconf 2.59.
2004 * configure.in: Improve comments on gthread_cflags. Improve m4
2005 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2006 * configure: Regenerate.
2008 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2009 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2010 redundant checks for values of RANLIB, AR, INSTALL.
2011 * configure: Regenerate.
2013 * configure.in: Clean up handling of
2014 --enable-version-specific-runtime-libs and related variables;
2015 replace 'if test' with 'case' where reasonable. Fix comments.
2016 Remove useless libstdcxx_interface.
2017 * configure: Regenerate.
2019 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2020 Replace uses of target_alias with target_noncanonical.
2021 * aclocal.m4: Include ../config/acx.m4.
2022 * configure: Regenerate.
2023 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2024 Fix copyright statement.
2026 * configure.in: Hand-inline bulky, confusing macros from
2027 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2028 Update copyright notice. Remove stuff for automake, which isn't
2029 used in this directory. Remove emacs local variables.
2030 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2031 * configure: Regenerate.
2033 2004-03-16 Manfred Hollstein <mh@suse.com>
2035 * Makefile.in, configure.in, configure: Update copyright years.
2037 2004-03-15 Manfred Hollstein <mh@suse.com>
2039 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2040 definition from configure.in.
2041 * configure.in (PACKAGE): Add definition.
2042 (VERSION): Add definition; substitute it in output files.
2043 * configure: Re-generate.
2045 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2047 * objc/hash.h (hash_string, compare_strings):
2048 Add type-casts to make Objective-C++ happy.
2049 * objc/typedstream.h (objc_get_stream_class_version):
2050 Rename parameter from 'class' to 'class_name' to make
2051 Objective-C++ happy.
2053 2004-03-01 Michael Matz <matz@suse.de>
2055 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2057 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2059 * objc/objc-api.h (objc_super): The 'class' field shall
2060 be named 'super_class' #ifdef __cplusplus.
2062 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2065 * encoding.c (rs6000_special_round_type_align): Define.
2067 2004-01-14 Adam Fedor <fedor@gnu.org>
2070 * selector.c (__objc_register_instance_methods_to_class): Free
2071 new_list if not used.
2073 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2076 * sarray.c (sarray_free): Free array->is_copy_of latter.
2078 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2081 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2082 instance_methods if it's NULL.
2083 (descriptionForClassMethod): Likewise for class_methods.
2085 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2087 * Makefile.in (runtime-info.h): Remove -Wp.
2089 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2091 * Makefile.in (CC1OBJ): Remove.
2092 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2094 Use .m extension for temporary file.
2095 Remove assembler temp file.
2097 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2099 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2101 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2103 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2105 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2107 * configure: Regenerate.
2109 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2111 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2112 (libdir)/gcc-lib/ when installing.
2113 * configure: Regenerate.
2115 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2118 * sendmsg.c (get_imp): Fixed rare threading problem.
2119 (__objc_responds_to): Similar fixes.
2120 (objc_msg_lookup): Similar fixes.
2121 (__objc_init_install_dtable): Lock the runtime before checking if the
2124 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2126 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2127 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2128 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2129 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2130 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2131 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2132 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2133 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2134 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2135 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2136 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2138 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2139 Nicola Pero <n.pero@mi.flashnet.it>
2142 * init.c (class_superclass_of_class): New function.
2143 (create_tree_of_subclasses_inherited_from): Use it.
2144 (__objc_tree_insert_class): Likewise.
2145 (class_is_subclass_of_class): Likewise.
2147 2003-04-11 David Chad <davidc@freebsd.org>
2148 Loren J. Rittle <ljrittle@acm.org>
2151 * objc/hash.h (hash_string): Constify correctly.
2152 (compare_ptrs): Use direct compare.
2153 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2154 * objc/sarray.h: Global rename index to indx to avoid shadow.
2156 2003-03-12 Andreas Schwab <schwab@suse.de>
2158 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2159 glibcpp_toolexeclibdir.
2160 * configure: Rebuilt.
2162 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2164 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2166 * configure: Rebuilt.
2168 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2170 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2171 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2172 version_specific_libs is enabled.
2173 * configure: Rebuilt.
2175 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2177 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2178 (install-libs, install-headers): Prepend $(DESTDIR) to
2179 destination paths in all (un)installation commands.
2181 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2183 * thr-objc.c: Include coretypes.h and tm.h.
2185 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2187 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2189 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2191 * configure.in: Remove skip-this-dir support.
2192 * configure: Regenerate.
2194 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2196 * Makefile.in (all): Fix multilib parallel build.
2198 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2200 * sendmsg.c (nil_method): Declare not to take a variable number of
2202 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2203 (objc_msg_lookup_super): The same.
2205 2002-09-10 Jan Hubicka <jh@suse.cz>
2207 * nil_method.c (nil_method): No longer defined with variable
2210 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2212 * objc/encoding.h: Fix formatting.
2213 * objc/hash.h: Likewise.
2214 * objc/objc-api.h: Likewise.
2215 * objc/runtime.h: Likewise.
2216 * objc/thr.h: Likewise.
2217 * archive.c: Likewise.
2218 * class.c: Likewise.
2219 * encoding.c: Likewise.
2224 * nil_method.c: Likewise.
2225 * objects.c: Likewise.
2226 * sarray.c: Likewise.
2227 * selector.c: Likewise.
2228 * sendmsg.c: Likewise.
2229 * thr-mach.c: Likewise.
2232 2002-06-25 DJ Delorie <dj@redhat.com>
2234 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2235 GLIBCPP_TOPREL_CONFIGURE.
2236 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2237 * configure: Regenerate.
2239 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2241 * Object.m (forward, read, write): Fix unused parameter warnings.
2242 * encoding.c: Include <stdlib.h>.
2243 (target_flags): Mark with attribute unused.
2245 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2246 (__objc_generate_gc_type_description): Prototype.
2247 * selector.c (__objc_selector_max_index): Change to unsigned int.
2249 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2251 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2252 we always have a return value: if __objc_msg_forward does not
2253 supply a forwarding implementation, return the default
2254 __builtin_apply based one.
2256 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2258 * Object.m: Fix signed/unsigned warning.
2259 * Protocol.m: Likewise.
2260 * archive.c: Always include stdlib.h.
2261 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2262 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2263 Fix signed/unsigned warning.
2264 (objc_write_type, objc_read_type, objc_write_types,
2265 objc_read_types): Ensure ctype 8-bit safety.
2266 (__objc_no_write, __objc_no_read): Mark unused parameters.
2267 * class.c (class_table_setup): Specify void arg.
2268 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2269 objc_skip_typespec, objc_skip_offset,
2270 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2271 (objc_layout_structure_next_member): Ensure variables are
2273 * gc.c (__objc_generate_gc_type_description,
2274 class_ivar_set_gcinvisible): Mark unused parameters.
2275 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2277 (__objc_init_protocols) Fix signed/unsigned warning.
2278 * nil_method.c (nil_method): Mark unused parameters.
2279 * thr.h (objc_thread_callback): Specify void arg.
2280 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2281 signed/unsigned warning.
2282 (sarray_free): Fix formatting.
2283 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2284 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2286 2002-06-09 Andreas Jaeger <aj@suse.de>
2288 * encoding.c (objc_layout_structure_next_member): Remove unused
2291 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2293 * Makefile.in (SHELL): Set to @SHELL@.
2295 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2297 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2299 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2300 * configure: Regenerate.
2302 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2304 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2305 script entry, and set LD to it when configuring multilibs.
2306 * configure: Rebuilt.
2308 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2310 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2312 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2315 * objc/objc-api.h (struct objc_protocol_list): Change type of
2316 member count from int to size_t.
2318 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2321 * aclocal.m4: Replace with version copied from libstdc++-v3.
2322 * configure.in: Update for changes to aclocal and Makefile.
2323 * configure: Regenerate.
2324 * Makefile.in: Correct install of multilibs and shared libs, use
2325 INSTALL_DATA for include files.
2327 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2329 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2330 categories - when an unclaimed category was found, the loop was
2331 doing two steps forward instead of one, so that in certain cases
2332 it was failing to properly load all the categories. (Reported
2333 with fix by Alexander Malmberg <alexander@malmberg.org>).
2335 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2337 * encoding.c: Add target_flags.
2339 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2341 * objc/objc-api.h (_C_VECTOR): New.
2343 * encoding.c (VECTOR_TYPE): New.
2345 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2347 * class.c: Rewritten the class table to use optimized, lock-free
2348 lookup. This more than doubles the speed of class method
2349 invocations. (class_table_setup), (class_table_insert),
2350 (class_table_replace), (class_table_get_safe),
2351 (class_table_next), (class_table_print),
2352 (class_table_print_histogram): New functions.
2353 (__objc_init_class_tables): Use class_table_setup.
2354 (__objc_add_class_to_hash): Use class_table_get_safe and
2355 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2356 assert the existence of the table; do not lock the runtime; use
2357 class_table_get_safe. (objc_next_class): Use class_table_next.
2358 (__objc_resolve_class_links): Use class_table_next.
2359 (class_pose_as): Use class_table_replace.
2361 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2363 * gc.c: Removed the DEBUG declaration.
2365 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2367 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2368 rather than through objc_thread_id, to save a function call.
2369 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2372 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2374 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2375 to cast an id to a Class, which can not be done. Make the check
2376 by using CLS_ISMETA on the class pointer instead.
2377 (object_is_meta_class): Similar fix.
2379 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2381 * configure.in (AC_EXEEXT): Work around in case it expands to
2382 nothing, as in autoconf 2.50.
2383 * acinclude.m4: Likewise.
2384 * configure: Rebuilt.
2386 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2388 * THREADS: Explain that when we compile libobjc inside GCC, we
2389 always use thr-objc.c as a backend, which uses GCC's thread code.
2391 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2393 * init.c (__objc_send_message_in_list): When setting a new entry
2394 in __objc_load_methods use the method IMP as key, but check to see
2395 if the method is in the hashtable by looking at the IMP also.
2396 Also ... call the method after adding it to the hashtable rather
2397 than before ... thus preventing an obscure possibility of infinite
2398 recursion if a +load method itself loads a subclass.
2400 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2402 * init.c (__objc_send_message_in_list): When setting a new entry
2403 in __objc_load_methods use the method name as key, not the method
2404 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2406 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2408 * objc-features.texi: Move to ../gcc/objc.texi.
2410 * Makefile.in: Don't generate documentation from
2413 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2415 * fdl.texi: New file.
2416 * objc-features.texi: Simplify.
2417 * Makefile.in: Adjust accordingly.
2419 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2421 * objc-features.texi: Use the GFDL.
2423 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2425 * encoding.c (REAL_TYPE): Define.
2427 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2429 * encoding.c (TYPE_MODE): Define.
2431 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2433 * thr.c (objc_thread_add): New function.
2434 (objc_thread_remove): Ditto.
2435 * objc/thr.h: Declare them.
2436 * libobjc.def: Mention them.
2438 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2440 * objc-features.texi: Document the @compatibility_alias compiler
2441 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2443 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2445 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2447 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2449 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2450 we're not interested in the result and they might fail.
2451 * configure: Regenerated.
2453 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2455 * objc-features.texi: Use @email.
2457 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2459 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2462 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2464 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2465 determines the value dynamically.
2467 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2469 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2470 libraries to provide a function that returns the real forwarding
2471 function. This can alleviate problems __builtin_apply() and
2472 friends have on various platforms. (Solution suggested by Helge
2475 * objc/objc-api.h: Define __objc_msg_forward.
2477 * sendmsg.c: Define gen_rtx_REG.
2479 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2481 * thr-rtems.c: New file. Stub to compile.
2483 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2485 * configure: Rebuilt with new libtool.m4.
2487 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2489 * configure.in: Create a config.h file. Check for <sched.h>.
2490 * configure: Regenerate.
2492 * config.h.in: Check for <sched.h>.
2494 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2496 * configure: Regenerate after change to ../libtool.m4.
2498 2000-08-14 Andreas Schwab <schwab@suse.de>
2500 * objc-features.texi (Top): Move @menu at end of node.
2502 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2504 * objc-features.texi: Move @node Top before @menu.
2506 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2508 * objc-features.texi: Documented the new -fconstant-string-class
2511 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2513 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2514 improve the Posix thread support for Objective-C.
2516 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2518 * aclocal.m4: Replace copy of ../libtool.m4 with
2519 sinclude(../libtool.m4).
2521 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2523 * configure.in: Added libtool support; build shared libraries
2524 if --enable-shared was passed on command line.
2525 * Makefile.in: Modified most compilation commands to use libtool.
2526 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2527 libtool distribution.
2529 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2531 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2532 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2535 2000-05-12 H.J. Lu (hjl@gnu.org)
2537 * Makefile.in (GTHREAD_FLAGS): New.
2538 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2539 (OBJC_THREAD_FILE): Changed to thr-objc.
2541 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2543 (OBJC_THREAD_FILE): Removed.
2547 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2549 * objc/hash.h: Include string.h.
2551 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2553 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2555 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2557 * Object.m (strlen): Provide prototype on all 64bit platforms,
2559 * sarray.c (memcpy): Likewise.
2560 * encoding.c (objc_layout_finish_structure): Don't use
2561 ROUND_TYPE_ALIGN on sparc.
2563 * encoding.c (objc_layout_structure_next_member): Do the whole
2564 procedure even for the first member, so that we get correct
2567 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2569 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2572 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2574 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2576 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2578 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2580 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2582 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2583 the compiler when building C code.
2585 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2587 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2588 libdir, libsubdir and tooldir.
2590 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2592 * init.c (__objc_force_linking): Make global.
2594 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2596 * configure.in (AC_EXEEXT): Remove call.
2597 (compiler_name): Explicitly check with no extension and .exe
2599 * configure: Regenerate.
2601 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2603 * Makefile.in (CC1OBJ): Define in terms of CC.
2604 (runtime-info.h): Use.
2606 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2608 * objc-features.texi: Updated the URL to Boehm's GC page.
2610 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2612 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2613 the char as being signed (patch from Daniel Jacobowitz
2616 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2618 * configure.in (AC_PREREQ): Update to 2.13.
2619 (AC_EXEEXT): Call to find possible file extension.
2620 (compiler_name): Use.
2621 * configure: Regenerate.
2623 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2625 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2627 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2629 * configure.in (thread_file): Correct and simplify code to find
2631 * configure: Rebuilt.
2633 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2635 * configure.in (compiler_name): Add check to detect if this
2636 language's compiler has been built.
2637 * configure: Regenerate.
2639 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2641 * configure.in: Use AC_PREREQ(2.12.1).
2643 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2645 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2647 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2649 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2651 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2653 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2655 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2657 * objc-features.texi (Top): Changed the email address.
2658 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2660 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2662 * encoding.c: Redefine get_inner_array_type to get the first entry
2665 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2667 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2668 (objc_get_type_qualifiers): Similarly.
2669 * objc/encoding.h (_C_BYREF): Define.
2672 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2674 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2675 works out on 64-bit systems.
2677 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2679 * Makefile.in (INCLUDES): Make it multilib-friendly.
2681 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2683 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2685 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2686 Jeffrey A Law (law@cygnus.com)
2688 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2689 (FLAGS_TO_PASS): Added.
2690 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2692 * archive.c: Change config.h to tconfig.h.
2694 * configure.in: Find gcc's object directory even for multilibs.
2696 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2698 * configure.in: Escape ^ in grep string.
2699 * configure: Rebuilt.
2701 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2703 * All .h files pushed down into the objc/ subdirectory.
2704 * Makefile.in (copy_headers): Corresponding changes.
2705 * configure.in (AC_INIT): Corresponding changes.
2706 * configure: Rebuilt.
2708 1998-09-30 Ben Elliston <bje@cygnus.com>
2709 Jeff Law <law@cygnus.com>
2711 * Makefile.in: Rewrite.
2713 * configure.in: Likewise.
2715 * configure: Regenerate.
2717 * All .c files. Remove "objc" prefix when including objc header
2718 files. Include tconfig.h, not ../tconfig.h.
2720 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2722 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2723 (get_inner_array_type): Define.
2725 1998-09-21 Ben Elliston <bje@cygnus.com>
2727 * New directory. Moved files from ../gcc/objc.