1 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
3 * linking.m: Do not include objc/NXConstStr.h.
5 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
7 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
8 * objc-private/common.h (DEBUG_PRINTF): To here.
9 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
11 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
13 * hash.c: Tidied up comments and indentation. No code changes.
15 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
18 * accessors.m (objc_getProperty): If not atomic, do not
19 retain/autorelease the returned value. (Problem reported by
21 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
23 * objc-private/runtime.h (__objc_selector_max_index,
24 __objc_init_selector_tables, __objc_register_selectors_from_class,
25 __objc_register_selectors_from_list,
26 __objc_register_selectors_from_description_list): Moved to ...
27 * objc-private/selector.h: ... here.
29 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
31 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
32 (__objc_print_dtable_stats): Removed.
33 (__sel_register_typed_name): Removed.
34 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
36 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
38 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
39 if appropriate, after loading the module.
41 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
43 * sendmsg.c (method_setImplementation): Do not declare.
45 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
47 * objc/message.h: Updated comments.
48 * objc/runtime.h: Updated comments.
50 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
52 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
53 * protocols.c: Updated all calls to objc_lookupClass to call
54 objc_lookUpClass instead.
55 * sendmsg.c (objc_lookupClass): Do not declare.
56 (get_imp): Update call to objc_lookupClass to call
57 objc_lookUpClass instead.
58 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
60 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
62 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
63 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
64 define. Updated comments.
66 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
68 * objc/encoding.h: Updated comments.
69 * objc/runtime.h: Updated comments.
70 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
71 (objc_sizeof_type): Same.
72 (objc_alignof_type): Same.
73 (objc_aligned_size): Same.
74 (objc_promoted_size): Same.
75 (objc_skip_type_qualifiers): Same.
76 (objc_skip_typespec): Same.
77 (objc_skip_offset): Same.
78 (objc_skip_argspec): Same.
79 (objc_get_type_qualifiers): Same.
80 (objc_layout_structure): Same.
81 (objc_layout_structure_next_member): Same.
82 (objc_layout_finish_structure): Same.
83 (objc_layout_structure_get_info): Same.
85 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
87 * init.c: Updated comments.
88 * objc/objc-api.h: Updated comments.
89 * objc/runtime.h (_objc_load_callback): Declare.
91 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
93 * objc/Object.h: Include deprecated/typedstream.h and
94 deprecated/hash.h instead of typedstream.h. Updated comments.
96 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
98 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
99 * objc/deprecated/objc_msg_sendv.h: New.
100 * objc/message.h: Do not define retval_t, apply_t, arglist,
101 arglist_t, objc_msg_sendv, now in
102 objc/deprecated/objc_msg_sendv.h.
103 * objc/objc.h: Do not include message.h; include
104 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
105 * sendmsg.c: Include objc/message.h.
106 * thr.c: Include objc/message.h.
108 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
110 * objc/objc-exception.h: Include objc-decls.h. Mark all
111 functions with objc_EXPORT.
112 * objc/objc-sync.h: Same change.
114 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
116 * Protocol.m: Moved all methods, with the exception of -isEqual:,
117 into the 'Deprecated' category.
118 * objc/Protocol.h: Removed all methods, moved to
119 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
120 * objc/deprecated/Protocol.h: New.
121 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
123 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
125 * init.c: Include objc-private/selector.h. Do not declare
126 __sel_register_typed_name.
127 * objc-private/selector.h (__sel_register_typed_name): Declare.
128 * selector.c: Include objc-private/selector.h.
130 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
132 * class.c: Tidied up comments and indentation. No code changes.
138 * objc-foreach.c: Same.
145 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
147 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
148 instead of objc/objc-api.h.
149 (init_check_module_version): Take a 'struct objc_module *'
150 argument instead of 'Module_t'. Use 'struct objc_module *'
151 instead of 'Module_t'.
152 (__objc_created_classes_tree): Take a 'struct objc_module *'
153 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
155 (__objc_call_callback): Take a 'struct objc_module *' argument
156 instead of 'Module_t'; use 'struct objc_symtab *' instead of
157 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
158 (_objc_load_callback): Take a 'struct objc_category *' argument
159 instead of 'Category *'.
160 (class_superclass_of_class): Use objc_getClass() instead of
162 (create_tree_of_subclasses_inherited_from): Same change (also, use
163 an explicit 'if' instead of '?').
164 (objc_init_statics): Same change.
165 (objc_send_load): Same change.
166 (__objc_init_protocol): same change.
167 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
168 argument instead of 'MethodList_t'. Use 'struct objc_method *'
169 instead of 'Method_t'.
170 (__objc_send_load): Use 'struct objc_method_list *' instead of
171 'MethodList_t'. Use sel_registerName() instead of
173 (__objc_exec_class): Take a 'struct objc_module *' argument
174 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
175 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
176 Use 'struct objc_category *' instead of 'Category_t'.
178 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
180 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
181 Include objc-private/module-abi-8.h and objc-private/selector.h
182 instead of objc/encoding.h.
183 (objc_msg_lookup_super): Use super->super_class instead of
185 (method_get_first_argument, method_get_next_argument): Declare
187 (class_get_instance_method): Declare before using.
188 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
189 (__objc_init_dispatch_tables, __objc_send_initialize): Use
190 sel_registerName() instead of sel_register_name().
191 (__objc_forward): Use sel_getName() instead of sel_get_name().
192 (objc_get_uninstalled_dtable): Use 'void' as argument.
193 * objc-private/selector.h: New.
195 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
197 * objc/message.h (objc_super): When using the modern API, do not
198 define Super and Super_t, and always use 'super_class' for the
200 (objc_msg_lookup_super): Updated prototype to use 'struct
201 objc_super *' instead of 'Super_t'.
202 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
203 'struct objc_super *' instead of 'Super_t'.
205 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
207 * objc/message.h: Update comments, reindented code and moved
208 deprecated types and functions at the end of the file. No code
211 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
213 * ivars.c (class_addIvar): Use the 'size' argument instead of
214 trying to calculate it using objc_sizeof_type().
215 * objc/runtime.h (class_addIvar): Updated comments.
217 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
219 * sendmsg.c: Reindented some code and tidied up comments. No
222 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
224 * objc/Object.h: Moved all the methods, with the exception of
225 -class and -isEqual:, into ...
226 * objc/deprecated/Object.h: here.
227 * Object.m: Moved all the methods, with the exception of -class
228 and -isEqual: into the 'Deprecated' category.
230 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
232 * objects.c (object_copy): Do not #undef as we are no longer
233 including objc/objc-api.h.
234 * selector.c: Include objc/runtime.h and
235 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
236 objc/encoding.h. Updated
237 (__objc_register_selectors_from_class): Use struct
238 objc_method_list * instead of MethodList_t.
239 (__objc_register_selectors_from_list): Use Method instead of
241 (struct objc_method_description_list): Do not define here.
242 (__objc_register_instance_methods_to_class): Use struct
243 objc_method_list * instead of MethodList_t and Method instead of
246 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
248 * selector.c: Reindented some code and tidied up comments. No
251 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
253 * encoding.c (_darwin_rs6000_special_round_type_align): New.
254 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
256 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
258 * sendmsg.c (selector_resolveClassMethod): New.
259 (selector_resolveInstanceMethod): New.
260 (__objc_resolve_class_method): New.
261 (__objc_resolve_instance_method): New.
262 (get_imp): Call __objc_resolve_class_method or
263 __objc_resolve_instance_method at the appropriate time.
264 (objc_msg_lookup): Same.
265 (class_getClassMethod): Same.
266 (class_getInstanceMethod): Same.
267 (__objc_init_dispatch_tables): Initialize
268 selector_resolveClassMethod and selector_resolveInstanceMethod.
269 * objc/runtime.h: Updated documentation of class_getClassMethod,
270 class_getInstanceMethod and class_getMethodImplementation.
272 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
274 * objc-private/module-abi-8.h (struct objc_symtab): Updated
275 description of sel_ref_cnt and refs.
276 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
278 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
282 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
283 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
284 * aclocal.m4: Regenerate.
285 * configure: Regenerate.
287 2010-12-03 Matthias Klose <doko@ubuntu.com>
289 * configure.ac (VERSION): Bump the version to 3:0:0.
290 * configure: Regenerate.
292 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
294 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
295 pass nil as the receiver since we don't know the receiver at this
298 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
300 * ivars.c: Include stdlib.h.
301 * protocols.c: Same change.
303 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
305 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
307 * init.c: Include objc-private/accessors.h.
308 (__objc_exec_class): Call __objc_accessors_init.
309 * objc-private/accessors.h: New.
311 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
313 * objc/message.h: Moved initial includes outside of extern "C".
314 * objc/runtime.h: Add extern "C" for Objective-C++.
316 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
318 * init.c (objc_send_load): Do not wait for NXConstantString to be
319 registered before executing +load. There is no point if
320 -fconstant-string-class=xxx is used when compiling all modules,
321 as is the case for almost all users.
322 * linking.m (__objc_linking): Do not try to forcefully link in
325 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
327 * objc/runtime.h: Updated comments.
328 (class_addMethod): New.
329 (class_addIvar): New.
330 (class_replaceMethod): New.
331 (objc_allocateClassPair): New.
332 (objc_registerClassPair): New.
333 (objc_disposeClassPair): New.
334 * class.c (objc_allocateClassPair): New.
335 (objc_registerClassPair): New.
336 (objc_disposeClassPair): New.
337 (class_getSuperclass): Return Nil if a class is in construction.
338 * init.c (__objc_exec_class): Call __objc_init_class.
339 (__objc_init_class): New.
340 * ivars.c (class_copyIvarList): Return NULL if class is in
341 construction. Do not lock the runtime mutex.
342 (class_getInstanceVariable): Return NULL if class is in
343 construction. Do not lock the runtime mutex.
344 (class_addIvar): New.
345 * sendmsg.c (class_addMethod): New.
346 (class_replaceMethod): New.
347 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
348 (_CLS_IN_CONSTRUCTION): New.
349 (CLS_IS_IN_CONSTRUCTION): New.
350 (CLS_SET_IN_CONSTRUCTION): New.
351 (CLS_SET_NOT_IN_CONSTRUCTION): New.
352 * objc-private/runtime.h (__objc_init_class): New.
354 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
356 * class.c (class_getSuperclass): Call __objc_resolve_class_links
357 if the class is not resolved yet.
358 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
360 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
362 * objc/runtime.h (class_getIvarLayout): New.
363 (class_getWeakIvarLayout): New.
364 (class_setIvarLayout): New.
365 (class_setWeakIvarLayout): New.
366 * ivars.c (class_getIvarLayout): New.
367 (class_getWeakIvarLayout): New.
368 (class_setIvarLayout): New.
369 (class_setWeakIvarLayout): New.
371 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
373 * objc/runtime.h (class_copyPropertyList): New.
374 (class_getProperty): New.
375 (property_getAttributes): New.
376 (property_getName): New.
377 * ivars.c (class_copyPropertyList): New.
378 (class_getProperty): New.
379 (property_getAttributes): New.
380 (property_getName): New.
382 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
384 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
385 * class.c (__objc_update_classes_with_methods): New.
386 (objc_getClassList): Do not lock the class lock.
387 * methods.c (method_exchangeImplementations): New.
388 (method_setImplementation): New.
389 * objc/runtime.h (method_setImplementation): New.
390 (method_exchangeImplementations): New.
392 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
394 * Protocol.m: Include objc/runtime.h and
395 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
396 repeat Protocol's instance variables.
397 (struct objc_method_description_list): Do not define here.
398 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
399 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
400 selectors directly instead of getting names and then using strcmp.
401 ([descriptionForClassMethod:]): Same change.
402 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
403 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
404 to compare selectors directly instead of getting names and then
406 * objc/Protocol.h: Updated comments.
408 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
410 * init.c (__objc_init_protocol): New function which fixes up a
411 protocol's class pointer, registers it with the runtime, register
412 all protocol selectors and registers associated protocols too.
413 (objc_init_statics): Detect if we are initializing protocols, and
414 if so, use __objc_init_protocol instead of only fixing up the
416 (__objc_init_protocls): Use __objc_init_protocol.
417 * objc-private/module-abi-8.h: Updated comments.
418 * objc-private/runtime.h
419 (__objc_register_selectors_from_description_list): New.
420 * selector.c (__objc_register_selectors_from_description_list):
421 New. (struct objc_method_description_list): Declare.
422 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
423 when accessing the name of a method, which is now correctly a SEL.
424 ([-descriptionForClassMethod:]): Same change.
425 * protocols.c (protocol_getMethodDescription): Same change.
426 * objc/runtime.h: Updated comments.
427 (sel_registerTypedName): Fixed typo in function name.
429 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
432 * init.c (objc_init_statics): Do not skip the initialization of a
433 statics list if the first object has already been initialized; in
434 the case of Protocols, while the first one may have been
435 initialized, some others may not have been initialized yet.
437 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
439 * Makefile.in (OBJC_DEPRECATED_H): Added
440 objc_get_uninstalled_dtable, objc_object_alloc.h and
441 struct_objc_static_instances.h.
443 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
445 * encoding.c (method_copyReturnType): New.
446 (method_copyArgumentType): New.
447 (method_getReturnType): New.
448 (method_getArgumentType): New.
449 * methods.c (method_getDescription): New.
450 * objc/runtime.h (method_copyReturnType): New.
451 (method_copyArgumentType): New.
452 (method_getReturnType): New.
453 (method_getArgumentType): New.
454 (method_getDescription): New.
456 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
458 * encoding.c: Tidied up comments.
459 (objc_skip_variable_name): New static inline function.
460 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
461 the same code over and over.
462 (objc_alignof_type): Same.
463 (objc_aligned_size): Same.
464 (objc_promoted_size): Same.
465 (objc_skip_typespec): Same.
466 (objc_layout_structure_next_member): Same.
467 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
468 historical bug where objc_skip_offset would skip one byte even if
469 there is no offset: check that the first offset digit is actually
470 a digit before skipping it.
471 (objc_skip_type_qualifiers): Mark as inline.
472 (objc_skip_typespec): Mark as inline.
474 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
476 * Makefile.in (C_SOURCE_FILES): Added methods.c.
477 * encoding.c (method_getNumberOfArguments): New.
478 (method_get_number_of_arguments): Call
479 method_getNumberOfArguments.
480 * ivars.c (ivar_getName): Check for NULL variable argument.
481 (ivar_getOffset): Check for NULL variable argument.
482 (ivar_getTypeEncoding): Check for NULL variable argument.
483 (class_copyIvarList): New.
485 * protocols.c (class_copyProtocolList): Check for Nil class_
487 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
488 'struct objc_method_list *' instead of MethodList_t.
489 (class_getMethodImplementation): New.
490 (class_respondsToSelector): New.
491 (class_getInstanceMethod): New.
492 (class_getClassMethod): New.
493 * objc/runtime.h: Updated comments.
494 (class_copyIvarList): New.
495 (class_getInstanceMethod): New.
496 (class_getClassMethod): New.
497 (class_getMethodImplementation): New.
498 (class_respondsToSelector): New.
499 (method_getName): New.
500 (method_getImplementation): New.
501 (method_getTypeEncoding): New.
502 (class_copyMethodList): New.
503 (method_getNumberOfArguments): New.
505 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
507 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
508 instead of objc/objc-api.h.
509 (objc_get_unknown_class_handler): Do not define.
510 (class_isMetaClass): New.
511 (class_getSuperclass): New.
512 (class_getVersion): New.
513 (class_setVersion): New.
514 (class_getInstanceSize): New.
515 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
516 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
517 objc_get_super_class.
518 (get_ttype_entry): Use objc_getRequiredClass instead of
520 * ivars.c (class_getClassVariable): New.
521 * objects.c: Include objc/runtime.h, objc/thr.h and
522 objc-private/module-abi-8.h instead of objc/objc-api.h
523 * objc/runtime.h (class_getClassVariable): New.
524 (class_isMetaClass): New.
525 (class_getSuperclass): New.
526 (class_getVersion): New.
527 (class_setVersion): New.
528 (class_getInstanceSize): New.
529 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
532 (__CLS_ISINFO): Same.
533 (__CLS_SETINFO): Same.
536 (CLS_ISRESOLV): Same.
537 (CLS_SETRESOLV): Same.
538 (CLS_ISINITIALIZED): Same.
539 (CLS_SETINITIALIZED): Same.
540 (CLS_GETNUMBER): Same.
541 (CLS_SETNUMBER): Same.
543 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
545 * archive.c: Do not include objc/objc.h.
546 * class.c: Do not include objc/objc.h.
547 * encoding.c: Include objc/runtime.h, ctype.h and
548 objc-private/module-abi-8.h instead of objc/objc-api.h and
550 * error.c: Do not include objc/objc.h.
551 * gc.c: Include tconfig.h and objc/encoding.h only if
553 * hash.c: Include objc/runtime.h and objc/thr.h instead of
554 objc/objc-api.h. Do not include objc/objc.h.
555 * init.c: Do not include objc/objc.h.
556 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
557 objc/thr.h instead of objc/objc-api.h. Do not include
559 * linking.m: Tidied comment.
560 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
561 Do not include objc/objc.h.
562 * objects.c: Do not include objc/objc.h.
563 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
564 * protocols.c: Do not include objc/objc.h.
565 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
566 not include objc/objc.h.
567 * selector.c: Do not include objc/objc.h.
568 * sendmsg.c: Do not include objc/objc.h.
569 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
570 Do not include objc/objc.h.
571 * objc/objc-decls.h: Reindented code.
572 * objc/runtime.h Include objc-decls.h. Updated comments.
574 (objc_atomic_malloc): New.
578 * objc-private/runtime.h: Updated comments.
580 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
582 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
583 * objc-private/protocols.h: New.
585 * init.c: Include objc-private/protocols.h.
586 (__objc_exec_class): Call __objc_protocols_init on startup.
587 (__objc_init_protocols): Call __objc_protocols_add_protocol.
588 * objc-private/runtime.h: Use (struct objc_method_list *) instead
589 of MethodList_t, and (struct objc_method *) instead of Method_t.
590 * objc/deprecated/struct_objc_class.h: Define
591 __objc_STRUCT_OBJC_CLASS_defined.
592 * objc-private/module-abi-8.h (struct
593 objc_method_description_list): New.
594 (struct objc_class): Only define if
595 __objc_STRUCT_OBJC_CLASS_defined is undefined.
596 * objc/runtime.h (class_getName): New.
597 (objc_getProtocol): New.
598 (objc_copyProtocolList): New.
599 (class_addProtocol): New.
600 (class_conformsToProtocol): New.
601 (class_copyProtocolList): New.
602 (protocol_conformsToProtocol): New.
603 (protocol_isEqual): New.
604 (protocol_getName): New.
605 (protocol_getMethodDescription): New.
606 (protocol_copyMethodDescriptionList): New.
607 (protocol_getProperty): New.
608 (protocol_copyPropertyList): New.
609 (protocol_copyProtocolList): New.
610 * class.c (class_getName): New.
611 * selector.c (sel_isEqual): New.
613 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
615 * selector.c (sel_getName): Return "<null selector>" for a NULL
617 (sel_get_name): Return 0 for a NULL argument.
618 * objc/runtime.h (sel_getName): Updated documentation.
620 * objc-private/hash.h (class_hash_table): Unused declaration
622 (module_hash_table): Same.
623 * objc/deprecated/hash.h: Same changes.
625 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
627 * class.c (objc_getClassList): New.
628 (objc_getRequiredClass): New.
629 (objc_getMetaClass): New.
630 (objc_lookupClass): New.
631 (objc_getClass): New.
632 (__objc_get_unknown_class_handler): New.
633 (objc_setGetUnknownClassHandler): New.
634 (objc_get_class): Use __objc_get_unknown_class_handler.
635 (objc_lookup_class): Call objc_getClass.
636 * objc/objc-api.h: Updated comment and copyright notice.
637 * objc/runtime.h: Updated comments.
638 (objc_getClass): New.
639 (objc_lookupClass): New.
640 (objc_getMetaClass): New.
641 (objc_getRequiredClass): New.
642 (objc_getClassList): New.
643 (objc_setGetUnknownClassHandler): New.
644 (objc_get_unknown_class_handler): New.
645 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
646 instead of __objc_runtime_INCLUDE_GNU as include guard.
647 * objc-private/error.h (_objc_abort): Mark as noreturn.
649 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
651 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
653 * objc/objc.h: Updated comments.
654 * objc/runtime.h (object_getClass): New.
655 (object_getClassName): New.
656 (object_setClass): New.
657 (class_getInstanceVariable): New.
658 (object_getIndexedIvars): New.
659 (object_getInstanceVariable): New.
660 (object_setInstanceVariable): New.
661 (object_getIvar): New.
662 (object_setIvar): New.
664 (ivar_getOffset): New.
665 (ivar_getTypeEncoding): New.
666 * objc-private/module-abi-8.h (struct objc_class): Added.
667 * objects.c (object_getClassName): New.
668 (object_setClass): New.
670 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
672 * objc/objc.h: Updated comments.
673 * objc/objc-api.h: (object_copy): Added one argument; use a
674 #define to maintain backwards-compatibility. Moved
675 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
676 objc_get_uninstalled_dtable into
677 objc/deprecated/objc_get_uninstalled_dtable.h and
678 objc/deprecated/objc_object_alloc.h. Include these files.
679 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
680 * objc/deprecated/objc_object_alloc.h: New.
681 * objc/runtime.h (set_getName): New.
684 (sel_registerName): New.
685 (sel_registerTypedName): New.
687 (class_createInstance): New.
689 (object_dispose): New.
690 * objects.c: Do not include tconfig.h. Include gc_typed.h if
691 building the garbage collection version.
692 (__objc_object_alloc): Removed.
693 (__objc_object_copy): Removed.
694 (__objc_object_dispose): Removed.
695 (class_createInstance): New from code in class_create_instance.
696 Cast second argument of GC_malloc_explicitly_typed. Use
697 objc_calloc. Do not call _objc_object_alloc.
698 (class_create_instance): Call class_createInstance.
699 (object_copy): Added extraBytes argument. Do not call
701 (object_dispose): Do not call _objc_object_dispose.
702 * memory.c (objc_free): When using garbage collection, mark the
704 * selector.c (sel_getName): New.
705 (sel_get_name): Call sel_getName.
707 (sel_get_type): Call sel_getType.
708 (sel_registerName): New.
709 (sel_register_name): Call sel_registerName.
710 (sel_registerTypedName): New.
711 (sel_register_typed_name): Call sel_registerTypedName.
713 (sel_get_uid): Call sel_getUid.
715 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
717 * objc/objc-api.h: Define Method, Method_t, Category and
718 Category_t. Prevent including this file at the same time as
719 objc/runtime.h. Updated comments.
720 * objc/deprecated/struct_objc_method.h: Do not define Method,
722 * objc/deprecated/struct_objc_category.h: Do not define Category,
724 * objc-private/module-abi-8.h: New file containing a copy of all
725 the structure definitions. Not used yet.
726 * objc/encoding.h (objc_aligned_size): Removed duplicate
727 declaration. Updated comments.
728 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
729 Category, struct objc_method_description, _C_ID and similar,
730 _C_CONST and similar and _F_CONST and similar. Added
731 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
732 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
733 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
734 struct objc_struct_layout, objc_layout_structure,
735 objc_layout_structure_next_member, objc_layout_finish_structure,
736 objc_layout_structure_get_info. Prevent including this file at
737 the same time as objc/objc-api.h.
739 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
741 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
742 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
743 struct_objc_method_list.h, struct_objc_module.h,
744 struct_objc_protocol_list.h, struct_objc_symtab.h.
745 * objc/deprecated/struct_objc_category.h: New.
746 * objc/deprecated/struct_objc_ivar.h: New.
747 * objc/deprecated/struct_objc_ivar_list.h: New.
748 * objc/deprecated/struct_objc_method.h: New.
749 * objc/deprecated/struct_objc_method_list.h: New.
750 * objc/deprecated/struct_objc_module.h: New.
751 * objc/deprecated/struct_objc_protocol_list.h: New.
752 * objc/deprecated/struct_objc_symtab.h: New.
753 * objc/deprecated/struct_objc_static_instances.h: New.
754 * objc/objc-api.h: Definitions of deprecated structures moved into
755 the above header fragment files in objc/deprecated/. Include the
756 files instead of definition the structures here. Updated
758 * objc/runtime.h: Updated comments. Do not include objc-api.h.
759 (objc_set_enumeration_mutation_handler): Renamed to
760 objc_setEnumerationMutationHandler.
761 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
762 to objc_setEnumerationMutationHandler.
763 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
764 objc_setExceptionMatcher.
765 (objc_set_uncaught_exception_handler): Renamed to
766 objc_setUncaughtExceptionHandler.
767 * exception.c: Same changes.
769 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
771 * objc-sync.c: Include objc-private/common.h.
773 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
775 * objc-foreach.c: Include objc-private/common.h.
776 * objc/deprecated/METHOD_NULL.h: New file.
777 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
778 defining METHOD_NULL here.
779 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
780 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
782 ([-respondsTo:]): Same change.
783 * objc/objc-api.h (method_get_imp): Converted it into a normal
784 function so that we can hide the internals of struct objc_method.
785 * sendmsg.c (method_get_imp): Implemented.
787 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
789 * objc/objc-api.h (struct objc_super, Super, Super_t,
790 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
791 objc_msg_forward2): Declarations moved to objc/message.h. Include
793 * objc/message.h: Added such declarations; updated comments.
795 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
797 Implemented fast enumeration for Objective-C.
798 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
799 (OBJC_H): Added runtime.h
800 * objc-foreach.c: New file.
801 * objc/runtime.h: New file.
803 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
805 * objc/deprecated/struct_objc_class.h: Add padding
806 to avoid warning with -Wpadded.
808 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
810 * encoding.c (objc_sizeof_type): Added support for vector type and
811 for double long types.
812 (objc_alignof_type): Same change.
813 (objc_skip_typespec): Same change.
814 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
815 instead of '!' since '!' is already used for _C_VECTOR.
816 * objc/objc-api.h (_C_LNG_DBL): Added.
818 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
820 * libobjc_entry.c: File removed.
822 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
824 * sendmsg.c (objc_msg_lookup): Remove inline.
825 (objc_get_uninstalled_dtable): Likewise.
826 * encoding.c (objc_skip_type_qualifiers): Likewise.
827 (objc_skip_offset): Likewise.
828 * archive.c (__objc_write_object): Likewise
829 (__objc_write_class):
830 (__objc_write_selector):
832 (objc_read_unsigned_char):
834 (objc_read_unsigned_short):
837 (__objc_read_nbyte_uint):
838 (objc_read_unsigned_int):
839 (objc_read_unsigned_long):
840 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
841 (objc_EXPORT): Likewise.
842 * objc/message.h (objc-decls.h): Add include.
843 * objc/objc-api.h: Mark API by objc_EXPORT.
844 * libobjc.def (__objc_responds_to): Removed.
846 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
848 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
850 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
851 objc/sarray.h replaced with a placeholder including the file from
852 the deprecated/ directory.
853 * objc-private/sarray.h: New file (private copy of sarray.h).
854 * hash.c: Include <assert.h> instead of "assert.h"
855 * sarray.c: Include <assert.h> instead of "assert.h". Include
856 objc-private/sarray.h instead of objc/sarray.h.
857 * selector.c: Include objc-private/sarray.h instead of
859 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
860 instead of objc/sarray.h.
861 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
863 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
865 * objc-private/objc-list.h (list_remove_elem): Unused function
866 removed. (list_nth): Unused function removed. (list_find):
867 Unused function removed. (list_lenght): Unused function removed.
869 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
871 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
872 replaced with a placeholder including the file from the
873 deprecated/ directory.
874 * objc/objc-api.h: Updated includes.
875 * objc/typedstream.h: Updated includes.
876 * objc-private/hash.h: New file (private copy of hash.h).
877 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
878 objc/objc-list.h replaced with a placeholder including the file
879 from the deprecated/ directory.
880 * objc-private/objc-list.h: New file (private copy of objc-list.h).
881 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
882 instead of objc/hash.h and objc/objc-list.h.
883 * selector.c: Same change.
884 * class.c: Added include <string.h>, which used to be implicitly included
885 when hash.h was included.
886 * exception.c: Same change.
887 * objects.c: Same change.
888 * sarray.c: Same change.
889 * sendmsg.c: Same change.
890 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
892 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
894 Implemented objc_sync_enter() and objc_sync_exit(), which are
895 required by @synchronized() to work.
896 * objc-sync.c: New file.
897 * objc/objc-sync.h: New file.
898 * objc-private/objc-sync.h: New file.
899 * init.c (__objc_exec_class): Call __objc_sync_init() during the
900 Objective-C runtime startup.
901 * Makefile.in: Added objc-sync.c and objc-sync.h.
902 * configure.ac: Added GCC_CHECK_TLS.
903 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
904 * configure: Regenerated.
905 * config.h.in: Regenerated.
907 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
909 * Makefile.in (%_gc.lo): New pattern rules to build the
910 garbage-collected version of the library. Removed rules for
911 specific files that are no longer needed. Standardized all rules.
912 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
913 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
915 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
917 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
919 * memory.c (objc_calloc): Fixed call to GC_malloc when building
920 with Garbage Colletion.
922 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
924 * memory.c: Do not include objc-private/runtime.h.
926 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
928 * objc/deprecated/objc_malloc.h: New file.
929 * objc/deprecated/objc_valloc.h: New file.
930 * objc/objc-api.h: Include the files instead of defining
931 objc_valloc, _objc_malloc() and similar.
932 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
934 * memory.c: Removed the extra layer of indirection of _objc_malloc
936 (objc_calloc): Use GC_malloc in the garbage-collected
937 implementation as GC_malloc returns memory that is already freed.
938 (objc_valloc): Deprecated.
940 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
942 * objc/deprecated/objc_error.h: New file.
943 * objc/objc-api.h: Include deprecated/objc_error.h instead of
944 defining objc_error and related.
945 * error.c: New file. Added _objc_abort function which replaces
946 objc_error. No change in functionality as they both print an
948 * misc.c: File removed. Code moved into memory.c and error.c.
949 * memory.c: New file.
950 * objc-private/error.h: New file.
951 * archive.c: Include objc-private/error.h and use _objc_abort
952 instead of objc_error everywhere.
953 * class.c: Same change.
954 * encoding.c: Same change.
955 * init.c: Same change, and simplified init_check_module_version.
956 * memory.c: Same change.
957 * sendmsg.c: Same change.
958 * thr.c: Same change.
959 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
960 (OBJ_H): Reordered list.
961 (OBJS): Removed misc.lo, added memory.lo and error.lo.
962 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
963 (misc_gc.lo): Rule removed.
964 (error_gc.lo): Rule added.
965 (memory_gc.lo): Rule added.
967 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
969 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
970 to check the API version. Added some comments.
972 * objc-private/common.h: New file.
973 * NXConstStr.m: Include objc-private/common.h.
974 * Object.m: Same change.
975 * Protocol.m: Same change.
976 * archive.c: Same change.
977 * class.c: Same change.
978 * encoding.c: Same change.
979 * exception.c: Same change.
981 * hash.c: Same change.
982 * init.c: Same change.
983 * libobjc_entry.c: Same change.
984 * linking.m: Same change.
985 * misc.c: Same change (and added a comment).
986 * nil_method.c: Same change.
987 * objects.c: Same change.
988 * sarray.c: Same change.
989 * selector.c: Same change.
990 * sendmsg.c: Same change.
991 * thr.c: Same change.
993 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
995 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
997 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
999 * archive.c: Removed not needed includes.
1000 * class.c: Same change.
1001 * hash.c: Same change.
1002 * misc.c: Same change.
1003 * nil_method.c: Same change.
1004 * objects.c: Same change.
1005 * sarray.c: Same change.
1006 * sendmsg.c: Same change.
1007 * thr.c: Same change.
1009 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1011 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1012 all the objc/*.h files.
1013 * objc-private/runtime.h: New file.
1014 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1015 files) instead of objc/runtime.h.
1016 * class.c: Same change.
1017 * hash.c: Same change.
1018 * init.c: Same change.
1019 * misc.c: Same change.
1020 * nil_method.c: Same change.
1021 * objects.c: Same change.
1022 * sarray.c: Same change.
1023 * selector.c: Same change.
1024 * sendmsg.c: Same change.
1025 * thr.c: Same change.
1027 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1029 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1030 'struct objc_selector' and 'sel_eq' moved here.
1031 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1032 'struct objc_procotol' moved here.
1033 * objc/deprecated/struct_objc_class.h: New file. Definition of
1034 'struct objc_class' moved here.
1035 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1037 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1038 * objc/message.h: New file. Definitions for relval_t, apply_t,
1039 arglist, arglist_t and objc_msg_lookup were moved here.
1040 * objc/objc.h: Include the above files instead of defining the
1041 corresponding structs, types and functions here. Added new opaque
1042 definitions for SEL and Class. Use Class and not 'struct
1043 objc_class *' in the definition of 'struct objc_object'.
1044 Commented all types defined in the file. Removed special
1045 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1047 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1048 objc_unexpected_exception.h.
1049 * objc/objc-api.h: Updated include of
1050 objc-unexpetected-exception.h
1051 * objc/objc-exception.h: Updated comments.
1052 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1053 files. Reindented list of files.
1055 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1057 * objc/objc-api.h (objc_trace): Unused variable removed.
1059 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1061 * objc/deprecated: New directory.
1062 * objc/deprecated/README: New file.
1063 * objc/README: New file.
1064 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1065 objc/typedstream.h replaced with a placeholder including the file
1066 from the deprecated/ directory.
1067 * objc/deprecated/objc-unexpected-exception.h: New file with the
1068 definition of _objc_unexpected_exception.
1069 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1070 instead of defining _objc_unexpected_exception.
1071 * objc/deprecated/Object.h: New file with the deprecated Object
1072 methods in a 'Deprecated' category.
1073 * objc/Object.h Include deprecated/Object.h instead of defining
1074 the deprecated methods.
1075 * Object.m: Moved deprecated methods into 'Deprecated' category.
1076 * objc-private: New directory.
1077 * objc-private/README: New file.
1078 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1079 (install-headers): Create installation directory for
1080 OBJC_DEPRECATED_H headers, and install them.
1082 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1084 * objc/objc-exception.h: Fixed include of objc.h.
1086 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1088 * objc/objc-exception.h: New file.
1089 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1090 (objc_set_exception_matcher): Implemented.
1091 (objc_exception_throw): Use the uncaught exception handler if set.
1092 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1094 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1095 up. Removed segmentation fault when value is 'nil'.
1096 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1098 * Makefile.in (exception.lo, exception_gc.lo): Use
1099 -Wno-deprecated-declarations when compiling.
1100 (OBJC_H): Added objc-exception.h
1102 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1104 * objc/typedstream.h: Deprecate all functions in the file. This
1106 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1107 [-awake]): Documented that these methods are deprecated. Added a
1108 brief description of the Object class and its relationship to the
1110 * Makefile.in: Compile archive.c and Object.m with
1111 -Wno-deprecated-declarations.
1113 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1115 Removed obsolete intermediate threading layer.
1116 * thr.c: Use __gthread_objc_xxx functions directly instead of
1117 __objc_thread_xxx ones.
1118 * objc/thr.h: Removed prototypes of no longer existing
1119 __objc_thread_xxx functions.
1120 * Makefile.in: Removed thr-objc.lo.
1121 * thr-dce.c: File removed.
1122 * thr-decosf1.c: File removed.
1123 * thr-irix.c: File removed.
1124 * thr-mach.c: File removed.
1125 * thr-objc.c: File removed.
1126 * thr-os2.c: File removed.
1127 * thr-posix.c: File removed.
1128 * thr-pthreads.c: File removed.
1129 * thr-rtems.c: File removed.
1130 * thr-single.c: File removed.
1131 * thr-solaris.c: File removed.
1132 * thr-vxworks.c: File removed.
1133 * thr-win32.c: File removed.
1134 * README.threads: File removed.
1135 * THREADS.MACH: File removed.
1138 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1140 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1142 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1144 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1145 Add a comment as to why, update FIXME comments.
1147 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1149 * makefile.dos: Obsolete file removed.
1151 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1153 * aclocal.m4: Regenerate.
1155 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1158 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1159 Cygwin and MinGW hosts.
1160 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1161 (libobjc.dll): Likewise.
1162 * configure: Regenerate.
1164 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1166 * configure: Regenerate.
1168 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1170 * sarray.c (sarray_free): Use old_buckets variable.
1171 * encoding.c (objc_layout_structure_next_member): Remove unused
1172 bfld_type_size variable.
1174 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1176 * configure.ac (AC_PREREQ): Bump to 2.64.
1178 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1180 * aclocal.m4: Regenerate.
1181 * configure: Regenerate.
1182 * config.h.in: Regenerate.
1184 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1186 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1188 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1190 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1192 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1194 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1196 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1198 2009-04-09 Nick Clifton <nickc@redhat.com>
1200 * sendmsg.c: Change copyright header to refer to version 3 of
1201 the GNU General Public License with version 3.1 of the GCC
1202 Runtime Library Exception and to point readers at the COPYING3
1203 and COPYING3.RUNTIME files and the FSF's license web page.
1204 * NXConstStr.m: Likewise.
1205 * Object.m: Likewise.
1206 * Protocol.m: Likewise.
1207 * archive.c: Likewise.
1208 * class.c: Likewise.
1209 * encoding.c: Likewise.
1210 * exception.c: Likewise.
1214 * libobjc_entry.c: Likewise.
1215 * linking.m: Likewise.
1217 * nil_method.c: Likewise.
1218 * objc/NXConstStr.h: Likewise.
1219 * objc/Object.h: Likewise.
1220 * objc/Protocol.h: Likewise.
1221 * objc/encoding.h: Likewise.
1222 * objc/hash.h: Likewise.
1223 * objc/objc-api.h: Likewise.
1224 * objc/objc-decls.h: Likewise.
1225 * objc/objc-list.h: Likewise.
1226 * objc/objc.h: Likewise.
1227 * objc/runtime.h: Likewise.
1228 * objc/sarray.h: Likewise.
1229 * objc/thr.h: Likewise.
1230 * objc/typedstream.h: Likewise.
1231 * objects.c: Likewise.
1232 * sarray.c: Likewise.
1233 * selector.c: Likewise.
1234 * thr-dce.c: Likewise.
1235 * thr-decosf1.c: Likewise.
1236 * thr-irix.c: Likewise.
1237 * thr-mach.c: Likewise.
1238 * thr-objc.c: Likewise.
1239 * thr-os2.c: Likewise.
1240 * thr-posix.c: Likewise.
1241 * thr-pthreads.c: Likewise.
1242 * thr-rtems.c: Likewise.
1243 * thr-single.c: Likewise.
1244 * thr-solaris.c: Likewise.
1245 * thr-vxworks.c: Likewise.
1246 * thr-win32.c: Likewise.
1248 * libobjc.def: Change copyright header to refer to version 3 of
1249 the GNU General Public License and to point readers at the COPYING3
1250 file and the FSF's license web page.
1251 * makefile.dos: Likewise.
1253 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1255 * Makefile.in: Change copyright header to refer to version
1256 3 of the GNU General Public License and to point readers at the
1257 COPYING3 file and the FSF's license web page.
1258 * configure.ac: Likewise.
1260 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1261 David Ayers <ayers@fsfe.org>
1264 * objc/objc-api.h (_objc_unexpected_exception): Declare
1265 new hook. Update copyright dates.
1266 * exception.c (objc_exception_throw): Use hook. Update
1268 * libobjc.def (_objc_unexpected_exception): Export hook.
1269 Update copyright dates.
1271 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1273 * configure: Regenerate.
1275 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1277 * configure: Regenerate.
1279 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1281 * Object.m (errno): Replaced by errno.h include.
1282 (compare): Cast self to id to prevent warning on comparison.
1283 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1285 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1286 * thr-win32.c (__objc_thread_detach): Remove type warning.
1287 (__objc_thread_id): Likewise.
1288 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1291 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1292 Steve Ellcey <sje@cup.hp.com>
1294 * configure: Regenerate for new libtool.
1295 * config.h.in: Regenerate for new libtool.
1297 2008-07-18 Matthias Klose <doko@ubuntu.com>
1299 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1301 2008-07-18 Matthias Klose <doko@ubuntu.com>
1303 * Makefile.in: Include ../boehm-gc/threads.mk.
1304 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1306 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1308 * Makefile.in (install-info): New stub target.
1310 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1312 * configure: Regenerate.
1314 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1316 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1317 if HAVE_GETIPINFO is not defined.
1319 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1321 * Object.m (compare): Add type id.
1322 * objc/Object.h: Likewise.
1323 * archive.c (objc_read_class): Use size_t to extend version to be
1324 size of pointer scalar width.
1325 * sendmsg.c (rtx): Undefine it before redefinition.
1326 (__objc_print_dtable_stats): Cast arguments to long as intended.
1328 2008-05-30 Julian Brown <julian@codesourcery.com>
1330 * exception.c (__objc_exception_class): Initialise as constant
1331 array for ARM EABI. Change macro to static const for non-ARM EABI.
1332 (ObjcException): Add note about structure layout. Remove landingPad
1333 and handlerSwitchValue for ARM EABI.
1334 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1336 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1337 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1338 ARM EABI unwinding support.
1339 (objc_exception_throw): Use memcpy to initialise exception class.
1341 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1343 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1344 (rs6000_special_round_type_align): Update.
1346 2008-05-09 Julian Brown <julian@codesourcery.com>
1348 * Makefile.in (LTLDFLAGS): New.
1349 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1351 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1354 * aclocal.m4: Regenerate.
1355 * configure: Regenerate.
1357 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1359 * configure: Regenerate.
1361 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1363 * configure.ac: Don't run config-ml.in directly.
1364 (multilib_arg): New.
1365 * configure: Regenerated.
1367 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1370 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1371 of _Unwind_Word for variables which are used in
1372 read_uleb128/read_sleb128.
1373 (PERSONALITY_FUNCTION): Likewise.
1375 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1377 * aclocal.m4: Regenerated.
1379 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1381 * configure.ac: Fix a typo in *-*-darwin clause.
1382 * configure: Regenerated.
1384 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1386 * configure.ac: Fix a typo.
1387 * configure: Regenerated.
1389 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1391 * configure: Regenerate.
1393 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1395 * Makefile.in: Replace all uses of libext with libsuffix.
1396 * configure.ac: Likewise.
1397 * configure: Regenerate.
1400 * Makefile.in: Remove all uses of $(libext).
1402 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1404 * Makefile.in: Remove all uses of $(libext).
1406 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1408 * configure: Regenerate.
1409 * aclocal.m4: Regenerate.
1411 2007-04-21 Andrew Ruder <andy@aeruder.net>
1413 * sendmsg.c (__objc_get_forward_imp): Call
1414 __objc_msg_forward2 for real.
1416 2007-04-09 Andrew Ruder <andy@aeruder.net>
1418 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1419 external libraries to provide a function that returns the real
1420 forwarding function based on both the selector and the receiver.
1421 * objc/objc-api.h: Define __objc_msg_forward2.
1423 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1425 * Makefile.in: Add dummy install-pdf target.
1427 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1429 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1432 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1434 * encoding.c (darwin_rs6000_special_round_type_align): New.
1436 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1438 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1439 * configure.ac: Use multi.m4 from aclocal rather than custom
1440 code. Use multi_basedir instead of toplevel_srcdir.
1441 * aclocal.m4: Regenerate.
1442 * configure: Regenerate.
1444 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1446 * Makefile.in: Added empty "pdf" target.
1448 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1450 * configure: Regenerate.
1452 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1454 * Makefile.in: Add install-html target. Add install-html to .PHONY
1456 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1459 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1461 2006-01-24 David Ayers <d.ayers@inode.at>
1464 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1465 and insure the new strings are '\0' termintated.
1467 2006-01-24 David Ayers <d.ayers@inode.at>
1470 * configure.ac: Add include directives for --enable-objc-gc.
1471 * Makefile.in: Ditto.
1472 * configure: Regenerate.
1474 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1475 instead of the local pointer to them.
1477 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1480 * objc/objc-api.c (_C_COMPLEX): New define.
1481 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1482 (objc_alignof_type): Likewise.
1483 (objc_skip_typespec): Likewise.
1485 2005-12-15 David Ayers <d.ayers@inode.at>
1488 * README (+load,+initialize): Fix documentation to reflect
1489 intended and implemented semantics for +load and +initialize.
1491 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1493 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1495 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1496 (rs6000_special_round_type_align): Update for the ABI fix.
1497 (objc_layout_finish_structure): Correct the encoding which is passed to
1500 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1503 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1504 but use the struct layout functions.
1505 (objc_alignof_type): Likewise.
1506 (objc_layout_structure): Handle _C_UNION_B also.
1507 (objc_layout_structure_next_member): Likewise.
1508 (objc_layout_finish_structure): Likewise.
1510 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1513 * objc/objc-api.h (_C_BOOL): New define.
1514 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1515 (objc_alignof_type): Likewise.
1516 (objc_skip_typespec): Likewise.
1518 2005-11-20 David Ayers <d.ayers@inode.at>
1521 * objc/hash.h: Remove deprecated hash API.
1522 * hash_compat.c: Remove.
1523 * Makefile.in: Remove reference to hash_compat.c.
1525 * configure.ac (VERSION): Bump library version to 2:0:0.
1526 * configure: Regenerate.
1528 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1531 * thr-objc.c (_XOPEN_SOURCE): Define.
1533 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1536 * objc/objc-api.h (struct objc_ivar): Move definition to
1539 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1540 Rasmus Hahn <rassahah@neofonie.de>
1543 * archive.c (objc_write_type): Correct the element offset.
1544 (objc_read_type): Likewise.
1546 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1548 * All files: Update FSF address.
1550 2005-08-13 Marcin Koziej <creep@desk.pl>
1551 Andrew Pinski <pinskia@physics.uc.edu>
1554 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1556 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1558 * Makefile.in (extra_ldflags_libobjc): New.
1559 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1560 (libobjc_gc$(libext).la): Likewise.
1561 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1562 "-Wl,-single_module".
1563 * configure: Regenerate.
1564 * linking.m (_objcInit): Remove.
1566 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1569 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1571 2005-06-08 David Ayers <d.ayers@inode.at>
1573 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1574 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1575 objc/runtime.h, objc/sarray.h, objc/thr.h,
1576 objc/typedstream.h: Do not include Objective-C headers as
1579 2005-06-07 David Ayers <d.ayers@inode.at>
1581 * archive.c, init.c, selector.c: Include hash.h.
1582 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1583 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1584 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1585 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1586 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1587 Include Objective-C headers with quotes and objc/ directory
1590 2005-05-19 Richard Henderson <rth@redhat.com>
1592 * exception.c: Revert last change.
1594 2005-05-19 David Ayers <d.ayers@inode.at>
1596 * exception.c: Include tsystem.h for unwind.h.
1598 2005-05-09 Mike Stump <mrs@apple.com>
1600 * configure: Regenerate.
1602 2005-04-12 Mike Stump <mrs@apple.com>
1604 * configure: Regenerate.
1606 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1608 * Makefile.in: Set gcc_version here.
1609 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1610 in definition of toolexeclibdir so that $(gcc_version) is expanded
1612 * aclocal.m4, configure: Regenerate.
1614 2005-03-03 David Ayers <d.ayers@inode.at>
1616 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1617 version reference. Correct typo.
1619 2005-03-02 David Ayers <d.ayers@inode.at>
1622 * Makefile.in (OBJS): Add hash_compat.lo.
1623 (OBJS_GC): Add hash_compat_gc.lo.
1624 (hash_compat_gc.lo): New target and rule.
1625 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1626 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1627 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1628 with objc_. Add deprecated non prefixed inlined versions.
1629 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1631 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1632 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1634 * hash_compat.c: New file.
1635 * archive.c: Update callers.
1637 * selector.c: Likewise.
1638 * libobjc.def: Add objc_ versions of hash functions.
1640 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1643 * Makefile.in (GTHREAD_FLAGS): Remove.
1644 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1645 * thr-objc.c: Include config.h.
1646 * configure.ac: Instead of looking at GCC's makefile, figure out if
1647 GTHREAD_FLAGS should be defined by looking at the `thread model'
1649 * configure: Regenerate.
1650 * config.h.in: Regenerate.
1652 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1655 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1656 (Determine CFLAGS for gthread): Use $host_subdir.
1657 * configure: Regenerate.
1658 * Makefile.in (host_subdir): New.
1661 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1664 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1666 Include limits.h and stdlib.h.
1667 Define BITS_PER_WORD.
1669 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1671 * selector.c (__objc_init_selector_tables): Add missing void to
1674 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1676 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1677 * configure, aclocal.m4: Regenerate.
1679 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1681 * configure: Regenerate for libtool change.
1683 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1685 * configure: Regenerate for libtool reversion.
1687 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1689 * configure: Regenerate for libtool change.
1691 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1693 * aclocal.m4, config.h.in: Regenerate.
1695 2004-10-08 Mike Stump <mrs@apple.com>
1696 Andrew Pinski <pinskia@physics.uc.edu>
1698 * aclocal.m4: Rename to ...
1699 * acinclude.m4: here and also use m4_include instead of sinclude.
1700 * aclocal.m4: Regenerate.
1701 * configure: Regenerate.
1702 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1703 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1705 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1707 * archive.c: Fix all the warnings about passing unsigned char*
1708 to char* and the other way too.
1710 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1713 * exception.c: Include config.h
1714 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1716 * configure.ac: Find out what exception handling code we use.
1717 * configure: Regenerate.
1718 * config.h.in: New file, regenerate.
1720 2004-09-16 Andrew Pinski <apinski@apple.com>
1722 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1724 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1726 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1727 ACX_NONCANONICAL_TARGET.
1728 * configure: Regenerate.
1730 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1732 * objc/sarray.h: Hoist include of assert.h near the top of file,
1733 and mark the remainder of the file 'extern "C"'.
1735 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1737 * objc/Object.h: Move includes out of extern "C" blocks.
1738 * objc/encoding.h: Likewise.
1739 * objc/hash.h: Likewise.
1740 * objc/objc-api.h: Likewise.
1741 * objc/runtime.h: Likewise.
1742 * objc/sarray.h: Likewise.
1743 * objc/typedstream.h: Likewise.
1745 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1747 * objc/NXConstStr.h: Update copyright date; bracket with
1748 'extern "C"' for C++ use; make include syntax consistent
1749 by using <...> instead of "..."; hoist <objc/...> includes
1750 above the 'extern "C"' block.
1751 * objc/Object.h: Likewise.
1752 * objc/Protocol.h: Likewise.
1753 * objc/encoding.h: Likewise.
1754 * objc/hash.h: Likewise.
1755 * objc/runtime.h: Likewise.
1756 * objc/sarray.h: Likewise.
1757 * objc/thr.h: Likewise.
1758 * objc/typedstream.h: Likewise.
1759 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1760 (objc_static_instances): For C++ case, do away with
1762 (objc_method): Hoist definition to file scope.
1763 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1764 class_get_instance_method, class_create_instance,
1765 class_get_class_name, class_get_instance_size,
1766 class_get_meta_class, class_get_super_class, class_get_version,
1767 class_is_class, class_is_meta_class, class_set_version,
1768 class_get_gc_object_type, class_ivar_set_gcinvisible,
1769 get_imp): Rename 'class' parameter to '_class'.
1770 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1771 * objc/objc.h: Update copyright date.
1772 (arglist_t): Provide a union tag.
1774 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1776 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1777 but instead use the attribute noreturn.
1779 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1781 * encoding.c: Rename target_flags with a #define to avoid
1782 conflict with a prior declaration.
1784 2004-06-24 Andrew Pinski <apinski@apple.com>
1786 * objc/encoding.h: Wrap the functions with extern "C" for C++
1788 * objc/hash.h: Likewise.
1789 * objc/objc-api.h: Likewise.
1790 * objc/objc-list.h: Likewise.
1791 * objc/runtime.h: Likewise.
1792 * objc/sarray.h: Likewise.
1793 * objc/thr.h: Likewise.
1794 * objc/typedstream.h: Likewise.
1797 2004-06-21 Nick Clifton <nickc@redhat.com>
1799 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1802 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1804 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1805 (exception_gc.lo): New.
1806 (OBJS_GC): Add exception_gc.lo.
1808 2004-06-17 Richard Henderson <rth@redhat.com>
1810 * exception.c: New file.
1811 * Makefile.in (exception.lo): New.
1814 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1816 * linking.m (_objcInit): New empty function
1819 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1821 * configure.ac: Support --enable-shared=libobjc.
1822 * configure: Regenerate.
1825 * configure.ac: Do not disable shared by default.
1826 * configure: Regenerate.
1828 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1830 * Protocol.m ([-isEqual:]): Small optimizations returning
1831 immediately if the argument is equal to self, and accessing
1832 the argument's name directly if it's a protocol.
1834 2004-06-03 David Ayers <d.ayers@inode.at>
1836 * Protocol.m ([-isEqual:]): Test the class of the argument.
1838 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1840 * configure.ac (includedir): Rename to ...
1842 * Makefile.in: s/includedir/includedirname/.
1845 * configure.ac (includedir): Set to "include"
1847 (libext) Set to empty except for Darwin.
1848 * configure: Regenerate
1849 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1850 s/include/$(includedir)/g.
1852 2004-05-25 Daniel Jacobowitz <drow@false.org>
1854 * Makefile.in: Add .NOEXPORT.
1856 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1858 Merge from the libobjc-branch
1859 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1861 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1863 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1865 * Makefile.in (OBJC_H): Add objc-deps.h.
1867 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1869 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1870 ([-hash], [-isEqual:]): New methods.
1872 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1874 * sarray.c (sarray_free): Add a better comment.
1876 2004-01-27 Adam Fedor <fedor@gnu.org>
1878 * hash.c (hash_add): Cast cachep to int.
1879 * selector.c (__sel_register_typed_name): Cast
1880 soffset_decode to int.
1882 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1884 * selector.c: Rename register_selectors_from_list to
1885 __objc_register_selectors_from_list. Update caller.
1886 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1887 while registering selectors. Use __sel_register_typed_name instead
1888 of sel_register_typed_name. Check for NULL method_name:s.
1889 (pool_alloc_selector): New function.
1890 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1891 selector structures.
1892 * sendmsg.c (class_add_method_list): Use
1893 __objc_register_selectors_from_list.
1894 * objc/runtime.h: Add __objc_register_selectors_from_list.
1896 2004-01-25 Adam Fedor <fedor@gnu.org>
1897 Nicola Pero <n.pero@mi.flashnet.it>
1898 Andrew Pinski <pinskia@physics.uc.edu>
1900 * objc/objc-decls.h: New file.
1901 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1902 (_objc_load_callback): Likewise.
1903 (_objc_object_alloc): Likewise.
1904 (_objc_object_copy): Likewise.
1905 (_objc_object_dispose): Likewise.
1907 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1909 * archive.c: s/__inline__/inline
1910 * sendmsg.c: Likewise.
1912 * encoding.c: Remove FIXME about the warning
1913 about unused variable.
1914 * sendmsg.c: Add a FIXME comment saying that
1915 this should be using libffi.
1917 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1920 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1922 * archive.c (objc_read_class): Initialize class_name.
1923 (objc_read_selector): Initialize selector_name.
1925 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1927 * Makefile.in (toolexecdir): Remove trailing space.
1929 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1932 * configure.ac: De-precious CC so multilibs work.
1933 * configure: Regenerate.
1935 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1937 * configure.ac: Restore toolexecdir.
1938 * Makefile.in: Restore toolexecdir.
1939 * configure: Regenerate.
1941 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1943 * configure.ac: Remove (unused) glibcpp_prefixdir.
1944 * configure: Regenerate.
1946 * configure.in: Rename to configure.ac.
1947 * Makefile.in: Update to match.
1949 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1950 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1951 * configure.in: Remove glibcpp_toolexecdir (unused).
1952 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1953 config.h or stamp-h (unused). Move one comment to the right place.
1954 * configure: Regenerate.
1955 * config.h.in: Remove (unused).
1957 * config.h.in: Regenerate with autoheader.
1959 * Makefile.in: Remove (unused) gcc_version_trigger.
1960 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1961 gcc_version_trigger.
1962 * configure: Regenerate.
1964 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1965 Sort file into sections. Remove dnl where appropriate. Fix
1967 * configure: Regenerate.
1969 * configure.in: Replace old AC_PROG_CC hack with new one.
1970 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1971 are no subdirectory output files, so this is fine). Change prereq
1973 * aclocal.m4: Include ../config/no-executables.m4.
1974 * configure: Regenerate with autoconf 2.59.
1976 * configure.in: Improve comments on gthread_cflags. Improve m4
1977 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1978 * configure: Regenerate.
1980 * configure.in: Move PACKAGE and VERSION settings up top. Remove
1981 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
1982 redundant checks for values of RANLIB, AR, INSTALL.
1983 * configure: Regenerate.
1985 * configure.in: Clean up handling of
1986 --enable-version-specific-runtime-libs and related variables;
1987 replace 'if test' with 'case' where reasonable. Fix comments.
1988 Remove useless libstdcxx_interface.
1989 * configure: Regenerate.
1991 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
1992 Replace uses of target_alias with target_noncanonical.
1993 * aclocal.m4: Include ../config/acx.m4.
1994 * configure: Regenerate.
1995 * Makefile.in: Replace uses of target_alias with target_noncanonical.
1996 Fix copyright statement.
1998 * configure.in: Hand-inline bulky, confusing macros from
1999 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2000 Update copyright notice. Remove stuff for automake, which isn't
2001 used in this directory. Remove emacs local variables.
2002 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2003 * configure: Regenerate.
2005 2004-03-16 Manfred Hollstein <mh@suse.com>
2007 * Makefile.in, configure.in, configure: Update copyright years.
2009 2004-03-15 Manfred Hollstein <mh@suse.com>
2011 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2012 definition from configure.in.
2013 * configure.in (PACKAGE): Add definition.
2014 (VERSION): Add definition; substitute it in output files.
2015 * configure: Re-generate.
2017 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2019 * objc/hash.h (hash_string, compare_strings):
2020 Add type-casts to make Objective-C++ happy.
2021 * objc/typedstream.h (objc_get_stream_class_version):
2022 Rename parameter from 'class' to 'class_name' to make
2023 Objective-C++ happy.
2025 2004-03-01 Michael Matz <matz@suse.de>
2027 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2029 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2031 * objc/objc-api.h (objc_super): The 'class' field shall
2032 be named 'super_class' #ifdef __cplusplus.
2034 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2037 * encoding.c (rs6000_special_round_type_align): Define.
2039 2004-01-14 Adam Fedor <fedor@gnu.org>
2042 * selector.c (__objc_register_instance_methods_to_class): Free
2043 new_list if not used.
2045 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2048 * sarray.c (sarray_free): Free array->is_copy_of latter.
2050 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2053 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2054 instance_methods if it's NULL.
2055 (descriptionForClassMethod): Likewise for class_methods.
2057 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2059 * Makefile.in (runtime-info.h): Remove -Wp.
2061 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2063 * Makefile.in (CC1OBJ): Remove.
2064 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2066 Use .m extension for temporary file.
2067 Remove assembler temp file.
2069 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2071 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2073 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2075 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2077 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2079 * configure: Regenerate.
2081 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2083 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2084 (libdir)/gcc-lib/ when installing.
2085 * configure: Regenerate.
2087 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2090 * sendmsg.c (get_imp): Fixed rare threading problem.
2091 (__objc_responds_to): Similar fixes.
2092 (objc_msg_lookup): Similar fixes.
2093 (__objc_init_install_dtable): Lock the runtime before checking if the
2096 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2098 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2099 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2100 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2101 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2102 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2103 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2104 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2105 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2106 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2107 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2108 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2110 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2111 Nicola Pero <n.pero@mi.flashnet.it>
2114 * init.c (class_superclass_of_class): New function.
2115 (create_tree_of_subclasses_inherited_from): Use it.
2116 (__objc_tree_insert_class): Likewise.
2117 (class_is_subclass_of_class): Likewise.
2119 2003-04-11 David Chad <davidc@freebsd.org>
2120 Loren J. Rittle <ljrittle@acm.org>
2123 * objc/hash.h (hash_string): Constify correctly.
2124 (compare_ptrs): Use direct compare.
2125 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2126 * objc/sarray.h: Global rename index to indx to avoid shadow.
2128 2003-03-12 Andreas Schwab <schwab@suse.de>
2130 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2131 glibcpp_toolexeclibdir.
2132 * configure: Rebuilt.
2134 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2136 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2138 * configure: Rebuilt.
2140 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2142 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2143 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2144 version_specific_libs is enabled.
2145 * configure: Rebuilt.
2147 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2149 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2150 (install-libs, install-headers): Prepend $(DESTDIR) to
2151 destination paths in all (un)installation commands.
2153 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2155 * thr-objc.c: Include coretypes.h and tm.h.
2157 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2159 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2161 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2163 * configure.in: Remove skip-this-dir support.
2164 * configure: Regenerate.
2166 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2168 * Makefile.in (all): Fix multilib parallel build.
2170 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2172 * sendmsg.c (nil_method): Declare not to take a variable number of
2174 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2175 (objc_msg_lookup_super): The same.
2177 2002-09-10 Jan Hubicka <jh@suse.cz>
2179 * nil_method.c (nil_method): No longer defined with variable
2182 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2184 * objc/encoding.h: Fix formatting.
2185 * objc/hash.h: Likewise.
2186 * objc/objc-api.h: Likewise.
2187 * objc/runtime.h: Likewise.
2188 * objc/thr.h: Likewise.
2189 * archive.c: Likewise.
2190 * class.c: Likewise.
2191 * encoding.c: Likewise.
2196 * nil_method.c: Likewise.
2197 * objects.c: Likewise.
2198 * sarray.c: Likewise.
2199 * selector.c: Likewise.
2200 * sendmsg.c: Likewise.
2201 * thr-mach.c: Likewise.
2204 2002-06-25 DJ Delorie <dj@redhat.com>
2206 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2207 GLIBCPP_TOPREL_CONFIGURE.
2208 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2209 * configure: Regenerate.
2211 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2213 * Object.m (forward, read, write): Fix unused parameter warnings.
2214 * encoding.c: Include <stdlib.h>.
2215 (target_flags): Mark with attribute unused.
2217 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2218 (__objc_generate_gc_type_description): Prototype.
2219 * selector.c (__objc_selector_max_index): Change to unsigned int.
2221 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2223 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2224 we always have a return value: if __objc_msg_forward does not
2225 supply a forwarding implementation, return the default
2226 __builtin_apply based one.
2228 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2230 * Object.m: Fix signed/unsigned warning.
2231 * Protocol.m: Likewise.
2232 * archive.c: Always include stdlib.h.
2233 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2234 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2235 Fix signed/unsigned warning.
2236 (objc_write_type, objc_read_type, objc_write_types,
2237 objc_read_types): Ensure ctype 8-bit safety.
2238 (__objc_no_write, __objc_no_read): Mark unused parameters.
2239 * class.c (class_table_setup): Specify void arg.
2240 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2241 objc_skip_typespec, objc_skip_offset,
2242 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2243 (objc_layout_structure_next_member): Ensure variables are
2245 * gc.c (__objc_generate_gc_type_description,
2246 class_ivar_set_gcinvisible): Mark unused parameters.
2247 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2249 (__objc_init_protocols) Fix signed/unsigned warning.
2250 * nil_method.c (nil_method): Mark unused parameters.
2251 * thr.h (objc_thread_callback): Specify void arg.
2252 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2253 signed/unsigned warning.
2254 (sarray_free): Fix formatting.
2255 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2256 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2258 2002-06-09 Andreas Jaeger <aj@suse.de>
2260 * encoding.c (objc_layout_structure_next_member): Remove unused
2263 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2265 * Makefile.in (SHELL): Set to @SHELL@.
2267 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2269 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2271 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2272 * configure: Regenerate.
2274 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2276 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2277 script entry, and set LD to it when configuring multilibs.
2278 * configure: Rebuilt.
2280 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2282 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2284 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2287 * objc/objc-api.h (struct objc_protocol_list): Change type of
2288 member count from int to size_t.
2290 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2293 * aclocal.m4: Replace with version copied from libstdc++-v3.
2294 * configure.in: Update for changes to aclocal and Makefile.
2295 * configure: Regenerate.
2296 * Makefile.in: Correct install of multilibs and shared libs, use
2297 INSTALL_DATA for include files.
2299 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2301 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2302 categories - when an unclaimed category was found, the loop was
2303 doing two steps forward instead of one, so that in certain cases
2304 it was failing to properly load all the categories. (Reported
2305 with fix by Alexander Malmberg <alexander@malmberg.org>).
2307 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2309 * encoding.c: Add target_flags.
2311 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2313 * objc/objc-api.h (_C_VECTOR): New.
2315 * encoding.c (VECTOR_TYPE): New.
2317 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2319 * class.c: Rewritten the class table to use optimized, lock-free
2320 lookup. This more than doubles the speed of class method
2321 invocations. (class_table_setup), (class_table_insert),
2322 (class_table_replace), (class_table_get_safe),
2323 (class_table_next), (class_table_print),
2324 (class_table_print_histogram): New functions.
2325 (__objc_init_class_tables): Use class_table_setup.
2326 (__objc_add_class_to_hash): Use class_table_get_safe and
2327 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2328 assert the existence of the table; do not lock the runtime; use
2329 class_table_get_safe. (objc_next_class): Use class_table_next.
2330 (__objc_resolve_class_links): Use class_table_next.
2331 (class_pose_as): Use class_table_replace.
2333 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2335 * gc.c: Removed the DEBUG declaration.
2337 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2339 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2340 rather than through objc_thread_id, to save a function call.
2341 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2344 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2346 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2347 to cast an id to a Class, which can not be done. Make the check
2348 by using CLS_ISMETA on the class pointer instead.
2349 (object_is_meta_class): Similar fix.
2351 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2353 * configure.in (AC_EXEEXT): Work around in case it expands to
2354 nothing, as in autoconf 2.50.
2355 * acinclude.m4: Likewise.
2356 * configure: Rebuilt.
2358 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2360 * THREADS: Explain that when we compile libobjc inside GCC, we
2361 always use thr-objc.c as a backend, which uses GCC's thread code.
2363 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2365 * init.c (__objc_send_message_in_list): When setting a new entry
2366 in __objc_load_methods use the method IMP as key, but check to see
2367 if the method is in the hashtable by looking at the IMP also.
2368 Also ... call the method after adding it to the hashtable rather
2369 than before ... thus preventing an obscure possibility of infinite
2370 recursion if a +load method itself loads a subclass.
2372 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2374 * init.c (__objc_send_message_in_list): When setting a new entry
2375 in __objc_load_methods use the method name as key, not the method
2376 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2378 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2380 * objc-features.texi: Move to ../gcc/objc.texi.
2382 * Makefile.in: Don't generate documentation from
2385 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2387 * fdl.texi: New file.
2388 * objc-features.texi: Simplify.
2389 * Makefile.in: Adjust accordingly.
2391 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2393 * objc-features.texi: Use the GFDL.
2395 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2397 * encoding.c (REAL_TYPE): Define.
2399 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2401 * encoding.c (TYPE_MODE): Define.
2403 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2405 * thr.c (objc_thread_add): New function.
2406 (objc_thread_remove): Ditto.
2407 * objc/thr.h: Declare them.
2408 * libobjc.def: Mention them.
2410 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2412 * objc-features.texi: Document the @compatibility_alias compiler
2413 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2415 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2417 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2419 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2421 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2422 we're not interested in the result and they might fail.
2423 * configure: Regenerated.
2425 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2427 * objc-features.texi: Use @email.
2429 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2431 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2434 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2436 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2437 determines the value dynamically.
2439 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2441 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2442 libraries to provide a function that returns the real forwarding
2443 function. This can alleviate problems __builtin_apply() and
2444 friends have on various platforms. (Solution suggested by Helge
2447 * objc/objc-api.h: Define __objc_msg_forward.
2449 * sendmsg.c: Define gen_rtx_REG.
2451 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2453 * thr-rtems.c: New file. Stub to compile.
2455 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2457 * configure: Rebuilt with new libtool.m4.
2459 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2461 * configure.in: Create a config.h file. Check for <sched.h>.
2462 * configure: Regenerate.
2464 * config.h.in: Check for <sched.h>.
2466 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2468 * configure: Regenerate after change to ../libtool.m4.
2470 2000-08-14 Andreas Schwab <schwab@suse.de>
2472 * objc-features.texi (Top): Move @menu at end of node.
2474 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2476 * objc-features.texi: Move @node Top before @menu.
2478 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2480 * objc-features.texi: Documented the new -fconstant-string-class
2483 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2485 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2486 improve the Posix thread support for Objective-C.
2488 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2490 * aclocal.m4: Replace copy of ../libtool.m4 with
2491 sinclude(../libtool.m4).
2493 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2495 * configure.in: Added libtool support; build shared libraries
2496 if --enable-shared was passed on command line.
2497 * Makefile.in: Modified most compilation commands to use libtool.
2498 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2499 libtool distribution.
2501 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2503 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2504 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2507 2000-05-12 H.J. Lu (hjl@gnu.org)
2509 * Makefile.in (GTHREAD_FLAGS): New.
2510 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2511 (OBJC_THREAD_FILE): Changed to thr-objc.
2513 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2515 (OBJC_THREAD_FILE): Removed.
2519 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2521 * objc/hash.h: Include string.h.
2523 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2525 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2527 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2529 * Object.m (strlen): Provide prototype on all 64bit platforms,
2531 * sarray.c (memcpy): Likewise.
2532 * encoding.c (objc_layout_finish_structure): Don't use
2533 ROUND_TYPE_ALIGN on sparc.
2535 * encoding.c (objc_layout_structure_next_member): Do the whole
2536 procedure even for the first member, so that we get correct
2539 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2541 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2544 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2546 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2548 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2550 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2552 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2554 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2555 the compiler when building C code.
2557 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2559 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2560 libdir, libsubdir and tooldir.
2562 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2564 * init.c (__objc_force_linking): Make global.
2566 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2568 * configure.in (AC_EXEEXT): Remove call.
2569 (compiler_name): Explicitly check with no extension and .exe
2571 * configure: Regenerate.
2573 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2575 * Makefile.in (CC1OBJ): Define in terms of CC.
2576 (runtime-info.h): Use.
2578 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2580 * objc-features.texi: Updated the URL to Boehm's GC page.
2582 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2584 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2585 the char as being signed (patch from Daniel Jacobowitz
2588 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2590 * configure.in (AC_PREREQ): Update to 2.13.
2591 (AC_EXEEXT): Call to find possible file extension.
2592 (compiler_name): Use.
2593 * configure: Regenerate.
2595 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2597 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2599 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2601 * configure.in (thread_file): Correct and simplify code to find
2603 * configure: Rebuilt.
2605 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2607 * configure.in (compiler_name): Add check to detect if this
2608 language's compiler has been built.
2609 * configure: Regenerate.
2611 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2613 * configure.in: Use AC_PREREQ(2.12.1).
2615 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2617 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2619 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2621 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2623 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2625 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2627 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2629 * objc-features.texi (Top): Changed the email address.
2630 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2632 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2634 * encoding.c: Redefine get_inner_array_type to get the first entry
2637 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2639 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2640 (objc_get_type_qualifiers): Similarly.
2641 * objc/encoding.h (_C_BYREF): Define.
2644 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2646 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2647 works out on 64-bit systems.
2649 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2651 * Makefile.in (INCLUDES): Make it multilib-friendly.
2653 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2655 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2657 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2658 Jeffrey A Law (law@cygnus.com)
2660 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2661 (FLAGS_TO_PASS): Added.
2662 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2664 * archive.c: Change config.h to tconfig.h.
2666 * configure.in: Find gcc's object directory even for multilibs.
2668 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2670 * configure.in: Escape ^ in grep string.
2671 * configure: Rebuilt.
2673 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2675 * All .h files pushed down into the objc/ subdirectory.
2676 * Makefile.in (copy_headers): Corresponding changes.
2677 * configure.in (AC_INIT): Corresponding changes.
2678 * configure: Rebuilt.
2680 1998-09-30 Ben Elliston <bje@cygnus.com>
2681 Jeff Law <law@cygnus.com>
2683 * Makefile.in: Rewrite.
2685 * configure.in: Likewise.
2687 * configure: Regenerate.
2689 * All .c files. Remove "objc" prefix when including objc header
2690 files. Include tconfig.h, not ../tconfig.h.
2692 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2694 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2695 (get_inner_array_type): Define.
2697 1998-09-21 Ben Elliston <bje@cygnus.com>
2699 * New directory. Moved files from ../gcc/objc.