1 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
3 * objc-private/accessors.h: Removed 'extern "C"' guards. This
4 file is never compiled with C++.
5 * objc-private/hash.h: Same change.
6 * objc-private/objc-list.h: Same change.
7 * objc-private/objc-sync.h: Same change.
8 * objc-private/protocols.h: Same change.
9 * objc-private/runtime.h: Same change.
10 * objc-private/sarray.h: Same change.
11 * objc-private/selector.h: Same change.
13 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
16 * class.c (__objc_add_class_to_hash): Return YES if the class was
17 added, and NO if it already existed.
18 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
19 NO, then abort the program with an error message.
20 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
23 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
25 * init.c (_objc_load_callback): Initialize with 0.
26 (__objc_call_callback): Renamed to __objc_call_load_callback.
27 Check _objc_load_callback only once, and if it is not set, return
29 (objc_send_load): Updated call to __objc_call_callback.
31 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
34 * init.c (__objc_send_message_in_list): Renamed to
35 __objc_send_load_using_method_list. Do not take an 'op' argument.
36 Register the 'load' selector if needed.
37 (__objc_send_load): Do not register the 'load' selector. Updated
38 call to __objc_send_message_in_list.
39 (__objc_create_classes_tree): Add the class of any claimed
40 category that was loaded in the module to the list of classes for
41 which we try to execute +load.
43 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
45 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
47 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
48 a pointer using DEBUG_PRINTF.
50 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
53 * selector.c (__sel_register_typed_name): When registering a new
54 selector with the same name as an existing one, reuse the existing
55 name string. Also updated types, casts and comments in the whole
58 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
60 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
61 to be 'struct objc_selector *' and not 'SEL'.
62 * init.c (__objc_exec_class): Call
63 __objc_register_selectors_from_module instead of iterating over
64 each selector and calling __sel_register_typed_name for each.
65 * objc-private/selector.h: Declare
66 __objc_register_selectors_from_module instead of
67 __sel_register_typed_name.
68 * selector.c (__objc_register_selectors_from_module): New.
69 (__sel_register_typed_name): Made static.
71 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
73 * linking.m: Do not include objc/NXConstStr.h.
75 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
77 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
78 * objc-private/common.h (DEBUG_PRINTF): To here.
79 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
81 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
83 * hash.c: Tidied up comments and indentation. No code changes.
85 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
88 * accessors.m (objc_getProperty): If not atomic, do not
89 retain/autorelease the returned value.
91 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
93 * objc-private/runtime.h (__objc_selector_max_index,
94 __objc_init_selector_tables, __objc_register_selectors_from_class,
95 __objc_register_selectors_from_list,
96 __objc_register_selectors_from_description_list): Moved to ...
97 * objc-private/selector.h: ... here.
99 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
101 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
102 (__objc_print_dtable_stats): Removed.
103 (__sel_register_typed_name): Removed.
104 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
106 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
108 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
109 if appropriate, after loading the module.
111 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
113 * sendmsg.c (method_setImplementation): Do not declare.
115 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
117 * objc/message.h: Updated comments.
118 * objc/runtime.h: Updated comments.
120 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
122 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
123 * protocols.c: Updated all calls to objc_lookupClass to call
124 objc_lookUpClass instead.
125 * sendmsg.c (objc_lookupClass): Do not declare.
126 (get_imp): Update call to objc_lookupClass to call
127 objc_lookUpClass instead.
128 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
130 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
132 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
133 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
134 define. Updated comments.
136 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
138 * objc/encoding.h: Updated comments.
139 * objc/runtime.h: Updated comments.
140 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
141 (objc_sizeof_type): Same.
142 (objc_alignof_type): Same.
143 (objc_aligned_size): Same.
144 (objc_promoted_size): Same.
145 (objc_skip_type_qualifiers): Same.
146 (objc_skip_typespec): Same.
147 (objc_skip_offset): Same.
148 (objc_skip_argspec): Same.
149 (objc_get_type_qualifiers): Same.
150 (objc_layout_structure): Same.
151 (objc_layout_structure_next_member): Same.
152 (objc_layout_finish_structure): Same.
153 (objc_layout_structure_get_info): Same.
155 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
157 * init.c: Updated comments.
158 * objc/objc-api.h: Updated comments.
159 * objc/runtime.h (_objc_load_callback): Declare.
161 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
163 * objc/Object.h: Include deprecated/typedstream.h and
164 deprecated/hash.h instead of typedstream.h. Updated comments.
166 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
168 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
169 * objc/deprecated/objc_msg_sendv.h: New.
170 * objc/message.h: Do not define retval_t, apply_t, arglist,
171 arglist_t, objc_msg_sendv, now in
172 objc/deprecated/objc_msg_sendv.h.
173 * objc/objc.h: Do not include message.h; include
174 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
175 * sendmsg.c: Include objc/message.h.
176 * thr.c: Include objc/message.h.
178 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
180 * objc/objc-exception.h: Include objc-decls.h. Mark all
181 functions with objc_EXPORT.
182 * objc/objc-sync.h: Same change.
184 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
186 * Protocol.m: Moved all methods, with the exception of -isEqual:,
187 into the 'Deprecated' category.
188 * objc/Protocol.h: Removed all methods, moved to
189 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
190 * objc/deprecated/Protocol.h: New.
191 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
193 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
195 * init.c: Include objc-private/selector.h. Do not declare
196 __sel_register_typed_name.
197 * objc-private/selector.h (__sel_register_typed_name): Declare.
198 * selector.c: Include objc-private/selector.h.
200 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
202 * class.c: Tidied up comments and indentation. No code changes.
208 * objc-foreach.c: Same.
215 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
217 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
218 instead of objc/objc-api.h.
219 (init_check_module_version): Take a 'struct objc_module *'
220 argument instead of 'Module_t'. Use 'struct objc_module *'
221 instead of 'Module_t'.
222 (__objc_created_classes_tree): Take a 'struct objc_module *'
223 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
225 (__objc_call_callback): Take a 'struct objc_module *' argument
226 instead of 'Module_t'; use 'struct objc_symtab *' instead of
227 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
228 (_objc_load_callback): Take a 'struct objc_category *' argument
229 instead of 'Category *'.
230 (class_superclass_of_class): Use objc_getClass() instead of
232 (create_tree_of_subclasses_inherited_from): Same change (also, use
233 an explicit 'if' instead of '?').
234 (objc_init_statics): Same change.
235 (objc_send_load): Same change.
236 (__objc_init_protocol): same change.
237 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
238 argument instead of 'MethodList_t'. Use 'struct objc_method *'
239 instead of 'Method_t'.
240 (__objc_send_load): Use 'struct objc_method_list *' instead of
241 'MethodList_t'. Use sel_registerName() instead of
243 (__objc_exec_class): Take a 'struct objc_module *' argument
244 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
245 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
246 Use 'struct objc_category *' instead of 'Category_t'.
248 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
250 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
251 Include objc-private/module-abi-8.h and objc-private/selector.h
252 instead of objc/encoding.h.
253 (objc_msg_lookup_super): Use super->super_class instead of
255 (method_get_first_argument, method_get_next_argument): Declare
257 (class_get_instance_method): Declare before using.
258 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
259 (__objc_init_dispatch_tables, __objc_send_initialize): Use
260 sel_registerName() instead of sel_register_name().
261 (__objc_forward): Use sel_getName() instead of sel_get_name().
262 (objc_get_uninstalled_dtable): Use 'void' as argument.
263 * objc-private/selector.h: New.
265 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
267 * objc/message.h (objc_super): When using the modern API, do not
268 define Super and Super_t, and always use 'super_class' for the
270 (objc_msg_lookup_super): Updated prototype to use 'struct
271 objc_super *' instead of 'Super_t'.
272 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
273 'struct objc_super *' instead of 'Super_t'.
275 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
277 * objc/message.h: Update comments, reindented code and moved
278 deprecated types and functions at the end of the file. No code
281 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
283 * ivars.c (class_addIvar): Use the 'size' argument instead of
284 trying to calculate it using objc_sizeof_type().
285 * objc/runtime.h (class_addIvar): Updated comments.
287 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
289 * sendmsg.c: Reindented some code and tidied up comments. No
292 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
294 * objc/Object.h: Moved all the methods, with the exception of
295 -class and -isEqual:, into ...
296 * objc/deprecated/Object.h: here.
297 * Object.m: Moved all the methods, with the exception of -class
298 and -isEqual: into the 'Deprecated' category.
300 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
302 * objects.c (object_copy): Do not #undef as we are no longer
303 including objc/objc-api.h.
304 * selector.c: Include objc/runtime.h and
305 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
306 objc/encoding.h. Updated
307 (__objc_register_selectors_from_class): Use struct
308 objc_method_list * instead of MethodList_t.
309 (__objc_register_selectors_from_list): Use Method instead of
311 (struct objc_method_description_list): Do not define here.
312 (__objc_register_instance_methods_to_class): Use struct
313 objc_method_list * instead of MethodList_t and Method instead of
316 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
318 * selector.c: Reindented some code and tidied up comments. No
321 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
323 * encoding.c (_darwin_rs6000_special_round_type_align): New.
324 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
326 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
328 * sendmsg.c (selector_resolveClassMethod): New.
329 (selector_resolveInstanceMethod): New.
330 (__objc_resolve_class_method): New.
331 (__objc_resolve_instance_method): New.
332 (get_imp): Call __objc_resolve_class_method or
333 __objc_resolve_instance_method at the appropriate time.
334 (objc_msg_lookup): Same.
335 (class_getClassMethod): Same.
336 (class_getInstanceMethod): Same.
337 (__objc_init_dispatch_tables): Initialize
338 selector_resolveClassMethod and selector_resolveInstanceMethod.
339 * objc/runtime.h: Updated documentation of class_getClassMethod,
340 class_getInstanceMethod and class_getMethodImplementation.
342 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
344 * objc-private/module-abi-8.h (struct objc_symtab): Updated
345 description of sel_ref_cnt and refs.
346 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
348 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
352 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
353 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
354 * aclocal.m4: Regenerate.
355 * configure: Regenerate.
357 2010-12-03 Matthias Klose <doko@ubuntu.com>
359 * configure.ac (VERSION): Bump the version to 3:0:0.
360 * configure: Regenerate.
362 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
364 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
365 pass nil as the receiver since we don't know the receiver at this
368 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
370 * ivars.c: Include stdlib.h.
371 * protocols.c: Same change.
373 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
375 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
377 * init.c: Include objc-private/accessors.h.
378 (__objc_exec_class): Call __objc_accessors_init.
379 * objc-private/accessors.h: New.
381 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
383 * objc/message.h: Moved initial includes outside of extern "C".
384 * objc/runtime.h: Add extern "C" for Objective-C++.
386 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
388 * init.c (objc_send_load): Do not wait for NXConstantString to be
389 registered before executing +load. There is no point if
390 -fconstant-string-class=xxx is used when compiling all modules,
391 as is the case for almost all users.
392 * linking.m (__objc_linking): Do not try to forcefully link in
395 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
397 * objc/runtime.h: Updated comments.
398 (class_addMethod): New.
399 (class_addIvar): New.
400 (class_replaceMethod): New.
401 (objc_allocateClassPair): New.
402 (objc_registerClassPair): New.
403 (objc_disposeClassPair): New.
404 * class.c (objc_allocateClassPair): New.
405 (objc_registerClassPair): New.
406 (objc_disposeClassPair): New.
407 (class_getSuperclass): Return Nil if a class is in construction.
408 * init.c (__objc_exec_class): Call __objc_init_class.
409 (__objc_init_class): New.
410 * ivars.c (class_copyIvarList): Return NULL if class is in
411 construction. Do not lock the runtime mutex.
412 (class_getInstanceVariable): Return NULL if class is in
413 construction. Do not lock the runtime mutex.
414 (class_addIvar): New.
415 * sendmsg.c (class_addMethod): New.
416 (class_replaceMethod): New.
417 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
418 (_CLS_IN_CONSTRUCTION): New.
419 (CLS_IS_IN_CONSTRUCTION): New.
420 (CLS_SET_IN_CONSTRUCTION): New.
421 (CLS_SET_NOT_IN_CONSTRUCTION): New.
422 * objc-private/runtime.h (__objc_init_class): New.
424 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
426 * class.c (class_getSuperclass): Call __objc_resolve_class_links
427 if the class is not resolved yet.
428 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
430 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
432 * objc/runtime.h (class_getIvarLayout): New.
433 (class_getWeakIvarLayout): New.
434 (class_setIvarLayout): New.
435 (class_setWeakIvarLayout): New.
436 * ivars.c (class_getIvarLayout): New.
437 (class_getWeakIvarLayout): New.
438 (class_setIvarLayout): New.
439 (class_setWeakIvarLayout): New.
441 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
443 * objc/runtime.h (class_copyPropertyList): New.
444 (class_getProperty): New.
445 (property_getAttributes): New.
446 (property_getName): New.
447 * ivars.c (class_copyPropertyList): New.
448 (class_getProperty): New.
449 (property_getAttributes): New.
450 (property_getName): New.
452 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
454 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
455 * class.c (__objc_update_classes_with_methods): New.
456 (objc_getClassList): Do not lock the class lock.
457 * methods.c (method_exchangeImplementations): New.
458 (method_setImplementation): New.
459 * objc/runtime.h (method_setImplementation): New.
460 (method_exchangeImplementations): New.
462 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
464 * Protocol.m: Include objc/runtime.h and
465 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
466 repeat Protocol's instance variables.
467 (struct objc_method_description_list): Do not define here.
468 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
469 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
470 selectors directly instead of getting names and then using strcmp.
471 ([descriptionForClassMethod:]): Same change.
472 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
473 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
474 to compare selectors directly instead of getting names and then
476 * objc/Protocol.h: Updated comments.
478 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
480 * init.c (__objc_init_protocol): New function which fixes up a
481 protocol's class pointer, registers it with the runtime, register
482 all protocol selectors and registers associated protocols too.
483 (objc_init_statics): Detect if we are initializing protocols, and
484 if so, use __objc_init_protocol instead of only fixing up the
486 (__objc_init_protocls): Use __objc_init_protocol.
487 * objc-private/module-abi-8.h: Updated comments.
488 * objc-private/runtime.h
489 (__objc_register_selectors_from_description_list): New.
490 * selector.c (__objc_register_selectors_from_description_list):
491 New. (struct objc_method_description_list): Declare.
492 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
493 when accessing the name of a method, which is now correctly a SEL.
494 ([-descriptionForClassMethod:]): Same change.
495 * protocols.c (protocol_getMethodDescription): Same change.
496 * objc/runtime.h: Updated comments.
497 (sel_registerTypedName): Fixed typo in function name.
499 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
502 * init.c (objc_init_statics): Do not skip the initialization of a
503 statics list if the first object has already been initialized; in
504 the case of Protocols, while the first one may have been
505 initialized, some others may not have been initialized yet.
507 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
509 * Makefile.in (OBJC_DEPRECATED_H): Added
510 objc_get_uninstalled_dtable, objc_object_alloc.h and
511 struct_objc_static_instances.h.
513 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
515 * encoding.c (method_copyReturnType): New.
516 (method_copyArgumentType): New.
517 (method_getReturnType): New.
518 (method_getArgumentType): New.
519 * methods.c (method_getDescription): New.
520 * objc/runtime.h (method_copyReturnType): New.
521 (method_copyArgumentType): New.
522 (method_getReturnType): New.
523 (method_getArgumentType): New.
524 (method_getDescription): New.
526 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
528 * encoding.c: Tidied up comments.
529 (objc_skip_variable_name): New static inline function.
530 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
531 the same code over and over.
532 (objc_alignof_type): Same.
533 (objc_aligned_size): Same.
534 (objc_promoted_size): Same.
535 (objc_skip_typespec): Same.
536 (objc_layout_structure_next_member): Same.
537 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
538 historical bug where objc_skip_offset would skip one byte even if
539 there is no offset: check that the first offset digit is actually
540 a digit before skipping it.
541 (objc_skip_type_qualifiers): Mark as inline.
542 (objc_skip_typespec): Mark as inline.
544 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
546 * Makefile.in (C_SOURCE_FILES): Added methods.c.
547 * encoding.c (method_getNumberOfArguments): New.
548 (method_get_number_of_arguments): Call
549 method_getNumberOfArguments.
550 * ivars.c (ivar_getName): Check for NULL variable argument.
551 (ivar_getOffset): Check for NULL variable argument.
552 (ivar_getTypeEncoding): Check for NULL variable argument.
553 (class_copyIvarList): New.
555 * protocols.c (class_copyProtocolList): Check for Nil class_
557 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
558 'struct objc_method_list *' instead of MethodList_t.
559 (class_getMethodImplementation): New.
560 (class_respondsToSelector): New.
561 (class_getInstanceMethod): New.
562 (class_getClassMethod): New.
563 * objc/runtime.h: Updated comments.
564 (class_copyIvarList): New.
565 (class_getInstanceMethod): New.
566 (class_getClassMethod): New.
567 (class_getMethodImplementation): New.
568 (class_respondsToSelector): New.
569 (method_getName): New.
570 (method_getImplementation): New.
571 (method_getTypeEncoding): New.
572 (class_copyMethodList): New.
573 (method_getNumberOfArguments): New.
575 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
577 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
578 instead of objc/objc-api.h.
579 (objc_get_unknown_class_handler): Do not define.
580 (class_isMetaClass): New.
581 (class_getSuperclass): New.
582 (class_getVersion): New.
583 (class_setVersion): New.
584 (class_getInstanceSize): New.
585 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
586 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
587 objc_get_super_class.
588 (get_ttype_entry): Use objc_getRequiredClass instead of
590 * ivars.c (class_getClassVariable): New.
591 * objects.c: Include objc/runtime.h, objc/thr.h and
592 objc-private/module-abi-8.h instead of objc/objc-api.h
593 * objc/runtime.h (class_getClassVariable): New.
594 (class_isMetaClass): New.
595 (class_getSuperclass): New.
596 (class_getVersion): New.
597 (class_setVersion): New.
598 (class_getInstanceSize): New.
599 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
602 (__CLS_ISINFO): Same.
603 (__CLS_SETINFO): Same.
606 (CLS_ISRESOLV): Same.
607 (CLS_SETRESOLV): Same.
608 (CLS_ISINITIALIZED): Same.
609 (CLS_SETINITIALIZED): Same.
610 (CLS_GETNUMBER): Same.
611 (CLS_SETNUMBER): Same.
613 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
615 * archive.c: Do not include objc/objc.h.
616 * class.c: Do not include objc/objc.h.
617 * encoding.c: Include objc/runtime.h, ctype.h and
618 objc-private/module-abi-8.h instead of objc/objc-api.h and
620 * error.c: Do not include objc/objc.h.
621 * gc.c: Include tconfig.h and objc/encoding.h only if
623 * hash.c: Include objc/runtime.h and objc/thr.h instead of
624 objc/objc-api.h. Do not include objc/objc.h.
625 * init.c: Do not include objc/objc.h.
626 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
627 objc/thr.h instead of objc/objc-api.h. Do not include
629 * linking.m: Tidied comment.
630 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
631 Do not include objc/objc.h.
632 * objects.c: Do not include objc/objc.h.
633 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
634 * protocols.c: Do not include objc/objc.h.
635 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
636 not include objc/objc.h.
637 * selector.c: Do not include objc/objc.h.
638 * sendmsg.c: Do not include objc/objc.h.
639 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
640 Do not include objc/objc.h.
641 * objc/objc-decls.h: Reindented code.
642 * objc/runtime.h Include objc-decls.h. Updated comments.
644 (objc_atomic_malloc): New.
648 * objc-private/runtime.h: Updated comments.
650 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
652 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
653 * objc-private/protocols.h: New.
655 * init.c: Include objc-private/protocols.h.
656 (__objc_exec_class): Call __objc_protocols_init on startup.
657 (__objc_init_protocols): Call __objc_protocols_add_protocol.
658 * objc-private/runtime.h: Use (struct objc_method_list *) instead
659 of MethodList_t, and (struct objc_method *) instead of Method_t.
660 * objc/deprecated/struct_objc_class.h: Define
661 __objc_STRUCT_OBJC_CLASS_defined.
662 * objc-private/module-abi-8.h (struct
663 objc_method_description_list): New.
664 (struct objc_class): Only define if
665 __objc_STRUCT_OBJC_CLASS_defined is undefined.
666 * objc/runtime.h (class_getName): New.
667 (objc_getProtocol): New.
668 (objc_copyProtocolList): New.
669 (class_addProtocol): New.
670 (class_conformsToProtocol): New.
671 (class_copyProtocolList): New.
672 (protocol_conformsToProtocol): New.
673 (protocol_isEqual): New.
674 (protocol_getName): New.
675 (protocol_getMethodDescription): New.
676 (protocol_copyMethodDescriptionList): New.
677 (protocol_getProperty): New.
678 (protocol_copyPropertyList): New.
679 (protocol_copyProtocolList): New.
680 * class.c (class_getName): New.
681 * selector.c (sel_isEqual): New.
683 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
685 * selector.c (sel_getName): Return "<null selector>" for a NULL
687 (sel_get_name): Return 0 for a NULL argument.
688 * objc/runtime.h (sel_getName): Updated documentation.
690 * objc-private/hash.h (class_hash_table): Unused declaration
692 (module_hash_table): Same.
693 * objc/deprecated/hash.h: Same changes.
695 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
697 * class.c (objc_getClassList): New.
698 (objc_getRequiredClass): New.
699 (objc_getMetaClass): New.
700 (objc_lookupClass): New.
701 (objc_getClass): New.
702 (__objc_get_unknown_class_handler): New.
703 (objc_setGetUnknownClassHandler): New.
704 (objc_get_class): Use __objc_get_unknown_class_handler.
705 (objc_lookup_class): Call objc_getClass.
706 * objc/objc-api.h: Updated comment and copyright notice.
707 * objc/runtime.h: Updated comments.
708 (objc_getClass): New.
709 (objc_lookupClass): New.
710 (objc_getMetaClass): New.
711 (objc_getRequiredClass): New.
712 (objc_getClassList): New.
713 (objc_setGetUnknownClassHandler): New.
714 (objc_get_unknown_class_handler): New.
715 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
716 instead of __objc_runtime_INCLUDE_GNU as include guard.
717 * objc-private/error.h (_objc_abort): Mark as noreturn.
719 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
721 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
723 * objc/objc.h: Updated comments.
724 * objc/runtime.h (object_getClass): New.
725 (object_getClassName): New.
726 (object_setClass): New.
727 (class_getInstanceVariable): New.
728 (object_getIndexedIvars): New.
729 (object_getInstanceVariable): New.
730 (object_setInstanceVariable): New.
731 (object_getIvar): New.
732 (object_setIvar): New.
734 (ivar_getOffset): New.
735 (ivar_getTypeEncoding): New.
736 * objc-private/module-abi-8.h (struct objc_class): Added.
737 * objects.c (object_getClassName): New.
738 (object_setClass): New.
740 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
742 * objc/objc.h: Updated comments.
743 * objc/objc-api.h: (object_copy): Added one argument; use a
744 #define to maintain backwards-compatibility. Moved
745 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
746 objc_get_uninstalled_dtable into
747 objc/deprecated/objc_get_uninstalled_dtable.h and
748 objc/deprecated/objc_object_alloc.h. Include these files.
749 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
750 * objc/deprecated/objc_object_alloc.h: New.
751 * objc/runtime.h (set_getName): New.
754 (sel_registerName): New.
755 (sel_registerTypedName): New.
757 (class_createInstance): New.
759 (object_dispose): New.
760 * objects.c: Do not include tconfig.h. Include gc_typed.h if
761 building the garbage collection version.
762 (__objc_object_alloc): Removed.
763 (__objc_object_copy): Removed.
764 (__objc_object_dispose): Removed.
765 (class_createInstance): New from code in class_create_instance.
766 Cast second argument of GC_malloc_explicitly_typed. Use
767 objc_calloc. Do not call _objc_object_alloc.
768 (class_create_instance): Call class_createInstance.
769 (object_copy): Added extraBytes argument. Do not call
771 (object_dispose): Do not call _objc_object_dispose.
772 * memory.c (objc_free): When using garbage collection, mark the
774 * selector.c (sel_getName): New.
775 (sel_get_name): Call sel_getName.
777 (sel_get_type): Call sel_getType.
778 (sel_registerName): New.
779 (sel_register_name): Call sel_registerName.
780 (sel_registerTypedName): New.
781 (sel_register_typed_name): Call sel_registerTypedName.
783 (sel_get_uid): Call sel_getUid.
785 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
787 * objc/objc-api.h: Define Method, Method_t, Category and
788 Category_t. Prevent including this file at the same time as
789 objc/runtime.h. Updated comments.
790 * objc/deprecated/struct_objc_method.h: Do not define Method,
792 * objc/deprecated/struct_objc_category.h: Do not define Category,
794 * objc-private/module-abi-8.h: New file containing a copy of all
795 the structure definitions. Not used yet.
796 * objc/encoding.h (objc_aligned_size): Removed duplicate
797 declaration. Updated comments.
798 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
799 Category, struct objc_method_description, _C_ID and similar,
800 _C_CONST and similar and _F_CONST and similar. Added
801 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
802 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
803 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
804 struct objc_struct_layout, objc_layout_structure,
805 objc_layout_structure_next_member, objc_layout_finish_structure,
806 objc_layout_structure_get_info. Prevent including this file at
807 the same time as objc/objc-api.h.
809 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
811 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
812 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
813 struct_objc_method_list.h, struct_objc_module.h,
814 struct_objc_protocol_list.h, struct_objc_symtab.h.
815 * objc/deprecated/struct_objc_category.h: New.
816 * objc/deprecated/struct_objc_ivar.h: New.
817 * objc/deprecated/struct_objc_ivar_list.h: New.
818 * objc/deprecated/struct_objc_method.h: New.
819 * objc/deprecated/struct_objc_method_list.h: New.
820 * objc/deprecated/struct_objc_module.h: New.
821 * objc/deprecated/struct_objc_protocol_list.h: New.
822 * objc/deprecated/struct_objc_symtab.h: New.
823 * objc/deprecated/struct_objc_static_instances.h: New.
824 * objc/objc-api.h: Definitions of deprecated structures moved into
825 the above header fragment files in objc/deprecated/. Include the
826 files instead of definition the structures here. Updated
828 * objc/runtime.h: Updated comments. Do not include objc-api.h.
829 (objc_set_enumeration_mutation_handler): Renamed to
830 objc_setEnumerationMutationHandler.
831 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
832 to objc_setEnumerationMutationHandler.
833 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
834 objc_setExceptionMatcher.
835 (objc_set_uncaught_exception_handler): Renamed to
836 objc_setUncaughtExceptionHandler.
837 * exception.c: Same changes.
839 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
841 * objc-sync.c: Include objc-private/common.h.
843 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
845 * objc-foreach.c: Include objc-private/common.h.
846 * objc/deprecated/METHOD_NULL.h: New file.
847 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
848 defining METHOD_NULL here.
849 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
850 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
852 ([-respondsTo:]): Same change.
853 * objc/objc-api.h (method_get_imp): Converted it into a normal
854 function so that we can hide the internals of struct objc_method.
855 * sendmsg.c (method_get_imp): Implemented.
857 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
859 * objc/objc-api.h (struct objc_super, Super, Super_t,
860 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
861 objc_msg_forward2): Declarations moved to objc/message.h. Include
863 * objc/message.h: Added such declarations; updated comments.
865 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
867 Implemented fast enumeration for Objective-C.
868 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
869 (OBJC_H): Added runtime.h
870 * objc-foreach.c: New file.
871 * objc/runtime.h: New file.
873 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
875 * objc/deprecated/struct_objc_class.h: Add padding
876 to avoid warning with -Wpadded.
878 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
880 * encoding.c (objc_sizeof_type): Added support for vector type and
881 for double long types.
882 (objc_alignof_type): Same change.
883 (objc_skip_typespec): Same change.
884 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
885 instead of '!' since '!' is already used for _C_VECTOR.
886 * objc/objc-api.h (_C_LNG_DBL): Added.
888 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
890 * libobjc_entry.c: File removed.
892 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
894 * sendmsg.c (objc_msg_lookup): Remove inline.
895 (objc_get_uninstalled_dtable): Likewise.
896 * encoding.c (objc_skip_type_qualifiers): Likewise.
897 (objc_skip_offset): Likewise.
898 * archive.c (__objc_write_object): Likewise
899 (__objc_write_class):
900 (__objc_write_selector):
902 (objc_read_unsigned_char):
904 (objc_read_unsigned_short):
907 (__objc_read_nbyte_uint):
908 (objc_read_unsigned_int):
909 (objc_read_unsigned_long):
910 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
911 (objc_EXPORT): Likewise.
912 * objc/message.h (objc-decls.h): Add include.
913 * objc/objc-api.h: Mark API by objc_EXPORT.
914 * libobjc.def (__objc_responds_to): Removed.
916 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
918 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
920 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
921 objc/sarray.h replaced with a placeholder including the file from
922 the deprecated/ directory.
923 * objc-private/sarray.h: New file (private copy of sarray.h).
924 * hash.c: Include <assert.h> instead of "assert.h"
925 * sarray.c: Include <assert.h> instead of "assert.h". Include
926 objc-private/sarray.h instead of objc/sarray.h.
927 * selector.c: Include objc-private/sarray.h instead of
929 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
930 instead of objc/sarray.h.
931 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
933 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
935 * objc-private/objc-list.h (list_remove_elem): Unused function
936 removed. (list_nth): Unused function removed. (list_find):
937 Unused function removed. (list_lenght): Unused function removed.
939 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
941 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
942 replaced with a placeholder including the file from the
943 deprecated/ directory.
944 * objc/objc-api.h: Updated includes.
945 * objc/typedstream.h: Updated includes.
946 * objc-private/hash.h: New file (private copy of hash.h).
947 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
948 objc/objc-list.h replaced with a placeholder including the file
949 from the deprecated/ directory.
950 * objc-private/objc-list.h: New file (private copy of objc-list.h).
951 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
952 instead of objc/hash.h and objc/objc-list.h.
953 * selector.c: Same change.
954 * class.c: Added include <string.h>, which used to be implicitly included
955 when hash.h was included.
956 * exception.c: Same change.
957 * objects.c: Same change.
958 * sarray.c: Same change.
959 * sendmsg.c: Same change.
960 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
962 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
964 Implemented objc_sync_enter() and objc_sync_exit(), which are
965 required by @synchronized() to work.
966 * objc-sync.c: New file.
967 * objc/objc-sync.h: New file.
968 * objc-private/objc-sync.h: New file.
969 * init.c (__objc_exec_class): Call __objc_sync_init() during the
970 Objective-C runtime startup.
971 * Makefile.in: Added objc-sync.c and objc-sync.h.
972 * configure.ac: Added GCC_CHECK_TLS.
973 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
974 * configure: Regenerated.
975 * config.h.in: Regenerated.
977 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
979 * Makefile.in (%_gc.lo): New pattern rules to build the
980 garbage-collected version of the library. Removed rules for
981 specific files that are no longer needed. Standardized all rules.
982 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
983 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
985 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
987 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
989 * memory.c (objc_calloc): Fixed call to GC_malloc when building
990 with Garbage Colletion.
992 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
994 * memory.c: Do not include objc-private/runtime.h.
996 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
998 * objc/deprecated/objc_malloc.h: New file.
999 * objc/deprecated/objc_valloc.h: New file.
1000 * objc/objc-api.h: Include the files instead of defining
1001 objc_valloc, _objc_malloc() and similar.
1002 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1004 * memory.c: Removed the extra layer of indirection of _objc_malloc
1006 (objc_calloc): Use GC_malloc in the garbage-collected
1007 implementation as GC_malloc returns memory that is already freed.
1008 (objc_valloc): Deprecated.
1010 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1012 * objc/deprecated/objc_error.h: New file.
1013 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1014 defining objc_error and related.
1015 * error.c: New file. Added _objc_abort function which replaces
1016 objc_error. No change in functionality as they both print an
1018 * misc.c: File removed. Code moved into memory.c and error.c.
1019 * memory.c: New file.
1020 * objc-private/error.h: New file.
1021 * archive.c: Include objc-private/error.h and use _objc_abort
1022 instead of objc_error everywhere.
1023 * class.c: Same change.
1024 * encoding.c: Same change.
1025 * init.c: Same change, and simplified init_check_module_version.
1026 * memory.c: Same change.
1027 * sendmsg.c: Same change.
1028 * thr.c: Same change.
1029 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1030 (OBJ_H): Reordered list.
1031 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1032 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1033 (misc_gc.lo): Rule removed.
1034 (error_gc.lo): Rule added.
1035 (memory_gc.lo): Rule added.
1037 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1039 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1040 to check the API version. Added some comments.
1042 * objc-private/common.h: New file.
1043 * NXConstStr.m: Include objc-private/common.h.
1044 * Object.m: Same change.
1045 * Protocol.m: Same change.
1046 * archive.c: Same change.
1047 * class.c: Same change.
1048 * encoding.c: Same change.
1049 * exception.c: Same change.
1050 * gc.c: Same change.
1051 * hash.c: Same change.
1052 * init.c: Same change.
1053 * libobjc_entry.c: Same change.
1054 * linking.m: Same change.
1055 * misc.c: Same change (and added a comment).
1056 * nil_method.c: Same change.
1057 * objects.c: Same change.
1058 * sarray.c: Same change.
1059 * selector.c: Same change.
1060 * sendmsg.c: Same change.
1061 * thr.c: Same change.
1063 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1065 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1067 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1069 * archive.c: Removed not needed includes.
1070 * class.c: Same change.
1071 * hash.c: Same change.
1072 * misc.c: Same change.
1073 * nil_method.c: Same change.
1074 * objects.c: Same change.
1075 * sarray.c: Same change.
1076 * sendmsg.c: Same change.
1077 * thr.c: Same change.
1079 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1081 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1082 all the objc/*.h files.
1083 * objc-private/runtime.h: New file.
1084 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1085 files) instead of objc/runtime.h.
1086 * class.c: Same change.
1087 * hash.c: Same change.
1088 * init.c: Same change.
1089 * misc.c: Same change.
1090 * nil_method.c: Same change.
1091 * objects.c: Same change.
1092 * sarray.c: Same change.
1093 * selector.c: Same change.
1094 * sendmsg.c: Same change.
1095 * thr.c: Same change.
1097 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1099 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1100 'struct objc_selector' and 'sel_eq' moved here.
1101 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1102 'struct objc_procotol' moved here.
1103 * objc/deprecated/struct_objc_class.h: New file. Definition of
1104 'struct objc_class' moved here.
1105 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1107 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1108 * objc/message.h: New file. Definitions for relval_t, apply_t,
1109 arglist, arglist_t and objc_msg_lookup were moved here.
1110 * objc/objc.h: Include the above files instead of defining the
1111 corresponding structs, types and functions here. Added new opaque
1112 definitions for SEL and Class. Use Class and not 'struct
1113 objc_class *' in the definition of 'struct objc_object'.
1114 Commented all types defined in the file. Removed special
1115 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1117 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1118 objc_unexpected_exception.h.
1119 * objc/objc-api.h: Updated include of
1120 objc-unexpetected-exception.h
1121 * objc/objc-exception.h: Updated comments.
1122 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1123 files. Reindented list of files.
1125 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1127 * objc/objc-api.h (objc_trace): Unused variable removed.
1129 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1131 * objc/deprecated: New directory.
1132 * objc/deprecated/README: New file.
1133 * objc/README: New file.
1134 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1135 objc/typedstream.h replaced with a placeholder including the file
1136 from the deprecated/ directory.
1137 * objc/deprecated/objc-unexpected-exception.h: New file with the
1138 definition of _objc_unexpected_exception.
1139 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1140 instead of defining _objc_unexpected_exception.
1141 * objc/deprecated/Object.h: New file with the deprecated Object
1142 methods in a 'Deprecated' category.
1143 * objc/Object.h Include deprecated/Object.h instead of defining
1144 the deprecated methods.
1145 * Object.m: Moved deprecated methods into 'Deprecated' category.
1146 * objc-private: New directory.
1147 * objc-private/README: New file.
1148 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1149 (install-headers): Create installation directory for
1150 OBJC_DEPRECATED_H headers, and install them.
1152 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1154 * objc/objc-exception.h: Fixed include of objc.h.
1156 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1158 * objc/objc-exception.h: New file.
1159 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1160 (objc_set_exception_matcher): Implemented.
1161 (objc_exception_throw): Use the uncaught exception handler if set.
1162 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1164 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1165 up. Removed segmentation fault when value is 'nil'.
1166 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1168 * Makefile.in (exception.lo, exception_gc.lo): Use
1169 -Wno-deprecated-declarations when compiling.
1170 (OBJC_H): Added objc-exception.h
1172 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1174 * objc/typedstream.h: Deprecate all functions in the file. This
1176 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1177 [-awake]): Documented that these methods are deprecated. Added a
1178 brief description of the Object class and its relationship to the
1180 * Makefile.in: Compile archive.c and Object.m with
1181 -Wno-deprecated-declarations.
1183 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1185 Removed obsolete intermediate threading layer.
1186 * thr.c: Use __gthread_objc_xxx functions directly instead of
1187 __objc_thread_xxx ones.
1188 * objc/thr.h: Removed prototypes of no longer existing
1189 __objc_thread_xxx functions.
1190 * Makefile.in: Removed thr-objc.lo.
1191 * thr-dce.c: File removed.
1192 * thr-decosf1.c: File removed.
1193 * thr-irix.c: File removed.
1194 * thr-mach.c: File removed.
1195 * thr-objc.c: File removed.
1196 * thr-os2.c: File removed.
1197 * thr-posix.c: File removed.
1198 * thr-pthreads.c: File removed.
1199 * thr-rtems.c: File removed.
1200 * thr-single.c: File removed.
1201 * thr-solaris.c: File removed.
1202 * thr-vxworks.c: File removed.
1203 * thr-win32.c: File removed.
1204 * README.threads: File removed.
1205 * THREADS.MACH: File removed.
1208 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1210 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1212 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1214 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1215 Add a comment as to why, update FIXME comments.
1217 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1219 * makefile.dos: Obsolete file removed.
1221 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1223 * aclocal.m4: Regenerate.
1225 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1228 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1229 Cygwin and MinGW hosts.
1230 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1231 (libobjc.dll): Likewise.
1232 * configure: Regenerate.
1234 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1236 * configure: Regenerate.
1238 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1240 * sarray.c (sarray_free): Use old_buckets variable.
1241 * encoding.c (objc_layout_structure_next_member): Remove unused
1242 bfld_type_size variable.
1244 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1246 * configure.ac (AC_PREREQ): Bump to 2.64.
1248 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1250 * aclocal.m4: Regenerate.
1251 * configure: Regenerate.
1252 * config.h.in: Regenerate.
1254 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1256 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1258 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1260 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1262 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1264 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1266 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1268 2009-04-09 Nick Clifton <nickc@redhat.com>
1270 * sendmsg.c: Change copyright header to refer to version 3 of
1271 the GNU General Public License with version 3.1 of the GCC
1272 Runtime Library Exception and to point readers at the COPYING3
1273 and COPYING3.RUNTIME files and the FSF's license web page.
1274 * NXConstStr.m: Likewise.
1275 * Object.m: Likewise.
1276 * Protocol.m: Likewise.
1277 * archive.c: Likewise.
1278 * class.c: Likewise.
1279 * encoding.c: Likewise.
1280 * exception.c: Likewise.
1284 * libobjc_entry.c: Likewise.
1285 * linking.m: Likewise.
1287 * nil_method.c: Likewise.
1288 * objc/NXConstStr.h: Likewise.
1289 * objc/Object.h: Likewise.
1290 * objc/Protocol.h: Likewise.
1291 * objc/encoding.h: Likewise.
1292 * objc/hash.h: Likewise.
1293 * objc/objc-api.h: Likewise.
1294 * objc/objc-decls.h: Likewise.
1295 * objc/objc-list.h: Likewise.
1296 * objc/objc.h: Likewise.
1297 * objc/runtime.h: Likewise.
1298 * objc/sarray.h: Likewise.
1299 * objc/thr.h: Likewise.
1300 * objc/typedstream.h: Likewise.
1301 * objects.c: Likewise.
1302 * sarray.c: Likewise.
1303 * selector.c: Likewise.
1304 * thr-dce.c: Likewise.
1305 * thr-decosf1.c: Likewise.
1306 * thr-irix.c: Likewise.
1307 * thr-mach.c: Likewise.
1308 * thr-objc.c: Likewise.
1309 * thr-os2.c: Likewise.
1310 * thr-posix.c: Likewise.
1311 * thr-pthreads.c: Likewise.
1312 * thr-rtems.c: Likewise.
1313 * thr-single.c: Likewise.
1314 * thr-solaris.c: Likewise.
1315 * thr-vxworks.c: Likewise.
1316 * thr-win32.c: Likewise.
1318 * libobjc.def: Change copyright header to refer to version 3 of
1319 the GNU General Public License and to point readers at the COPYING3
1320 file and the FSF's license web page.
1321 * makefile.dos: Likewise.
1323 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1325 * Makefile.in: Change copyright header to refer to version
1326 3 of the GNU General Public License and to point readers at the
1327 COPYING3 file and the FSF's license web page.
1328 * configure.ac: Likewise.
1330 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1331 David Ayers <ayers@fsfe.org>
1334 * objc/objc-api.h (_objc_unexpected_exception): Declare
1335 new hook. Update copyright dates.
1336 * exception.c (objc_exception_throw): Use hook. Update
1338 * libobjc.def (_objc_unexpected_exception): Export hook.
1339 Update copyright dates.
1341 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1343 * configure: Regenerate.
1345 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1347 * configure: Regenerate.
1349 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1351 * Object.m (errno): Replaced by errno.h include.
1352 (compare): Cast self to id to prevent warning on comparison.
1353 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1355 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1356 * thr-win32.c (__objc_thread_detach): Remove type warning.
1357 (__objc_thread_id): Likewise.
1358 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1361 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1362 Steve Ellcey <sje@cup.hp.com>
1364 * configure: Regenerate for new libtool.
1365 * config.h.in: Regenerate for new libtool.
1367 2008-07-18 Matthias Klose <doko@ubuntu.com>
1369 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1371 2008-07-18 Matthias Klose <doko@ubuntu.com>
1373 * Makefile.in: Include ../boehm-gc/threads.mk.
1374 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1376 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1378 * Makefile.in (install-info): New stub target.
1380 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1382 * configure: Regenerate.
1384 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1386 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1387 if HAVE_GETIPINFO is not defined.
1389 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1391 * Object.m (compare): Add type id.
1392 * objc/Object.h: Likewise.
1393 * archive.c (objc_read_class): Use size_t to extend version to be
1394 size of pointer scalar width.
1395 * sendmsg.c (rtx): Undefine it before redefinition.
1396 (__objc_print_dtable_stats): Cast arguments to long as intended.
1398 2008-05-30 Julian Brown <julian@codesourcery.com>
1400 * exception.c (__objc_exception_class): Initialise as constant
1401 array for ARM EABI. Change macro to static const for non-ARM EABI.
1402 (ObjcException): Add note about structure layout. Remove landingPad
1403 and handlerSwitchValue for ARM EABI.
1404 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1406 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1407 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1408 ARM EABI unwinding support.
1409 (objc_exception_throw): Use memcpy to initialise exception class.
1411 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1413 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1414 (rs6000_special_round_type_align): Update.
1416 2008-05-09 Julian Brown <julian@codesourcery.com>
1418 * Makefile.in (LTLDFLAGS): New.
1419 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1421 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1424 * aclocal.m4: Regenerate.
1425 * configure: Regenerate.
1427 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1429 * configure: Regenerate.
1431 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1433 * configure.ac: Don't run config-ml.in directly.
1434 (multilib_arg): New.
1435 * configure: Regenerated.
1437 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1440 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1441 of _Unwind_Word for variables which are used in
1442 read_uleb128/read_sleb128.
1443 (PERSONALITY_FUNCTION): Likewise.
1445 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1447 * aclocal.m4: Regenerated.
1449 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1451 * configure.ac: Fix a typo in *-*-darwin clause.
1452 * configure: Regenerated.
1454 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1456 * configure.ac: Fix a typo.
1457 * configure: Regenerated.
1459 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1461 * configure: Regenerate.
1463 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1465 * Makefile.in: Replace all uses of libext with libsuffix.
1466 * configure.ac: Likewise.
1467 * configure: Regenerate.
1470 * Makefile.in: Remove all uses of $(libext).
1472 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1474 * Makefile.in: Remove all uses of $(libext).
1476 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1478 * configure: Regenerate.
1479 * aclocal.m4: Regenerate.
1481 2007-04-21 Andrew Ruder <andy@aeruder.net>
1483 * sendmsg.c (__objc_get_forward_imp): Call
1484 __objc_msg_forward2 for real.
1486 2007-04-09 Andrew Ruder <andy@aeruder.net>
1488 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1489 external libraries to provide a function that returns the real
1490 forwarding function based on both the selector and the receiver.
1491 * objc/objc-api.h: Define __objc_msg_forward2.
1493 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1495 * Makefile.in: Add dummy install-pdf target.
1497 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1499 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1502 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1504 * encoding.c (darwin_rs6000_special_round_type_align): New.
1506 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1508 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1509 * configure.ac: Use multi.m4 from aclocal rather than custom
1510 code. Use multi_basedir instead of toplevel_srcdir.
1511 * aclocal.m4: Regenerate.
1512 * configure: Regenerate.
1514 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1516 * Makefile.in: Added empty "pdf" target.
1518 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1520 * configure: Regenerate.
1522 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1524 * Makefile.in: Add install-html target. Add install-html to .PHONY
1526 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1529 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1531 2006-01-24 David Ayers <d.ayers@inode.at>
1534 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1535 and insure the new strings are '\0' termintated.
1537 2006-01-24 David Ayers <d.ayers@inode.at>
1540 * configure.ac: Add include directives for --enable-objc-gc.
1541 * Makefile.in: Ditto.
1542 * configure: Regenerate.
1544 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1545 instead of the local pointer to them.
1547 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1550 * objc/objc-api.c (_C_COMPLEX): New define.
1551 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1552 (objc_alignof_type): Likewise.
1553 (objc_skip_typespec): Likewise.
1555 2005-12-15 David Ayers <d.ayers@inode.at>
1558 * README (+load,+initialize): Fix documentation to reflect
1559 intended and implemented semantics for +load and +initialize.
1561 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1563 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1565 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1566 (rs6000_special_round_type_align): Update for the ABI fix.
1567 (objc_layout_finish_structure): Correct the encoding which is passed to
1570 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1573 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1574 but use the struct layout functions.
1575 (objc_alignof_type): Likewise.
1576 (objc_layout_structure): Handle _C_UNION_B also.
1577 (objc_layout_structure_next_member): Likewise.
1578 (objc_layout_finish_structure): Likewise.
1580 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1583 * objc/objc-api.h (_C_BOOL): New define.
1584 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1585 (objc_alignof_type): Likewise.
1586 (objc_skip_typespec): Likewise.
1588 2005-11-20 David Ayers <d.ayers@inode.at>
1591 * objc/hash.h: Remove deprecated hash API.
1592 * hash_compat.c: Remove.
1593 * Makefile.in: Remove reference to hash_compat.c.
1595 * configure.ac (VERSION): Bump library version to 2:0:0.
1596 * configure: Regenerate.
1598 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1601 * thr-objc.c (_XOPEN_SOURCE): Define.
1603 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1606 * objc/objc-api.h (struct objc_ivar): Move definition to
1609 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1610 Rasmus Hahn <rassahah@neofonie.de>
1613 * archive.c (objc_write_type): Correct the element offset.
1614 (objc_read_type): Likewise.
1616 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1618 * All files: Update FSF address.
1620 2005-08-13 Marcin Koziej <creep@desk.pl>
1621 Andrew Pinski <pinskia@physics.uc.edu>
1624 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1626 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1628 * Makefile.in (extra_ldflags_libobjc): New.
1629 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1630 (libobjc_gc$(libext).la): Likewise.
1631 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1632 "-Wl,-single_module".
1633 * configure: Regenerate.
1634 * linking.m (_objcInit): Remove.
1636 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1639 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1641 2005-06-08 David Ayers <d.ayers@inode.at>
1643 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1644 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1645 objc/runtime.h, objc/sarray.h, objc/thr.h,
1646 objc/typedstream.h: Do not include Objective-C headers as
1649 2005-06-07 David Ayers <d.ayers@inode.at>
1651 * archive.c, init.c, selector.c: Include hash.h.
1652 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1653 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1654 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1655 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1656 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1657 Include Objective-C headers with quotes and objc/ directory
1660 2005-05-19 Richard Henderson <rth@redhat.com>
1662 * exception.c: Revert last change.
1664 2005-05-19 David Ayers <d.ayers@inode.at>
1666 * exception.c: Include tsystem.h for unwind.h.
1668 2005-05-09 Mike Stump <mrs@apple.com>
1670 * configure: Regenerate.
1672 2005-04-12 Mike Stump <mrs@apple.com>
1674 * configure: Regenerate.
1676 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1678 * Makefile.in: Set gcc_version here.
1679 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1680 in definition of toolexeclibdir so that $(gcc_version) is expanded
1682 * aclocal.m4, configure: Regenerate.
1684 2005-03-03 David Ayers <d.ayers@inode.at>
1686 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1687 version reference. Correct typo.
1689 2005-03-02 David Ayers <d.ayers@inode.at>
1692 * Makefile.in (OBJS): Add hash_compat.lo.
1693 (OBJS_GC): Add hash_compat_gc.lo.
1694 (hash_compat_gc.lo): New target and rule.
1695 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1696 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1697 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1698 with objc_. Add deprecated non prefixed inlined versions.
1699 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1701 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1702 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1704 * hash_compat.c: New file.
1705 * archive.c: Update callers.
1707 * selector.c: Likewise.
1708 * libobjc.def: Add objc_ versions of hash functions.
1710 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1713 * Makefile.in (GTHREAD_FLAGS): Remove.
1714 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1715 * thr-objc.c: Include config.h.
1716 * configure.ac: Instead of looking at GCC's makefile, figure out if
1717 GTHREAD_FLAGS should be defined by looking at the `thread model'
1719 * configure: Regenerate.
1720 * config.h.in: Regenerate.
1722 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1725 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1726 (Determine CFLAGS for gthread): Use $host_subdir.
1727 * configure: Regenerate.
1728 * Makefile.in (host_subdir): New.
1731 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1734 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1736 Include limits.h and stdlib.h.
1737 Define BITS_PER_WORD.
1739 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1741 * selector.c (__objc_init_selector_tables): Add missing void to
1744 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1746 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1747 * configure, aclocal.m4: Regenerate.
1749 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1751 * configure: Regenerate for libtool change.
1753 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1755 * configure: Regenerate for libtool reversion.
1757 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1759 * configure: Regenerate for libtool change.
1761 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1763 * aclocal.m4, config.h.in: Regenerate.
1765 2004-10-08 Mike Stump <mrs@apple.com>
1766 Andrew Pinski <pinskia@physics.uc.edu>
1768 * aclocal.m4: Rename to ...
1769 * acinclude.m4: here and also use m4_include instead of sinclude.
1770 * aclocal.m4: Regenerate.
1771 * configure: Regenerate.
1772 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1773 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1775 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1777 * archive.c: Fix all the warnings about passing unsigned char*
1778 to char* and the other way too.
1780 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1783 * exception.c: Include config.h
1784 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1786 * configure.ac: Find out what exception handling code we use.
1787 * configure: Regenerate.
1788 * config.h.in: New file, regenerate.
1790 2004-09-16 Andrew Pinski <apinski@apple.com>
1792 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1794 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1796 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1797 ACX_NONCANONICAL_TARGET.
1798 * configure: Regenerate.
1800 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1802 * objc/sarray.h: Hoist include of assert.h near the top of file,
1803 and mark the remainder of the file 'extern "C"'.
1805 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1807 * objc/Object.h: Move includes out of extern "C" blocks.
1808 * objc/encoding.h: Likewise.
1809 * objc/hash.h: Likewise.
1810 * objc/objc-api.h: Likewise.
1811 * objc/runtime.h: Likewise.
1812 * objc/sarray.h: Likewise.
1813 * objc/typedstream.h: Likewise.
1815 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1817 * objc/NXConstStr.h: Update copyright date; bracket with
1818 'extern "C"' for C++ use; make include syntax consistent
1819 by using <...> instead of "..."; hoist <objc/...> includes
1820 above the 'extern "C"' block.
1821 * objc/Object.h: Likewise.
1822 * objc/Protocol.h: Likewise.
1823 * objc/encoding.h: Likewise.
1824 * objc/hash.h: Likewise.
1825 * objc/runtime.h: Likewise.
1826 * objc/sarray.h: Likewise.
1827 * objc/thr.h: Likewise.
1828 * objc/typedstream.h: Likewise.
1829 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1830 (objc_static_instances): For C++ case, do away with
1832 (objc_method): Hoist definition to file scope.
1833 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1834 class_get_instance_method, class_create_instance,
1835 class_get_class_name, class_get_instance_size,
1836 class_get_meta_class, class_get_super_class, class_get_version,
1837 class_is_class, class_is_meta_class, class_set_version,
1838 class_get_gc_object_type, class_ivar_set_gcinvisible,
1839 get_imp): Rename 'class' parameter to '_class'.
1840 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1841 * objc/objc.h: Update copyright date.
1842 (arglist_t): Provide a union tag.
1844 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1846 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1847 but instead use the attribute noreturn.
1849 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1851 * encoding.c: Rename target_flags with a #define to avoid
1852 conflict with a prior declaration.
1854 2004-06-24 Andrew Pinski <apinski@apple.com>
1856 * objc/encoding.h: Wrap the functions with extern "C" for C++
1858 * objc/hash.h: Likewise.
1859 * objc/objc-api.h: Likewise.
1860 * objc/objc-list.h: Likewise.
1861 * objc/runtime.h: Likewise.
1862 * objc/sarray.h: Likewise.
1863 * objc/thr.h: Likewise.
1864 * objc/typedstream.h: Likewise.
1867 2004-06-21 Nick Clifton <nickc@redhat.com>
1869 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1872 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1874 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1875 (exception_gc.lo): New.
1876 (OBJS_GC): Add exception_gc.lo.
1878 2004-06-17 Richard Henderson <rth@redhat.com>
1880 * exception.c: New file.
1881 * Makefile.in (exception.lo): New.
1884 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1886 * linking.m (_objcInit): New empty function
1889 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1891 * configure.ac: Support --enable-shared=libobjc.
1892 * configure: Regenerate.
1895 * configure.ac: Do not disable shared by default.
1896 * configure: Regenerate.
1898 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1900 * Protocol.m ([-isEqual:]): Small optimizations returning
1901 immediately if the argument is equal to self, and accessing
1902 the argument's name directly if it's a protocol.
1904 2004-06-03 David Ayers <d.ayers@inode.at>
1906 * Protocol.m ([-isEqual:]): Test the class of the argument.
1908 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1910 * configure.ac (includedir): Rename to ...
1912 * Makefile.in: s/includedir/includedirname/.
1915 * configure.ac (includedir): Set to "include"
1917 (libext) Set to empty except for Darwin.
1918 * configure: Regenerate
1919 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1920 s/include/$(includedir)/g.
1922 2004-05-25 Daniel Jacobowitz <drow@false.org>
1924 * Makefile.in: Add .NOEXPORT.
1926 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1928 Merge from the libobjc-branch
1929 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1931 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1933 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1935 * Makefile.in (OBJC_H): Add objc-deps.h.
1937 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1939 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1940 ([-hash], [-isEqual:]): New methods.
1942 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1944 * sarray.c (sarray_free): Add a better comment.
1946 2004-01-27 Adam Fedor <fedor@gnu.org>
1948 * hash.c (hash_add): Cast cachep to int.
1949 * selector.c (__sel_register_typed_name): Cast
1950 soffset_decode to int.
1952 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1954 * selector.c: Rename register_selectors_from_list to
1955 __objc_register_selectors_from_list. Update caller.
1956 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1957 while registering selectors. Use __sel_register_typed_name instead
1958 of sel_register_typed_name. Check for NULL method_name:s.
1959 (pool_alloc_selector): New function.
1960 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1961 selector structures.
1962 * sendmsg.c (class_add_method_list): Use
1963 __objc_register_selectors_from_list.
1964 * objc/runtime.h: Add __objc_register_selectors_from_list.
1966 2004-01-25 Adam Fedor <fedor@gnu.org>
1967 Nicola Pero <n.pero@mi.flashnet.it>
1968 Andrew Pinski <pinskia@physics.uc.edu>
1970 * objc/objc-decls.h: New file.
1971 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1972 (_objc_load_callback): Likewise.
1973 (_objc_object_alloc): Likewise.
1974 (_objc_object_copy): Likewise.
1975 (_objc_object_dispose): Likewise.
1977 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1979 * archive.c: s/__inline__/inline
1980 * sendmsg.c: Likewise.
1982 * encoding.c: Remove FIXME about the warning
1983 about unused variable.
1984 * sendmsg.c: Add a FIXME comment saying that
1985 this should be using libffi.
1987 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1990 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1992 * archive.c (objc_read_class): Initialize class_name.
1993 (objc_read_selector): Initialize selector_name.
1995 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1997 * Makefile.in (toolexecdir): Remove trailing space.
1999 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2002 * configure.ac: De-precious CC so multilibs work.
2003 * configure: Regenerate.
2005 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2007 * configure.ac: Restore toolexecdir.
2008 * Makefile.in: Restore toolexecdir.
2009 * configure: Regenerate.
2011 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2013 * configure.ac: Remove (unused) glibcpp_prefixdir.
2014 * configure: Regenerate.
2016 * configure.in: Rename to configure.ac.
2017 * Makefile.in: Update to match.
2019 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2020 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2021 * configure.in: Remove glibcpp_toolexecdir (unused).
2022 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2023 config.h or stamp-h (unused). Move one comment to the right place.
2024 * configure: Regenerate.
2025 * config.h.in: Remove (unused).
2027 * config.h.in: Regenerate with autoheader.
2029 * Makefile.in: Remove (unused) gcc_version_trigger.
2030 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2031 gcc_version_trigger.
2032 * configure: Regenerate.
2034 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2035 Sort file into sections. Remove dnl where appropriate. Fix
2037 * configure: Regenerate.
2039 * configure.in: Replace old AC_PROG_CC hack with new one.
2040 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2041 are no subdirectory output files, so this is fine). Change prereq
2043 * aclocal.m4: Include ../config/no-executables.m4.
2044 * configure: Regenerate with autoconf 2.59.
2046 * configure.in: Improve comments on gthread_cflags. Improve m4
2047 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2048 * configure: Regenerate.
2050 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2051 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2052 redundant checks for values of RANLIB, AR, INSTALL.
2053 * configure: Regenerate.
2055 * configure.in: Clean up handling of
2056 --enable-version-specific-runtime-libs and related variables;
2057 replace 'if test' with 'case' where reasonable. Fix comments.
2058 Remove useless libstdcxx_interface.
2059 * configure: Regenerate.
2061 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2062 Replace uses of target_alias with target_noncanonical.
2063 * aclocal.m4: Include ../config/acx.m4.
2064 * configure: Regenerate.
2065 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2066 Fix copyright statement.
2068 * configure.in: Hand-inline bulky, confusing macros from
2069 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2070 Update copyright notice. Remove stuff for automake, which isn't
2071 used in this directory. Remove emacs local variables.
2072 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2073 * configure: Regenerate.
2075 2004-03-16 Manfred Hollstein <mh@suse.com>
2077 * Makefile.in, configure.in, configure: Update copyright years.
2079 2004-03-15 Manfred Hollstein <mh@suse.com>
2081 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2082 definition from configure.in.
2083 * configure.in (PACKAGE): Add definition.
2084 (VERSION): Add definition; substitute it in output files.
2085 * configure: Re-generate.
2087 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2089 * objc/hash.h (hash_string, compare_strings):
2090 Add type-casts to make Objective-C++ happy.
2091 * objc/typedstream.h (objc_get_stream_class_version):
2092 Rename parameter from 'class' to 'class_name' to make
2093 Objective-C++ happy.
2095 2004-03-01 Michael Matz <matz@suse.de>
2097 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2099 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2101 * objc/objc-api.h (objc_super): The 'class' field shall
2102 be named 'super_class' #ifdef __cplusplus.
2104 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2107 * encoding.c (rs6000_special_round_type_align): Define.
2109 2004-01-14 Adam Fedor <fedor@gnu.org>
2112 * selector.c (__objc_register_instance_methods_to_class): Free
2113 new_list if not used.
2115 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2118 * sarray.c (sarray_free): Free array->is_copy_of latter.
2120 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2123 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2124 instance_methods if it's NULL.
2125 (descriptionForClassMethod): Likewise for class_methods.
2127 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2129 * Makefile.in (runtime-info.h): Remove -Wp.
2131 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2133 * Makefile.in (CC1OBJ): Remove.
2134 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2136 Use .m extension for temporary file.
2137 Remove assembler temp file.
2139 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2141 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2143 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2145 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2147 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2149 * configure: Regenerate.
2151 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2153 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2154 (libdir)/gcc-lib/ when installing.
2155 * configure: Regenerate.
2157 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2160 * sendmsg.c (get_imp): Fixed rare threading problem.
2161 (__objc_responds_to): Similar fixes.
2162 (objc_msg_lookup): Similar fixes.
2163 (__objc_init_install_dtable): Lock the runtime before checking if the
2166 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2168 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2169 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2170 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2171 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2172 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2173 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2174 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2175 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2176 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2177 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2178 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2180 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2181 Nicola Pero <n.pero@mi.flashnet.it>
2184 * init.c (class_superclass_of_class): New function.
2185 (create_tree_of_subclasses_inherited_from): Use it.
2186 (__objc_tree_insert_class): Likewise.
2187 (class_is_subclass_of_class): Likewise.
2189 2003-04-11 David Chad <davidc@freebsd.org>
2190 Loren J. Rittle <ljrittle@acm.org>
2193 * objc/hash.h (hash_string): Constify correctly.
2194 (compare_ptrs): Use direct compare.
2195 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2196 * objc/sarray.h: Global rename index to indx to avoid shadow.
2198 2003-03-12 Andreas Schwab <schwab@suse.de>
2200 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2201 glibcpp_toolexeclibdir.
2202 * configure: Rebuilt.
2204 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2206 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2208 * configure: Rebuilt.
2210 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2212 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2213 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2214 version_specific_libs is enabled.
2215 * configure: Rebuilt.
2217 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2219 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2220 (install-libs, install-headers): Prepend $(DESTDIR) to
2221 destination paths in all (un)installation commands.
2223 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2225 * thr-objc.c: Include coretypes.h and tm.h.
2227 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2229 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2231 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2233 * configure.in: Remove skip-this-dir support.
2234 * configure: Regenerate.
2236 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2238 * Makefile.in (all): Fix multilib parallel build.
2240 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2242 * sendmsg.c (nil_method): Declare not to take a variable number of
2244 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2245 (objc_msg_lookup_super): The same.
2247 2002-09-10 Jan Hubicka <jh@suse.cz>
2249 * nil_method.c (nil_method): No longer defined with variable
2252 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2254 * objc/encoding.h: Fix formatting.
2255 * objc/hash.h: Likewise.
2256 * objc/objc-api.h: Likewise.
2257 * objc/runtime.h: Likewise.
2258 * objc/thr.h: Likewise.
2259 * archive.c: Likewise.
2260 * class.c: Likewise.
2261 * encoding.c: Likewise.
2266 * nil_method.c: Likewise.
2267 * objects.c: Likewise.
2268 * sarray.c: Likewise.
2269 * selector.c: Likewise.
2270 * sendmsg.c: Likewise.
2271 * thr-mach.c: Likewise.
2274 2002-06-25 DJ Delorie <dj@redhat.com>
2276 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2277 GLIBCPP_TOPREL_CONFIGURE.
2278 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2279 * configure: Regenerate.
2281 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2283 * Object.m (forward, read, write): Fix unused parameter warnings.
2284 * encoding.c: Include <stdlib.h>.
2285 (target_flags): Mark with attribute unused.
2287 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2288 (__objc_generate_gc_type_description): Prototype.
2289 * selector.c (__objc_selector_max_index): Change to unsigned int.
2291 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2293 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2294 we always have a return value: if __objc_msg_forward does not
2295 supply a forwarding implementation, return the default
2296 __builtin_apply based one.
2298 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2300 * Object.m: Fix signed/unsigned warning.
2301 * Protocol.m: Likewise.
2302 * archive.c: Always include stdlib.h.
2303 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2304 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2305 Fix signed/unsigned warning.
2306 (objc_write_type, objc_read_type, objc_write_types,
2307 objc_read_types): Ensure ctype 8-bit safety.
2308 (__objc_no_write, __objc_no_read): Mark unused parameters.
2309 * class.c (class_table_setup): Specify void arg.
2310 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2311 objc_skip_typespec, objc_skip_offset,
2312 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2313 (objc_layout_structure_next_member): Ensure variables are
2315 * gc.c (__objc_generate_gc_type_description,
2316 class_ivar_set_gcinvisible): Mark unused parameters.
2317 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2319 (__objc_init_protocols) Fix signed/unsigned warning.
2320 * nil_method.c (nil_method): Mark unused parameters.
2321 * thr.h (objc_thread_callback): Specify void arg.
2322 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2323 signed/unsigned warning.
2324 (sarray_free): Fix formatting.
2325 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2326 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2328 2002-06-09 Andreas Jaeger <aj@suse.de>
2330 * encoding.c (objc_layout_structure_next_member): Remove unused
2333 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2335 * Makefile.in (SHELL): Set to @SHELL@.
2337 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2339 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2341 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2342 * configure: Regenerate.
2344 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2346 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2347 script entry, and set LD to it when configuring multilibs.
2348 * configure: Rebuilt.
2350 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2352 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2354 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2357 * objc/objc-api.h (struct objc_protocol_list): Change type of
2358 member count from int to size_t.
2360 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2363 * aclocal.m4: Replace with version copied from libstdc++-v3.
2364 * configure.in: Update for changes to aclocal and Makefile.
2365 * configure: Regenerate.
2366 * Makefile.in: Correct install of multilibs and shared libs, use
2367 INSTALL_DATA for include files.
2369 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2371 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2372 categories - when an unclaimed category was found, the loop was
2373 doing two steps forward instead of one, so that in certain cases
2374 it was failing to properly load all the categories. (Reported
2375 with fix by Alexander Malmberg <alexander@malmberg.org>).
2377 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2379 * encoding.c: Add target_flags.
2381 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2383 * objc/objc-api.h (_C_VECTOR): New.
2385 * encoding.c (VECTOR_TYPE): New.
2387 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2389 * class.c: Rewritten the class table to use optimized, lock-free
2390 lookup. This more than doubles the speed of class method
2391 invocations. (class_table_setup), (class_table_insert),
2392 (class_table_replace), (class_table_get_safe),
2393 (class_table_next), (class_table_print),
2394 (class_table_print_histogram): New functions.
2395 (__objc_init_class_tables): Use class_table_setup.
2396 (__objc_add_class_to_hash): Use class_table_get_safe and
2397 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2398 assert the existence of the table; do not lock the runtime; use
2399 class_table_get_safe. (objc_next_class): Use class_table_next.
2400 (__objc_resolve_class_links): Use class_table_next.
2401 (class_pose_as): Use class_table_replace.
2403 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2405 * gc.c: Removed the DEBUG declaration.
2407 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2409 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2410 rather than through objc_thread_id, to save a function call.
2411 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2414 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2416 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2417 to cast an id to a Class, which can not be done. Make the check
2418 by using CLS_ISMETA on the class pointer instead.
2419 (object_is_meta_class): Similar fix.
2421 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2423 * configure.in (AC_EXEEXT): Work around in case it expands to
2424 nothing, as in autoconf 2.50.
2425 * acinclude.m4: Likewise.
2426 * configure: Rebuilt.
2428 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2430 * THREADS: Explain that when we compile libobjc inside GCC, we
2431 always use thr-objc.c as a backend, which uses GCC's thread code.
2433 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2435 * init.c (__objc_send_message_in_list): When setting a new entry
2436 in __objc_load_methods use the method IMP as key, but check to see
2437 if the method is in the hashtable by looking at the IMP also.
2438 Also ... call the method after adding it to the hashtable rather
2439 than before ... thus preventing an obscure possibility of infinite
2440 recursion if a +load method itself loads a subclass.
2442 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2444 * init.c (__objc_send_message_in_list): When setting a new entry
2445 in __objc_load_methods use the method name as key, not the method
2446 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2448 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2450 * objc-features.texi: Move to ../gcc/objc.texi.
2452 * Makefile.in: Don't generate documentation from
2455 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2457 * fdl.texi: New file.
2458 * objc-features.texi: Simplify.
2459 * Makefile.in: Adjust accordingly.
2461 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2463 * objc-features.texi: Use the GFDL.
2465 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2467 * encoding.c (REAL_TYPE): Define.
2469 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2471 * encoding.c (TYPE_MODE): Define.
2473 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2475 * thr.c (objc_thread_add): New function.
2476 (objc_thread_remove): Ditto.
2477 * objc/thr.h: Declare them.
2478 * libobjc.def: Mention them.
2480 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2482 * objc-features.texi: Document the @compatibility_alias compiler
2483 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2485 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2487 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2489 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2491 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2492 we're not interested in the result and they might fail.
2493 * configure: Regenerated.
2495 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2497 * objc-features.texi: Use @email.
2499 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2501 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2504 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2506 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2507 determines the value dynamically.
2509 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2511 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2512 libraries to provide a function that returns the real forwarding
2513 function. This can alleviate problems __builtin_apply() and
2514 friends have on various platforms. (Solution suggested by Helge
2517 * objc/objc-api.h: Define __objc_msg_forward.
2519 * sendmsg.c: Define gen_rtx_REG.
2521 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2523 * thr-rtems.c: New file. Stub to compile.
2525 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2527 * configure: Rebuilt with new libtool.m4.
2529 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2531 * configure.in: Create a config.h file. Check for <sched.h>.
2532 * configure: Regenerate.
2534 * config.h.in: Check for <sched.h>.
2536 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2538 * configure: Regenerate after change to ../libtool.m4.
2540 2000-08-14 Andreas Schwab <schwab@suse.de>
2542 * objc-features.texi (Top): Move @menu at end of node.
2544 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2546 * objc-features.texi: Move @node Top before @menu.
2548 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2550 * objc-features.texi: Documented the new -fconstant-string-class
2553 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2555 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2556 improve the Posix thread support for Objective-C.
2558 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2560 * aclocal.m4: Replace copy of ../libtool.m4 with
2561 sinclude(../libtool.m4).
2563 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2565 * configure.in: Added libtool support; build shared libraries
2566 if --enable-shared was passed on command line.
2567 * Makefile.in: Modified most compilation commands to use libtool.
2568 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2569 libtool distribution.
2571 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2573 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2574 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2577 2000-05-12 H.J. Lu (hjl@gnu.org)
2579 * Makefile.in (GTHREAD_FLAGS): New.
2580 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2581 (OBJC_THREAD_FILE): Changed to thr-objc.
2583 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2585 (OBJC_THREAD_FILE): Removed.
2589 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2591 * objc/hash.h: Include string.h.
2593 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2595 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2597 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2599 * Object.m (strlen): Provide prototype on all 64bit platforms,
2601 * sarray.c (memcpy): Likewise.
2602 * encoding.c (objc_layout_finish_structure): Don't use
2603 ROUND_TYPE_ALIGN on sparc.
2605 * encoding.c (objc_layout_structure_next_member): Do the whole
2606 procedure even for the first member, so that we get correct
2609 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2611 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2614 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2616 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2618 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2620 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2622 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2624 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2625 the compiler when building C code.
2627 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2629 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2630 libdir, libsubdir and tooldir.
2632 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2634 * init.c (__objc_force_linking): Make global.
2636 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2638 * configure.in (AC_EXEEXT): Remove call.
2639 (compiler_name): Explicitly check with no extension and .exe
2641 * configure: Regenerate.
2643 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2645 * Makefile.in (CC1OBJ): Define in terms of CC.
2646 (runtime-info.h): Use.
2648 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2650 * objc-features.texi: Updated the URL to Boehm's GC page.
2652 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2654 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2655 the char as being signed (patch from Daniel Jacobowitz
2658 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2660 * configure.in (AC_PREREQ): Update to 2.13.
2661 (AC_EXEEXT): Call to find possible file extension.
2662 (compiler_name): Use.
2663 * configure: Regenerate.
2665 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2667 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2669 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2671 * configure.in (thread_file): Correct and simplify code to find
2673 * configure: Rebuilt.
2675 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2677 * configure.in (compiler_name): Add check to detect if this
2678 language's compiler has been built.
2679 * configure: Regenerate.
2681 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2683 * configure.in: Use AC_PREREQ(2.12.1).
2685 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2687 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2689 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2691 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2693 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2695 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2697 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2699 * objc-features.texi (Top): Changed the email address.
2700 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2702 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2704 * encoding.c: Redefine get_inner_array_type to get the first entry
2707 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2709 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2710 (objc_get_type_qualifiers): Similarly.
2711 * objc/encoding.h (_C_BYREF): Define.
2714 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2716 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2717 works out on 64-bit systems.
2719 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2721 * Makefile.in (INCLUDES): Make it multilib-friendly.
2723 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2725 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2727 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2728 Jeffrey A Law (law@cygnus.com)
2730 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2731 (FLAGS_TO_PASS): Added.
2732 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2734 * archive.c: Change config.h to tconfig.h.
2736 * configure.in: Find gcc's object directory even for multilibs.
2738 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2740 * configure.in: Escape ^ in grep string.
2741 * configure: Rebuilt.
2743 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2745 * All .h files pushed down into the objc/ subdirectory.
2746 * Makefile.in (copy_headers): Corresponding changes.
2747 * configure.in (AC_INIT): Corresponding changes.
2748 * configure: Rebuilt.
2750 1998-09-30 Ben Elliston <bje@cygnus.com>
2751 Jeff Law <law@cygnus.com>
2753 * Makefile.in: Rewrite.
2755 * configure.in: Likewise.
2757 * configure: Regenerate.
2759 * All .c files. Remove "objc" prefix when including objc header
2760 files. Include tconfig.h, not ../tconfig.h.
2762 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2764 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2765 (get_inner_array_type): Define.
2767 1998-09-21 Ben Elliston <bje@cygnus.com>
2769 * New directory. Moved files from ../gcc/objc.