1 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
3 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
4 to be 'struct objc_selector *' and not 'SEL'.
5 * init.c (__objc_exec_class): Call
6 __objc_register_selectors_from_module instead of iterating over
7 each selector and calling __sel_register_typed_name for each.
8 * objc-private/selector.h: Declare
9 __objc_register_selectors_from_module instead of
10 __sel_register_typed_name.
11 * selector.c (__objc_register_selectors_from_module): New.
12 (__sel_register_typed_name): Made static.
14 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
16 * linking.m: Do not include objc/NXConstStr.h.
18 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
20 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
21 * objc-private/common.h (DEBUG_PRINTF): To here.
22 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
24 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
26 * hash.c: Tidied up comments and indentation. No code changes.
28 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
31 * accessors.m (objc_getProperty): If not atomic, do not
32 retain/autorelease the returned value. (Problem reported by
34 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
36 * objc-private/runtime.h (__objc_selector_max_index,
37 __objc_init_selector_tables, __objc_register_selectors_from_class,
38 __objc_register_selectors_from_list,
39 __objc_register_selectors_from_description_list): Moved to ...
40 * objc-private/selector.h: ... here.
42 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
44 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
45 (__objc_print_dtable_stats): Removed.
46 (__sel_register_typed_name): Removed.
47 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
49 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
51 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
52 if appropriate, after loading the module.
54 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
56 * sendmsg.c (method_setImplementation): Do not declare.
58 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
60 * objc/message.h: Updated comments.
61 * objc/runtime.h: Updated comments.
63 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
65 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
66 * protocols.c: Updated all calls to objc_lookupClass to call
67 objc_lookUpClass instead.
68 * sendmsg.c (objc_lookupClass): Do not declare.
69 (get_imp): Update call to objc_lookupClass to call
70 objc_lookUpClass instead.
71 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
73 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
75 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
76 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
77 define. Updated comments.
79 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
81 * objc/encoding.h: Updated comments.
82 * objc/runtime.h: Updated comments.
83 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
84 (objc_sizeof_type): Same.
85 (objc_alignof_type): Same.
86 (objc_aligned_size): Same.
87 (objc_promoted_size): Same.
88 (objc_skip_type_qualifiers): Same.
89 (objc_skip_typespec): Same.
90 (objc_skip_offset): Same.
91 (objc_skip_argspec): Same.
92 (objc_get_type_qualifiers): Same.
93 (objc_layout_structure): Same.
94 (objc_layout_structure_next_member): Same.
95 (objc_layout_finish_structure): Same.
96 (objc_layout_structure_get_info): Same.
98 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
100 * init.c: Updated comments.
101 * objc/objc-api.h: Updated comments.
102 * objc/runtime.h (_objc_load_callback): Declare.
104 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
106 * objc/Object.h: Include deprecated/typedstream.h and
107 deprecated/hash.h instead of typedstream.h. Updated comments.
109 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
111 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
112 * objc/deprecated/objc_msg_sendv.h: New.
113 * objc/message.h: Do not define retval_t, apply_t, arglist,
114 arglist_t, objc_msg_sendv, now in
115 objc/deprecated/objc_msg_sendv.h.
116 * objc/objc.h: Do not include message.h; include
117 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
118 * sendmsg.c: Include objc/message.h.
119 * thr.c: Include objc/message.h.
121 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
123 * objc/objc-exception.h: Include objc-decls.h. Mark all
124 functions with objc_EXPORT.
125 * objc/objc-sync.h: Same change.
127 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
129 * Protocol.m: Moved all methods, with the exception of -isEqual:,
130 into the 'Deprecated' category.
131 * objc/Protocol.h: Removed all methods, moved to
132 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
133 * objc/deprecated/Protocol.h: New.
134 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
136 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
138 * init.c: Include objc-private/selector.h. Do not declare
139 __sel_register_typed_name.
140 * objc-private/selector.h (__sel_register_typed_name): Declare.
141 * selector.c: Include objc-private/selector.h.
143 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
145 * class.c: Tidied up comments and indentation. No code changes.
151 * objc-foreach.c: Same.
158 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
160 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
161 instead of objc/objc-api.h.
162 (init_check_module_version): Take a 'struct objc_module *'
163 argument instead of 'Module_t'. Use 'struct objc_module *'
164 instead of 'Module_t'.
165 (__objc_created_classes_tree): Take a 'struct objc_module *'
166 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
168 (__objc_call_callback): Take a 'struct objc_module *' argument
169 instead of 'Module_t'; use 'struct objc_symtab *' instead of
170 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
171 (_objc_load_callback): Take a 'struct objc_category *' argument
172 instead of 'Category *'.
173 (class_superclass_of_class): Use objc_getClass() instead of
175 (create_tree_of_subclasses_inherited_from): Same change (also, use
176 an explicit 'if' instead of '?').
177 (objc_init_statics): Same change.
178 (objc_send_load): Same change.
179 (__objc_init_protocol): same change.
180 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
181 argument instead of 'MethodList_t'. Use 'struct objc_method *'
182 instead of 'Method_t'.
183 (__objc_send_load): Use 'struct objc_method_list *' instead of
184 'MethodList_t'. Use sel_registerName() instead of
186 (__objc_exec_class): Take a 'struct objc_module *' argument
187 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
188 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
189 Use 'struct objc_category *' instead of 'Category_t'.
191 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
193 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
194 Include objc-private/module-abi-8.h and objc-private/selector.h
195 instead of objc/encoding.h.
196 (objc_msg_lookup_super): Use super->super_class instead of
198 (method_get_first_argument, method_get_next_argument): Declare
200 (class_get_instance_method): Declare before using.
201 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
202 (__objc_init_dispatch_tables, __objc_send_initialize): Use
203 sel_registerName() instead of sel_register_name().
204 (__objc_forward): Use sel_getName() instead of sel_get_name().
205 (objc_get_uninstalled_dtable): Use 'void' as argument.
206 * objc-private/selector.h: New.
208 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
210 * objc/message.h (objc_super): When using the modern API, do not
211 define Super and Super_t, and always use 'super_class' for the
213 (objc_msg_lookup_super): Updated prototype to use 'struct
214 objc_super *' instead of 'Super_t'.
215 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
216 'struct objc_super *' instead of 'Super_t'.
218 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
220 * objc/message.h: Update comments, reindented code and moved
221 deprecated types and functions at the end of the file. No code
224 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
226 * ivars.c (class_addIvar): Use the 'size' argument instead of
227 trying to calculate it using objc_sizeof_type().
228 * objc/runtime.h (class_addIvar): Updated comments.
230 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
232 * sendmsg.c: Reindented some code and tidied up comments. No
235 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
237 * objc/Object.h: Moved all the methods, with the exception of
238 -class and -isEqual:, into ...
239 * objc/deprecated/Object.h: here.
240 * Object.m: Moved all the methods, with the exception of -class
241 and -isEqual: into the 'Deprecated' category.
243 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
245 * objects.c (object_copy): Do not #undef as we are no longer
246 including objc/objc-api.h.
247 * selector.c: Include objc/runtime.h and
248 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
249 objc/encoding.h. Updated
250 (__objc_register_selectors_from_class): Use struct
251 objc_method_list * instead of MethodList_t.
252 (__objc_register_selectors_from_list): Use Method instead of
254 (struct objc_method_description_list): Do not define here.
255 (__objc_register_instance_methods_to_class): Use struct
256 objc_method_list * instead of MethodList_t and Method instead of
259 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
261 * selector.c: Reindented some code and tidied up comments. No
264 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
266 * encoding.c (_darwin_rs6000_special_round_type_align): New.
267 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
269 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
271 * sendmsg.c (selector_resolveClassMethod): New.
272 (selector_resolveInstanceMethod): New.
273 (__objc_resolve_class_method): New.
274 (__objc_resolve_instance_method): New.
275 (get_imp): Call __objc_resolve_class_method or
276 __objc_resolve_instance_method at the appropriate time.
277 (objc_msg_lookup): Same.
278 (class_getClassMethod): Same.
279 (class_getInstanceMethod): Same.
280 (__objc_init_dispatch_tables): Initialize
281 selector_resolveClassMethod and selector_resolveInstanceMethod.
282 * objc/runtime.h: Updated documentation of class_getClassMethod,
283 class_getInstanceMethod and class_getMethodImplementation.
285 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
287 * objc-private/module-abi-8.h (struct objc_symtab): Updated
288 description of sel_ref_cnt and refs.
289 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
291 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
295 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
296 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
297 * aclocal.m4: Regenerate.
298 * configure: Regenerate.
300 2010-12-03 Matthias Klose <doko@ubuntu.com>
302 * configure.ac (VERSION): Bump the version to 3:0:0.
303 * configure: Regenerate.
305 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
307 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
308 pass nil as the receiver since we don't know the receiver at this
311 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
313 * ivars.c: Include stdlib.h.
314 * protocols.c: Same change.
316 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
318 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
320 * init.c: Include objc-private/accessors.h.
321 (__objc_exec_class): Call __objc_accessors_init.
322 * objc-private/accessors.h: New.
324 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
326 * objc/message.h: Moved initial includes outside of extern "C".
327 * objc/runtime.h: Add extern "C" for Objective-C++.
329 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
331 * init.c (objc_send_load): Do not wait for NXConstantString to be
332 registered before executing +load. There is no point if
333 -fconstant-string-class=xxx is used when compiling all modules,
334 as is the case for almost all users.
335 * linking.m (__objc_linking): Do not try to forcefully link in
338 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
340 * objc/runtime.h: Updated comments.
341 (class_addMethod): New.
342 (class_addIvar): New.
343 (class_replaceMethod): New.
344 (objc_allocateClassPair): New.
345 (objc_registerClassPair): New.
346 (objc_disposeClassPair): New.
347 * class.c (objc_allocateClassPair): New.
348 (objc_registerClassPair): New.
349 (objc_disposeClassPair): New.
350 (class_getSuperclass): Return Nil if a class is in construction.
351 * init.c (__objc_exec_class): Call __objc_init_class.
352 (__objc_init_class): New.
353 * ivars.c (class_copyIvarList): Return NULL if class is in
354 construction. Do not lock the runtime mutex.
355 (class_getInstanceVariable): Return NULL if class is in
356 construction. Do not lock the runtime mutex.
357 (class_addIvar): New.
358 * sendmsg.c (class_addMethod): New.
359 (class_replaceMethod): New.
360 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
361 (_CLS_IN_CONSTRUCTION): New.
362 (CLS_IS_IN_CONSTRUCTION): New.
363 (CLS_SET_IN_CONSTRUCTION): New.
364 (CLS_SET_NOT_IN_CONSTRUCTION): New.
365 * objc-private/runtime.h (__objc_init_class): New.
367 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
369 * class.c (class_getSuperclass): Call __objc_resolve_class_links
370 if the class is not resolved yet.
371 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
373 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
375 * objc/runtime.h (class_getIvarLayout): New.
376 (class_getWeakIvarLayout): New.
377 (class_setIvarLayout): New.
378 (class_setWeakIvarLayout): New.
379 * ivars.c (class_getIvarLayout): New.
380 (class_getWeakIvarLayout): New.
381 (class_setIvarLayout): New.
382 (class_setWeakIvarLayout): New.
384 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
386 * objc/runtime.h (class_copyPropertyList): New.
387 (class_getProperty): New.
388 (property_getAttributes): New.
389 (property_getName): New.
390 * ivars.c (class_copyPropertyList): New.
391 (class_getProperty): New.
392 (property_getAttributes): New.
393 (property_getName): New.
395 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
397 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
398 * class.c (__objc_update_classes_with_methods): New.
399 (objc_getClassList): Do not lock the class lock.
400 * methods.c (method_exchangeImplementations): New.
401 (method_setImplementation): New.
402 * objc/runtime.h (method_setImplementation): New.
403 (method_exchangeImplementations): New.
405 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
407 * Protocol.m: Include objc/runtime.h and
408 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
409 repeat Protocol's instance variables.
410 (struct objc_method_description_list): Do not define here.
411 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
412 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
413 selectors directly instead of getting names and then using strcmp.
414 ([descriptionForClassMethod:]): Same change.
415 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
416 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
417 to compare selectors directly instead of getting names and then
419 * objc/Protocol.h: Updated comments.
421 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
423 * init.c (__objc_init_protocol): New function which fixes up a
424 protocol's class pointer, registers it with the runtime, register
425 all protocol selectors and registers associated protocols too.
426 (objc_init_statics): Detect if we are initializing protocols, and
427 if so, use __objc_init_protocol instead of only fixing up the
429 (__objc_init_protocls): Use __objc_init_protocol.
430 * objc-private/module-abi-8.h: Updated comments.
431 * objc-private/runtime.h
432 (__objc_register_selectors_from_description_list): New.
433 * selector.c (__objc_register_selectors_from_description_list):
434 New. (struct objc_method_description_list): Declare.
435 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
436 when accessing the name of a method, which is now correctly a SEL.
437 ([-descriptionForClassMethod:]): Same change.
438 * protocols.c (protocol_getMethodDescription): Same change.
439 * objc/runtime.h: Updated comments.
440 (sel_registerTypedName): Fixed typo in function name.
442 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
445 * init.c (objc_init_statics): Do not skip the initialization of a
446 statics list if the first object has already been initialized; in
447 the case of Protocols, while the first one may have been
448 initialized, some others may not have been initialized yet.
450 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
452 * Makefile.in (OBJC_DEPRECATED_H): Added
453 objc_get_uninstalled_dtable, objc_object_alloc.h and
454 struct_objc_static_instances.h.
456 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
458 * encoding.c (method_copyReturnType): New.
459 (method_copyArgumentType): New.
460 (method_getReturnType): New.
461 (method_getArgumentType): New.
462 * methods.c (method_getDescription): New.
463 * objc/runtime.h (method_copyReturnType): New.
464 (method_copyArgumentType): New.
465 (method_getReturnType): New.
466 (method_getArgumentType): New.
467 (method_getDescription): New.
469 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
471 * encoding.c: Tidied up comments.
472 (objc_skip_variable_name): New static inline function.
473 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
474 the same code over and over.
475 (objc_alignof_type): Same.
476 (objc_aligned_size): Same.
477 (objc_promoted_size): Same.
478 (objc_skip_typespec): Same.
479 (objc_layout_structure_next_member): Same.
480 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
481 historical bug where objc_skip_offset would skip one byte even if
482 there is no offset: check that the first offset digit is actually
483 a digit before skipping it.
484 (objc_skip_type_qualifiers): Mark as inline.
485 (objc_skip_typespec): Mark as inline.
487 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
489 * Makefile.in (C_SOURCE_FILES): Added methods.c.
490 * encoding.c (method_getNumberOfArguments): New.
491 (method_get_number_of_arguments): Call
492 method_getNumberOfArguments.
493 * ivars.c (ivar_getName): Check for NULL variable argument.
494 (ivar_getOffset): Check for NULL variable argument.
495 (ivar_getTypeEncoding): Check for NULL variable argument.
496 (class_copyIvarList): New.
498 * protocols.c (class_copyProtocolList): Check for Nil class_
500 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
501 'struct objc_method_list *' instead of MethodList_t.
502 (class_getMethodImplementation): New.
503 (class_respondsToSelector): New.
504 (class_getInstanceMethod): New.
505 (class_getClassMethod): New.
506 * objc/runtime.h: Updated comments.
507 (class_copyIvarList): New.
508 (class_getInstanceMethod): New.
509 (class_getClassMethod): New.
510 (class_getMethodImplementation): New.
511 (class_respondsToSelector): New.
512 (method_getName): New.
513 (method_getImplementation): New.
514 (method_getTypeEncoding): New.
515 (class_copyMethodList): New.
516 (method_getNumberOfArguments): New.
518 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
520 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
521 instead of objc/objc-api.h.
522 (objc_get_unknown_class_handler): Do not define.
523 (class_isMetaClass): New.
524 (class_getSuperclass): New.
525 (class_getVersion): New.
526 (class_setVersion): New.
527 (class_getInstanceSize): New.
528 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
529 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
530 objc_get_super_class.
531 (get_ttype_entry): Use objc_getRequiredClass instead of
533 * ivars.c (class_getClassVariable): New.
534 * objects.c: Include objc/runtime.h, objc/thr.h and
535 objc-private/module-abi-8.h instead of objc/objc-api.h
536 * objc/runtime.h (class_getClassVariable): New.
537 (class_isMetaClass): New.
538 (class_getSuperclass): New.
539 (class_getVersion): New.
540 (class_setVersion): New.
541 (class_getInstanceSize): New.
542 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
545 (__CLS_ISINFO): Same.
546 (__CLS_SETINFO): Same.
549 (CLS_ISRESOLV): Same.
550 (CLS_SETRESOLV): Same.
551 (CLS_ISINITIALIZED): Same.
552 (CLS_SETINITIALIZED): Same.
553 (CLS_GETNUMBER): Same.
554 (CLS_SETNUMBER): Same.
556 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
558 * archive.c: Do not include objc/objc.h.
559 * class.c: Do not include objc/objc.h.
560 * encoding.c: Include objc/runtime.h, ctype.h and
561 objc-private/module-abi-8.h instead of objc/objc-api.h and
563 * error.c: Do not include objc/objc.h.
564 * gc.c: Include tconfig.h and objc/encoding.h only if
566 * hash.c: Include objc/runtime.h and objc/thr.h instead of
567 objc/objc-api.h. Do not include objc/objc.h.
568 * init.c: Do not include objc/objc.h.
569 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
570 objc/thr.h instead of objc/objc-api.h. Do not include
572 * linking.m: Tidied comment.
573 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
574 Do not include objc/objc.h.
575 * objects.c: Do not include objc/objc.h.
576 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
577 * protocols.c: Do not include objc/objc.h.
578 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
579 not include objc/objc.h.
580 * selector.c: Do not include objc/objc.h.
581 * sendmsg.c: Do not include objc/objc.h.
582 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
583 Do not include objc/objc.h.
584 * objc/objc-decls.h: Reindented code.
585 * objc/runtime.h Include objc-decls.h. Updated comments.
587 (objc_atomic_malloc): New.
591 * objc-private/runtime.h: Updated comments.
593 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
595 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
596 * objc-private/protocols.h: New.
598 * init.c: Include objc-private/protocols.h.
599 (__objc_exec_class): Call __objc_protocols_init on startup.
600 (__objc_init_protocols): Call __objc_protocols_add_protocol.
601 * objc-private/runtime.h: Use (struct objc_method_list *) instead
602 of MethodList_t, and (struct objc_method *) instead of Method_t.
603 * objc/deprecated/struct_objc_class.h: Define
604 __objc_STRUCT_OBJC_CLASS_defined.
605 * objc-private/module-abi-8.h (struct
606 objc_method_description_list): New.
607 (struct objc_class): Only define if
608 __objc_STRUCT_OBJC_CLASS_defined is undefined.
609 * objc/runtime.h (class_getName): New.
610 (objc_getProtocol): New.
611 (objc_copyProtocolList): New.
612 (class_addProtocol): New.
613 (class_conformsToProtocol): New.
614 (class_copyProtocolList): New.
615 (protocol_conformsToProtocol): New.
616 (protocol_isEqual): New.
617 (protocol_getName): New.
618 (protocol_getMethodDescription): New.
619 (protocol_copyMethodDescriptionList): New.
620 (protocol_getProperty): New.
621 (protocol_copyPropertyList): New.
622 (protocol_copyProtocolList): New.
623 * class.c (class_getName): New.
624 * selector.c (sel_isEqual): New.
626 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
628 * selector.c (sel_getName): Return "<null selector>" for a NULL
630 (sel_get_name): Return 0 for a NULL argument.
631 * objc/runtime.h (sel_getName): Updated documentation.
633 * objc-private/hash.h (class_hash_table): Unused declaration
635 (module_hash_table): Same.
636 * objc/deprecated/hash.h: Same changes.
638 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
640 * class.c (objc_getClassList): New.
641 (objc_getRequiredClass): New.
642 (objc_getMetaClass): New.
643 (objc_lookupClass): New.
644 (objc_getClass): New.
645 (__objc_get_unknown_class_handler): New.
646 (objc_setGetUnknownClassHandler): New.
647 (objc_get_class): Use __objc_get_unknown_class_handler.
648 (objc_lookup_class): Call objc_getClass.
649 * objc/objc-api.h: Updated comment and copyright notice.
650 * objc/runtime.h: Updated comments.
651 (objc_getClass): New.
652 (objc_lookupClass): New.
653 (objc_getMetaClass): New.
654 (objc_getRequiredClass): New.
655 (objc_getClassList): New.
656 (objc_setGetUnknownClassHandler): New.
657 (objc_get_unknown_class_handler): New.
658 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
659 instead of __objc_runtime_INCLUDE_GNU as include guard.
660 * objc-private/error.h (_objc_abort): Mark as noreturn.
662 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
664 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
666 * objc/objc.h: Updated comments.
667 * objc/runtime.h (object_getClass): New.
668 (object_getClassName): New.
669 (object_setClass): New.
670 (class_getInstanceVariable): New.
671 (object_getIndexedIvars): New.
672 (object_getInstanceVariable): New.
673 (object_setInstanceVariable): New.
674 (object_getIvar): New.
675 (object_setIvar): New.
677 (ivar_getOffset): New.
678 (ivar_getTypeEncoding): New.
679 * objc-private/module-abi-8.h (struct objc_class): Added.
680 * objects.c (object_getClassName): New.
681 (object_setClass): New.
683 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
685 * objc/objc.h: Updated comments.
686 * objc/objc-api.h: (object_copy): Added one argument; use a
687 #define to maintain backwards-compatibility. Moved
688 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
689 objc_get_uninstalled_dtable into
690 objc/deprecated/objc_get_uninstalled_dtable.h and
691 objc/deprecated/objc_object_alloc.h. Include these files.
692 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
693 * objc/deprecated/objc_object_alloc.h: New.
694 * objc/runtime.h (set_getName): New.
697 (sel_registerName): New.
698 (sel_registerTypedName): New.
700 (class_createInstance): New.
702 (object_dispose): New.
703 * objects.c: Do not include tconfig.h. Include gc_typed.h if
704 building the garbage collection version.
705 (__objc_object_alloc): Removed.
706 (__objc_object_copy): Removed.
707 (__objc_object_dispose): Removed.
708 (class_createInstance): New from code in class_create_instance.
709 Cast second argument of GC_malloc_explicitly_typed. Use
710 objc_calloc. Do not call _objc_object_alloc.
711 (class_create_instance): Call class_createInstance.
712 (object_copy): Added extraBytes argument. Do not call
714 (object_dispose): Do not call _objc_object_dispose.
715 * memory.c (objc_free): When using garbage collection, mark the
717 * selector.c (sel_getName): New.
718 (sel_get_name): Call sel_getName.
720 (sel_get_type): Call sel_getType.
721 (sel_registerName): New.
722 (sel_register_name): Call sel_registerName.
723 (sel_registerTypedName): New.
724 (sel_register_typed_name): Call sel_registerTypedName.
726 (sel_get_uid): Call sel_getUid.
728 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
730 * objc/objc-api.h: Define Method, Method_t, Category and
731 Category_t. Prevent including this file at the same time as
732 objc/runtime.h. Updated comments.
733 * objc/deprecated/struct_objc_method.h: Do not define Method,
735 * objc/deprecated/struct_objc_category.h: Do not define Category,
737 * objc-private/module-abi-8.h: New file containing a copy of all
738 the structure definitions. Not used yet.
739 * objc/encoding.h (objc_aligned_size): Removed duplicate
740 declaration. Updated comments.
741 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
742 Category, struct objc_method_description, _C_ID and similar,
743 _C_CONST and similar and _F_CONST and similar. Added
744 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
745 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
746 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
747 struct objc_struct_layout, objc_layout_structure,
748 objc_layout_structure_next_member, objc_layout_finish_structure,
749 objc_layout_structure_get_info. Prevent including this file at
750 the same time as objc/objc-api.h.
752 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
754 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
755 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
756 struct_objc_method_list.h, struct_objc_module.h,
757 struct_objc_protocol_list.h, struct_objc_symtab.h.
758 * objc/deprecated/struct_objc_category.h: New.
759 * objc/deprecated/struct_objc_ivar.h: New.
760 * objc/deprecated/struct_objc_ivar_list.h: New.
761 * objc/deprecated/struct_objc_method.h: New.
762 * objc/deprecated/struct_objc_method_list.h: New.
763 * objc/deprecated/struct_objc_module.h: New.
764 * objc/deprecated/struct_objc_protocol_list.h: New.
765 * objc/deprecated/struct_objc_symtab.h: New.
766 * objc/deprecated/struct_objc_static_instances.h: New.
767 * objc/objc-api.h: Definitions of deprecated structures moved into
768 the above header fragment files in objc/deprecated/. Include the
769 files instead of definition the structures here. Updated
771 * objc/runtime.h: Updated comments. Do not include objc-api.h.
772 (objc_set_enumeration_mutation_handler): Renamed to
773 objc_setEnumerationMutationHandler.
774 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
775 to objc_setEnumerationMutationHandler.
776 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
777 objc_setExceptionMatcher.
778 (objc_set_uncaught_exception_handler): Renamed to
779 objc_setUncaughtExceptionHandler.
780 * exception.c: Same changes.
782 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
784 * objc-sync.c: Include objc-private/common.h.
786 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
788 * objc-foreach.c: Include objc-private/common.h.
789 * objc/deprecated/METHOD_NULL.h: New file.
790 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
791 defining METHOD_NULL here.
792 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
793 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
795 ([-respondsTo:]): Same change.
796 * objc/objc-api.h (method_get_imp): Converted it into a normal
797 function so that we can hide the internals of struct objc_method.
798 * sendmsg.c (method_get_imp): Implemented.
800 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
802 * objc/objc-api.h (struct objc_super, Super, Super_t,
803 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
804 objc_msg_forward2): Declarations moved to objc/message.h. Include
806 * objc/message.h: Added such declarations; updated comments.
808 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
810 Implemented fast enumeration for Objective-C.
811 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
812 (OBJC_H): Added runtime.h
813 * objc-foreach.c: New file.
814 * objc/runtime.h: New file.
816 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
818 * objc/deprecated/struct_objc_class.h: Add padding
819 to avoid warning with -Wpadded.
821 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
823 * encoding.c (objc_sizeof_type): Added support for vector type and
824 for double long types.
825 (objc_alignof_type): Same change.
826 (objc_skip_typespec): Same change.
827 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
828 instead of '!' since '!' is already used for _C_VECTOR.
829 * objc/objc-api.h (_C_LNG_DBL): Added.
831 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
833 * libobjc_entry.c: File removed.
835 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
837 * sendmsg.c (objc_msg_lookup): Remove inline.
838 (objc_get_uninstalled_dtable): Likewise.
839 * encoding.c (objc_skip_type_qualifiers): Likewise.
840 (objc_skip_offset): Likewise.
841 * archive.c (__objc_write_object): Likewise
842 (__objc_write_class):
843 (__objc_write_selector):
845 (objc_read_unsigned_char):
847 (objc_read_unsigned_short):
850 (__objc_read_nbyte_uint):
851 (objc_read_unsigned_int):
852 (objc_read_unsigned_long):
853 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
854 (objc_EXPORT): Likewise.
855 * objc/message.h (objc-decls.h): Add include.
856 * objc/objc-api.h: Mark API by objc_EXPORT.
857 * libobjc.def (__objc_responds_to): Removed.
859 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
861 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
863 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
864 objc/sarray.h replaced with a placeholder including the file from
865 the deprecated/ directory.
866 * objc-private/sarray.h: New file (private copy of sarray.h).
867 * hash.c: Include <assert.h> instead of "assert.h"
868 * sarray.c: Include <assert.h> instead of "assert.h". Include
869 objc-private/sarray.h instead of objc/sarray.h.
870 * selector.c: Include objc-private/sarray.h instead of
872 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
873 instead of objc/sarray.h.
874 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
876 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
878 * objc-private/objc-list.h (list_remove_elem): Unused function
879 removed. (list_nth): Unused function removed. (list_find):
880 Unused function removed. (list_lenght): Unused function removed.
882 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
884 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
885 replaced with a placeholder including the file from the
886 deprecated/ directory.
887 * objc/objc-api.h: Updated includes.
888 * objc/typedstream.h: Updated includes.
889 * objc-private/hash.h: New file (private copy of hash.h).
890 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
891 objc/objc-list.h replaced with a placeholder including the file
892 from the deprecated/ directory.
893 * objc-private/objc-list.h: New file (private copy of objc-list.h).
894 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
895 instead of objc/hash.h and objc/objc-list.h.
896 * selector.c: Same change.
897 * class.c: Added include <string.h>, which used to be implicitly included
898 when hash.h was included.
899 * exception.c: Same change.
900 * objects.c: Same change.
901 * sarray.c: Same change.
902 * sendmsg.c: Same change.
903 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
905 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
907 Implemented objc_sync_enter() and objc_sync_exit(), which are
908 required by @synchronized() to work.
909 * objc-sync.c: New file.
910 * objc/objc-sync.h: New file.
911 * objc-private/objc-sync.h: New file.
912 * init.c (__objc_exec_class): Call __objc_sync_init() during the
913 Objective-C runtime startup.
914 * Makefile.in: Added objc-sync.c and objc-sync.h.
915 * configure.ac: Added GCC_CHECK_TLS.
916 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
917 * configure: Regenerated.
918 * config.h.in: Regenerated.
920 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
922 * Makefile.in (%_gc.lo): New pattern rules to build the
923 garbage-collected version of the library. Removed rules for
924 specific files that are no longer needed. Standardized all rules.
925 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
926 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
928 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
930 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
932 * memory.c (objc_calloc): Fixed call to GC_malloc when building
933 with Garbage Colletion.
935 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
937 * memory.c: Do not include objc-private/runtime.h.
939 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
941 * objc/deprecated/objc_malloc.h: New file.
942 * objc/deprecated/objc_valloc.h: New file.
943 * objc/objc-api.h: Include the files instead of defining
944 objc_valloc, _objc_malloc() and similar.
945 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
947 * memory.c: Removed the extra layer of indirection of _objc_malloc
949 (objc_calloc): Use GC_malloc in the garbage-collected
950 implementation as GC_malloc returns memory that is already freed.
951 (objc_valloc): Deprecated.
953 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
955 * objc/deprecated/objc_error.h: New file.
956 * objc/objc-api.h: Include deprecated/objc_error.h instead of
957 defining objc_error and related.
958 * error.c: New file. Added _objc_abort function which replaces
959 objc_error. No change in functionality as they both print an
961 * misc.c: File removed. Code moved into memory.c and error.c.
962 * memory.c: New file.
963 * objc-private/error.h: New file.
964 * archive.c: Include objc-private/error.h and use _objc_abort
965 instead of objc_error everywhere.
966 * class.c: Same change.
967 * encoding.c: Same change.
968 * init.c: Same change, and simplified init_check_module_version.
969 * memory.c: Same change.
970 * sendmsg.c: Same change.
971 * thr.c: Same change.
972 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
973 (OBJ_H): Reordered list.
974 (OBJS): Removed misc.lo, added memory.lo and error.lo.
975 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
976 (misc_gc.lo): Rule removed.
977 (error_gc.lo): Rule added.
978 (memory_gc.lo): Rule added.
980 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
982 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
983 to check the API version. Added some comments.
985 * objc-private/common.h: New file.
986 * NXConstStr.m: Include objc-private/common.h.
987 * Object.m: Same change.
988 * Protocol.m: Same change.
989 * archive.c: Same change.
990 * class.c: Same change.
991 * encoding.c: Same change.
992 * exception.c: Same change.
994 * hash.c: Same change.
995 * init.c: Same change.
996 * libobjc_entry.c: Same change.
997 * linking.m: Same change.
998 * misc.c: Same change (and added a comment).
999 * nil_method.c: Same change.
1000 * objects.c: Same change.
1001 * sarray.c: Same change.
1002 * selector.c: Same change.
1003 * sendmsg.c: Same change.
1004 * thr.c: Same change.
1006 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1008 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1010 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1012 * archive.c: Removed not needed includes.
1013 * class.c: Same change.
1014 * hash.c: Same change.
1015 * misc.c: Same change.
1016 * nil_method.c: Same change.
1017 * objects.c: Same change.
1018 * sarray.c: Same change.
1019 * sendmsg.c: Same change.
1020 * thr.c: Same change.
1022 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1024 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1025 all the objc/*.h files.
1026 * objc-private/runtime.h: New file.
1027 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1028 files) instead of objc/runtime.h.
1029 * class.c: Same change.
1030 * hash.c: Same change.
1031 * init.c: Same change.
1032 * misc.c: Same change.
1033 * nil_method.c: Same change.
1034 * objects.c: Same change.
1035 * sarray.c: Same change.
1036 * selector.c: Same change.
1037 * sendmsg.c: Same change.
1038 * thr.c: Same change.
1040 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1042 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1043 'struct objc_selector' and 'sel_eq' moved here.
1044 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1045 'struct objc_procotol' moved here.
1046 * objc/deprecated/struct_objc_class.h: New file. Definition of
1047 'struct objc_class' moved here.
1048 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1050 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1051 * objc/message.h: New file. Definitions for relval_t, apply_t,
1052 arglist, arglist_t and objc_msg_lookup were moved here.
1053 * objc/objc.h: Include the above files instead of defining the
1054 corresponding structs, types and functions here. Added new opaque
1055 definitions for SEL and Class. Use Class and not 'struct
1056 objc_class *' in the definition of 'struct objc_object'.
1057 Commented all types defined in the file. Removed special
1058 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1060 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1061 objc_unexpected_exception.h.
1062 * objc/objc-api.h: Updated include of
1063 objc-unexpetected-exception.h
1064 * objc/objc-exception.h: Updated comments.
1065 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1066 files. Reindented list of files.
1068 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1070 * objc/objc-api.h (objc_trace): Unused variable removed.
1072 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1074 * objc/deprecated: New directory.
1075 * objc/deprecated/README: New file.
1076 * objc/README: New file.
1077 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1078 objc/typedstream.h replaced with a placeholder including the file
1079 from the deprecated/ directory.
1080 * objc/deprecated/objc-unexpected-exception.h: New file with the
1081 definition of _objc_unexpected_exception.
1082 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1083 instead of defining _objc_unexpected_exception.
1084 * objc/deprecated/Object.h: New file with the deprecated Object
1085 methods in a 'Deprecated' category.
1086 * objc/Object.h Include deprecated/Object.h instead of defining
1087 the deprecated methods.
1088 * Object.m: Moved deprecated methods into 'Deprecated' category.
1089 * objc-private: New directory.
1090 * objc-private/README: New file.
1091 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1092 (install-headers): Create installation directory for
1093 OBJC_DEPRECATED_H headers, and install them.
1095 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1097 * objc/objc-exception.h: Fixed include of objc.h.
1099 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1101 * objc/objc-exception.h: New file.
1102 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1103 (objc_set_exception_matcher): Implemented.
1104 (objc_exception_throw): Use the uncaught exception handler if set.
1105 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1107 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1108 up. Removed segmentation fault when value is 'nil'.
1109 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1111 * Makefile.in (exception.lo, exception_gc.lo): Use
1112 -Wno-deprecated-declarations when compiling.
1113 (OBJC_H): Added objc-exception.h
1115 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1117 * objc/typedstream.h: Deprecate all functions in the file. This
1119 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1120 [-awake]): Documented that these methods are deprecated. Added a
1121 brief description of the Object class and its relationship to the
1123 * Makefile.in: Compile archive.c and Object.m with
1124 -Wno-deprecated-declarations.
1126 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1128 Removed obsolete intermediate threading layer.
1129 * thr.c: Use __gthread_objc_xxx functions directly instead of
1130 __objc_thread_xxx ones.
1131 * objc/thr.h: Removed prototypes of no longer existing
1132 __objc_thread_xxx functions.
1133 * Makefile.in: Removed thr-objc.lo.
1134 * thr-dce.c: File removed.
1135 * thr-decosf1.c: File removed.
1136 * thr-irix.c: File removed.
1137 * thr-mach.c: File removed.
1138 * thr-objc.c: File removed.
1139 * thr-os2.c: File removed.
1140 * thr-posix.c: File removed.
1141 * thr-pthreads.c: File removed.
1142 * thr-rtems.c: File removed.
1143 * thr-single.c: File removed.
1144 * thr-solaris.c: File removed.
1145 * thr-vxworks.c: File removed.
1146 * thr-win32.c: File removed.
1147 * README.threads: File removed.
1148 * THREADS.MACH: File removed.
1151 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1153 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1155 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1157 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1158 Add a comment as to why, update FIXME comments.
1160 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1162 * makefile.dos: Obsolete file removed.
1164 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1166 * aclocal.m4: Regenerate.
1168 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1171 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1172 Cygwin and MinGW hosts.
1173 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1174 (libobjc.dll): Likewise.
1175 * configure: Regenerate.
1177 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1179 * configure: Regenerate.
1181 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1183 * sarray.c (sarray_free): Use old_buckets variable.
1184 * encoding.c (objc_layout_structure_next_member): Remove unused
1185 bfld_type_size variable.
1187 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1189 * configure.ac (AC_PREREQ): Bump to 2.64.
1191 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1193 * aclocal.m4: Regenerate.
1194 * configure: Regenerate.
1195 * config.h.in: Regenerate.
1197 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1199 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1201 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1203 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1205 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1207 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1209 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1211 2009-04-09 Nick Clifton <nickc@redhat.com>
1213 * sendmsg.c: Change copyright header to refer to version 3 of
1214 the GNU General Public License with version 3.1 of the GCC
1215 Runtime Library Exception and to point readers at the COPYING3
1216 and COPYING3.RUNTIME files and the FSF's license web page.
1217 * NXConstStr.m: Likewise.
1218 * Object.m: Likewise.
1219 * Protocol.m: Likewise.
1220 * archive.c: Likewise.
1221 * class.c: Likewise.
1222 * encoding.c: Likewise.
1223 * exception.c: Likewise.
1227 * libobjc_entry.c: Likewise.
1228 * linking.m: Likewise.
1230 * nil_method.c: Likewise.
1231 * objc/NXConstStr.h: Likewise.
1232 * objc/Object.h: Likewise.
1233 * objc/Protocol.h: Likewise.
1234 * objc/encoding.h: Likewise.
1235 * objc/hash.h: Likewise.
1236 * objc/objc-api.h: Likewise.
1237 * objc/objc-decls.h: Likewise.
1238 * objc/objc-list.h: Likewise.
1239 * objc/objc.h: Likewise.
1240 * objc/runtime.h: Likewise.
1241 * objc/sarray.h: Likewise.
1242 * objc/thr.h: Likewise.
1243 * objc/typedstream.h: Likewise.
1244 * objects.c: Likewise.
1245 * sarray.c: Likewise.
1246 * selector.c: Likewise.
1247 * thr-dce.c: Likewise.
1248 * thr-decosf1.c: Likewise.
1249 * thr-irix.c: Likewise.
1250 * thr-mach.c: Likewise.
1251 * thr-objc.c: Likewise.
1252 * thr-os2.c: Likewise.
1253 * thr-posix.c: Likewise.
1254 * thr-pthreads.c: Likewise.
1255 * thr-rtems.c: Likewise.
1256 * thr-single.c: Likewise.
1257 * thr-solaris.c: Likewise.
1258 * thr-vxworks.c: Likewise.
1259 * thr-win32.c: Likewise.
1261 * libobjc.def: Change copyright header to refer to version 3 of
1262 the GNU General Public License and to point readers at the COPYING3
1263 file and the FSF's license web page.
1264 * makefile.dos: Likewise.
1266 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1268 * Makefile.in: Change copyright header to refer to version
1269 3 of the GNU General Public License and to point readers at the
1270 COPYING3 file and the FSF's license web page.
1271 * configure.ac: Likewise.
1273 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1274 David Ayers <ayers@fsfe.org>
1277 * objc/objc-api.h (_objc_unexpected_exception): Declare
1278 new hook. Update copyright dates.
1279 * exception.c (objc_exception_throw): Use hook. Update
1281 * libobjc.def (_objc_unexpected_exception): Export hook.
1282 Update copyright dates.
1284 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1286 * configure: Regenerate.
1288 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1290 * configure: Regenerate.
1292 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1294 * Object.m (errno): Replaced by errno.h include.
1295 (compare): Cast self to id to prevent warning on comparison.
1296 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1298 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1299 * thr-win32.c (__objc_thread_detach): Remove type warning.
1300 (__objc_thread_id): Likewise.
1301 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1304 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1305 Steve Ellcey <sje@cup.hp.com>
1307 * configure: Regenerate for new libtool.
1308 * config.h.in: Regenerate for new libtool.
1310 2008-07-18 Matthias Klose <doko@ubuntu.com>
1312 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1314 2008-07-18 Matthias Klose <doko@ubuntu.com>
1316 * Makefile.in: Include ../boehm-gc/threads.mk.
1317 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1319 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1321 * Makefile.in (install-info): New stub target.
1323 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1325 * configure: Regenerate.
1327 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1329 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1330 if HAVE_GETIPINFO is not defined.
1332 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1334 * Object.m (compare): Add type id.
1335 * objc/Object.h: Likewise.
1336 * archive.c (objc_read_class): Use size_t to extend version to be
1337 size of pointer scalar width.
1338 * sendmsg.c (rtx): Undefine it before redefinition.
1339 (__objc_print_dtable_stats): Cast arguments to long as intended.
1341 2008-05-30 Julian Brown <julian@codesourcery.com>
1343 * exception.c (__objc_exception_class): Initialise as constant
1344 array for ARM EABI. Change macro to static const for non-ARM EABI.
1345 (ObjcException): Add note about structure layout. Remove landingPad
1346 and handlerSwitchValue for ARM EABI.
1347 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1349 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1350 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1351 ARM EABI unwinding support.
1352 (objc_exception_throw): Use memcpy to initialise exception class.
1354 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1356 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1357 (rs6000_special_round_type_align): Update.
1359 2008-05-09 Julian Brown <julian@codesourcery.com>
1361 * Makefile.in (LTLDFLAGS): New.
1362 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1364 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1367 * aclocal.m4: Regenerate.
1368 * configure: Regenerate.
1370 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1372 * configure: Regenerate.
1374 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1376 * configure.ac: Don't run config-ml.in directly.
1377 (multilib_arg): New.
1378 * configure: Regenerated.
1380 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1383 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1384 of _Unwind_Word for variables which are used in
1385 read_uleb128/read_sleb128.
1386 (PERSONALITY_FUNCTION): Likewise.
1388 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1390 * aclocal.m4: Regenerated.
1392 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1394 * configure.ac: Fix a typo in *-*-darwin clause.
1395 * configure: Regenerated.
1397 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1399 * configure.ac: Fix a typo.
1400 * configure: Regenerated.
1402 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1404 * configure: Regenerate.
1406 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1408 * Makefile.in: Replace all uses of libext with libsuffix.
1409 * configure.ac: Likewise.
1410 * configure: Regenerate.
1413 * Makefile.in: Remove all uses of $(libext).
1415 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1417 * Makefile.in: Remove all uses of $(libext).
1419 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1421 * configure: Regenerate.
1422 * aclocal.m4: Regenerate.
1424 2007-04-21 Andrew Ruder <andy@aeruder.net>
1426 * sendmsg.c (__objc_get_forward_imp): Call
1427 __objc_msg_forward2 for real.
1429 2007-04-09 Andrew Ruder <andy@aeruder.net>
1431 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1432 external libraries to provide a function that returns the real
1433 forwarding function based on both the selector and the receiver.
1434 * objc/objc-api.h: Define __objc_msg_forward2.
1436 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1438 * Makefile.in: Add dummy install-pdf target.
1440 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1442 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1445 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1447 * encoding.c (darwin_rs6000_special_round_type_align): New.
1449 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1451 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1452 * configure.ac: Use multi.m4 from aclocal rather than custom
1453 code. Use multi_basedir instead of toplevel_srcdir.
1454 * aclocal.m4: Regenerate.
1455 * configure: Regenerate.
1457 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1459 * Makefile.in: Added empty "pdf" target.
1461 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1463 * configure: Regenerate.
1465 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1467 * Makefile.in: Add install-html target. Add install-html to .PHONY
1469 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1472 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1474 2006-01-24 David Ayers <d.ayers@inode.at>
1477 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1478 and insure the new strings are '\0' termintated.
1480 2006-01-24 David Ayers <d.ayers@inode.at>
1483 * configure.ac: Add include directives for --enable-objc-gc.
1484 * Makefile.in: Ditto.
1485 * configure: Regenerate.
1487 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1488 instead of the local pointer to them.
1490 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1493 * objc/objc-api.c (_C_COMPLEX): New define.
1494 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1495 (objc_alignof_type): Likewise.
1496 (objc_skip_typespec): Likewise.
1498 2005-12-15 David Ayers <d.ayers@inode.at>
1501 * README (+load,+initialize): Fix documentation to reflect
1502 intended and implemented semantics for +load and +initialize.
1504 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1506 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1508 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1509 (rs6000_special_round_type_align): Update for the ABI fix.
1510 (objc_layout_finish_structure): Correct the encoding which is passed to
1513 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1516 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1517 but use the struct layout functions.
1518 (objc_alignof_type): Likewise.
1519 (objc_layout_structure): Handle _C_UNION_B also.
1520 (objc_layout_structure_next_member): Likewise.
1521 (objc_layout_finish_structure): Likewise.
1523 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1526 * objc/objc-api.h (_C_BOOL): New define.
1527 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1528 (objc_alignof_type): Likewise.
1529 (objc_skip_typespec): Likewise.
1531 2005-11-20 David Ayers <d.ayers@inode.at>
1534 * objc/hash.h: Remove deprecated hash API.
1535 * hash_compat.c: Remove.
1536 * Makefile.in: Remove reference to hash_compat.c.
1538 * configure.ac (VERSION): Bump library version to 2:0:0.
1539 * configure: Regenerate.
1541 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1544 * thr-objc.c (_XOPEN_SOURCE): Define.
1546 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1549 * objc/objc-api.h (struct objc_ivar): Move definition to
1552 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1553 Rasmus Hahn <rassahah@neofonie.de>
1556 * archive.c (objc_write_type): Correct the element offset.
1557 (objc_read_type): Likewise.
1559 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1561 * All files: Update FSF address.
1563 2005-08-13 Marcin Koziej <creep@desk.pl>
1564 Andrew Pinski <pinskia@physics.uc.edu>
1567 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1569 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1571 * Makefile.in (extra_ldflags_libobjc): New.
1572 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1573 (libobjc_gc$(libext).la): Likewise.
1574 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1575 "-Wl,-single_module".
1576 * configure: Regenerate.
1577 * linking.m (_objcInit): Remove.
1579 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1582 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1584 2005-06-08 David Ayers <d.ayers@inode.at>
1586 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1587 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1588 objc/runtime.h, objc/sarray.h, objc/thr.h,
1589 objc/typedstream.h: Do not include Objective-C headers as
1592 2005-06-07 David Ayers <d.ayers@inode.at>
1594 * archive.c, init.c, selector.c: Include hash.h.
1595 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1596 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1597 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1598 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1599 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1600 Include Objective-C headers with quotes and objc/ directory
1603 2005-05-19 Richard Henderson <rth@redhat.com>
1605 * exception.c: Revert last change.
1607 2005-05-19 David Ayers <d.ayers@inode.at>
1609 * exception.c: Include tsystem.h for unwind.h.
1611 2005-05-09 Mike Stump <mrs@apple.com>
1613 * configure: Regenerate.
1615 2005-04-12 Mike Stump <mrs@apple.com>
1617 * configure: Regenerate.
1619 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1621 * Makefile.in: Set gcc_version here.
1622 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1623 in definition of toolexeclibdir so that $(gcc_version) is expanded
1625 * aclocal.m4, configure: Regenerate.
1627 2005-03-03 David Ayers <d.ayers@inode.at>
1629 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1630 version reference. Correct typo.
1632 2005-03-02 David Ayers <d.ayers@inode.at>
1635 * Makefile.in (OBJS): Add hash_compat.lo.
1636 (OBJS_GC): Add hash_compat_gc.lo.
1637 (hash_compat_gc.lo): New target and rule.
1638 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1639 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1640 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1641 with objc_. Add deprecated non prefixed inlined versions.
1642 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1644 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1645 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1647 * hash_compat.c: New file.
1648 * archive.c: Update callers.
1650 * selector.c: Likewise.
1651 * libobjc.def: Add objc_ versions of hash functions.
1653 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1656 * Makefile.in (GTHREAD_FLAGS): Remove.
1657 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1658 * thr-objc.c: Include config.h.
1659 * configure.ac: Instead of looking at GCC's makefile, figure out if
1660 GTHREAD_FLAGS should be defined by looking at the `thread model'
1662 * configure: Regenerate.
1663 * config.h.in: Regenerate.
1665 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1668 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1669 (Determine CFLAGS for gthread): Use $host_subdir.
1670 * configure: Regenerate.
1671 * Makefile.in (host_subdir): New.
1674 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1677 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1679 Include limits.h and stdlib.h.
1680 Define BITS_PER_WORD.
1682 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1684 * selector.c (__objc_init_selector_tables): Add missing void to
1687 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1689 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1690 * configure, aclocal.m4: Regenerate.
1692 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1694 * configure: Regenerate for libtool change.
1696 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1698 * configure: Regenerate for libtool reversion.
1700 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1702 * configure: Regenerate for libtool change.
1704 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1706 * aclocal.m4, config.h.in: Regenerate.
1708 2004-10-08 Mike Stump <mrs@apple.com>
1709 Andrew Pinski <pinskia@physics.uc.edu>
1711 * aclocal.m4: Rename to ...
1712 * acinclude.m4: here and also use m4_include instead of sinclude.
1713 * aclocal.m4: Regenerate.
1714 * configure: Regenerate.
1715 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1716 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1718 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1720 * archive.c: Fix all the warnings about passing unsigned char*
1721 to char* and the other way too.
1723 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1726 * exception.c: Include config.h
1727 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1729 * configure.ac: Find out what exception handling code we use.
1730 * configure: Regenerate.
1731 * config.h.in: New file, regenerate.
1733 2004-09-16 Andrew Pinski <apinski@apple.com>
1735 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1737 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1739 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1740 ACX_NONCANONICAL_TARGET.
1741 * configure: Regenerate.
1743 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1745 * objc/sarray.h: Hoist include of assert.h near the top of file,
1746 and mark the remainder of the file 'extern "C"'.
1748 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1750 * objc/Object.h: Move includes out of extern "C" blocks.
1751 * objc/encoding.h: Likewise.
1752 * objc/hash.h: Likewise.
1753 * objc/objc-api.h: Likewise.
1754 * objc/runtime.h: Likewise.
1755 * objc/sarray.h: Likewise.
1756 * objc/typedstream.h: Likewise.
1758 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1760 * objc/NXConstStr.h: Update copyright date; bracket with
1761 'extern "C"' for C++ use; make include syntax consistent
1762 by using <...> instead of "..."; hoist <objc/...> includes
1763 above the 'extern "C"' block.
1764 * objc/Object.h: Likewise.
1765 * objc/Protocol.h: Likewise.
1766 * objc/encoding.h: Likewise.
1767 * objc/hash.h: Likewise.
1768 * objc/runtime.h: Likewise.
1769 * objc/sarray.h: Likewise.
1770 * objc/thr.h: Likewise.
1771 * objc/typedstream.h: Likewise.
1772 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1773 (objc_static_instances): For C++ case, do away with
1775 (objc_method): Hoist definition to file scope.
1776 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1777 class_get_instance_method, class_create_instance,
1778 class_get_class_name, class_get_instance_size,
1779 class_get_meta_class, class_get_super_class, class_get_version,
1780 class_is_class, class_is_meta_class, class_set_version,
1781 class_get_gc_object_type, class_ivar_set_gcinvisible,
1782 get_imp): Rename 'class' parameter to '_class'.
1783 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1784 * objc/objc.h: Update copyright date.
1785 (arglist_t): Provide a union tag.
1787 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1789 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1790 but instead use the attribute noreturn.
1792 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1794 * encoding.c: Rename target_flags with a #define to avoid
1795 conflict with a prior declaration.
1797 2004-06-24 Andrew Pinski <apinski@apple.com>
1799 * objc/encoding.h: Wrap the functions with extern "C" for C++
1801 * objc/hash.h: Likewise.
1802 * objc/objc-api.h: Likewise.
1803 * objc/objc-list.h: Likewise.
1804 * objc/runtime.h: Likewise.
1805 * objc/sarray.h: Likewise.
1806 * objc/thr.h: Likewise.
1807 * objc/typedstream.h: Likewise.
1810 2004-06-21 Nick Clifton <nickc@redhat.com>
1812 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1815 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1817 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1818 (exception_gc.lo): New.
1819 (OBJS_GC): Add exception_gc.lo.
1821 2004-06-17 Richard Henderson <rth@redhat.com>
1823 * exception.c: New file.
1824 * Makefile.in (exception.lo): New.
1827 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1829 * linking.m (_objcInit): New empty function
1832 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1834 * configure.ac: Support --enable-shared=libobjc.
1835 * configure: Regenerate.
1838 * configure.ac: Do not disable shared by default.
1839 * configure: Regenerate.
1841 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1843 * Protocol.m ([-isEqual:]): Small optimizations returning
1844 immediately if the argument is equal to self, and accessing
1845 the argument's name directly if it's a protocol.
1847 2004-06-03 David Ayers <d.ayers@inode.at>
1849 * Protocol.m ([-isEqual:]): Test the class of the argument.
1851 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1853 * configure.ac (includedir): Rename to ...
1855 * Makefile.in: s/includedir/includedirname/.
1858 * configure.ac (includedir): Set to "include"
1860 (libext) Set to empty except for Darwin.
1861 * configure: Regenerate
1862 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1863 s/include/$(includedir)/g.
1865 2004-05-25 Daniel Jacobowitz <drow@false.org>
1867 * Makefile.in: Add .NOEXPORT.
1869 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1871 Merge from the libobjc-branch
1872 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1874 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1876 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1878 * Makefile.in (OBJC_H): Add objc-deps.h.
1880 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1882 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1883 ([-hash], [-isEqual:]): New methods.
1885 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1887 * sarray.c (sarray_free): Add a better comment.
1889 2004-01-27 Adam Fedor <fedor@gnu.org>
1891 * hash.c (hash_add): Cast cachep to int.
1892 * selector.c (__sel_register_typed_name): Cast
1893 soffset_decode to int.
1895 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1897 * selector.c: Rename register_selectors_from_list to
1898 __objc_register_selectors_from_list. Update caller.
1899 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1900 while registering selectors. Use __sel_register_typed_name instead
1901 of sel_register_typed_name. Check for NULL method_name:s.
1902 (pool_alloc_selector): New function.
1903 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1904 selector structures.
1905 * sendmsg.c (class_add_method_list): Use
1906 __objc_register_selectors_from_list.
1907 * objc/runtime.h: Add __objc_register_selectors_from_list.
1909 2004-01-25 Adam Fedor <fedor@gnu.org>
1910 Nicola Pero <n.pero@mi.flashnet.it>
1911 Andrew Pinski <pinskia@physics.uc.edu>
1913 * objc/objc-decls.h: New file.
1914 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1915 (_objc_load_callback): Likewise.
1916 (_objc_object_alloc): Likewise.
1917 (_objc_object_copy): Likewise.
1918 (_objc_object_dispose): Likewise.
1920 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1922 * archive.c: s/__inline__/inline
1923 * sendmsg.c: Likewise.
1925 * encoding.c: Remove FIXME about the warning
1926 about unused variable.
1927 * sendmsg.c: Add a FIXME comment saying that
1928 this should be using libffi.
1930 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1933 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1935 * archive.c (objc_read_class): Initialize class_name.
1936 (objc_read_selector): Initialize selector_name.
1938 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1940 * Makefile.in (toolexecdir): Remove trailing space.
1942 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1945 * configure.ac: De-precious CC so multilibs work.
1946 * configure: Regenerate.
1948 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1950 * configure.ac: Restore toolexecdir.
1951 * Makefile.in: Restore toolexecdir.
1952 * configure: Regenerate.
1954 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1956 * configure.ac: Remove (unused) glibcpp_prefixdir.
1957 * configure: Regenerate.
1959 * configure.in: Rename to configure.ac.
1960 * Makefile.in: Update to match.
1962 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1963 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1964 * configure.in: Remove glibcpp_toolexecdir (unused).
1965 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1966 config.h or stamp-h (unused). Move one comment to the right place.
1967 * configure: Regenerate.
1968 * config.h.in: Remove (unused).
1970 * config.h.in: Regenerate with autoheader.
1972 * Makefile.in: Remove (unused) gcc_version_trigger.
1973 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1974 gcc_version_trigger.
1975 * configure: Regenerate.
1977 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1978 Sort file into sections. Remove dnl where appropriate. Fix
1980 * configure: Regenerate.
1982 * configure.in: Replace old AC_PROG_CC hack with new one.
1983 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1984 are no subdirectory output files, so this is fine). Change prereq
1986 * aclocal.m4: Include ../config/no-executables.m4.
1987 * configure: Regenerate with autoconf 2.59.
1989 * configure.in: Improve comments on gthread_cflags. Improve m4
1990 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1991 * configure: Regenerate.
1993 * configure.in: Move PACKAGE and VERSION settings up top. Remove
1994 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
1995 redundant checks for values of RANLIB, AR, INSTALL.
1996 * configure: Regenerate.
1998 * configure.in: Clean up handling of
1999 --enable-version-specific-runtime-libs and related variables;
2000 replace 'if test' with 'case' where reasonable. Fix comments.
2001 Remove useless libstdcxx_interface.
2002 * configure: Regenerate.
2004 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2005 Replace uses of target_alias with target_noncanonical.
2006 * aclocal.m4: Include ../config/acx.m4.
2007 * configure: Regenerate.
2008 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2009 Fix copyright statement.
2011 * configure.in: Hand-inline bulky, confusing macros from
2012 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2013 Update copyright notice. Remove stuff for automake, which isn't
2014 used in this directory. Remove emacs local variables.
2015 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2016 * configure: Regenerate.
2018 2004-03-16 Manfred Hollstein <mh@suse.com>
2020 * Makefile.in, configure.in, configure: Update copyright years.
2022 2004-03-15 Manfred Hollstein <mh@suse.com>
2024 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2025 definition from configure.in.
2026 * configure.in (PACKAGE): Add definition.
2027 (VERSION): Add definition; substitute it in output files.
2028 * configure: Re-generate.
2030 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2032 * objc/hash.h (hash_string, compare_strings):
2033 Add type-casts to make Objective-C++ happy.
2034 * objc/typedstream.h (objc_get_stream_class_version):
2035 Rename parameter from 'class' to 'class_name' to make
2036 Objective-C++ happy.
2038 2004-03-01 Michael Matz <matz@suse.de>
2040 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2042 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2044 * objc/objc-api.h (objc_super): The 'class' field shall
2045 be named 'super_class' #ifdef __cplusplus.
2047 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2050 * encoding.c (rs6000_special_round_type_align): Define.
2052 2004-01-14 Adam Fedor <fedor@gnu.org>
2055 * selector.c (__objc_register_instance_methods_to_class): Free
2056 new_list if not used.
2058 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2061 * sarray.c (sarray_free): Free array->is_copy_of latter.
2063 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2066 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2067 instance_methods if it's NULL.
2068 (descriptionForClassMethod): Likewise for class_methods.
2070 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2072 * Makefile.in (runtime-info.h): Remove -Wp.
2074 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2076 * Makefile.in (CC1OBJ): Remove.
2077 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2079 Use .m extension for temporary file.
2080 Remove assembler temp file.
2082 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2084 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2086 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2088 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2090 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2092 * configure: Regenerate.
2094 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2096 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2097 (libdir)/gcc-lib/ when installing.
2098 * configure: Regenerate.
2100 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2103 * sendmsg.c (get_imp): Fixed rare threading problem.
2104 (__objc_responds_to): Similar fixes.
2105 (objc_msg_lookup): Similar fixes.
2106 (__objc_init_install_dtable): Lock the runtime before checking if the
2109 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2111 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2112 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2113 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2114 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2115 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2116 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2117 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2118 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2119 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2120 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2121 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2123 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2124 Nicola Pero <n.pero@mi.flashnet.it>
2127 * init.c (class_superclass_of_class): New function.
2128 (create_tree_of_subclasses_inherited_from): Use it.
2129 (__objc_tree_insert_class): Likewise.
2130 (class_is_subclass_of_class): Likewise.
2132 2003-04-11 David Chad <davidc@freebsd.org>
2133 Loren J. Rittle <ljrittle@acm.org>
2136 * objc/hash.h (hash_string): Constify correctly.
2137 (compare_ptrs): Use direct compare.
2138 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2139 * objc/sarray.h: Global rename index to indx to avoid shadow.
2141 2003-03-12 Andreas Schwab <schwab@suse.de>
2143 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2144 glibcpp_toolexeclibdir.
2145 * configure: Rebuilt.
2147 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2149 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2151 * configure: Rebuilt.
2153 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2155 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2156 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2157 version_specific_libs is enabled.
2158 * configure: Rebuilt.
2160 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2162 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2163 (install-libs, install-headers): Prepend $(DESTDIR) to
2164 destination paths in all (un)installation commands.
2166 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2168 * thr-objc.c: Include coretypes.h and tm.h.
2170 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2172 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2174 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2176 * configure.in: Remove skip-this-dir support.
2177 * configure: Regenerate.
2179 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2181 * Makefile.in (all): Fix multilib parallel build.
2183 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2185 * sendmsg.c (nil_method): Declare not to take a variable number of
2187 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2188 (objc_msg_lookup_super): The same.
2190 2002-09-10 Jan Hubicka <jh@suse.cz>
2192 * nil_method.c (nil_method): No longer defined with variable
2195 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2197 * objc/encoding.h: Fix formatting.
2198 * objc/hash.h: Likewise.
2199 * objc/objc-api.h: Likewise.
2200 * objc/runtime.h: Likewise.
2201 * objc/thr.h: Likewise.
2202 * archive.c: Likewise.
2203 * class.c: Likewise.
2204 * encoding.c: Likewise.
2209 * nil_method.c: Likewise.
2210 * objects.c: Likewise.
2211 * sarray.c: Likewise.
2212 * selector.c: Likewise.
2213 * sendmsg.c: Likewise.
2214 * thr-mach.c: Likewise.
2217 2002-06-25 DJ Delorie <dj@redhat.com>
2219 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2220 GLIBCPP_TOPREL_CONFIGURE.
2221 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2222 * configure: Regenerate.
2224 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2226 * Object.m (forward, read, write): Fix unused parameter warnings.
2227 * encoding.c: Include <stdlib.h>.
2228 (target_flags): Mark with attribute unused.
2230 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2231 (__objc_generate_gc_type_description): Prototype.
2232 * selector.c (__objc_selector_max_index): Change to unsigned int.
2234 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2236 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2237 we always have a return value: if __objc_msg_forward does not
2238 supply a forwarding implementation, return the default
2239 __builtin_apply based one.
2241 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2243 * Object.m: Fix signed/unsigned warning.
2244 * Protocol.m: Likewise.
2245 * archive.c: Always include stdlib.h.
2246 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2247 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2248 Fix signed/unsigned warning.
2249 (objc_write_type, objc_read_type, objc_write_types,
2250 objc_read_types): Ensure ctype 8-bit safety.
2251 (__objc_no_write, __objc_no_read): Mark unused parameters.
2252 * class.c (class_table_setup): Specify void arg.
2253 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2254 objc_skip_typespec, objc_skip_offset,
2255 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2256 (objc_layout_structure_next_member): Ensure variables are
2258 * gc.c (__objc_generate_gc_type_description,
2259 class_ivar_set_gcinvisible): Mark unused parameters.
2260 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2262 (__objc_init_protocols) Fix signed/unsigned warning.
2263 * nil_method.c (nil_method): Mark unused parameters.
2264 * thr.h (objc_thread_callback): Specify void arg.
2265 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2266 signed/unsigned warning.
2267 (sarray_free): Fix formatting.
2268 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2269 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2271 2002-06-09 Andreas Jaeger <aj@suse.de>
2273 * encoding.c (objc_layout_structure_next_member): Remove unused
2276 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2278 * Makefile.in (SHELL): Set to @SHELL@.
2280 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2282 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2284 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2285 * configure: Regenerate.
2287 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2289 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2290 script entry, and set LD to it when configuring multilibs.
2291 * configure: Rebuilt.
2293 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2295 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2297 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2300 * objc/objc-api.h (struct objc_protocol_list): Change type of
2301 member count from int to size_t.
2303 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2306 * aclocal.m4: Replace with version copied from libstdc++-v3.
2307 * configure.in: Update for changes to aclocal and Makefile.
2308 * configure: Regenerate.
2309 * Makefile.in: Correct install of multilibs and shared libs, use
2310 INSTALL_DATA for include files.
2312 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2314 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2315 categories - when an unclaimed category was found, the loop was
2316 doing two steps forward instead of one, so that in certain cases
2317 it was failing to properly load all the categories. (Reported
2318 with fix by Alexander Malmberg <alexander@malmberg.org>).
2320 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2322 * encoding.c: Add target_flags.
2324 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2326 * objc/objc-api.h (_C_VECTOR): New.
2328 * encoding.c (VECTOR_TYPE): New.
2330 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2332 * class.c: Rewritten the class table to use optimized, lock-free
2333 lookup. This more than doubles the speed of class method
2334 invocations. (class_table_setup), (class_table_insert),
2335 (class_table_replace), (class_table_get_safe),
2336 (class_table_next), (class_table_print),
2337 (class_table_print_histogram): New functions.
2338 (__objc_init_class_tables): Use class_table_setup.
2339 (__objc_add_class_to_hash): Use class_table_get_safe and
2340 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2341 assert the existence of the table; do not lock the runtime; use
2342 class_table_get_safe. (objc_next_class): Use class_table_next.
2343 (__objc_resolve_class_links): Use class_table_next.
2344 (class_pose_as): Use class_table_replace.
2346 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2348 * gc.c: Removed the DEBUG declaration.
2350 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2352 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2353 rather than through objc_thread_id, to save a function call.
2354 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2357 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2359 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2360 to cast an id to a Class, which can not be done. Make the check
2361 by using CLS_ISMETA on the class pointer instead.
2362 (object_is_meta_class): Similar fix.
2364 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2366 * configure.in (AC_EXEEXT): Work around in case it expands to
2367 nothing, as in autoconf 2.50.
2368 * acinclude.m4: Likewise.
2369 * configure: Rebuilt.
2371 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2373 * THREADS: Explain that when we compile libobjc inside GCC, we
2374 always use thr-objc.c as a backend, which uses GCC's thread code.
2376 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2378 * init.c (__objc_send_message_in_list): When setting a new entry
2379 in __objc_load_methods use the method IMP as key, but check to see
2380 if the method is in the hashtable by looking at the IMP also.
2381 Also ... call the method after adding it to the hashtable rather
2382 than before ... thus preventing an obscure possibility of infinite
2383 recursion if a +load method itself loads a subclass.
2385 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2387 * init.c (__objc_send_message_in_list): When setting a new entry
2388 in __objc_load_methods use the method name as key, not the method
2389 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2391 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2393 * objc-features.texi: Move to ../gcc/objc.texi.
2395 * Makefile.in: Don't generate documentation from
2398 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2400 * fdl.texi: New file.
2401 * objc-features.texi: Simplify.
2402 * Makefile.in: Adjust accordingly.
2404 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2406 * objc-features.texi: Use the GFDL.
2408 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2410 * encoding.c (REAL_TYPE): Define.
2412 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2414 * encoding.c (TYPE_MODE): Define.
2416 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2418 * thr.c (objc_thread_add): New function.
2419 (objc_thread_remove): Ditto.
2420 * objc/thr.h: Declare them.
2421 * libobjc.def: Mention them.
2423 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2425 * objc-features.texi: Document the @compatibility_alias compiler
2426 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2428 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2430 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2432 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2434 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2435 we're not interested in the result and they might fail.
2436 * configure: Regenerated.
2438 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2440 * objc-features.texi: Use @email.
2442 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2444 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2447 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2449 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2450 determines the value dynamically.
2452 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2454 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2455 libraries to provide a function that returns the real forwarding
2456 function. This can alleviate problems __builtin_apply() and
2457 friends have on various platforms. (Solution suggested by Helge
2460 * objc/objc-api.h: Define __objc_msg_forward.
2462 * sendmsg.c: Define gen_rtx_REG.
2464 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2466 * thr-rtems.c: New file. Stub to compile.
2468 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2470 * configure: Rebuilt with new libtool.m4.
2472 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2474 * configure.in: Create a config.h file. Check for <sched.h>.
2475 * configure: Regenerate.
2477 * config.h.in: Check for <sched.h>.
2479 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2481 * configure: Regenerate after change to ../libtool.m4.
2483 2000-08-14 Andreas Schwab <schwab@suse.de>
2485 * objc-features.texi (Top): Move @menu at end of node.
2487 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2489 * objc-features.texi: Move @node Top before @menu.
2491 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2493 * objc-features.texi: Documented the new -fconstant-string-class
2496 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2498 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2499 improve the Posix thread support for Objective-C.
2501 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2503 * aclocal.m4: Replace copy of ../libtool.m4 with
2504 sinclude(../libtool.m4).
2506 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2508 * configure.in: Added libtool support; build shared libraries
2509 if --enable-shared was passed on command line.
2510 * Makefile.in: Modified most compilation commands to use libtool.
2511 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2512 libtool distribution.
2514 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2516 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2517 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2520 2000-05-12 H.J. Lu (hjl@gnu.org)
2522 * Makefile.in (GTHREAD_FLAGS): New.
2523 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2524 (OBJC_THREAD_FILE): Changed to thr-objc.
2526 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2528 (OBJC_THREAD_FILE): Removed.
2532 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2534 * objc/hash.h: Include string.h.
2536 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2538 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2540 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2542 * Object.m (strlen): Provide prototype on all 64bit platforms,
2544 * sarray.c (memcpy): Likewise.
2545 * encoding.c (objc_layout_finish_structure): Don't use
2546 ROUND_TYPE_ALIGN on sparc.
2548 * encoding.c (objc_layout_structure_next_member): Do the whole
2549 procedure even for the first member, so that we get correct
2552 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2554 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2557 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2559 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2561 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2563 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2565 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2567 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2568 the compiler when building C code.
2570 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2572 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2573 libdir, libsubdir and tooldir.
2575 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2577 * init.c (__objc_force_linking): Make global.
2579 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2581 * configure.in (AC_EXEEXT): Remove call.
2582 (compiler_name): Explicitly check with no extension and .exe
2584 * configure: Regenerate.
2586 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2588 * Makefile.in (CC1OBJ): Define in terms of CC.
2589 (runtime-info.h): Use.
2591 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2593 * objc-features.texi: Updated the URL to Boehm's GC page.
2595 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2597 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2598 the char as being signed (patch from Daniel Jacobowitz
2601 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2603 * configure.in (AC_PREREQ): Update to 2.13.
2604 (AC_EXEEXT): Call to find possible file extension.
2605 (compiler_name): Use.
2606 * configure: Regenerate.
2608 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2610 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2612 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2614 * configure.in (thread_file): Correct and simplify code to find
2616 * configure: Rebuilt.
2618 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2620 * configure.in (compiler_name): Add check to detect if this
2621 language's compiler has been built.
2622 * configure: Regenerate.
2624 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2626 * configure.in: Use AC_PREREQ(2.12.1).
2628 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2630 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2632 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2634 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2636 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2638 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2640 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2642 * objc-features.texi (Top): Changed the email address.
2643 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2645 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2647 * encoding.c: Redefine get_inner_array_type to get the first entry
2650 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2652 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2653 (objc_get_type_qualifiers): Similarly.
2654 * objc/encoding.h (_C_BYREF): Define.
2657 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2659 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2660 works out on 64-bit systems.
2662 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2664 * Makefile.in (INCLUDES): Make it multilib-friendly.
2666 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2668 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2670 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2671 Jeffrey A Law (law@cygnus.com)
2673 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2674 (FLAGS_TO_PASS): Added.
2675 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2677 * archive.c: Change config.h to tconfig.h.
2679 * configure.in: Find gcc's object directory even for multilibs.
2681 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2683 * configure.in: Escape ^ in grep string.
2684 * configure: Rebuilt.
2686 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2688 * All .h files pushed down into the objc/ subdirectory.
2689 * Makefile.in (copy_headers): Corresponding changes.
2690 * configure.in (AC_INIT): Corresponding changes.
2691 * configure: Rebuilt.
2693 1998-09-30 Ben Elliston <bje@cygnus.com>
2694 Jeff Law <law@cygnus.com>
2696 * Makefile.in: Rewrite.
2698 * configure.in: Likewise.
2700 * configure: Regenerate.
2702 * All .c files. Remove "objc" prefix when including objc header
2703 files. Include tconfig.h, not ../tconfig.h.
2705 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2707 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2708 (get_inner_array_type): Define.
2710 1998-09-21 Ben Elliston <bje@cygnus.com>
2712 * New directory. Moved files from ../gcc/objc.