1 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
4 * selector.c (__sel_register_typed_name): When registering a new
5 selector with the same name as an existing one, reuse the existing
6 name string. Also updated types, casts and comments in the whole
9 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
11 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
12 to be 'struct objc_selector *' and not 'SEL'.
13 * init.c (__objc_exec_class): Call
14 __objc_register_selectors_from_module instead of iterating over
15 each selector and calling __sel_register_typed_name for each.
16 * objc-private/selector.h: Declare
17 __objc_register_selectors_from_module instead of
18 __sel_register_typed_name.
19 * selector.c (__objc_register_selectors_from_module): New.
20 (__sel_register_typed_name): Made static.
22 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
24 * linking.m: Do not include objc/NXConstStr.h.
26 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
28 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
29 * objc-private/common.h (DEBUG_PRINTF): To here.
30 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
32 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
34 * hash.c: Tidied up comments and indentation. No code changes.
36 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
39 * accessors.m (objc_getProperty): If not atomic, do not
40 retain/autorelease the returned value. (Problem reported by
42 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
44 * objc-private/runtime.h (__objc_selector_max_index,
45 __objc_init_selector_tables, __objc_register_selectors_from_class,
46 __objc_register_selectors_from_list,
47 __objc_register_selectors_from_description_list): Moved to ...
48 * objc-private/selector.h: ... here.
50 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
52 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
53 (__objc_print_dtable_stats): Removed.
54 (__sel_register_typed_name): Removed.
55 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
57 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
59 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
60 if appropriate, after loading the module.
62 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
64 * sendmsg.c (method_setImplementation): Do not declare.
66 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
68 * objc/message.h: Updated comments.
69 * objc/runtime.h: Updated comments.
71 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
73 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
74 * protocols.c: Updated all calls to objc_lookupClass to call
75 objc_lookUpClass instead.
76 * sendmsg.c (objc_lookupClass): Do not declare.
77 (get_imp): Update call to objc_lookupClass to call
78 objc_lookUpClass instead.
79 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
81 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
83 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
84 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
85 define. Updated comments.
87 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
89 * objc/encoding.h: Updated comments.
90 * objc/runtime.h: Updated comments.
91 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
92 (objc_sizeof_type): Same.
93 (objc_alignof_type): Same.
94 (objc_aligned_size): Same.
95 (objc_promoted_size): Same.
96 (objc_skip_type_qualifiers): Same.
97 (objc_skip_typespec): Same.
98 (objc_skip_offset): Same.
99 (objc_skip_argspec): Same.
100 (objc_get_type_qualifiers): Same.
101 (objc_layout_structure): Same.
102 (objc_layout_structure_next_member): Same.
103 (objc_layout_finish_structure): Same.
104 (objc_layout_structure_get_info): Same.
106 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
108 * init.c: Updated comments.
109 * objc/objc-api.h: Updated comments.
110 * objc/runtime.h (_objc_load_callback): Declare.
112 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
114 * objc/Object.h: Include deprecated/typedstream.h and
115 deprecated/hash.h instead of typedstream.h. Updated comments.
117 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
119 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
120 * objc/deprecated/objc_msg_sendv.h: New.
121 * objc/message.h: Do not define retval_t, apply_t, arglist,
122 arglist_t, objc_msg_sendv, now in
123 objc/deprecated/objc_msg_sendv.h.
124 * objc/objc.h: Do not include message.h; include
125 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
126 * sendmsg.c: Include objc/message.h.
127 * thr.c: Include objc/message.h.
129 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
131 * objc/objc-exception.h: Include objc-decls.h. Mark all
132 functions with objc_EXPORT.
133 * objc/objc-sync.h: Same change.
135 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
137 * Protocol.m: Moved all methods, with the exception of -isEqual:,
138 into the 'Deprecated' category.
139 * objc/Protocol.h: Removed all methods, moved to
140 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
141 * objc/deprecated/Protocol.h: New.
142 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
144 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
146 * init.c: Include objc-private/selector.h. Do not declare
147 __sel_register_typed_name.
148 * objc-private/selector.h (__sel_register_typed_name): Declare.
149 * selector.c: Include objc-private/selector.h.
151 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
153 * class.c: Tidied up comments and indentation. No code changes.
159 * objc-foreach.c: Same.
166 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
168 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
169 instead of objc/objc-api.h.
170 (init_check_module_version): Take a 'struct objc_module *'
171 argument instead of 'Module_t'. Use 'struct objc_module *'
172 instead of 'Module_t'.
173 (__objc_created_classes_tree): Take a 'struct objc_module *'
174 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
176 (__objc_call_callback): Take a 'struct objc_module *' argument
177 instead of 'Module_t'; use 'struct objc_symtab *' instead of
178 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
179 (_objc_load_callback): Take a 'struct objc_category *' argument
180 instead of 'Category *'.
181 (class_superclass_of_class): Use objc_getClass() instead of
183 (create_tree_of_subclasses_inherited_from): Same change (also, use
184 an explicit 'if' instead of '?').
185 (objc_init_statics): Same change.
186 (objc_send_load): Same change.
187 (__objc_init_protocol): same change.
188 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
189 argument instead of 'MethodList_t'. Use 'struct objc_method *'
190 instead of 'Method_t'.
191 (__objc_send_load): Use 'struct objc_method_list *' instead of
192 'MethodList_t'. Use sel_registerName() instead of
194 (__objc_exec_class): Take a 'struct objc_module *' argument
195 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
196 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
197 Use 'struct objc_category *' instead of 'Category_t'.
199 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
201 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
202 Include objc-private/module-abi-8.h and objc-private/selector.h
203 instead of objc/encoding.h.
204 (objc_msg_lookup_super): Use super->super_class instead of
206 (method_get_first_argument, method_get_next_argument): Declare
208 (class_get_instance_method): Declare before using.
209 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
210 (__objc_init_dispatch_tables, __objc_send_initialize): Use
211 sel_registerName() instead of sel_register_name().
212 (__objc_forward): Use sel_getName() instead of sel_get_name().
213 (objc_get_uninstalled_dtable): Use 'void' as argument.
214 * objc-private/selector.h: New.
216 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
218 * objc/message.h (objc_super): When using the modern API, do not
219 define Super and Super_t, and always use 'super_class' for the
221 (objc_msg_lookup_super): Updated prototype to use 'struct
222 objc_super *' instead of 'Super_t'.
223 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
224 'struct objc_super *' instead of 'Super_t'.
226 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
228 * objc/message.h: Update comments, reindented code and moved
229 deprecated types and functions at the end of the file. No code
232 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
234 * ivars.c (class_addIvar): Use the 'size' argument instead of
235 trying to calculate it using objc_sizeof_type().
236 * objc/runtime.h (class_addIvar): Updated comments.
238 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
240 * sendmsg.c: Reindented some code and tidied up comments. No
243 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
245 * objc/Object.h: Moved all the methods, with the exception of
246 -class and -isEqual:, into ...
247 * objc/deprecated/Object.h: here.
248 * Object.m: Moved all the methods, with the exception of -class
249 and -isEqual: into the 'Deprecated' category.
251 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
253 * objects.c (object_copy): Do not #undef as we are no longer
254 including objc/objc-api.h.
255 * selector.c: Include objc/runtime.h and
256 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
257 objc/encoding.h. Updated
258 (__objc_register_selectors_from_class): Use struct
259 objc_method_list * instead of MethodList_t.
260 (__objc_register_selectors_from_list): Use Method instead of
262 (struct objc_method_description_list): Do not define here.
263 (__objc_register_instance_methods_to_class): Use struct
264 objc_method_list * instead of MethodList_t and Method instead of
267 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
269 * selector.c: Reindented some code and tidied up comments. No
272 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
274 * encoding.c (_darwin_rs6000_special_round_type_align): New.
275 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
277 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
279 * sendmsg.c (selector_resolveClassMethod): New.
280 (selector_resolveInstanceMethod): New.
281 (__objc_resolve_class_method): New.
282 (__objc_resolve_instance_method): New.
283 (get_imp): Call __objc_resolve_class_method or
284 __objc_resolve_instance_method at the appropriate time.
285 (objc_msg_lookup): Same.
286 (class_getClassMethod): Same.
287 (class_getInstanceMethod): Same.
288 (__objc_init_dispatch_tables): Initialize
289 selector_resolveClassMethod and selector_resolveInstanceMethod.
290 * objc/runtime.h: Updated documentation of class_getClassMethod,
291 class_getInstanceMethod and class_getMethodImplementation.
293 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
295 * objc-private/module-abi-8.h (struct objc_symtab): Updated
296 description of sel_ref_cnt and refs.
297 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
299 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
303 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
304 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
305 * aclocal.m4: Regenerate.
306 * configure: Regenerate.
308 2010-12-03 Matthias Klose <doko@ubuntu.com>
310 * configure.ac (VERSION): Bump the version to 3:0:0.
311 * configure: Regenerate.
313 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
315 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
316 pass nil as the receiver since we don't know the receiver at this
319 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
321 * ivars.c: Include stdlib.h.
322 * protocols.c: Same change.
324 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
326 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
328 * init.c: Include objc-private/accessors.h.
329 (__objc_exec_class): Call __objc_accessors_init.
330 * objc-private/accessors.h: New.
332 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
334 * objc/message.h: Moved initial includes outside of extern "C".
335 * objc/runtime.h: Add extern "C" for Objective-C++.
337 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
339 * init.c (objc_send_load): Do not wait for NXConstantString to be
340 registered before executing +load. There is no point if
341 -fconstant-string-class=xxx is used when compiling all modules,
342 as is the case for almost all users.
343 * linking.m (__objc_linking): Do not try to forcefully link in
346 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
348 * objc/runtime.h: Updated comments.
349 (class_addMethod): New.
350 (class_addIvar): New.
351 (class_replaceMethod): New.
352 (objc_allocateClassPair): New.
353 (objc_registerClassPair): New.
354 (objc_disposeClassPair): New.
355 * class.c (objc_allocateClassPair): New.
356 (objc_registerClassPair): New.
357 (objc_disposeClassPair): New.
358 (class_getSuperclass): Return Nil if a class is in construction.
359 * init.c (__objc_exec_class): Call __objc_init_class.
360 (__objc_init_class): New.
361 * ivars.c (class_copyIvarList): Return NULL if class is in
362 construction. Do not lock the runtime mutex.
363 (class_getInstanceVariable): Return NULL if class is in
364 construction. Do not lock the runtime mutex.
365 (class_addIvar): New.
366 * sendmsg.c (class_addMethod): New.
367 (class_replaceMethod): New.
368 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
369 (_CLS_IN_CONSTRUCTION): New.
370 (CLS_IS_IN_CONSTRUCTION): New.
371 (CLS_SET_IN_CONSTRUCTION): New.
372 (CLS_SET_NOT_IN_CONSTRUCTION): New.
373 * objc-private/runtime.h (__objc_init_class): New.
375 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
377 * class.c (class_getSuperclass): Call __objc_resolve_class_links
378 if the class is not resolved yet.
379 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
381 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
383 * objc/runtime.h (class_getIvarLayout): New.
384 (class_getWeakIvarLayout): New.
385 (class_setIvarLayout): New.
386 (class_setWeakIvarLayout): New.
387 * ivars.c (class_getIvarLayout): New.
388 (class_getWeakIvarLayout): New.
389 (class_setIvarLayout): New.
390 (class_setWeakIvarLayout): New.
392 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
394 * objc/runtime.h (class_copyPropertyList): New.
395 (class_getProperty): New.
396 (property_getAttributes): New.
397 (property_getName): New.
398 * ivars.c (class_copyPropertyList): New.
399 (class_getProperty): New.
400 (property_getAttributes): New.
401 (property_getName): New.
403 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
405 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
406 * class.c (__objc_update_classes_with_methods): New.
407 (objc_getClassList): Do not lock the class lock.
408 * methods.c (method_exchangeImplementations): New.
409 (method_setImplementation): New.
410 * objc/runtime.h (method_setImplementation): New.
411 (method_exchangeImplementations): New.
413 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
415 * Protocol.m: Include objc/runtime.h and
416 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
417 repeat Protocol's instance variables.
418 (struct objc_method_description_list): Do not define here.
419 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
420 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
421 selectors directly instead of getting names and then using strcmp.
422 ([descriptionForClassMethod:]): Same change.
423 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
424 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
425 to compare selectors directly instead of getting names and then
427 * objc/Protocol.h: Updated comments.
429 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
431 * init.c (__objc_init_protocol): New function which fixes up a
432 protocol's class pointer, registers it with the runtime, register
433 all protocol selectors and registers associated protocols too.
434 (objc_init_statics): Detect if we are initializing protocols, and
435 if so, use __objc_init_protocol instead of only fixing up the
437 (__objc_init_protocls): Use __objc_init_protocol.
438 * objc-private/module-abi-8.h: Updated comments.
439 * objc-private/runtime.h
440 (__objc_register_selectors_from_description_list): New.
441 * selector.c (__objc_register_selectors_from_description_list):
442 New. (struct objc_method_description_list): Declare.
443 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
444 when accessing the name of a method, which is now correctly a SEL.
445 ([-descriptionForClassMethod:]): Same change.
446 * protocols.c (protocol_getMethodDescription): Same change.
447 * objc/runtime.h: Updated comments.
448 (sel_registerTypedName): Fixed typo in function name.
450 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
453 * init.c (objc_init_statics): Do not skip the initialization of a
454 statics list if the first object has already been initialized; in
455 the case of Protocols, while the first one may have been
456 initialized, some others may not have been initialized yet.
458 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
460 * Makefile.in (OBJC_DEPRECATED_H): Added
461 objc_get_uninstalled_dtable, objc_object_alloc.h and
462 struct_objc_static_instances.h.
464 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
466 * encoding.c (method_copyReturnType): New.
467 (method_copyArgumentType): New.
468 (method_getReturnType): New.
469 (method_getArgumentType): New.
470 * methods.c (method_getDescription): New.
471 * objc/runtime.h (method_copyReturnType): New.
472 (method_copyArgumentType): New.
473 (method_getReturnType): New.
474 (method_getArgumentType): New.
475 (method_getDescription): New.
477 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
479 * encoding.c: Tidied up comments.
480 (objc_skip_variable_name): New static inline function.
481 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
482 the same code over and over.
483 (objc_alignof_type): Same.
484 (objc_aligned_size): Same.
485 (objc_promoted_size): Same.
486 (objc_skip_typespec): Same.
487 (objc_layout_structure_next_member): Same.
488 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
489 historical bug where objc_skip_offset would skip one byte even if
490 there is no offset: check that the first offset digit is actually
491 a digit before skipping it.
492 (objc_skip_type_qualifiers): Mark as inline.
493 (objc_skip_typespec): Mark as inline.
495 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
497 * Makefile.in (C_SOURCE_FILES): Added methods.c.
498 * encoding.c (method_getNumberOfArguments): New.
499 (method_get_number_of_arguments): Call
500 method_getNumberOfArguments.
501 * ivars.c (ivar_getName): Check for NULL variable argument.
502 (ivar_getOffset): Check for NULL variable argument.
503 (ivar_getTypeEncoding): Check for NULL variable argument.
504 (class_copyIvarList): New.
506 * protocols.c (class_copyProtocolList): Check for Nil class_
508 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
509 'struct objc_method_list *' instead of MethodList_t.
510 (class_getMethodImplementation): New.
511 (class_respondsToSelector): New.
512 (class_getInstanceMethod): New.
513 (class_getClassMethod): New.
514 * objc/runtime.h: Updated comments.
515 (class_copyIvarList): New.
516 (class_getInstanceMethod): New.
517 (class_getClassMethod): New.
518 (class_getMethodImplementation): New.
519 (class_respondsToSelector): New.
520 (method_getName): New.
521 (method_getImplementation): New.
522 (method_getTypeEncoding): New.
523 (class_copyMethodList): New.
524 (method_getNumberOfArguments): New.
526 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
528 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
529 instead of objc/objc-api.h.
530 (objc_get_unknown_class_handler): Do not define.
531 (class_isMetaClass): New.
532 (class_getSuperclass): New.
533 (class_getVersion): New.
534 (class_setVersion): New.
535 (class_getInstanceSize): New.
536 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
537 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
538 objc_get_super_class.
539 (get_ttype_entry): Use objc_getRequiredClass instead of
541 * ivars.c (class_getClassVariable): New.
542 * objects.c: Include objc/runtime.h, objc/thr.h and
543 objc-private/module-abi-8.h instead of objc/objc-api.h
544 * objc/runtime.h (class_getClassVariable): New.
545 (class_isMetaClass): New.
546 (class_getSuperclass): New.
547 (class_getVersion): New.
548 (class_setVersion): New.
549 (class_getInstanceSize): New.
550 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
553 (__CLS_ISINFO): Same.
554 (__CLS_SETINFO): Same.
557 (CLS_ISRESOLV): Same.
558 (CLS_SETRESOLV): Same.
559 (CLS_ISINITIALIZED): Same.
560 (CLS_SETINITIALIZED): Same.
561 (CLS_GETNUMBER): Same.
562 (CLS_SETNUMBER): Same.
564 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
566 * archive.c: Do not include objc/objc.h.
567 * class.c: Do not include objc/objc.h.
568 * encoding.c: Include objc/runtime.h, ctype.h and
569 objc-private/module-abi-8.h instead of objc/objc-api.h and
571 * error.c: Do not include objc/objc.h.
572 * gc.c: Include tconfig.h and objc/encoding.h only if
574 * hash.c: Include objc/runtime.h and objc/thr.h instead of
575 objc/objc-api.h. Do not include objc/objc.h.
576 * init.c: Do not include objc/objc.h.
577 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
578 objc/thr.h instead of objc/objc-api.h. Do not include
580 * linking.m: Tidied comment.
581 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
582 Do not include objc/objc.h.
583 * objects.c: Do not include objc/objc.h.
584 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
585 * protocols.c: Do not include objc/objc.h.
586 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
587 not include objc/objc.h.
588 * selector.c: Do not include objc/objc.h.
589 * sendmsg.c: Do not include objc/objc.h.
590 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
591 Do not include objc/objc.h.
592 * objc/objc-decls.h: Reindented code.
593 * objc/runtime.h Include objc-decls.h. Updated comments.
595 (objc_atomic_malloc): New.
599 * objc-private/runtime.h: Updated comments.
601 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
603 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
604 * objc-private/protocols.h: New.
606 * init.c: Include objc-private/protocols.h.
607 (__objc_exec_class): Call __objc_protocols_init on startup.
608 (__objc_init_protocols): Call __objc_protocols_add_protocol.
609 * objc-private/runtime.h: Use (struct objc_method_list *) instead
610 of MethodList_t, and (struct objc_method *) instead of Method_t.
611 * objc/deprecated/struct_objc_class.h: Define
612 __objc_STRUCT_OBJC_CLASS_defined.
613 * objc-private/module-abi-8.h (struct
614 objc_method_description_list): New.
615 (struct objc_class): Only define if
616 __objc_STRUCT_OBJC_CLASS_defined is undefined.
617 * objc/runtime.h (class_getName): New.
618 (objc_getProtocol): New.
619 (objc_copyProtocolList): New.
620 (class_addProtocol): New.
621 (class_conformsToProtocol): New.
622 (class_copyProtocolList): New.
623 (protocol_conformsToProtocol): New.
624 (protocol_isEqual): New.
625 (protocol_getName): New.
626 (protocol_getMethodDescription): New.
627 (protocol_copyMethodDescriptionList): New.
628 (protocol_getProperty): New.
629 (protocol_copyPropertyList): New.
630 (protocol_copyProtocolList): New.
631 * class.c (class_getName): New.
632 * selector.c (sel_isEqual): New.
634 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
636 * selector.c (sel_getName): Return "<null selector>" for a NULL
638 (sel_get_name): Return 0 for a NULL argument.
639 * objc/runtime.h (sel_getName): Updated documentation.
641 * objc-private/hash.h (class_hash_table): Unused declaration
643 (module_hash_table): Same.
644 * objc/deprecated/hash.h: Same changes.
646 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
648 * class.c (objc_getClassList): New.
649 (objc_getRequiredClass): New.
650 (objc_getMetaClass): New.
651 (objc_lookupClass): New.
652 (objc_getClass): New.
653 (__objc_get_unknown_class_handler): New.
654 (objc_setGetUnknownClassHandler): New.
655 (objc_get_class): Use __objc_get_unknown_class_handler.
656 (objc_lookup_class): Call objc_getClass.
657 * objc/objc-api.h: Updated comment and copyright notice.
658 * objc/runtime.h: Updated comments.
659 (objc_getClass): New.
660 (objc_lookupClass): New.
661 (objc_getMetaClass): New.
662 (objc_getRequiredClass): New.
663 (objc_getClassList): New.
664 (objc_setGetUnknownClassHandler): New.
665 (objc_get_unknown_class_handler): New.
666 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
667 instead of __objc_runtime_INCLUDE_GNU as include guard.
668 * objc-private/error.h (_objc_abort): Mark as noreturn.
670 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
672 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
674 * objc/objc.h: Updated comments.
675 * objc/runtime.h (object_getClass): New.
676 (object_getClassName): New.
677 (object_setClass): New.
678 (class_getInstanceVariable): New.
679 (object_getIndexedIvars): New.
680 (object_getInstanceVariable): New.
681 (object_setInstanceVariable): New.
682 (object_getIvar): New.
683 (object_setIvar): New.
685 (ivar_getOffset): New.
686 (ivar_getTypeEncoding): New.
687 * objc-private/module-abi-8.h (struct objc_class): Added.
688 * objects.c (object_getClassName): New.
689 (object_setClass): New.
691 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
693 * objc/objc.h: Updated comments.
694 * objc/objc-api.h: (object_copy): Added one argument; use a
695 #define to maintain backwards-compatibility. Moved
696 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
697 objc_get_uninstalled_dtable into
698 objc/deprecated/objc_get_uninstalled_dtable.h and
699 objc/deprecated/objc_object_alloc.h. Include these files.
700 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
701 * objc/deprecated/objc_object_alloc.h: New.
702 * objc/runtime.h (set_getName): New.
705 (sel_registerName): New.
706 (sel_registerTypedName): New.
708 (class_createInstance): New.
710 (object_dispose): New.
711 * objects.c: Do not include tconfig.h. Include gc_typed.h if
712 building the garbage collection version.
713 (__objc_object_alloc): Removed.
714 (__objc_object_copy): Removed.
715 (__objc_object_dispose): Removed.
716 (class_createInstance): New from code in class_create_instance.
717 Cast second argument of GC_malloc_explicitly_typed. Use
718 objc_calloc. Do not call _objc_object_alloc.
719 (class_create_instance): Call class_createInstance.
720 (object_copy): Added extraBytes argument. Do not call
722 (object_dispose): Do not call _objc_object_dispose.
723 * memory.c (objc_free): When using garbage collection, mark the
725 * selector.c (sel_getName): New.
726 (sel_get_name): Call sel_getName.
728 (sel_get_type): Call sel_getType.
729 (sel_registerName): New.
730 (sel_register_name): Call sel_registerName.
731 (sel_registerTypedName): New.
732 (sel_register_typed_name): Call sel_registerTypedName.
734 (sel_get_uid): Call sel_getUid.
736 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
738 * objc/objc-api.h: Define Method, Method_t, Category and
739 Category_t. Prevent including this file at the same time as
740 objc/runtime.h. Updated comments.
741 * objc/deprecated/struct_objc_method.h: Do not define Method,
743 * objc/deprecated/struct_objc_category.h: Do not define Category,
745 * objc-private/module-abi-8.h: New file containing a copy of all
746 the structure definitions. Not used yet.
747 * objc/encoding.h (objc_aligned_size): Removed duplicate
748 declaration. Updated comments.
749 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
750 Category, struct objc_method_description, _C_ID and similar,
751 _C_CONST and similar and _F_CONST and similar. Added
752 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
753 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
754 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
755 struct objc_struct_layout, objc_layout_structure,
756 objc_layout_structure_next_member, objc_layout_finish_structure,
757 objc_layout_structure_get_info. Prevent including this file at
758 the same time as objc/objc-api.h.
760 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
762 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
763 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
764 struct_objc_method_list.h, struct_objc_module.h,
765 struct_objc_protocol_list.h, struct_objc_symtab.h.
766 * objc/deprecated/struct_objc_category.h: New.
767 * objc/deprecated/struct_objc_ivar.h: New.
768 * objc/deprecated/struct_objc_ivar_list.h: New.
769 * objc/deprecated/struct_objc_method.h: New.
770 * objc/deprecated/struct_objc_method_list.h: New.
771 * objc/deprecated/struct_objc_module.h: New.
772 * objc/deprecated/struct_objc_protocol_list.h: New.
773 * objc/deprecated/struct_objc_symtab.h: New.
774 * objc/deprecated/struct_objc_static_instances.h: New.
775 * objc/objc-api.h: Definitions of deprecated structures moved into
776 the above header fragment files in objc/deprecated/. Include the
777 files instead of definition the structures here. Updated
779 * objc/runtime.h: Updated comments. Do not include objc-api.h.
780 (objc_set_enumeration_mutation_handler): Renamed to
781 objc_setEnumerationMutationHandler.
782 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
783 to objc_setEnumerationMutationHandler.
784 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
785 objc_setExceptionMatcher.
786 (objc_set_uncaught_exception_handler): Renamed to
787 objc_setUncaughtExceptionHandler.
788 * exception.c: Same changes.
790 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
792 * objc-sync.c: Include objc-private/common.h.
794 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
796 * objc-foreach.c: Include objc-private/common.h.
797 * objc/deprecated/METHOD_NULL.h: New file.
798 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
799 defining METHOD_NULL here.
800 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
801 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
803 ([-respondsTo:]): Same change.
804 * objc/objc-api.h (method_get_imp): Converted it into a normal
805 function so that we can hide the internals of struct objc_method.
806 * sendmsg.c (method_get_imp): Implemented.
808 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
810 * objc/objc-api.h (struct objc_super, Super, Super_t,
811 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
812 objc_msg_forward2): Declarations moved to objc/message.h. Include
814 * objc/message.h: Added such declarations; updated comments.
816 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
818 Implemented fast enumeration for Objective-C.
819 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
820 (OBJC_H): Added runtime.h
821 * objc-foreach.c: New file.
822 * objc/runtime.h: New file.
824 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
826 * objc/deprecated/struct_objc_class.h: Add padding
827 to avoid warning with -Wpadded.
829 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
831 * encoding.c (objc_sizeof_type): Added support for vector type and
832 for double long types.
833 (objc_alignof_type): Same change.
834 (objc_skip_typespec): Same change.
835 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
836 instead of '!' since '!' is already used for _C_VECTOR.
837 * objc/objc-api.h (_C_LNG_DBL): Added.
839 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
841 * libobjc_entry.c: File removed.
843 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
845 * sendmsg.c (objc_msg_lookup): Remove inline.
846 (objc_get_uninstalled_dtable): Likewise.
847 * encoding.c (objc_skip_type_qualifiers): Likewise.
848 (objc_skip_offset): Likewise.
849 * archive.c (__objc_write_object): Likewise
850 (__objc_write_class):
851 (__objc_write_selector):
853 (objc_read_unsigned_char):
855 (objc_read_unsigned_short):
858 (__objc_read_nbyte_uint):
859 (objc_read_unsigned_int):
860 (objc_read_unsigned_long):
861 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
862 (objc_EXPORT): Likewise.
863 * objc/message.h (objc-decls.h): Add include.
864 * objc/objc-api.h: Mark API by objc_EXPORT.
865 * libobjc.def (__objc_responds_to): Removed.
867 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
869 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
871 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
872 objc/sarray.h replaced with a placeholder including the file from
873 the deprecated/ directory.
874 * objc-private/sarray.h: New file (private copy of sarray.h).
875 * hash.c: Include <assert.h> instead of "assert.h"
876 * sarray.c: Include <assert.h> instead of "assert.h". Include
877 objc-private/sarray.h instead of objc/sarray.h.
878 * selector.c: Include objc-private/sarray.h instead of
880 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
881 instead of objc/sarray.h.
882 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
884 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
886 * objc-private/objc-list.h (list_remove_elem): Unused function
887 removed. (list_nth): Unused function removed. (list_find):
888 Unused function removed. (list_lenght): Unused function removed.
890 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
892 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
893 replaced with a placeholder including the file from the
894 deprecated/ directory.
895 * objc/objc-api.h: Updated includes.
896 * objc/typedstream.h: Updated includes.
897 * objc-private/hash.h: New file (private copy of hash.h).
898 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
899 objc/objc-list.h replaced with a placeholder including the file
900 from the deprecated/ directory.
901 * objc-private/objc-list.h: New file (private copy of objc-list.h).
902 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
903 instead of objc/hash.h and objc/objc-list.h.
904 * selector.c: Same change.
905 * class.c: Added include <string.h>, which used to be implicitly included
906 when hash.h was included.
907 * exception.c: Same change.
908 * objects.c: Same change.
909 * sarray.c: Same change.
910 * sendmsg.c: Same change.
911 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
913 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
915 Implemented objc_sync_enter() and objc_sync_exit(), which are
916 required by @synchronized() to work.
917 * objc-sync.c: New file.
918 * objc/objc-sync.h: New file.
919 * objc-private/objc-sync.h: New file.
920 * init.c (__objc_exec_class): Call __objc_sync_init() during the
921 Objective-C runtime startup.
922 * Makefile.in: Added objc-sync.c and objc-sync.h.
923 * configure.ac: Added GCC_CHECK_TLS.
924 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
925 * configure: Regenerated.
926 * config.h.in: Regenerated.
928 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
930 * Makefile.in (%_gc.lo): New pattern rules to build the
931 garbage-collected version of the library. Removed rules for
932 specific files that are no longer needed. Standardized all rules.
933 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
934 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
936 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
938 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
940 * memory.c (objc_calloc): Fixed call to GC_malloc when building
941 with Garbage Colletion.
943 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
945 * memory.c: Do not include objc-private/runtime.h.
947 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
949 * objc/deprecated/objc_malloc.h: New file.
950 * objc/deprecated/objc_valloc.h: New file.
951 * objc/objc-api.h: Include the files instead of defining
952 objc_valloc, _objc_malloc() and similar.
953 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
955 * memory.c: Removed the extra layer of indirection of _objc_malloc
957 (objc_calloc): Use GC_malloc in the garbage-collected
958 implementation as GC_malloc returns memory that is already freed.
959 (objc_valloc): Deprecated.
961 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
963 * objc/deprecated/objc_error.h: New file.
964 * objc/objc-api.h: Include deprecated/objc_error.h instead of
965 defining objc_error and related.
966 * error.c: New file. Added _objc_abort function which replaces
967 objc_error. No change in functionality as they both print an
969 * misc.c: File removed. Code moved into memory.c and error.c.
970 * memory.c: New file.
971 * objc-private/error.h: New file.
972 * archive.c: Include objc-private/error.h and use _objc_abort
973 instead of objc_error everywhere.
974 * class.c: Same change.
975 * encoding.c: Same change.
976 * init.c: Same change, and simplified init_check_module_version.
977 * memory.c: Same change.
978 * sendmsg.c: Same change.
979 * thr.c: Same change.
980 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
981 (OBJ_H): Reordered list.
982 (OBJS): Removed misc.lo, added memory.lo and error.lo.
983 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
984 (misc_gc.lo): Rule removed.
985 (error_gc.lo): Rule added.
986 (memory_gc.lo): Rule added.
988 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
990 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
991 to check the API version. Added some comments.
993 * objc-private/common.h: New file.
994 * NXConstStr.m: Include objc-private/common.h.
995 * Object.m: Same change.
996 * Protocol.m: Same change.
997 * archive.c: Same change.
998 * class.c: Same change.
999 * encoding.c: Same change.
1000 * exception.c: Same change.
1001 * gc.c: Same change.
1002 * hash.c: Same change.
1003 * init.c: Same change.
1004 * libobjc_entry.c: Same change.
1005 * linking.m: Same change.
1006 * misc.c: Same change (and added a comment).
1007 * nil_method.c: Same change.
1008 * objects.c: Same change.
1009 * sarray.c: Same change.
1010 * selector.c: Same change.
1011 * sendmsg.c: Same change.
1012 * thr.c: Same change.
1014 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1016 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1018 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1020 * archive.c: Removed not needed includes.
1021 * class.c: Same change.
1022 * hash.c: Same change.
1023 * misc.c: Same change.
1024 * nil_method.c: Same change.
1025 * objects.c: Same change.
1026 * sarray.c: Same change.
1027 * sendmsg.c: Same change.
1028 * thr.c: Same change.
1030 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1032 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1033 all the objc/*.h files.
1034 * objc-private/runtime.h: New file.
1035 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1036 files) instead of objc/runtime.h.
1037 * class.c: Same change.
1038 * hash.c: Same change.
1039 * init.c: Same change.
1040 * misc.c: Same change.
1041 * nil_method.c: Same change.
1042 * objects.c: Same change.
1043 * sarray.c: Same change.
1044 * selector.c: Same change.
1045 * sendmsg.c: Same change.
1046 * thr.c: Same change.
1048 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1050 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1051 'struct objc_selector' and 'sel_eq' moved here.
1052 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1053 'struct objc_procotol' moved here.
1054 * objc/deprecated/struct_objc_class.h: New file. Definition of
1055 'struct objc_class' moved here.
1056 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1058 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1059 * objc/message.h: New file. Definitions for relval_t, apply_t,
1060 arglist, arglist_t and objc_msg_lookup were moved here.
1061 * objc/objc.h: Include the above files instead of defining the
1062 corresponding structs, types and functions here. Added new opaque
1063 definitions for SEL and Class. Use Class and not 'struct
1064 objc_class *' in the definition of 'struct objc_object'.
1065 Commented all types defined in the file. Removed special
1066 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1068 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1069 objc_unexpected_exception.h.
1070 * objc/objc-api.h: Updated include of
1071 objc-unexpetected-exception.h
1072 * objc/objc-exception.h: Updated comments.
1073 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1074 files. Reindented list of files.
1076 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1078 * objc/objc-api.h (objc_trace): Unused variable removed.
1080 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1082 * objc/deprecated: New directory.
1083 * objc/deprecated/README: New file.
1084 * objc/README: New file.
1085 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1086 objc/typedstream.h replaced with a placeholder including the file
1087 from the deprecated/ directory.
1088 * objc/deprecated/objc-unexpected-exception.h: New file with the
1089 definition of _objc_unexpected_exception.
1090 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1091 instead of defining _objc_unexpected_exception.
1092 * objc/deprecated/Object.h: New file with the deprecated Object
1093 methods in a 'Deprecated' category.
1094 * objc/Object.h Include deprecated/Object.h instead of defining
1095 the deprecated methods.
1096 * Object.m: Moved deprecated methods into 'Deprecated' category.
1097 * objc-private: New directory.
1098 * objc-private/README: New file.
1099 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1100 (install-headers): Create installation directory for
1101 OBJC_DEPRECATED_H headers, and install them.
1103 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1105 * objc/objc-exception.h: Fixed include of objc.h.
1107 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1109 * objc/objc-exception.h: New file.
1110 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1111 (objc_set_exception_matcher): Implemented.
1112 (objc_exception_throw): Use the uncaught exception handler if set.
1113 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1115 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1116 up. Removed segmentation fault when value is 'nil'.
1117 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1119 * Makefile.in (exception.lo, exception_gc.lo): Use
1120 -Wno-deprecated-declarations when compiling.
1121 (OBJC_H): Added objc-exception.h
1123 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1125 * objc/typedstream.h: Deprecate all functions in the file. This
1127 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1128 [-awake]): Documented that these methods are deprecated. Added a
1129 brief description of the Object class and its relationship to the
1131 * Makefile.in: Compile archive.c and Object.m with
1132 -Wno-deprecated-declarations.
1134 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1136 Removed obsolete intermediate threading layer.
1137 * thr.c: Use __gthread_objc_xxx functions directly instead of
1138 __objc_thread_xxx ones.
1139 * objc/thr.h: Removed prototypes of no longer existing
1140 __objc_thread_xxx functions.
1141 * Makefile.in: Removed thr-objc.lo.
1142 * thr-dce.c: File removed.
1143 * thr-decosf1.c: File removed.
1144 * thr-irix.c: File removed.
1145 * thr-mach.c: File removed.
1146 * thr-objc.c: File removed.
1147 * thr-os2.c: File removed.
1148 * thr-posix.c: File removed.
1149 * thr-pthreads.c: File removed.
1150 * thr-rtems.c: File removed.
1151 * thr-single.c: File removed.
1152 * thr-solaris.c: File removed.
1153 * thr-vxworks.c: File removed.
1154 * thr-win32.c: File removed.
1155 * README.threads: File removed.
1156 * THREADS.MACH: File removed.
1159 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1161 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1163 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1165 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1166 Add a comment as to why, update FIXME comments.
1168 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1170 * makefile.dos: Obsolete file removed.
1172 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1174 * aclocal.m4: Regenerate.
1176 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1179 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1180 Cygwin and MinGW hosts.
1181 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1182 (libobjc.dll): Likewise.
1183 * configure: Regenerate.
1185 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1187 * configure: Regenerate.
1189 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1191 * sarray.c (sarray_free): Use old_buckets variable.
1192 * encoding.c (objc_layout_structure_next_member): Remove unused
1193 bfld_type_size variable.
1195 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1197 * configure.ac (AC_PREREQ): Bump to 2.64.
1199 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1201 * aclocal.m4: Regenerate.
1202 * configure: Regenerate.
1203 * config.h.in: Regenerate.
1205 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1207 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1209 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1211 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1213 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1215 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1217 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1219 2009-04-09 Nick Clifton <nickc@redhat.com>
1221 * sendmsg.c: Change copyright header to refer to version 3 of
1222 the GNU General Public License with version 3.1 of the GCC
1223 Runtime Library Exception and to point readers at the COPYING3
1224 and COPYING3.RUNTIME files and the FSF's license web page.
1225 * NXConstStr.m: Likewise.
1226 * Object.m: Likewise.
1227 * Protocol.m: Likewise.
1228 * archive.c: Likewise.
1229 * class.c: Likewise.
1230 * encoding.c: Likewise.
1231 * exception.c: Likewise.
1235 * libobjc_entry.c: Likewise.
1236 * linking.m: Likewise.
1238 * nil_method.c: Likewise.
1239 * objc/NXConstStr.h: Likewise.
1240 * objc/Object.h: Likewise.
1241 * objc/Protocol.h: Likewise.
1242 * objc/encoding.h: Likewise.
1243 * objc/hash.h: Likewise.
1244 * objc/objc-api.h: Likewise.
1245 * objc/objc-decls.h: Likewise.
1246 * objc/objc-list.h: Likewise.
1247 * objc/objc.h: Likewise.
1248 * objc/runtime.h: Likewise.
1249 * objc/sarray.h: Likewise.
1250 * objc/thr.h: Likewise.
1251 * objc/typedstream.h: Likewise.
1252 * objects.c: Likewise.
1253 * sarray.c: Likewise.
1254 * selector.c: Likewise.
1255 * thr-dce.c: Likewise.
1256 * thr-decosf1.c: Likewise.
1257 * thr-irix.c: Likewise.
1258 * thr-mach.c: Likewise.
1259 * thr-objc.c: Likewise.
1260 * thr-os2.c: Likewise.
1261 * thr-posix.c: Likewise.
1262 * thr-pthreads.c: Likewise.
1263 * thr-rtems.c: Likewise.
1264 * thr-single.c: Likewise.
1265 * thr-solaris.c: Likewise.
1266 * thr-vxworks.c: Likewise.
1267 * thr-win32.c: Likewise.
1269 * libobjc.def: Change copyright header to refer to version 3 of
1270 the GNU General Public License and to point readers at the COPYING3
1271 file and the FSF's license web page.
1272 * makefile.dos: Likewise.
1274 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1276 * Makefile.in: Change copyright header to refer to version
1277 3 of the GNU General Public License and to point readers at the
1278 COPYING3 file and the FSF's license web page.
1279 * configure.ac: Likewise.
1281 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1282 David Ayers <ayers@fsfe.org>
1285 * objc/objc-api.h (_objc_unexpected_exception): Declare
1286 new hook. Update copyright dates.
1287 * exception.c (objc_exception_throw): Use hook. Update
1289 * libobjc.def (_objc_unexpected_exception): Export hook.
1290 Update copyright dates.
1292 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1294 * configure: Regenerate.
1296 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1298 * configure: Regenerate.
1300 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1302 * Object.m (errno): Replaced by errno.h include.
1303 (compare): Cast self to id to prevent warning on comparison.
1304 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1306 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1307 * thr-win32.c (__objc_thread_detach): Remove type warning.
1308 (__objc_thread_id): Likewise.
1309 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1312 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1313 Steve Ellcey <sje@cup.hp.com>
1315 * configure: Regenerate for new libtool.
1316 * config.h.in: Regenerate for new libtool.
1318 2008-07-18 Matthias Klose <doko@ubuntu.com>
1320 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1322 2008-07-18 Matthias Klose <doko@ubuntu.com>
1324 * Makefile.in: Include ../boehm-gc/threads.mk.
1325 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1327 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1329 * Makefile.in (install-info): New stub target.
1331 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1333 * configure: Regenerate.
1335 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1337 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1338 if HAVE_GETIPINFO is not defined.
1340 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1342 * Object.m (compare): Add type id.
1343 * objc/Object.h: Likewise.
1344 * archive.c (objc_read_class): Use size_t to extend version to be
1345 size of pointer scalar width.
1346 * sendmsg.c (rtx): Undefine it before redefinition.
1347 (__objc_print_dtable_stats): Cast arguments to long as intended.
1349 2008-05-30 Julian Brown <julian@codesourcery.com>
1351 * exception.c (__objc_exception_class): Initialise as constant
1352 array for ARM EABI. Change macro to static const for non-ARM EABI.
1353 (ObjcException): Add note about structure layout. Remove landingPad
1354 and handlerSwitchValue for ARM EABI.
1355 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1357 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1358 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1359 ARM EABI unwinding support.
1360 (objc_exception_throw): Use memcpy to initialise exception class.
1362 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1364 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1365 (rs6000_special_round_type_align): Update.
1367 2008-05-09 Julian Brown <julian@codesourcery.com>
1369 * Makefile.in (LTLDFLAGS): New.
1370 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1372 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1375 * aclocal.m4: Regenerate.
1376 * configure: Regenerate.
1378 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1380 * configure: Regenerate.
1382 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1384 * configure.ac: Don't run config-ml.in directly.
1385 (multilib_arg): New.
1386 * configure: Regenerated.
1388 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1391 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1392 of _Unwind_Word for variables which are used in
1393 read_uleb128/read_sleb128.
1394 (PERSONALITY_FUNCTION): Likewise.
1396 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1398 * aclocal.m4: Regenerated.
1400 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1402 * configure.ac: Fix a typo in *-*-darwin clause.
1403 * configure: Regenerated.
1405 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1407 * configure.ac: Fix a typo.
1408 * configure: Regenerated.
1410 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1412 * configure: Regenerate.
1414 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1416 * Makefile.in: Replace all uses of libext with libsuffix.
1417 * configure.ac: Likewise.
1418 * configure: Regenerate.
1421 * Makefile.in: Remove all uses of $(libext).
1423 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1425 * Makefile.in: Remove all uses of $(libext).
1427 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1429 * configure: Regenerate.
1430 * aclocal.m4: Regenerate.
1432 2007-04-21 Andrew Ruder <andy@aeruder.net>
1434 * sendmsg.c (__objc_get_forward_imp): Call
1435 __objc_msg_forward2 for real.
1437 2007-04-09 Andrew Ruder <andy@aeruder.net>
1439 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1440 external libraries to provide a function that returns the real
1441 forwarding function based on both the selector and the receiver.
1442 * objc/objc-api.h: Define __objc_msg_forward2.
1444 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1446 * Makefile.in: Add dummy install-pdf target.
1448 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1450 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1453 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1455 * encoding.c (darwin_rs6000_special_round_type_align): New.
1457 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1459 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1460 * configure.ac: Use multi.m4 from aclocal rather than custom
1461 code. Use multi_basedir instead of toplevel_srcdir.
1462 * aclocal.m4: Regenerate.
1463 * configure: Regenerate.
1465 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1467 * Makefile.in: Added empty "pdf" target.
1469 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1471 * configure: Regenerate.
1473 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1475 * Makefile.in: Add install-html target. Add install-html to .PHONY
1477 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1480 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1482 2006-01-24 David Ayers <d.ayers@inode.at>
1485 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1486 and insure the new strings are '\0' termintated.
1488 2006-01-24 David Ayers <d.ayers@inode.at>
1491 * configure.ac: Add include directives for --enable-objc-gc.
1492 * Makefile.in: Ditto.
1493 * configure: Regenerate.
1495 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1496 instead of the local pointer to them.
1498 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1501 * objc/objc-api.c (_C_COMPLEX): New define.
1502 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1503 (objc_alignof_type): Likewise.
1504 (objc_skip_typespec): Likewise.
1506 2005-12-15 David Ayers <d.ayers@inode.at>
1509 * README (+load,+initialize): Fix documentation to reflect
1510 intended and implemented semantics for +load and +initialize.
1512 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1514 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1516 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1517 (rs6000_special_round_type_align): Update for the ABI fix.
1518 (objc_layout_finish_structure): Correct the encoding which is passed to
1521 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1524 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1525 but use the struct layout functions.
1526 (objc_alignof_type): Likewise.
1527 (objc_layout_structure): Handle _C_UNION_B also.
1528 (objc_layout_structure_next_member): Likewise.
1529 (objc_layout_finish_structure): Likewise.
1531 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1534 * objc/objc-api.h (_C_BOOL): New define.
1535 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1536 (objc_alignof_type): Likewise.
1537 (objc_skip_typespec): Likewise.
1539 2005-11-20 David Ayers <d.ayers@inode.at>
1542 * objc/hash.h: Remove deprecated hash API.
1543 * hash_compat.c: Remove.
1544 * Makefile.in: Remove reference to hash_compat.c.
1546 * configure.ac (VERSION): Bump library version to 2:0:0.
1547 * configure: Regenerate.
1549 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1552 * thr-objc.c (_XOPEN_SOURCE): Define.
1554 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1557 * objc/objc-api.h (struct objc_ivar): Move definition to
1560 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1561 Rasmus Hahn <rassahah@neofonie.de>
1564 * archive.c (objc_write_type): Correct the element offset.
1565 (objc_read_type): Likewise.
1567 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1569 * All files: Update FSF address.
1571 2005-08-13 Marcin Koziej <creep@desk.pl>
1572 Andrew Pinski <pinskia@physics.uc.edu>
1575 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1577 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1579 * Makefile.in (extra_ldflags_libobjc): New.
1580 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1581 (libobjc_gc$(libext).la): Likewise.
1582 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1583 "-Wl,-single_module".
1584 * configure: Regenerate.
1585 * linking.m (_objcInit): Remove.
1587 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1590 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1592 2005-06-08 David Ayers <d.ayers@inode.at>
1594 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1595 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1596 objc/runtime.h, objc/sarray.h, objc/thr.h,
1597 objc/typedstream.h: Do not include Objective-C headers as
1600 2005-06-07 David Ayers <d.ayers@inode.at>
1602 * archive.c, init.c, selector.c: Include hash.h.
1603 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1604 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1605 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1606 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1607 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1608 Include Objective-C headers with quotes and objc/ directory
1611 2005-05-19 Richard Henderson <rth@redhat.com>
1613 * exception.c: Revert last change.
1615 2005-05-19 David Ayers <d.ayers@inode.at>
1617 * exception.c: Include tsystem.h for unwind.h.
1619 2005-05-09 Mike Stump <mrs@apple.com>
1621 * configure: Regenerate.
1623 2005-04-12 Mike Stump <mrs@apple.com>
1625 * configure: Regenerate.
1627 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1629 * Makefile.in: Set gcc_version here.
1630 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1631 in definition of toolexeclibdir so that $(gcc_version) is expanded
1633 * aclocal.m4, configure: Regenerate.
1635 2005-03-03 David Ayers <d.ayers@inode.at>
1637 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1638 version reference. Correct typo.
1640 2005-03-02 David Ayers <d.ayers@inode.at>
1643 * Makefile.in (OBJS): Add hash_compat.lo.
1644 (OBJS_GC): Add hash_compat_gc.lo.
1645 (hash_compat_gc.lo): New target and rule.
1646 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1647 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1648 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1649 with objc_. Add deprecated non prefixed inlined versions.
1650 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1652 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1653 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1655 * hash_compat.c: New file.
1656 * archive.c: Update callers.
1658 * selector.c: Likewise.
1659 * libobjc.def: Add objc_ versions of hash functions.
1661 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1664 * Makefile.in (GTHREAD_FLAGS): Remove.
1665 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1666 * thr-objc.c: Include config.h.
1667 * configure.ac: Instead of looking at GCC's makefile, figure out if
1668 GTHREAD_FLAGS should be defined by looking at the `thread model'
1670 * configure: Regenerate.
1671 * config.h.in: Regenerate.
1673 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1676 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1677 (Determine CFLAGS for gthread): Use $host_subdir.
1678 * configure: Regenerate.
1679 * Makefile.in (host_subdir): New.
1682 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1685 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1687 Include limits.h and stdlib.h.
1688 Define BITS_PER_WORD.
1690 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1692 * selector.c (__objc_init_selector_tables): Add missing void to
1695 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1697 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1698 * configure, aclocal.m4: Regenerate.
1700 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1702 * configure: Regenerate for libtool change.
1704 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1706 * configure: Regenerate for libtool reversion.
1708 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1710 * configure: Regenerate for libtool change.
1712 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1714 * aclocal.m4, config.h.in: Regenerate.
1716 2004-10-08 Mike Stump <mrs@apple.com>
1717 Andrew Pinski <pinskia@physics.uc.edu>
1719 * aclocal.m4: Rename to ...
1720 * acinclude.m4: here and also use m4_include instead of sinclude.
1721 * aclocal.m4: Regenerate.
1722 * configure: Regenerate.
1723 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1724 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1726 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1728 * archive.c: Fix all the warnings about passing unsigned char*
1729 to char* and the other way too.
1731 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1734 * exception.c: Include config.h
1735 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1737 * configure.ac: Find out what exception handling code we use.
1738 * configure: Regenerate.
1739 * config.h.in: New file, regenerate.
1741 2004-09-16 Andrew Pinski <apinski@apple.com>
1743 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1745 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1747 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1748 ACX_NONCANONICAL_TARGET.
1749 * configure: Regenerate.
1751 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1753 * objc/sarray.h: Hoist include of assert.h near the top of file,
1754 and mark the remainder of the file 'extern "C"'.
1756 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1758 * objc/Object.h: Move includes out of extern "C" blocks.
1759 * objc/encoding.h: Likewise.
1760 * objc/hash.h: Likewise.
1761 * objc/objc-api.h: Likewise.
1762 * objc/runtime.h: Likewise.
1763 * objc/sarray.h: Likewise.
1764 * objc/typedstream.h: Likewise.
1766 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1768 * objc/NXConstStr.h: Update copyright date; bracket with
1769 'extern "C"' for C++ use; make include syntax consistent
1770 by using <...> instead of "..."; hoist <objc/...> includes
1771 above the 'extern "C"' block.
1772 * objc/Object.h: Likewise.
1773 * objc/Protocol.h: Likewise.
1774 * objc/encoding.h: Likewise.
1775 * objc/hash.h: Likewise.
1776 * objc/runtime.h: Likewise.
1777 * objc/sarray.h: Likewise.
1778 * objc/thr.h: Likewise.
1779 * objc/typedstream.h: Likewise.
1780 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1781 (objc_static_instances): For C++ case, do away with
1783 (objc_method): Hoist definition to file scope.
1784 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1785 class_get_instance_method, class_create_instance,
1786 class_get_class_name, class_get_instance_size,
1787 class_get_meta_class, class_get_super_class, class_get_version,
1788 class_is_class, class_is_meta_class, class_set_version,
1789 class_get_gc_object_type, class_ivar_set_gcinvisible,
1790 get_imp): Rename 'class' parameter to '_class'.
1791 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1792 * objc/objc.h: Update copyright date.
1793 (arglist_t): Provide a union tag.
1795 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1797 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1798 but instead use the attribute noreturn.
1800 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1802 * encoding.c: Rename target_flags with a #define to avoid
1803 conflict with a prior declaration.
1805 2004-06-24 Andrew Pinski <apinski@apple.com>
1807 * objc/encoding.h: Wrap the functions with extern "C" for C++
1809 * objc/hash.h: Likewise.
1810 * objc/objc-api.h: Likewise.
1811 * objc/objc-list.h: Likewise.
1812 * objc/runtime.h: Likewise.
1813 * objc/sarray.h: Likewise.
1814 * objc/thr.h: Likewise.
1815 * objc/typedstream.h: Likewise.
1818 2004-06-21 Nick Clifton <nickc@redhat.com>
1820 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1823 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1825 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1826 (exception_gc.lo): New.
1827 (OBJS_GC): Add exception_gc.lo.
1829 2004-06-17 Richard Henderson <rth@redhat.com>
1831 * exception.c: New file.
1832 * Makefile.in (exception.lo): New.
1835 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1837 * linking.m (_objcInit): New empty function
1840 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1842 * configure.ac: Support --enable-shared=libobjc.
1843 * configure: Regenerate.
1846 * configure.ac: Do not disable shared by default.
1847 * configure: Regenerate.
1849 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1851 * Protocol.m ([-isEqual:]): Small optimizations returning
1852 immediately if the argument is equal to self, and accessing
1853 the argument's name directly if it's a protocol.
1855 2004-06-03 David Ayers <d.ayers@inode.at>
1857 * Protocol.m ([-isEqual:]): Test the class of the argument.
1859 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1861 * configure.ac (includedir): Rename to ...
1863 * Makefile.in: s/includedir/includedirname/.
1866 * configure.ac (includedir): Set to "include"
1868 (libext) Set to empty except for Darwin.
1869 * configure: Regenerate
1870 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1871 s/include/$(includedir)/g.
1873 2004-05-25 Daniel Jacobowitz <drow@false.org>
1875 * Makefile.in: Add .NOEXPORT.
1877 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1879 Merge from the libobjc-branch
1880 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1882 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1884 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1886 * Makefile.in (OBJC_H): Add objc-deps.h.
1888 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1890 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1891 ([-hash], [-isEqual:]): New methods.
1893 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1895 * sarray.c (sarray_free): Add a better comment.
1897 2004-01-27 Adam Fedor <fedor@gnu.org>
1899 * hash.c (hash_add): Cast cachep to int.
1900 * selector.c (__sel_register_typed_name): Cast
1901 soffset_decode to int.
1903 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1905 * selector.c: Rename register_selectors_from_list to
1906 __objc_register_selectors_from_list. Update caller.
1907 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1908 while registering selectors. Use __sel_register_typed_name instead
1909 of sel_register_typed_name. Check for NULL method_name:s.
1910 (pool_alloc_selector): New function.
1911 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1912 selector structures.
1913 * sendmsg.c (class_add_method_list): Use
1914 __objc_register_selectors_from_list.
1915 * objc/runtime.h: Add __objc_register_selectors_from_list.
1917 2004-01-25 Adam Fedor <fedor@gnu.org>
1918 Nicola Pero <n.pero@mi.flashnet.it>
1919 Andrew Pinski <pinskia@physics.uc.edu>
1921 * objc/objc-decls.h: New file.
1922 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1923 (_objc_load_callback): Likewise.
1924 (_objc_object_alloc): Likewise.
1925 (_objc_object_copy): Likewise.
1926 (_objc_object_dispose): Likewise.
1928 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1930 * archive.c: s/__inline__/inline
1931 * sendmsg.c: Likewise.
1933 * encoding.c: Remove FIXME about the warning
1934 about unused variable.
1935 * sendmsg.c: Add a FIXME comment saying that
1936 this should be using libffi.
1938 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1941 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1943 * archive.c (objc_read_class): Initialize class_name.
1944 (objc_read_selector): Initialize selector_name.
1946 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1948 * Makefile.in (toolexecdir): Remove trailing space.
1950 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1953 * configure.ac: De-precious CC so multilibs work.
1954 * configure: Regenerate.
1956 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1958 * configure.ac: Restore toolexecdir.
1959 * Makefile.in: Restore toolexecdir.
1960 * configure: Regenerate.
1962 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1964 * configure.ac: Remove (unused) glibcpp_prefixdir.
1965 * configure: Regenerate.
1967 * configure.in: Rename to configure.ac.
1968 * Makefile.in: Update to match.
1970 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1971 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1972 * configure.in: Remove glibcpp_toolexecdir (unused).
1973 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1974 config.h or stamp-h (unused). Move one comment to the right place.
1975 * configure: Regenerate.
1976 * config.h.in: Remove (unused).
1978 * config.h.in: Regenerate with autoheader.
1980 * Makefile.in: Remove (unused) gcc_version_trigger.
1981 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1982 gcc_version_trigger.
1983 * configure: Regenerate.
1985 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1986 Sort file into sections. Remove dnl where appropriate. Fix
1988 * configure: Regenerate.
1990 * configure.in: Replace old AC_PROG_CC hack with new one.
1991 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1992 are no subdirectory output files, so this is fine). Change prereq
1994 * aclocal.m4: Include ../config/no-executables.m4.
1995 * configure: Regenerate with autoconf 2.59.
1997 * configure.in: Improve comments on gthread_cflags. Improve m4
1998 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1999 * configure: Regenerate.
2001 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2002 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2003 redundant checks for values of RANLIB, AR, INSTALL.
2004 * configure: Regenerate.
2006 * configure.in: Clean up handling of
2007 --enable-version-specific-runtime-libs and related variables;
2008 replace 'if test' with 'case' where reasonable. Fix comments.
2009 Remove useless libstdcxx_interface.
2010 * configure: Regenerate.
2012 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2013 Replace uses of target_alias with target_noncanonical.
2014 * aclocal.m4: Include ../config/acx.m4.
2015 * configure: Regenerate.
2016 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2017 Fix copyright statement.
2019 * configure.in: Hand-inline bulky, confusing macros from
2020 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2021 Update copyright notice. Remove stuff for automake, which isn't
2022 used in this directory. Remove emacs local variables.
2023 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2024 * configure: Regenerate.
2026 2004-03-16 Manfred Hollstein <mh@suse.com>
2028 * Makefile.in, configure.in, configure: Update copyright years.
2030 2004-03-15 Manfred Hollstein <mh@suse.com>
2032 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2033 definition from configure.in.
2034 * configure.in (PACKAGE): Add definition.
2035 (VERSION): Add definition; substitute it in output files.
2036 * configure: Re-generate.
2038 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2040 * objc/hash.h (hash_string, compare_strings):
2041 Add type-casts to make Objective-C++ happy.
2042 * objc/typedstream.h (objc_get_stream_class_version):
2043 Rename parameter from 'class' to 'class_name' to make
2044 Objective-C++ happy.
2046 2004-03-01 Michael Matz <matz@suse.de>
2048 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2050 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2052 * objc/objc-api.h (objc_super): The 'class' field shall
2053 be named 'super_class' #ifdef __cplusplus.
2055 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2058 * encoding.c (rs6000_special_round_type_align): Define.
2060 2004-01-14 Adam Fedor <fedor@gnu.org>
2063 * selector.c (__objc_register_instance_methods_to_class): Free
2064 new_list if not used.
2066 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2069 * sarray.c (sarray_free): Free array->is_copy_of latter.
2071 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2074 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2075 instance_methods if it's NULL.
2076 (descriptionForClassMethod): Likewise for class_methods.
2078 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2080 * Makefile.in (runtime-info.h): Remove -Wp.
2082 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2084 * Makefile.in (CC1OBJ): Remove.
2085 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2087 Use .m extension for temporary file.
2088 Remove assembler temp file.
2090 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2092 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2094 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2096 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2098 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2100 * configure: Regenerate.
2102 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2104 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2105 (libdir)/gcc-lib/ when installing.
2106 * configure: Regenerate.
2108 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2111 * sendmsg.c (get_imp): Fixed rare threading problem.
2112 (__objc_responds_to): Similar fixes.
2113 (objc_msg_lookup): Similar fixes.
2114 (__objc_init_install_dtable): Lock the runtime before checking if the
2117 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2119 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2120 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2121 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2122 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2123 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2124 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2125 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2126 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2127 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2128 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2129 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2131 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2132 Nicola Pero <n.pero@mi.flashnet.it>
2135 * init.c (class_superclass_of_class): New function.
2136 (create_tree_of_subclasses_inherited_from): Use it.
2137 (__objc_tree_insert_class): Likewise.
2138 (class_is_subclass_of_class): Likewise.
2140 2003-04-11 David Chad <davidc@freebsd.org>
2141 Loren J. Rittle <ljrittle@acm.org>
2144 * objc/hash.h (hash_string): Constify correctly.
2145 (compare_ptrs): Use direct compare.
2146 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2147 * objc/sarray.h: Global rename index to indx to avoid shadow.
2149 2003-03-12 Andreas Schwab <schwab@suse.de>
2151 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2152 glibcpp_toolexeclibdir.
2153 * configure: Rebuilt.
2155 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2157 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2159 * configure: Rebuilt.
2161 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2163 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2164 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2165 version_specific_libs is enabled.
2166 * configure: Rebuilt.
2168 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2170 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2171 (install-libs, install-headers): Prepend $(DESTDIR) to
2172 destination paths in all (un)installation commands.
2174 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2176 * thr-objc.c: Include coretypes.h and tm.h.
2178 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2180 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2182 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2184 * configure.in: Remove skip-this-dir support.
2185 * configure: Regenerate.
2187 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2189 * Makefile.in (all): Fix multilib parallel build.
2191 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2193 * sendmsg.c (nil_method): Declare not to take a variable number of
2195 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2196 (objc_msg_lookup_super): The same.
2198 2002-09-10 Jan Hubicka <jh@suse.cz>
2200 * nil_method.c (nil_method): No longer defined with variable
2203 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2205 * objc/encoding.h: Fix formatting.
2206 * objc/hash.h: Likewise.
2207 * objc/objc-api.h: Likewise.
2208 * objc/runtime.h: Likewise.
2209 * objc/thr.h: Likewise.
2210 * archive.c: Likewise.
2211 * class.c: Likewise.
2212 * encoding.c: Likewise.
2217 * nil_method.c: Likewise.
2218 * objects.c: Likewise.
2219 * sarray.c: Likewise.
2220 * selector.c: Likewise.
2221 * sendmsg.c: Likewise.
2222 * thr-mach.c: Likewise.
2225 2002-06-25 DJ Delorie <dj@redhat.com>
2227 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2228 GLIBCPP_TOPREL_CONFIGURE.
2229 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2230 * configure: Regenerate.
2232 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2234 * Object.m (forward, read, write): Fix unused parameter warnings.
2235 * encoding.c: Include <stdlib.h>.
2236 (target_flags): Mark with attribute unused.
2238 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2239 (__objc_generate_gc_type_description): Prototype.
2240 * selector.c (__objc_selector_max_index): Change to unsigned int.
2242 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2244 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2245 we always have a return value: if __objc_msg_forward does not
2246 supply a forwarding implementation, return the default
2247 __builtin_apply based one.
2249 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2251 * Object.m: Fix signed/unsigned warning.
2252 * Protocol.m: Likewise.
2253 * archive.c: Always include stdlib.h.
2254 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2255 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2256 Fix signed/unsigned warning.
2257 (objc_write_type, objc_read_type, objc_write_types,
2258 objc_read_types): Ensure ctype 8-bit safety.
2259 (__objc_no_write, __objc_no_read): Mark unused parameters.
2260 * class.c (class_table_setup): Specify void arg.
2261 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2262 objc_skip_typespec, objc_skip_offset,
2263 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2264 (objc_layout_structure_next_member): Ensure variables are
2266 * gc.c (__objc_generate_gc_type_description,
2267 class_ivar_set_gcinvisible): Mark unused parameters.
2268 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2270 (__objc_init_protocols) Fix signed/unsigned warning.
2271 * nil_method.c (nil_method): Mark unused parameters.
2272 * thr.h (objc_thread_callback): Specify void arg.
2273 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2274 signed/unsigned warning.
2275 (sarray_free): Fix formatting.
2276 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2277 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2279 2002-06-09 Andreas Jaeger <aj@suse.de>
2281 * encoding.c (objc_layout_structure_next_member): Remove unused
2284 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2286 * Makefile.in (SHELL): Set to @SHELL@.
2288 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2290 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2292 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2293 * configure: Regenerate.
2295 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2297 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2298 script entry, and set LD to it when configuring multilibs.
2299 * configure: Rebuilt.
2301 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2303 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2305 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2308 * objc/objc-api.h (struct objc_protocol_list): Change type of
2309 member count from int to size_t.
2311 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2314 * aclocal.m4: Replace with version copied from libstdc++-v3.
2315 * configure.in: Update for changes to aclocal and Makefile.
2316 * configure: Regenerate.
2317 * Makefile.in: Correct install of multilibs and shared libs, use
2318 INSTALL_DATA for include files.
2320 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2322 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2323 categories - when an unclaimed category was found, the loop was
2324 doing two steps forward instead of one, so that in certain cases
2325 it was failing to properly load all the categories. (Reported
2326 with fix by Alexander Malmberg <alexander@malmberg.org>).
2328 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2330 * encoding.c: Add target_flags.
2332 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2334 * objc/objc-api.h (_C_VECTOR): New.
2336 * encoding.c (VECTOR_TYPE): New.
2338 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2340 * class.c: Rewritten the class table to use optimized, lock-free
2341 lookup. This more than doubles the speed of class method
2342 invocations. (class_table_setup), (class_table_insert),
2343 (class_table_replace), (class_table_get_safe),
2344 (class_table_next), (class_table_print),
2345 (class_table_print_histogram): New functions.
2346 (__objc_init_class_tables): Use class_table_setup.
2347 (__objc_add_class_to_hash): Use class_table_get_safe and
2348 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2349 assert the existence of the table; do not lock the runtime; use
2350 class_table_get_safe. (objc_next_class): Use class_table_next.
2351 (__objc_resolve_class_links): Use class_table_next.
2352 (class_pose_as): Use class_table_replace.
2354 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2356 * gc.c: Removed the DEBUG declaration.
2358 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2360 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2361 rather than through objc_thread_id, to save a function call.
2362 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2365 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2367 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2368 to cast an id to a Class, which can not be done. Make the check
2369 by using CLS_ISMETA on the class pointer instead.
2370 (object_is_meta_class): Similar fix.
2372 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2374 * configure.in (AC_EXEEXT): Work around in case it expands to
2375 nothing, as in autoconf 2.50.
2376 * acinclude.m4: Likewise.
2377 * configure: Rebuilt.
2379 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2381 * THREADS: Explain that when we compile libobjc inside GCC, we
2382 always use thr-objc.c as a backend, which uses GCC's thread code.
2384 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2386 * init.c (__objc_send_message_in_list): When setting a new entry
2387 in __objc_load_methods use the method IMP as key, but check to see
2388 if the method is in the hashtable by looking at the IMP also.
2389 Also ... call the method after adding it to the hashtable rather
2390 than before ... thus preventing an obscure possibility of infinite
2391 recursion if a +load method itself loads a subclass.
2393 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2395 * init.c (__objc_send_message_in_list): When setting a new entry
2396 in __objc_load_methods use the method name as key, not the method
2397 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2399 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2401 * objc-features.texi: Move to ../gcc/objc.texi.
2403 * Makefile.in: Don't generate documentation from
2406 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2408 * fdl.texi: New file.
2409 * objc-features.texi: Simplify.
2410 * Makefile.in: Adjust accordingly.
2412 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2414 * objc-features.texi: Use the GFDL.
2416 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2418 * encoding.c (REAL_TYPE): Define.
2420 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2422 * encoding.c (TYPE_MODE): Define.
2424 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2426 * thr.c (objc_thread_add): New function.
2427 (objc_thread_remove): Ditto.
2428 * objc/thr.h: Declare them.
2429 * libobjc.def: Mention them.
2431 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2433 * objc-features.texi: Document the @compatibility_alias compiler
2434 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2436 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2438 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2440 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2442 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2443 we're not interested in the result and they might fail.
2444 * configure: Regenerated.
2446 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2448 * objc-features.texi: Use @email.
2450 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2452 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2455 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2457 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2458 determines the value dynamically.
2460 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2462 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2463 libraries to provide a function that returns the real forwarding
2464 function. This can alleviate problems __builtin_apply() and
2465 friends have on various platforms. (Solution suggested by Helge
2468 * objc/objc-api.h: Define __objc_msg_forward.
2470 * sendmsg.c: Define gen_rtx_REG.
2472 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2474 * thr-rtems.c: New file. Stub to compile.
2476 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2478 * configure: Rebuilt with new libtool.m4.
2480 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2482 * configure.in: Create a config.h file. Check for <sched.h>.
2483 * configure: Regenerate.
2485 * config.h.in: Check for <sched.h>.
2487 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2489 * configure: Regenerate after change to ../libtool.m4.
2491 2000-08-14 Andreas Schwab <schwab@suse.de>
2493 * objc-features.texi (Top): Move @menu at end of node.
2495 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2497 * objc-features.texi: Move @node Top before @menu.
2499 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2501 * objc-features.texi: Documented the new -fconstant-string-class
2504 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2506 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2507 improve the Posix thread support for Objective-C.
2509 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2511 * aclocal.m4: Replace copy of ../libtool.m4 with
2512 sinclude(../libtool.m4).
2514 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2516 * configure.in: Added libtool support; build shared libraries
2517 if --enable-shared was passed on command line.
2518 * Makefile.in: Modified most compilation commands to use libtool.
2519 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2520 libtool distribution.
2522 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2524 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2525 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2528 2000-05-12 H.J. Lu (hjl@gnu.org)
2530 * Makefile.in (GTHREAD_FLAGS): New.
2531 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2532 (OBJC_THREAD_FILE): Changed to thr-objc.
2534 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2536 (OBJC_THREAD_FILE): Removed.
2540 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2542 * objc/hash.h: Include string.h.
2544 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2546 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2548 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2550 * Object.m (strlen): Provide prototype on all 64bit platforms,
2552 * sarray.c (memcpy): Likewise.
2553 * encoding.c (objc_layout_finish_structure): Don't use
2554 ROUND_TYPE_ALIGN on sparc.
2556 * encoding.c (objc_layout_structure_next_member): Do the whole
2557 procedure even for the first member, so that we get correct
2560 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2562 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2565 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2567 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2569 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2571 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2573 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2575 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2576 the compiler when building C code.
2578 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2580 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2581 libdir, libsubdir and tooldir.
2583 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2585 * init.c (__objc_force_linking): Make global.
2587 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2589 * configure.in (AC_EXEEXT): Remove call.
2590 (compiler_name): Explicitly check with no extension and .exe
2592 * configure: Regenerate.
2594 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2596 * Makefile.in (CC1OBJ): Define in terms of CC.
2597 (runtime-info.h): Use.
2599 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2601 * objc-features.texi: Updated the URL to Boehm's GC page.
2603 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2605 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2606 the char as being signed (patch from Daniel Jacobowitz
2609 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2611 * configure.in (AC_PREREQ): Update to 2.13.
2612 (AC_EXEEXT): Call to find possible file extension.
2613 (compiler_name): Use.
2614 * configure: Regenerate.
2616 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2618 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2620 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2622 * configure.in (thread_file): Correct and simplify code to find
2624 * configure: Rebuilt.
2626 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2628 * configure.in (compiler_name): Add check to detect if this
2629 language's compiler has been built.
2630 * configure: Regenerate.
2632 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2634 * configure.in: Use AC_PREREQ(2.12.1).
2636 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2638 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2640 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2642 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2644 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2646 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2648 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2650 * objc-features.texi (Top): Changed the email address.
2651 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2653 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2655 * encoding.c: Redefine get_inner_array_type to get the first entry
2658 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2660 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2661 (objc_get_type_qualifiers): Similarly.
2662 * objc/encoding.h (_C_BYREF): Define.
2665 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2667 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2668 works out on 64-bit systems.
2670 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2672 * Makefile.in (INCLUDES): Make it multilib-friendly.
2674 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2676 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2678 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2679 Jeffrey A Law (law@cygnus.com)
2681 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2682 (FLAGS_TO_PASS): Added.
2683 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2685 * archive.c: Change config.h to tconfig.h.
2687 * configure.in: Find gcc's object directory even for multilibs.
2689 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2691 * configure.in: Escape ^ in grep string.
2692 * configure: Rebuilt.
2694 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2696 * All .h files pushed down into the objc/ subdirectory.
2697 * Makefile.in (copy_headers): Corresponding changes.
2698 * configure.in (AC_INIT): Corresponding changes.
2699 * configure: Rebuilt.
2701 1998-09-30 Ben Elliston <bje@cygnus.com>
2702 Jeff Law <law@cygnus.com>
2704 * Makefile.in: Rewrite.
2706 * configure.in: Likewise.
2708 * configure: Regenerate.
2710 * All .c files. Remove "objc" prefix when including objc header
2711 files. Include tconfig.h, not ../tconfig.h.
2713 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2715 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2716 (get_inner_array_type): Define.
2718 1998-09-21 Ben Elliston <bje@cygnus.com>
2720 * New directory. Moved files from ../gcc/objc.