1 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
3 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
5 (sel_registerTypedName): Same.
6 (sel_registerName): Same.
7 * objc/runtime.h: Updated documentation.
9 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
11 * objc/runtime.h (class_addIvar): Updated documentation. The
12 alignment is actually the log_2 of the alignment in bytes.
13 * ivars.c (class_addIvar): Corresponding change to the
16 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
18 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
19 be consistent with method_getTypeEncoding and
21 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
22 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
23 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
24 (sel_get_type): Updated call to sel_getType.
26 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
28 * objc/runtime.h (class_conformsToProtocol,
29 class_copyProtocolList): Updated documentation.
31 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
33 * init.c (create_tree_of_subclasses_inherited_from): Updated
34 DEBUG_PRINTF messages.
35 (__objc_tree_insert_class): Same.
36 (__objc_send_load_using_method_list): Same.
37 (__objc_send_load): Same.
38 (__objc_exec_class): Same. In particular, do not print the module
39 name since it is no longer used.
40 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
41 tracking +initialize calls.
42 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
43 tracking updates of dispatch tables.
44 (__objc_install_dispatch_table_for_class): Same.
46 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
49 (libobjc_gc$(libsuffix).la): Likewise.
51 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
53 * sendmsg.c (class_addMethod): Return NO if the method already
56 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
58 * init.c (duplicate_classes): New.
59 (__objc_exec_class): Initialize duplicate_classes.
60 (__objc_create_classes_tree): Ignore classes in the
61 duplicate_classes table.
62 (__objc_call_load_callback): Same.
63 (__objc_init_class): If a duplicate class is found, add it to
64 duplicate_classes instead of aborting. Return YES if the class is
65 not a duplicate, and NO if it is.
66 * objc-private/runtime.h (__objc_init_class): Updated prototype.
68 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
70 * objc-private/objc-list.h: Reindented file. No code changes.
71 * objc-private/sarray.h: Same change.
73 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
75 * objc-private/accessors.h: Removed 'extern "C"' guards. This
76 file is never compiled with C++.
77 * objc-private/hash.h: Same change.
78 * objc-private/objc-list.h: Same change.
79 * objc-private/objc-sync.h: Same change.
80 * objc-private/protocols.h: Same change.
81 * objc-private/runtime.h: Same change.
82 * objc-private/sarray.h: Same change.
83 * objc-private/selector.h: Same change.
85 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
88 * class.c (__objc_add_class_to_hash): Return YES if the class was
89 added, and NO if it already existed.
90 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
91 NO, then abort the program with an error message.
92 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
95 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
97 * init.c (_objc_load_callback): Initialize with 0.
98 (__objc_call_callback): Renamed to __objc_call_load_callback.
99 Check _objc_load_callback only once, and if it is not set, return
101 (objc_send_load): Updated call to __objc_call_callback.
103 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
106 * init.c (__objc_send_message_in_list): Renamed to
107 __objc_send_load_using_method_list. Do not take an 'op' argument.
108 Register the 'load' selector if needed.
109 (__objc_send_load): Do not register the 'load' selector. Updated
110 call to __objc_send_message_in_list.
111 (__objc_create_classes_tree): Add the class of any claimed
112 category that was loaded in the module to the list of classes for
113 which we try to execute +load.
115 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
117 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
119 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
120 a pointer using DEBUG_PRINTF.
122 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
125 * selector.c (__sel_register_typed_name): When registering a new
126 selector with the same name as an existing one, reuse the existing
127 name string. Also updated types, casts and comments in the whole
130 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
132 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
133 to be 'struct objc_selector *' and not 'SEL'.
134 * init.c (__objc_exec_class): Call
135 __objc_register_selectors_from_module instead of iterating over
136 each selector and calling __sel_register_typed_name for each.
137 * objc-private/selector.h: Declare
138 __objc_register_selectors_from_module instead of
139 __sel_register_typed_name.
140 * selector.c (__objc_register_selectors_from_module): New.
141 (__sel_register_typed_name): Made static.
143 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
145 * linking.m: Do not include objc/NXConstStr.h.
147 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
149 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
150 * objc-private/common.h (DEBUG_PRINTF): To here.
151 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
153 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
155 * hash.c: Tidied up comments and indentation. No code changes.
157 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
160 * accessors.m (objc_getProperty): If not atomic, do not
161 retain/autorelease the returned value.
163 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
165 * objc-private/runtime.h (__objc_selector_max_index,
166 __objc_init_selector_tables, __objc_register_selectors_from_class,
167 __objc_register_selectors_from_list,
168 __objc_register_selectors_from_description_list): Moved to ...
169 * objc-private/selector.h: ... here.
171 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
173 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
174 (__objc_print_dtable_stats): Removed.
175 (__sel_register_typed_name): Removed.
176 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
178 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
180 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
181 if appropriate, after loading the module.
183 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
185 * sendmsg.c (method_setImplementation): Do not declare.
187 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
189 * objc/message.h: Updated comments.
190 * objc/runtime.h: Updated comments.
192 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
194 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
195 * protocols.c: Updated all calls to objc_lookupClass to call
196 objc_lookUpClass instead.
197 * sendmsg.c (objc_lookupClass): Do not declare.
198 (get_imp): Update call to objc_lookupClass to call
199 objc_lookUpClass instead.
200 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
202 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
204 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
205 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
206 define. Updated comments.
208 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
210 * objc/encoding.h: Updated comments.
211 * objc/runtime.h: Updated comments.
212 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
213 (objc_sizeof_type): Same.
214 (objc_alignof_type): Same.
215 (objc_aligned_size): Same.
216 (objc_promoted_size): Same.
217 (objc_skip_type_qualifiers): Same.
218 (objc_skip_typespec): Same.
219 (objc_skip_offset): Same.
220 (objc_skip_argspec): Same.
221 (objc_get_type_qualifiers): Same.
222 (objc_layout_structure): Same.
223 (objc_layout_structure_next_member): Same.
224 (objc_layout_finish_structure): Same.
225 (objc_layout_structure_get_info): Same.
227 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
229 * init.c: Updated comments.
230 * objc/objc-api.h: Updated comments.
231 * objc/runtime.h (_objc_load_callback): Declare.
233 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
235 * objc/Object.h: Include deprecated/typedstream.h and
236 deprecated/hash.h instead of typedstream.h. Updated comments.
238 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
240 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
241 * objc/deprecated/objc_msg_sendv.h: New.
242 * objc/message.h: Do not define retval_t, apply_t, arglist,
243 arglist_t, objc_msg_sendv, now in
244 objc/deprecated/objc_msg_sendv.h.
245 * objc/objc.h: Do not include message.h; include
246 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
247 * sendmsg.c: Include objc/message.h.
248 * thr.c: Include objc/message.h.
250 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
252 * objc/objc-exception.h: Include objc-decls.h. Mark all
253 functions with objc_EXPORT.
254 * objc/objc-sync.h: Same change.
256 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
258 * Protocol.m: Moved all methods, with the exception of -isEqual:,
259 into the 'Deprecated' category.
260 * objc/Protocol.h: Removed all methods, moved to
261 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
262 * objc/deprecated/Protocol.h: New.
263 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
265 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
267 * init.c: Include objc-private/selector.h. Do not declare
268 __sel_register_typed_name.
269 * objc-private/selector.h (__sel_register_typed_name): Declare.
270 * selector.c: Include objc-private/selector.h.
272 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
274 * class.c: Tidied up comments and indentation. No code changes.
280 * objc-foreach.c: Same.
287 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
289 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
290 instead of objc/objc-api.h.
291 (init_check_module_version): Take a 'struct objc_module *'
292 argument instead of 'Module_t'. Use 'struct objc_module *'
293 instead of 'Module_t'.
294 (__objc_created_classes_tree): Take a 'struct objc_module *'
295 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
297 (__objc_call_callback): Take a 'struct objc_module *' argument
298 instead of 'Module_t'; use 'struct objc_symtab *' instead of
299 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
300 (_objc_load_callback): Take a 'struct objc_category *' argument
301 instead of 'Category *'.
302 (class_superclass_of_class): Use objc_getClass() instead of
304 (create_tree_of_subclasses_inherited_from): Same change (also, use
305 an explicit 'if' instead of '?').
306 (objc_init_statics): Same change.
307 (objc_send_load): Same change.
308 (__objc_init_protocol): same change.
309 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
310 argument instead of 'MethodList_t'. Use 'struct objc_method *'
311 instead of 'Method_t'.
312 (__objc_send_load): Use 'struct objc_method_list *' instead of
313 'MethodList_t'. Use sel_registerName() instead of
315 (__objc_exec_class): Take a 'struct objc_module *' argument
316 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
317 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
318 Use 'struct objc_category *' instead of 'Category_t'.
320 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
322 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
323 Include objc-private/module-abi-8.h and objc-private/selector.h
324 instead of objc/encoding.h.
325 (objc_msg_lookup_super): Use super->super_class instead of
327 (method_get_first_argument, method_get_next_argument): Declare
329 (class_get_instance_method): Declare before using.
330 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
331 (__objc_init_dispatch_tables, __objc_send_initialize): Use
332 sel_registerName() instead of sel_register_name().
333 (__objc_forward): Use sel_getName() instead of sel_get_name().
334 (objc_get_uninstalled_dtable): Use 'void' as argument.
335 * objc-private/selector.h: New.
337 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
339 * objc/message.h (objc_super): When using the modern API, do not
340 define Super and Super_t, and always use 'super_class' for the
342 (objc_msg_lookup_super): Updated prototype to use 'struct
343 objc_super *' instead of 'Super_t'.
344 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
345 'struct objc_super *' instead of 'Super_t'.
347 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
349 * objc/message.h: Update comments, reindented code and moved
350 deprecated types and functions at the end of the file. No code
353 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
355 * ivars.c (class_addIvar): Use the 'size' argument instead of
356 trying to calculate it using objc_sizeof_type().
357 * objc/runtime.h (class_addIvar): Updated comments.
359 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
361 * sendmsg.c: Reindented some code and tidied up comments. No
364 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
366 * objc/Object.h: Moved all the methods, with the exception of
367 -class and -isEqual:, into ...
368 * objc/deprecated/Object.h: here.
369 * Object.m: Moved all the methods, with the exception of -class
370 and -isEqual: into the 'Deprecated' category.
372 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
374 * objects.c (object_copy): Do not #undef as we are no longer
375 including objc/objc-api.h.
376 * selector.c: Include objc/runtime.h and
377 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
378 objc/encoding.h. Updated
379 (__objc_register_selectors_from_class): Use struct
380 objc_method_list * instead of MethodList_t.
381 (__objc_register_selectors_from_list): Use Method instead of
383 (struct objc_method_description_list): Do not define here.
384 (__objc_register_instance_methods_to_class): Use struct
385 objc_method_list * instead of MethodList_t and Method instead of
388 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
390 * selector.c: Reindented some code and tidied up comments. No
393 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
395 * encoding.c (_darwin_rs6000_special_round_type_align): New.
396 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
398 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
400 * sendmsg.c (selector_resolveClassMethod): New.
401 (selector_resolveInstanceMethod): New.
402 (__objc_resolve_class_method): New.
403 (__objc_resolve_instance_method): New.
404 (get_imp): Call __objc_resolve_class_method or
405 __objc_resolve_instance_method at the appropriate time.
406 (objc_msg_lookup): Same.
407 (class_getClassMethod): Same.
408 (class_getInstanceMethod): Same.
409 (__objc_init_dispatch_tables): Initialize
410 selector_resolveClassMethod and selector_resolveInstanceMethod.
411 * objc/runtime.h: Updated documentation of class_getClassMethod,
412 class_getInstanceMethod and class_getMethodImplementation.
414 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
416 * objc-private/module-abi-8.h (struct objc_symtab): Updated
417 description of sel_ref_cnt and refs.
418 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
420 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
424 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
425 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
426 * aclocal.m4: Regenerate.
427 * configure: Regenerate.
429 2010-12-03 Matthias Klose <doko@ubuntu.com>
431 * configure.ac (VERSION): Bump the version to 3:0:0.
432 * configure: Regenerate.
434 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
436 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
437 pass nil as the receiver since we don't know the receiver at this
440 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
442 * ivars.c: Include stdlib.h.
443 * protocols.c: Same change.
445 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
447 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
449 * init.c: Include objc-private/accessors.h.
450 (__objc_exec_class): Call __objc_accessors_init.
451 * objc-private/accessors.h: New.
453 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
455 * objc/message.h: Moved initial includes outside of extern "C".
456 * objc/runtime.h: Add extern "C" for Objective-C++.
458 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
460 * init.c (objc_send_load): Do not wait for NXConstantString to be
461 registered before executing +load. There is no point if
462 -fconstant-string-class=xxx is used when compiling all modules,
463 as is the case for almost all users.
464 * linking.m (__objc_linking): Do not try to forcefully link in
467 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
469 * objc/runtime.h: Updated comments.
470 (class_addMethod): New.
471 (class_addIvar): New.
472 (class_replaceMethod): New.
473 (objc_allocateClassPair): New.
474 (objc_registerClassPair): New.
475 (objc_disposeClassPair): New.
476 * class.c (objc_allocateClassPair): New.
477 (objc_registerClassPair): New.
478 (objc_disposeClassPair): New.
479 (class_getSuperclass): Return Nil if a class is in construction.
480 * init.c (__objc_exec_class): Call __objc_init_class.
481 (__objc_init_class): New.
482 * ivars.c (class_copyIvarList): Return NULL if class is in
483 construction. Do not lock the runtime mutex.
484 (class_getInstanceVariable): Return NULL if class is in
485 construction. Do not lock the runtime mutex.
486 (class_addIvar): New.
487 * sendmsg.c (class_addMethod): New.
488 (class_replaceMethod): New.
489 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
490 (_CLS_IN_CONSTRUCTION): New.
491 (CLS_IS_IN_CONSTRUCTION): New.
492 (CLS_SET_IN_CONSTRUCTION): New.
493 (CLS_SET_NOT_IN_CONSTRUCTION): New.
494 * objc-private/runtime.h (__objc_init_class): New.
496 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
498 * class.c (class_getSuperclass): Call __objc_resolve_class_links
499 if the class is not resolved yet.
500 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
502 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
504 * objc/runtime.h (class_getIvarLayout): New.
505 (class_getWeakIvarLayout): New.
506 (class_setIvarLayout): New.
507 (class_setWeakIvarLayout): New.
508 * ivars.c (class_getIvarLayout): New.
509 (class_getWeakIvarLayout): New.
510 (class_setIvarLayout): New.
511 (class_setWeakIvarLayout): New.
513 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
515 * objc/runtime.h (class_copyPropertyList): New.
516 (class_getProperty): New.
517 (property_getAttributes): New.
518 (property_getName): New.
519 * ivars.c (class_copyPropertyList): New.
520 (class_getProperty): New.
521 (property_getAttributes): New.
522 (property_getName): New.
524 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
526 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
527 * class.c (__objc_update_classes_with_methods): New.
528 (objc_getClassList): Do not lock the class lock.
529 * methods.c (method_exchangeImplementations): New.
530 (method_setImplementation): New.
531 * objc/runtime.h (method_setImplementation): New.
532 (method_exchangeImplementations): New.
534 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
536 * Protocol.m: Include objc/runtime.h and
537 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
538 repeat Protocol's instance variables.
539 (struct objc_method_description_list): Do not define here.
540 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
541 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
542 selectors directly instead of getting names and then using strcmp.
543 ([descriptionForClassMethod:]): Same change.
544 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
545 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
546 to compare selectors directly instead of getting names and then
548 * objc/Protocol.h: Updated comments.
550 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
552 * init.c (__objc_init_protocol): New function which fixes up a
553 protocol's class pointer, registers it with the runtime, register
554 all protocol selectors and registers associated protocols too.
555 (objc_init_statics): Detect if we are initializing protocols, and
556 if so, use __objc_init_protocol instead of only fixing up the
558 (__objc_init_protocls): Use __objc_init_protocol.
559 * objc-private/module-abi-8.h: Updated comments.
560 * objc-private/runtime.h
561 (__objc_register_selectors_from_description_list): New.
562 * selector.c (__objc_register_selectors_from_description_list):
563 New. (struct objc_method_description_list): Declare.
564 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
565 when accessing the name of a method, which is now correctly a SEL.
566 ([-descriptionForClassMethod:]): Same change.
567 * protocols.c (protocol_getMethodDescription): Same change.
568 * objc/runtime.h: Updated comments.
569 (sel_registerTypedName): Fixed typo in function name.
571 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
574 * init.c (objc_init_statics): Do not skip the initialization of a
575 statics list if the first object has already been initialized; in
576 the case of Protocols, while the first one may have been
577 initialized, some others may not have been initialized yet.
579 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
581 * Makefile.in (OBJC_DEPRECATED_H): Added
582 objc_get_uninstalled_dtable, objc_object_alloc.h and
583 struct_objc_static_instances.h.
585 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
587 * encoding.c (method_copyReturnType): New.
588 (method_copyArgumentType): New.
589 (method_getReturnType): New.
590 (method_getArgumentType): New.
591 * methods.c (method_getDescription): New.
592 * objc/runtime.h (method_copyReturnType): New.
593 (method_copyArgumentType): New.
594 (method_getReturnType): New.
595 (method_getArgumentType): New.
596 (method_getDescription): New.
598 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
600 * encoding.c: Tidied up comments.
601 (objc_skip_variable_name): New static inline function.
602 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
603 the same code over and over.
604 (objc_alignof_type): Same.
605 (objc_aligned_size): Same.
606 (objc_promoted_size): Same.
607 (objc_skip_typespec): Same.
608 (objc_layout_structure_next_member): Same.
609 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
610 historical bug where objc_skip_offset would skip one byte even if
611 there is no offset: check that the first offset digit is actually
612 a digit before skipping it.
613 (objc_skip_type_qualifiers): Mark as inline.
614 (objc_skip_typespec): Mark as inline.
616 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
618 * Makefile.in (C_SOURCE_FILES): Added methods.c.
619 * encoding.c (method_getNumberOfArguments): New.
620 (method_get_number_of_arguments): Call
621 method_getNumberOfArguments.
622 * ivars.c (ivar_getName): Check for NULL variable argument.
623 (ivar_getOffset): Check for NULL variable argument.
624 (ivar_getTypeEncoding): Check for NULL variable argument.
625 (class_copyIvarList): New.
627 * protocols.c (class_copyProtocolList): Check for Nil class_
629 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
630 'struct objc_method_list *' instead of MethodList_t.
631 (class_getMethodImplementation): New.
632 (class_respondsToSelector): New.
633 (class_getInstanceMethod): New.
634 (class_getClassMethod): New.
635 * objc/runtime.h: Updated comments.
636 (class_copyIvarList): New.
637 (class_getInstanceMethod): New.
638 (class_getClassMethod): New.
639 (class_getMethodImplementation): New.
640 (class_respondsToSelector): New.
641 (method_getName): New.
642 (method_getImplementation): New.
643 (method_getTypeEncoding): New.
644 (class_copyMethodList): New.
645 (method_getNumberOfArguments): New.
647 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
649 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
650 instead of objc/objc-api.h.
651 (objc_get_unknown_class_handler): Do not define.
652 (class_isMetaClass): New.
653 (class_getSuperclass): New.
654 (class_getVersion): New.
655 (class_setVersion): New.
656 (class_getInstanceSize): New.
657 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
658 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
659 objc_get_super_class.
660 (get_ttype_entry): Use objc_getRequiredClass instead of
662 * ivars.c (class_getClassVariable): New.
663 * objects.c: Include objc/runtime.h, objc/thr.h and
664 objc-private/module-abi-8.h instead of objc/objc-api.h
665 * objc/runtime.h (class_getClassVariable): New.
666 (class_isMetaClass): New.
667 (class_getSuperclass): New.
668 (class_getVersion): New.
669 (class_setVersion): New.
670 (class_getInstanceSize): New.
671 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
674 (__CLS_ISINFO): Same.
675 (__CLS_SETINFO): Same.
678 (CLS_ISRESOLV): Same.
679 (CLS_SETRESOLV): Same.
680 (CLS_ISINITIALIZED): Same.
681 (CLS_SETINITIALIZED): Same.
682 (CLS_GETNUMBER): Same.
683 (CLS_SETNUMBER): Same.
685 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
687 * archive.c: Do not include objc/objc.h.
688 * class.c: Do not include objc/objc.h.
689 * encoding.c: Include objc/runtime.h, ctype.h and
690 objc-private/module-abi-8.h instead of objc/objc-api.h and
692 * error.c: Do not include objc/objc.h.
693 * gc.c: Include tconfig.h and objc/encoding.h only if
695 * hash.c: Include objc/runtime.h and objc/thr.h instead of
696 objc/objc-api.h. Do not include objc/objc.h.
697 * init.c: Do not include objc/objc.h.
698 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
699 objc/thr.h instead of objc/objc-api.h. Do not include
701 * linking.m: Tidied comment.
702 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
703 Do not include objc/objc.h.
704 * objects.c: Do not include objc/objc.h.
705 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
706 * protocols.c: Do not include objc/objc.h.
707 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
708 not include objc/objc.h.
709 * selector.c: Do not include objc/objc.h.
710 * sendmsg.c: Do not include objc/objc.h.
711 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
712 Do not include objc/objc.h.
713 * objc/objc-decls.h: Reindented code.
714 * objc/runtime.h Include objc-decls.h. Updated comments.
716 (objc_atomic_malloc): New.
720 * objc-private/runtime.h: Updated comments.
722 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
724 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
725 * objc-private/protocols.h: New.
727 * init.c: Include objc-private/protocols.h.
728 (__objc_exec_class): Call __objc_protocols_init on startup.
729 (__objc_init_protocols): Call __objc_protocols_add_protocol.
730 * objc-private/runtime.h: Use (struct objc_method_list *) instead
731 of MethodList_t, and (struct objc_method *) instead of Method_t.
732 * objc/deprecated/struct_objc_class.h: Define
733 __objc_STRUCT_OBJC_CLASS_defined.
734 * objc-private/module-abi-8.h (struct
735 objc_method_description_list): New.
736 (struct objc_class): Only define if
737 __objc_STRUCT_OBJC_CLASS_defined is undefined.
738 * objc/runtime.h (class_getName): New.
739 (objc_getProtocol): New.
740 (objc_copyProtocolList): New.
741 (class_addProtocol): New.
742 (class_conformsToProtocol): New.
743 (class_copyProtocolList): New.
744 (protocol_conformsToProtocol): New.
745 (protocol_isEqual): New.
746 (protocol_getName): New.
747 (protocol_getMethodDescription): New.
748 (protocol_copyMethodDescriptionList): New.
749 (protocol_getProperty): New.
750 (protocol_copyPropertyList): New.
751 (protocol_copyProtocolList): New.
752 * class.c (class_getName): New.
753 * selector.c (sel_isEqual): New.
755 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
757 * selector.c (sel_getName): Return "<null selector>" for a NULL
759 (sel_get_name): Return 0 for a NULL argument.
760 * objc/runtime.h (sel_getName): Updated documentation.
762 * objc-private/hash.h (class_hash_table): Unused declaration
764 (module_hash_table): Same.
765 * objc/deprecated/hash.h: Same changes.
767 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
769 * class.c (objc_getClassList): New.
770 (objc_getRequiredClass): New.
771 (objc_getMetaClass): New.
772 (objc_lookupClass): New.
773 (objc_getClass): New.
774 (__objc_get_unknown_class_handler): New.
775 (objc_setGetUnknownClassHandler): New.
776 (objc_get_class): Use __objc_get_unknown_class_handler.
777 (objc_lookup_class): Call objc_getClass.
778 * objc/objc-api.h: Updated comment and copyright notice.
779 * objc/runtime.h: Updated comments.
780 (objc_getClass): New.
781 (objc_lookupClass): New.
782 (objc_getMetaClass): New.
783 (objc_getRequiredClass): New.
784 (objc_getClassList): New.
785 (objc_setGetUnknownClassHandler): New.
786 (objc_get_unknown_class_handler): New.
787 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
788 instead of __objc_runtime_INCLUDE_GNU as include guard.
789 * objc-private/error.h (_objc_abort): Mark as noreturn.
791 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
793 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
795 * objc/objc.h: Updated comments.
796 * objc/runtime.h (object_getClass): New.
797 (object_getClassName): New.
798 (object_setClass): New.
799 (class_getInstanceVariable): New.
800 (object_getIndexedIvars): New.
801 (object_getInstanceVariable): New.
802 (object_setInstanceVariable): New.
803 (object_getIvar): New.
804 (object_setIvar): New.
806 (ivar_getOffset): New.
807 (ivar_getTypeEncoding): New.
808 * objc-private/module-abi-8.h (struct objc_class): Added.
809 * objects.c (object_getClassName): New.
810 (object_setClass): New.
812 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
814 * objc/objc.h: Updated comments.
815 * objc/objc-api.h: (object_copy): Added one argument; use a
816 #define to maintain backwards-compatibility. Moved
817 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
818 objc_get_uninstalled_dtable into
819 objc/deprecated/objc_get_uninstalled_dtable.h and
820 objc/deprecated/objc_object_alloc.h. Include these files.
821 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
822 * objc/deprecated/objc_object_alloc.h: New.
823 * objc/runtime.h (set_getName): New.
826 (sel_registerName): New.
827 (sel_registerTypedName): New.
829 (class_createInstance): New.
831 (object_dispose): New.
832 * objects.c: Do not include tconfig.h. Include gc_typed.h if
833 building the garbage collection version.
834 (__objc_object_alloc): Removed.
835 (__objc_object_copy): Removed.
836 (__objc_object_dispose): Removed.
837 (class_createInstance): New from code in class_create_instance.
838 Cast second argument of GC_malloc_explicitly_typed. Use
839 objc_calloc. Do not call _objc_object_alloc.
840 (class_create_instance): Call class_createInstance.
841 (object_copy): Added extraBytes argument. Do not call
843 (object_dispose): Do not call _objc_object_dispose.
844 * memory.c (objc_free): When using garbage collection, mark the
846 * selector.c (sel_getName): New.
847 (sel_get_name): Call sel_getName.
849 (sel_get_type): Call sel_getType.
850 (sel_registerName): New.
851 (sel_register_name): Call sel_registerName.
852 (sel_registerTypedName): New.
853 (sel_register_typed_name): Call sel_registerTypedName.
855 (sel_get_uid): Call sel_getUid.
857 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
859 * objc/objc-api.h: Define Method, Method_t, Category and
860 Category_t. Prevent including this file at the same time as
861 objc/runtime.h. Updated comments.
862 * objc/deprecated/struct_objc_method.h: Do not define Method,
864 * objc/deprecated/struct_objc_category.h: Do not define Category,
866 * objc-private/module-abi-8.h: New file containing a copy of all
867 the structure definitions. Not used yet.
868 * objc/encoding.h (objc_aligned_size): Removed duplicate
869 declaration. Updated comments.
870 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
871 Category, struct objc_method_description, _C_ID and similar,
872 _C_CONST and similar and _F_CONST and similar. Added
873 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
874 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
875 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
876 struct objc_struct_layout, objc_layout_structure,
877 objc_layout_structure_next_member, objc_layout_finish_structure,
878 objc_layout_structure_get_info. Prevent including this file at
879 the same time as objc/objc-api.h.
881 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
883 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
884 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
885 struct_objc_method_list.h, struct_objc_module.h,
886 struct_objc_protocol_list.h, struct_objc_symtab.h.
887 * objc/deprecated/struct_objc_category.h: New.
888 * objc/deprecated/struct_objc_ivar.h: New.
889 * objc/deprecated/struct_objc_ivar_list.h: New.
890 * objc/deprecated/struct_objc_method.h: New.
891 * objc/deprecated/struct_objc_method_list.h: New.
892 * objc/deprecated/struct_objc_module.h: New.
893 * objc/deprecated/struct_objc_protocol_list.h: New.
894 * objc/deprecated/struct_objc_symtab.h: New.
895 * objc/deprecated/struct_objc_static_instances.h: New.
896 * objc/objc-api.h: Definitions of deprecated structures moved into
897 the above header fragment files in objc/deprecated/. Include the
898 files instead of definition the structures here. Updated
900 * objc/runtime.h: Updated comments. Do not include objc-api.h.
901 (objc_set_enumeration_mutation_handler): Renamed to
902 objc_setEnumerationMutationHandler.
903 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
904 to objc_setEnumerationMutationHandler.
905 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
906 objc_setExceptionMatcher.
907 (objc_set_uncaught_exception_handler): Renamed to
908 objc_setUncaughtExceptionHandler.
909 * exception.c: Same changes.
911 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
913 * objc-sync.c: Include objc-private/common.h.
915 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
917 * objc-foreach.c: Include objc-private/common.h.
918 * objc/deprecated/METHOD_NULL.h: New file.
919 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
920 defining METHOD_NULL here.
921 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
922 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
924 ([-respondsTo:]): Same change.
925 * objc/objc-api.h (method_get_imp): Converted it into a normal
926 function so that we can hide the internals of struct objc_method.
927 * sendmsg.c (method_get_imp): Implemented.
929 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
931 * objc/objc-api.h (struct objc_super, Super, Super_t,
932 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
933 objc_msg_forward2): Declarations moved to objc/message.h. Include
935 * objc/message.h: Added such declarations; updated comments.
937 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
939 Implemented fast enumeration for Objective-C.
940 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
941 (OBJC_H): Added runtime.h
942 * objc-foreach.c: New file.
943 * objc/runtime.h: New file.
945 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
947 * objc/deprecated/struct_objc_class.h: Add padding
948 to avoid warning with -Wpadded.
950 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
952 * encoding.c (objc_sizeof_type): Added support for vector type and
953 for double long types.
954 (objc_alignof_type): Same change.
955 (objc_skip_typespec): Same change.
956 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
957 instead of '!' since '!' is already used for _C_VECTOR.
958 * objc/objc-api.h (_C_LNG_DBL): Added.
960 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
962 * libobjc_entry.c: File removed.
964 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
966 * sendmsg.c (objc_msg_lookup): Remove inline.
967 (objc_get_uninstalled_dtable): Likewise.
968 * encoding.c (objc_skip_type_qualifiers): Likewise.
969 (objc_skip_offset): Likewise.
970 * archive.c (__objc_write_object): Likewise
971 (__objc_write_class):
972 (__objc_write_selector):
974 (objc_read_unsigned_char):
976 (objc_read_unsigned_short):
979 (__objc_read_nbyte_uint):
980 (objc_read_unsigned_int):
981 (objc_read_unsigned_long):
982 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
983 (objc_EXPORT): Likewise.
984 * objc/message.h (objc-decls.h): Add include.
985 * objc/objc-api.h: Mark API by objc_EXPORT.
986 * libobjc.def (__objc_responds_to): Removed.
988 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
990 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
992 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
993 objc/sarray.h replaced with a placeholder including the file from
994 the deprecated/ directory.
995 * objc-private/sarray.h: New file (private copy of sarray.h).
996 * hash.c: Include <assert.h> instead of "assert.h"
997 * sarray.c: Include <assert.h> instead of "assert.h". Include
998 objc-private/sarray.h instead of objc/sarray.h.
999 * selector.c: Include objc-private/sarray.h instead of
1001 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1002 instead of objc/sarray.h.
1003 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1005 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1007 * objc-private/objc-list.h (list_remove_elem): Unused function
1008 removed. (list_nth): Unused function removed. (list_find):
1009 Unused function removed. (list_lenght): Unused function removed.
1011 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1013 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1014 replaced with a placeholder including the file from the
1015 deprecated/ directory.
1016 * objc/objc-api.h: Updated includes.
1017 * objc/typedstream.h: Updated includes.
1018 * objc-private/hash.h: New file (private copy of hash.h).
1019 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1020 objc/objc-list.h replaced with a placeholder including the file
1021 from the deprecated/ directory.
1022 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1023 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1024 instead of objc/hash.h and objc/objc-list.h.
1025 * selector.c: Same change.
1026 * class.c: Added include <string.h>, which used to be implicitly included
1027 when hash.h was included.
1028 * exception.c: Same change.
1029 * objects.c: Same change.
1030 * sarray.c: Same change.
1031 * sendmsg.c: Same change.
1032 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1034 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1036 Implemented objc_sync_enter() and objc_sync_exit(), which are
1037 required by @synchronized() to work.
1038 * objc-sync.c: New file.
1039 * objc/objc-sync.h: New file.
1040 * objc-private/objc-sync.h: New file.
1041 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1042 Objective-C runtime startup.
1043 * Makefile.in: Added objc-sync.c and objc-sync.h.
1044 * configure.ac: Added GCC_CHECK_TLS.
1045 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1046 * configure: Regenerated.
1047 * config.h.in: Regenerated.
1049 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1051 * Makefile.in (%_gc.lo): New pattern rules to build the
1052 garbage-collected version of the library. Removed rules for
1053 specific files that are no longer needed. Standardized all rules.
1054 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1055 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1057 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1059 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1061 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1062 with Garbage Colletion.
1064 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1066 * memory.c: Do not include objc-private/runtime.h.
1068 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1070 * objc/deprecated/objc_malloc.h: New file.
1071 * objc/deprecated/objc_valloc.h: New file.
1072 * objc/objc-api.h: Include the files instead of defining
1073 objc_valloc, _objc_malloc() and similar.
1074 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1076 * memory.c: Removed the extra layer of indirection of _objc_malloc
1078 (objc_calloc): Use GC_malloc in the garbage-collected
1079 implementation as GC_malloc returns memory that is already freed.
1080 (objc_valloc): Deprecated.
1082 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1084 * objc/deprecated/objc_error.h: New file.
1085 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1086 defining objc_error and related.
1087 * error.c: New file. Added _objc_abort function which replaces
1088 objc_error. No change in functionality as they both print an
1090 * misc.c: File removed. Code moved into memory.c and error.c.
1091 * memory.c: New file.
1092 * objc-private/error.h: New file.
1093 * archive.c: Include objc-private/error.h and use _objc_abort
1094 instead of objc_error everywhere.
1095 * class.c: Same change.
1096 * encoding.c: Same change.
1097 * init.c: Same change, and simplified init_check_module_version.
1098 * memory.c: Same change.
1099 * sendmsg.c: Same change.
1100 * thr.c: Same change.
1101 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1102 (OBJ_H): Reordered list.
1103 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1104 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1105 (misc_gc.lo): Rule removed.
1106 (error_gc.lo): Rule added.
1107 (memory_gc.lo): Rule added.
1109 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1111 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1112 to check the API version. Added some comments.
1114 * objc-private/common.h: New file.
1115 * NXConstStr.m: Include objc-private/common.h.
1116 * Object.m: Same change.
1117 * Protocol.m: Same change.
1118 * archive.c: Same change.
1119 * class.c: Same change.
1120 * encoding.c: Same change.
1121 * exception.c: Same change.
1122 * gc.c: Same change.
1123 * hash.c: Same change.
1124 * init.c: Same change.
1125 * libobjc_entry.c: Same change.
1126 * linking.m: Same change.
1127 * misc.c: Same change (and added a comment).
1128 * nil_method.c: Same change.
1129 * objects.c: Same change.
1130 * sarray.c: Same change.
1131 * selector.c: Same change.
1132 * sendmsg.c: Same change.
1133 * thr.c: Same change.
1135 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1137 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1139 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1141 * archive.c: Removed not needed includes.
1142 * class.c: Same change.
1143 * hash.c: Same change.
1144 * misc.c: Same change.
1145 * nil_method.c: Same change.
1146 * objects.c: Same change.
1147 * sarray.c: Same change.
1148 * sendmsg.c: Same change.
1149 * thr.c: Same change.
1151 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1153 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1154 all the objc/*.h files.
1155 * objc-private/runtime.h: New file.
1156 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1157 files) instead of objc/runtime.h.
1158 * class.c: Same change.
1159 * hash.c: Same change.
1160 * init.c: Same change.
1161 * misc.c: Same change.
1162 * nil_method.c: Same change.
1163 * objects.c: Same change.
1164 * sarray.c: Same change.
1165 * selector.c: Same change.
1166 * sendmsg.c: Same change.
1167 * thr.c: Same change.
1169 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1171 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1172 'struct objc_selector' and 'sel_eq' moved here.
1173 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1174 'struct objc_procotol' moved here.
1175 * objc/deprecated/struct_objc_class.h: New file. Definition of
1176 'struct objc_class' moved here.
1177 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1179 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1180 * objc/message.h: New file. Definitions for relval_t, apply_t,
1181 arglist, arglist_t and objc_msg_lookup were moved here.
1182 * objc/objc.h: Include the above files instead of defining the
1183 corresponding structs, types and functions here. Added new opaque
1184 definitions for SEL and Class. Use Class and not 'struct
1185 objc_class *' in the definition of 'struct objc_object'.
1186 Commented all types defined in the file. Removed special
1187 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1189 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1190 objc_unexpected_exception.h.
1191 * objc/objc-api.h: Updated include of
1192 objc-unexpetected-exception.h
1193 * objc/objc-exception.h: Updated comments.
1194 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1195 files. Reindented list of files.
1197 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1199 * objc/objc-api.h (objc_trace): Unused variable removed.
1201 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1203 * objc/deprecated: New directory.
1204 * objc/deprecated/README: New file.
1205 * objc/README: New file.
1206 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1207 objc/typedstream.h replaced with a placeholder including the file
1208 from the deprecated/ directory.
1209 * objc/deprecated/objc-unexpected-exception.h: New file with the
1210 definition of _objc_unexpected_exception.
1211 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1212 instead of defining _objc_unexpected_exception.
1213 * objc/deprecated/Object.h: New file with the deprecated Object
1214 methods in a 'Deprecated' category.
1215 * objc/Object.h Include deprecated/Object.h instead of defining
1216 the deprecated methods.
1217 * Object.m: Moved deprecated methods into 'Deprecated' category.
1218 * objc-private: New directory.
1219 * objc-private/README: New file.
1220 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1221 (install-headers): Create installation directory for
1222 OBJC_DEPRECATED_H headers, and install them.
1224 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1226 * objc/objc-exception.h: Fixed include of objc.h.
1228 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1230 * objc/objc-exception.h: New file.
1231 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1232 (objc_set_exception_matcher): Implemented.
1233 (objc_exception_throw): Use the uncaught exception handler if set.
1234 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1236 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1237 up. Removed segmentation fault when value is 'nil'.
1238 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1240 * Makefile.in (exception.lo, exception_gc.lo): Use
1241 -Wno-deprecated-declarations when compiling.
1242 (OBJC_H): Added objc-exception.h
1244 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1246 * objc/typedstream.h: Deprecate all functions in the file. This
1248 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1249 [-awake]): Documented that these methods are deprecated. Added a
1250 brief description of the Object class and its relationship to the
1252 * Makefile.in: Compile archive.c and Object.m with
1253 -Wno-deprecated-declarations.
1255 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1257 Removed obsolete intermediate threading layer.
1258 * thr.c: Use __gthread_objc_xxx functions directly instead of
1259 __objc_thread_xxx ones.
1260 * objc/thr.h: Removed prototypes of no longer existing
1261 __objc_thread_xxx functions.
1262 * Makefile.in: Removed thr-objc.lo.
1263 * thr-dce.c: File removed.
1264 * thr-decosf1.c: File removed.
1265 * thr-irix.c: File removed.
1266 * thr-mach.c: File removed.
1267 * thr-objc.c: File removed.
1268 * thr-os2.c: File removed.
1269 * thr-posix.c: File removed.
1270 * thr-pthreads.c: File removed.
1271 * thr-rtems.c: File removed.
1272 * thr-single.c: File removed.
1273 * thr-solaris.c: File removed.
1274 * thr-vxworks.c: File removed.
1275 * thr-win32.c: File removed.
1276 * README.threads: File removed.
1277 * THREADS.MACH: File removed.
1280 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1282 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1284 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1286 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1287 Add a comment as to why, update FIXME comments.
1289 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1291 * makefile.dos: Obsolete file removed.
1293 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1295 * aclocal.m4: Regenerate.
1297 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1300 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1301 Cygwin and MinGW hosts.
1302 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1303 (libobjc.dll): Likewise.
1304 * configure: Regenerate.
1306 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1308 * configure: Regenerate.
1310 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1312 * sarray.c (sarray_free): Use old_buckets variable.
1313 * encoding.c (objc_layout_structure_next_member): Remove unused
1314 bfld_type_size variable.
1316 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1318 * configure.ac (AC_PREREQ): Bump to 2.64.
1320 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1322 * aclocal.m4: Regenerate.
1323 * configure: Regenerate.
1324 * config.h.in: Regenerate.
1326 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1328 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1330 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1332 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1334 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1336 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1338 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1340 2009-04-09 Nick Clifton <nickc@redhat.com>
1342 * sendmsg.c: Change copyright header to refer to version 3 of
1343 the GNU General Public License with version 3.1 of the GCC
1344 Runtime Library Exception and to point readers at the COPYING3
1345 and COPYING3.RUNTIME files and the FSF's license web page.
1346 * NXConstStr.m: Likewise.
1347 * Object.m: Likewise.
1348 * Protocol.m: Likewise.
1349 * archive.c: Likewise.
1350 * class.c: Likewise.
1351 * encoding.c: Likewise.
1352 * exception.c: Likewise.
1356 * libobjc_entry.c: Likewise.
1357 * linking.m: Likewise.
1359 * nil_method.c: Likewise.
1360 * objc/NXConstStr.h: Likewise.
1361 * objc/Object.h: Likewise.
1362 * objc/Protocol.h: Likewise.
1363 * objc/encoding.h: Likewise.
1364 * objc/hash.h: Likewise.
1365 * objc/objc-api.h: Likewise.
1366 * objc/objc-decls.h: Likewise.
1367 * objc/objc-list.h: Likewise.
1368 * objc/objc.h: Likewise.
1369 * objc/runtime.h: Likewise.
1370 * objc/sarray.h: Likewise.
1371 * objc/thr.h: Likewise.
1372 * objc/typedstream.h: Likewise.
1373 * objects.c: Likewise.
1374 * sarray.c: Likewise.
1375 * selector.c: Likewise.
1376 * thr-dce.c: Likewise.
1377 * thr-decosf1.c: Likewise.
1378 * thr-irix.c: Likewise.
1379 * thr-mach.c: Likewise.
1380 * thr-objc.c: Likewise.
1381 * thr-os2.c: Likewise.
1382 * thr-posix.c: Likewise.
1383 * thr-pthreads.c: Likewise.
1384 * thr-rtems.c: Likewise.
1385 * thr-single.c: Likewise.
1386 * thr-solaris.c: Likewise.
1387 * thr-vxworks.c: Likewise.
1388 * thr-win32.c: Likewise.
1390 * libobjc.def: Change copyright header to refer to version 3 of
1391 the GNU General Public License and to point readers at the COPYING3
1392 file and the FSF's license web page.
1393 * makefile.dos: Likewise.
1395 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1397 * Makefile.in: Change copyright header to refer to version
1398 3 of the GNU General Public License and to point readers at the
1399 COPYING3 file and the FSF's license web page.
1400 * configure.ac: Likewise.
1402 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1403 David Ayers <ayers@fsfe.org>
1406 * objc/objc-api.h (_objc_unexpected_exception): Declare
1407 new hook. Update copyright dates.
1408 * exception.c (objc_exception_throw): Use hook. Update
1410 * libobjc.def (_objc_unexpected_exception): Export hook.
1411 Update copyright dates.
1413 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1415 * configure: Regenerate.
1417 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1419 * configure: Regenerate.
1421 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1423 * Object.m (errno): Replaced by errno.h include.
1424 (compare): Cast self to id to prevent warning on comparison.
1425 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1427 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1428 * thr-win32.c (__objc_thread_detach): Remove type warning.
1429 (__objc_thread_id): Likewise.
1430 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1433 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1434 Steve Ellcey <sje@cup.hp.com>
1436 * configure: Regenerate for new libtool.
1437 * config.h.in: Regenerate for new libtool.
1439 2008-07-18 Matthias Klose <doko@ubuntu.com>
1441 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1443 2008-07-18 Matthias Klose <doko@ubuntu.com>
1445 * Makefile.in: Include ../boehm-gc/threads.mk.
1446 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1448 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1450 * Makefile.in (install-info): New stub target.
1452 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1454 * configure: Regenerate.
1456 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1458 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1459 if HAVE_GETIPINFO is not defined.
1461 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1463 * Object.m (compare): Add type id.
1464 * objc/Object.h: Likewise.
1465 * archive.c (objc_read_class): Use size_t to extend version to be
1466 size of pointer scalar width.
1467 * sendmsg.c (rtx): Undefine it before redefinition.
1468 (__objc_print_dtable_stats): Cast arguments to long as intended.
1470 2008-05-30 Julian Brown <julian@codesourcery.com>
1472 * exception.c (__objc_exception_class): Initialise as constant
1473 array for ARM EABI. Change macro to static const for non-ARM EABI.
1474 (ObjcException): Add note about structure layout. Remove landingPad
1475 and handlerSwitchValue for ARM EABI.
1476 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1478 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1479 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1480 ARM EABI unwinding support.
1481 (objc_exception_throw): Use memcpy to initialise exception class.
1483 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1485 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1486 (rs6000_special_round_type_align): Update.
1488 2008-05-09 Julian Brown <julian@codesourcery.com>
1490 * Makefile.in (LTLDFLAGS): New.
1491 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1493 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1496 * aclocal.m4: Regenerate.
1497 * configure: Regenerate.
1499 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1501 * configure: Regenerate.
1503 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1505 * configure.ac: Don't run config-ml.in directly.
1506 (multilib_arg): New.
1507 * configure: Regenerated.
1509 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1512 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1513 of _Unwind_Word for variables which are used in
1514 read_uleb128/read_sleb128.
1515 (PERSONALITY_FUNCTION): Likewise.
1517 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1519 * aclocal.m4: Regenerated.
1521 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1523 * configure.ac: Fix a typo in *-*-darwin clause.
1524 * configure: Regenerated.
1526 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1528 * configure.ac: Fix a typo.
1529 * configure: Regenerated.
1531 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1533 * configure: Regenerate.
1535 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1537 * Makefile.in: Replace all uses of libext with libsuffix.
1538 * configure.ac: Likewise.
1539 * configure: Regenerate.
1542 * Makefile.in: Remove all uses of $(libext).
1544 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1546 * Makefile.in: Remove all uses of $(libext).
1548 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1550 * configure: Regenerate.
1551 * aclocal.m4: Regenerate.
1553 2007-04-21 Andrew Ruder <andy@aeruder.net>
1555 * sendmsg.c (__objc_get_forward_imp): Call
1556 __objc_msg_forward2 for real.
1558 2007-04-09 Andrew Ruder <andy@aeruder.net>
1560 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1561 external libraries to provide a function that returns the real
1562 forwarding function based on both the selector and the receiver.
1563 * objc/objc-api.h: Define __objc_msg_forward2.
1565 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1567 * Makefile.in: Add dummy install-pdf target.
1569 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1571 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1574 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1576 * encoding.c (darwin_rs6000_special_round_type_align): New.
1578 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1580 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1581 * configure.ac: Use multi.m4 from aclocal rather than custom
1582 code. Use multi_basedir instead of toplevel_srcdir.
1583 * aclocal.m4: Regenerate.
1584 * configure: Regenerate.
1586 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1588 * Makefile.in: Added empty "pdf" target.
1590 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1592 * configure: Regenerate.
1594 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1596 * Makefile.in: Add install-html target. Add install-html to .PHONY
1598 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1601 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1603 2006-01-24 David Ayers <d.ayers@inode.at>
1606 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1607 and insure the new strings are '\0' termintated.
1609 2006-01-24 David Ayers <d.ayers@inode.at>
1612 * configure.ac: Add include directives for --enable-objc-gc.
1613 * Makefile.in: Ditto.
1614 * configure: Regenerate.
1616 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1617 instead of the local pointer to them.
1619 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1622 * objc/objc-api.c (_C_COMPLEX): New define.
1623 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1624 (objc_alignof_type): Likewise.
1625 (objc_skip_typespec): Likewise.
1627 2005-12-15 David Ayers <d.ayers@inode.at>
1630 * README (+load,+initialize): Fix documentation to reflect
1631 intended and implemented semantics for +load and +initialize.
1633 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1635 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1637 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1638 (rs6000_special_round_type_align): Update for the ABI fix.
1639 (objc_layout_finish_structure): Correct the encoding which is passed to
1642 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1645 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1646 but use the struct layout functions.
1647 (objc_alignof_type): Likewise.
1648 (objc_layout_structure): Handle _C_UNION_B also.
1649 (objc_layout_structure_next_member): Likewise.
1650 (objc_layout_finish_structure): Likewise.
1652 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1655 * objc/objc-api.h (_C_BOOL): New define.
1656 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1657 (objc_alignof_type): Likewise.
1658 (objc_skip_typespec): Likewise.
1660 2005-11-20 David Ayers <d.ayers@inode.at>
1663 * objc/hash.h: Remove deprecated hash API.
1664 * hash_compat.c: Remove.
1665 * Makefile.in: Remove reference to hash_compat.c.
1667 * configure.ac (VERSION): Bump library version to 2:0:0.
1668 * configure: Regenerate.
1670 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1673 * thr-objc.c (_XOPEN_SOURCE): Define.
1675 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1678 * objc/objc-api.h (struct objc_ivar): Move definition to
1681 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1682 Rasmus Hahn <rassahah@neofonie.de>
1685 * archive.c (objc_write_type): Correct the element offset.
1686 (objc_read_type): Likewise.
1688 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1690 * All files: Update FSF address.
1692 2005-08-13 Marcin Koziej <creep@desk.pl>
1693 Andrew Pinski <pinskia@physics.uc.edu>
1696 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1698 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1700 * Makefile.in (extra_ldflags_libobjc): New.
1701 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1702 (libobjc_gc$(libext).la): Likewise.
1703 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1704 "-Wl,-single_module".
1705 * configure: Regenerate.
1706 * linking.m (_objcInit): Remove.
1708 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1711 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1713 2005-06-08 David Ayers <d.ayers@inode.at>
1715 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1716 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1717 objc/runtime.h, objc/sarray.h, objc/thr.h,
1718 objc/typedstream.h: Do not include Objective-C headers as
1721 2005-06-07 David Ayers <d.ayers@inode.at>
1723 * archive.c, init.c, selector.c: Include hash.h.
1724 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1725 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1726 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1727 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1728 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1729 Include Objective-C headers with quotes and objc/ directory
1732 2005-05-19 Richard Henderson <rth@redhat.com>
1734 * exception.c: Revert last change.
1736 2005-05-19 David Ayers <d.ayers@inode.at>
1738 * exception.c: Include tsystem.h for unwind.h.
1740 2005-05-09 Mike Stump <mrs@apple.com>
1742 * configure: Regenerate.
1744 2005-04-12 Mike Stump <mrs@apple.com>
1746 * configure: Regenerate.
1748 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1750 * Makefile.in: Set gcc_version here.
1751 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1752 in definition of toolexeclibdir so that $(gcc_version) is expanded
1754 * aclocal.m4, configure: Regenerate.
1756 2005-03-03 David Ayers <d.ayers@inode.at>
1758 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1759 version reference. Correct typo.
1761 2005-03-02 David Ayers <d.ayers@inode.at>
1764 * Makefile.in (OBJS): Add hash_compat.lo.
1765 (OBJS_GC): Add hash_compat_gc.lo.
1766 (hash_compat_gc.lo): New target and rule.
1767 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1768 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1769 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1770 with objc_. Add deprecated non prefixed inlined versions.
1771 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1773 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1774 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1776 * hash_compat.c: New file.
1777 * archive.c: Update callers.
1779 * selector.c: Likewise.
1780 * libobjc.def: Add objc_ versions of hash functions.
1782 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1785 * Makefile.in (GTHREAD_FLAGS): Remove.
1786 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1787 * thr-objc.c: Include config.h.
1788 * configure.ac: Instead of looking at GCC's makefile, figure out if
1789 GTHREAD_FLAGS should be defined by looking at the `thread model'
1791 * configure: Regenerate.
1792 * config.h.in: Regenerate.
1794 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1797 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1798 (Determine CFLAGS for gthread): Use $host_subdir.
1799 * configure: Regenerate.
1800 * Makefile.in (host_subdir): New.
1803 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1806 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1808 Include limits.h and stdlib.h.
1809 Define BITS_PER_WORD.
1811 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1813 * selector.c (__objc_init_selector_tables): Add missing void to
1816 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1818 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1819 * configure, aclocal.m4: Regenerate.
1821 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1823 * configure: Regenerate for libtool change.
1825 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1827 * configure: Regenerate for libtool reversion.
1829 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1831 * configure: Regenerate for libtool change.
1833 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1835 * aclocal.m4, config.h.in: Regenerate.
1837 2004-10-08 Mike Stump <mrs@apple.com>
1838 Andrew Pinski <pinskia@physics.uc.edu>
1840 * aclocal.m4: Rename to ...
1841 * acinclude.m4: here and also use m4_include instead of sinclude.
1842 * aclocal.m4: Regenerate.
1843 * configure: Regenerate.
1844 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1845 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1847 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1849 * archive.c: Fix all the warnings about passing unsigned char*
1850 to char* and the other way too.
1852 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1855 * exception.c: Include config.h
1856 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1858 * configure.ac: Find out what exception handling code we use.
1859 * configure: Regenerate.
1860 * config.h.in: New file, regenerate.
1862 2004-09-16 Andrew Pinski <apinski@apple.com>
1864 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1866 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1868 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1869 ACX_NONCANONICAL_TARGET.
1870 * configure: Regenerate.
1872 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1874 * objc/sarray.h: Hoist include of assert.h near the top of file,
1875 and mark the remainder of the file 'extern "C"'.
1877 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1879 * objc/Object.h: Move includes out of extern "C" blocks.
1880 * objc/encoding.h: Likewise.
1881 * objc/hash.h: Likewise.
1882 * objc/objc-api.h: Likewise.
1883 * objc/runtime.h: Likewise.
1884 * objc/sarray.h: Likewise.
1885 * objc/typedstream.h: Likewise.
1887 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1889 * objc/NXConstStr.h: Update copyright date; bracket with
1890 'extern "C"' for C++ use; make include syntax consistent
1891 by using <...> instead of "..."; hoist <objc/...> includes
1892 above the 'extern "C"' block.
1893 * objc/Object.h: Likewise.
1894 * objc/Protocol.h: Likewise.
1895 * objc/encoding.h: Likewise.
1896 * objc/hash.h: Likewise.
1897 * objc/runtime.h: Likewise.
1898 * objc/sarray.h: Likewise.
1899 * objc/thr.h: Likewise.
1900 * objc/typedstream.h: Likewise.
1901 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1902 (objc_static_instances): For C++ case, do away with
1904 (objc_method): Hoist definition to file scope.
1905 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1906 class_get_instance_method, class_create_instance,
1907 class_get_class_name, class_get_instance_size,
1908 class_get_meta_class, class_get_super_class, class_get_version,
1909 class_is_class, class_is_meta_class, class_set_version,
1910 class_get_gc_object_type, class_ivar_set_gcinvisible,
1911 get_imp): Rename 'class' parameter to '_class'.
1912 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1913 * objc/objc.h: Update copyright date.
1914 (arglist_t): Provide a union tag.
1916 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1918 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1919 but instead use the attribute noreturn.
1921 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1923 * encoding.c: Rename target_flags with a #define to avoid
1924 conflict with a prior declaration.
1926 2004-06-24 Andrew Pinski <apinski@apple.com>
1928 * objc/encoding.h: Wrap the functions with extern "C" for C++
1930 * objc/hash.h: Likewise.
1931 * objc/objc-api.h: Likewise.
1932 * objc/objc-list.h: Likewise.
1933 * objc/runtime.h: Likewise.
1934 * objc/sarray.h: Likewise.
1935 * objc/thr.h: Likewise.
1936 * objc/typedstream.h: Likewise.
1939 2004-06-21 Nick Clifton <nickc@redhat.com>
1941 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1944 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1946 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1947 (exception_gc.lo): New.
1948 (OBJS_GC): Add exception_gc.lo.
1950 2004-06-17 Richard Henderson <rth@redhat.com>
1952 * exception.c: New file.
1953 * Makefile.in (exception.lo): New.
1956 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1958 * linking.m (_objcInit): New empty function
1961 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1963 * configure.ac: Support --enable-shared=libobjc.
1964 * configure: Regenerate.
1967 * configure.ac: Do not disable shared by default.
1968 * configure: Regenerate.
1970 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1972 * Protocol.m ([-isEqual:]): Small optimizations returning
1973 immediately if the argument is equal to self, and accessing
1974 the argument's name directly if it's a protocol.
1976 2004-06-03 David Ayers <d.ayers@inode.at>
1978 * Protocol.m ([-isEqual:]): Test the class of the argument.
1980 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1982 * configure.ac (includedir): Rename to ...
1984 * Makefile.in: s/includedir/includedirname/.
1987 * configure.ac (includedir): Set to "include"
1989 (libext) Set to empty except for Darwin.
1990 * configure: Regenerate
1991 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1992 s/include/$(includedir)/g.
1994 2004-05-25 Daniel Jacobowitz <drow@false.org>
1996 * Makefile.in: Add .NOEXPORT.
1998 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2000 Merge from the libobjc-branch
2001 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2003 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2005 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2007 * Makefile.in (OBJC_H): Add objc-deps.h.
2009 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2011 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2012 ([-hash], [-isEqual:]): New methods.
2014 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2016 * sarray.c (sarray_free): Add a better comment.
2018 2004-01-27 Adam Fedor <fedor@gnu.org>
2020 * hash.c (hash_add): Cast cachep to int.
2021 * selector.c (__sel_register_typed_name): Cast
2022 soffset_decode to int.
2024 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2026 * selector.c: Rename register_selectors_from_list to
2027 __objc_register_selectors_from_list. Update caller.
2028 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2029 while registering selectors. Use __sel_register_typed_name instead
2030 of sel_register_typed_name. Check for NULL method_name:s.
2031 (pool_alloc_selector): New function.
2032 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2033 selector structures.
2034 * sendmsg.c (class_add_method_list): Use
2035 __objc_register_selectors_from_list.
2036 * objc/runtime.h: Add __objc_register_selectors_from_list.
2038 2004-01-25 Adam Fedor <fedor@gnu.org>
2039 Nicola Pero <n.pero@mi.flashnet.it>
2040 Andrew Pinski <pinskia@physics.uc.edu>
2042 * objc/objc-decls.h: New file.
2043 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2044 (_objc_load_callback): Likewise.
2045 (_objc_object_alloc): Likewise.
2046 (_objc_object_copy): Likewise.
2047 (_objc_object_dispose): Likewise.
2049 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2051 * archive.c: s/__inline__/inline
2052 * sendmsg.c: Likewise.
2054 * encoding.c: Remove FIXME about the warning
2055 about unused variable.
2056 * sendmsg.c: Add a FIXME comment saying that
2057 this should be using libffi.
2059 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2062 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2064 * archive.c (objc_read_class): Initialize class_name.
2065 (objc_read_selector): Initialize selector_name.
2067 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2069 * Makefile.in (toolexecdir): Remove trailing space.
2071 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2074 * configure.ac: De-precious CC so multilibs work.
2075 * configure: Regenerate.
2077 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2079 * configure.ac: Restore toolexecdir.
2080 * Makefile.in: Restore toolexecdir.
2081 * configure: Regenerate.
2083 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2085 * configure.ac: Remove (unused) glibcpp_prefixdir.
2086 * configure: Regenerate.
2088 * configure.in: Rename to configure.ac.
2089 * Makefile.in: Update to match.
2091 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2092 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2093 * configure.in: Remove glibcpp_toolexecdir (unused).
2094 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2095 config.h or stamp-h (unused). Move one comment to the right place.
2096 * configure: Regenerate.
2097 * config.h.in: Remove (unused).
2099 * config.h.in: Regenerate with autoheader.
2101 * Makefile.in: Remove (unused) gcc_version_trigger.
2102 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2103 gcc_version_trigger.
2104 * configure: Regenerate.
2106 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2107 Sort file into sections. Remove dnl where appropriate. Fix
2109 * configure: Regenerate.
2111 * configure.in: Replace old AC_PROG_CC hack with new one.
2112 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2113 are no subdirectory output files, so this is fine). Change prereq
2115 * aclocal.m4: Include ../config/no-executables.m4.
2116 * configure: Regenerate with autoconf 2.59.
2118 * configure.in: Improve comments on gthread_cflags. Improve m4
2119 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2120 * configure: Regenerate.
2122 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2123 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2124 redundant checks for values of RANLIB, AR, INSTALL.
2125 * configure: Regenerate.
2127 * configure.in: Clean up handling of
2128 --enable-version-specific-runtime-libs and related variables;
2129 replace 'if test' with 'case' where reasonable. Fix comments.
2130 Remove useless libstdcxx_interface.
2131 * configure: Regenerate.
2133 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2134 Replace uses of target_alias with target_noncanonical.
2135 * aclocal.m4: Include ../config/acx.m4.
2136 * configure: Regenerate.
2137 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2138 Fix copyright statement.
2140 * configure.in: Hand-inline bulky, confusing macros from
2141 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2142 Update copyright notice. Remove stuff for automake, which isn't
2143 used in this directory. Remove emacs local variables.
2144 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2145 * configure: Regenerate.
2147 2004-03-16 Manfred Hollstein <mh@suse.com>
2149 * Makefile.in, configure.in, configure: Update copyright years.
2151 2004-03-15 Manfred Hollstein <mh@suse.com>
2153 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2154 definition from configure.in.
2155 * configure.in (PACKAGE): Add definition.
2156 (VERSION): Add definition; substitute it in output files.
2157 * configure: Re-generate.
2159 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2161 * objc/hash.h (hash_string, compare_strings):
2162 Add type-casts to make Objective-C++ happy.
2163 * objc/typedstream.h (objc_get_stream_class_version):
2164 Rename parameter from 'class' to 'class_name' to make
2165 Objective-C++ happy.
2167 2004-03-01 Michael Matz <matz@suse.de>
2169 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2171 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2173 * objc/objc-api.h (objc_super): The 'class' field shall
2174 be named 'super_class' #ifdef __cplusplus.
2176 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2179 * encoding.c (rs6000_special_round_type_align): Define.
2181 2004-01-14 Adam Fedor <fedor@gnu.org>
2184 * selector.c (__objc_register_instance_methods_to_class): Free
2185 new_list if not used.
2187 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2190 * sarray.c (sarray_free): Free array->is_copy_of latter.
2192 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2195 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2196 instance_methods if it's NULL.
2197 (descriptionForClassMethod): Likewise for class_methods.
2199 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2201 * Makefile.in (runtime-info.h): Remove -Wp.
2203 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2205 * Makefile.in (CC1OBJ): Remove.
2206 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2208 Use .m extension for temporary file.
2209 Remove assembler temp file.
2211 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2213 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2215 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2217 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2219 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2221 * configure: Regenerate.
2223 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2225 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2226 (libdir)/gcc-lib/ when installing.
2227 * configure: Regenerate.
2229 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2232 * sendmsg.c (get_imp): Fixed rare threading problem.
2233 (__objc_responds_to): Similar fixes.
2234 (objc_msg_lookup): Similar fixes.
2235 (__objc_init_install_dtable): Lock the runtime before checking if the
2238 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2240 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2241 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2242 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2243 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2244 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2245 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2246 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2247 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2248 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2249 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2250 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2252 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2253 Nicola Pero <n.pero@mi.flashnet.it>
2256 * init.c (class_superclass_of_class): New function.
2257 (create_tree_of_subclasses_inherited_from): Use it.
2258 (__objc_tree_insert_class): Likewise.
2259 (class_is_subclass_of_class): Likewise.
2261 2003-04-11 David Chad <davidc@freebsd.org>
2262 Loren J. Rittle <ljrittle@acm.org>
2265 * objc/hash.h (hash_string): Constify correctly.
2266 (compare_ptrs): Use direct compare.
2267 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2268 * objc/sarray.h: Global rename index to indx to avoid shadow.
2270 2003-03-12 Andreas Schwab <schwab@suse.de>
2272 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2273 glibcpp_toolexeclibdir.
2274 * configure: Rebuilt.
2276 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2278 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2280 * configure: Rebuilt.
2282 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2284 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2285 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2286 version_specific_libs is enabled.
2287 * configure: Rebuilt.
2289 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2291 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2292 (install-libs, install-headers): Prepend $(DESTDIR) to
2293 destination paths in all (un)installation commands.
2295 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2297 * thr-objc.c: Include coretypes.h and tm.h.
2299 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2301 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2303 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2305 * configure.in: Remove skip-this-dir support.
2306 * configure: Regenerate.
2308 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2310 * Makefile.in (all): Fix multilib parallel build.
2312 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2314 * sendmsg.c (nil_method): Declare not to take a variable number of
2316 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2317 (objc_msg_lookup_super): The same.
2319 2002-09-10 Jan Hubicka <jh@suse.cz>
2321 * nil_method.c (nil_method): No longer defined with variable
2324 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2326 * objc/encoding.h: Fix formatting.
2327 * objc/hash.h: Likewise.
2328 * objc/objc-api.h: Likewise.
2329 * objc/runtime.h: Likewise.
2330 * objc/thr.h: Likewise.
2331 * archive.c: Likewise.
2332 * class.c: Likewise.
2333 * encoding.c: Likewise.
2338 * nil_method.c: Likewise.
2339 * objects.c: Likewise.
2340 * sarray.c: Likewise.
2341 * selector.c: Likewise.
2342 * sendmsg.c: Likewise.
2343 * thr-mach.c: Likewise.
2346 2002-06-25 DJ Delorie <dj@redhat.com>
2348 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2349 GLIBCPP_TOPREL_CONFIGURE.
2350 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2351 * configure: Regenerate.
2353 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2355 * Object.m (forward, read, write): Fix unused parameter warnings.
2356 * encoding.c: Include <stdlib.h>.
2357 (target_flags): Mark with attribute unused.
2359 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2360 (__objc_generate_gc_type_description): Prototype.
2361 * selector.c (__objc_selector_max_index): Change to unsigned int.
2363 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2365 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2366 we always have a return value: if __objc_msg_forward does not
2367 supply a forwarding implementation, return the default
2368 __builtin_apply based one.
2370 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2372 * Object.m: Fix signed/unsigned warning.
2373 * Protocol.m: Likewise.
2374 * archive.c: Always include stdlib.h.
2375 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2376 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2377 Fix signed/unsigned warning.
2378 (objc_write_type, objc_read_type, objc_write_types,
2379 objc_read_types): Ensure ctype 8-bit safety.
2380 (__objc_no_write, __objc_no_read): Mark unused parameters.
2381 * class.c (class_table_setup): Specify void arg.
2382 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2383 objc_skip_typespec, objc_skip_offset,
2384 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2385 (objc_layout_structure_next_member): Ensure variables are
2387 * gc.c (__objc_generate_gc_type_description,
2388 class_ivar_set_gcinvisible): Mark unused parameters.
2389 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2391 (__objc_init_protocols) Fix signed/unsigned warning.
2392 * nil_method.c (nil_method): Mark unused parameters.
2393 * thr.h (objc_thread_callback): Specify void arg.
2394 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2395 signed/unsigned warning.
2396 (sarray_free): Fix formatting.
2397 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2398 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2400 2002-06-09 Andreas Jaeger <aj@suse.de>
2402 * encoding.c (objc_layout_structure_next_member): Remove unused
2405 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2407 * Makefile.in (SHELL): Set to @SHELL@.
2409 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2411 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2413 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2414 * configure: Regenerate.
2416 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2418 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2419 script entry, and set LD to it when configuring multilibs.
2420 * configure: Rebuilt.
2422 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2424 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2426 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2429 * objc/objc-api.h (struct objc_protocol_list): Change type of
2430 member count from int to size_t.
2432 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2435 * aclocal.m4: Replace with version copied from libstdc++-v3.
2436 * configure.in: Update for changes to aclocal and Makefile.
2437 * configure: Regenerate.
2438 * Makefile.in: Correct install of multilibs and shared libs, use
2439 INSTALL_DATA for include files.
2441 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2443 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2444 categories - when an unclaimed category was found, the loop was
2445 doing two steps forward instead of one, so that in certain cases
2446 it was failing to properly load all the categories. (Reported
2447 with fix by Alexander Malmberg <alexander@malmberg.org>).
2449 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2451 * encoding.c: Add target_flags.
2453 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2455 * objc/objc-api.h (_C_VECTOR): New.
2457 * encoding.c (VECTOR_TYPE): New.
2459 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2461 * class.c: Rewritten the class table to use optimized, lock-free
2462 lookup. This more than doubles the speed of class method
2463 invocations. (class_table_setup), (class_table_insert),
2464 (class_table_replace), (class_table_get_safe),
2465 (class_table_next), (class_table_print),
2466 (class_table_print_histogram): New functions.
2467 (__objc_init_class_tables): Use class_table_setup.
2468 (__objc_add_class_to_hash): Use class_table_get_safe and
2469 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2470 assert the existence of the table; do not lock the runtime; use
2471 class_table_get_safe. (objc_next_class): Use class_table_next.
2472 (__objc_resolve_class_links): Use class_table_next.
2473 (class_pose_as): Use class_table_replace.
2475 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2477 * gc.c: Removed the DEBUG declaration.
2479 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2481 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2482 rather than through objc_thread_id, to save a function call.
2483 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2486 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2488 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2489 to cast an id to a Class, which can not be done. Make the check
2490 by using CLS_ISMETA on the class pointer instead.
2491 (object_is_meta_class): Similar fix.
2493 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2495 * configure.in (AC_EXEEXT): Work around in case it expands to
2496 nothing, as in autoconf 2.50.
2497 * acinclude.m4: Likewise.
2498 * configure: Rebuilt.
2500 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2502 * THREADS: Explain that when we compile libobjc inside GCC, we
2503 always use thr-objc.c as a backend, which uses GCC's thread code.
2505 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2507 * init.c (__objc_send_message_in_list): When setting a new entry
2508 in __objc_load_methods use the method IMP as key, but check to see
2509 if the method is in the hashtable by looking at the IMP also.
2510 Also ... call the method after adding it to the hashtable rather
2511 than before ... thus preventing an obscure possibility of infinite
2512 recursion if a +load method itself loads a subclass.
2514 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2516 * init.c (__objc_send_message_in_list): When setting a new entry
2517 in __objc_load_methods use the method name as key, not the method
2518 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2520 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2522 * objc-features.texi: Move to ../gcc/objc.texi.
2524 * Makefile.in: Don't generate documentation from
2527 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2529 * fdl.texi: New file.
2530 * objc-features.texi: Simplify.
2531 * Makefile.in: Adjust accordingly.
2533 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2535 * objc-features.texi: Use the GFDL.
2537 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2539 * encoding.c (REAL_TYPE): Define.
2541 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2543 * encoding.c (TYPE_MODE): Define.
2545 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2547 * thr.c (objc_thread_add): New function.
2548 (objc_thread_remove): Ditto.
2549 * objc/thr.h: Declare them.
2550 * libobjc.def: Mention them.
2552 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2554 * objc-features.texi: Document the @compatibility_alias compiler
2555 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2557 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2559 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2561 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2563 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2564 we're not interested in the result and they might fail.
2565 * configure: Regenerated.
2567 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2569 * objc-features.texi: Use @email.
2571 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2573 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2576 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2578 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2579 determines the value dynamically.
2581 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2583 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2584 libraries to provide a function that returns the real forwarding
2585 function. This can alleviate problems __builtin_apply() and
2586 friends have on various platforms. (Solution suggested by Helge
2589 * objc/objc-api.h: Define __objc_msg_forward.
2591 * sendmsg.c: Define gen_rtx_REG.
2593 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2595 * thr-rtems.c: New file. Stub to compile.
2597 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2599 * configure: Rebuilt with new libtool.m4.
2601 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2603 * configure.in: Create a config.h file. Check for <sched.h>.
2604 * configure: Regenerate.
2606 * config.h.in: Check for <sched.h>.
2608 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2610 * configure: Regenerate after change to ../libtool.m4.
2612 2000-08-14 Andreas Schwab <schwab@suse.de>
2614 * objc-features.texi (Top): Move @menu at end of node.
2616 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2618 * objc-features.texi: Move @node Top before @menu.
2620 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2622 * objc-features.texi: Documented the new -fconstant-string-class
2625 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2627 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2628 improve the Posix thread support for Objective-C.
2630 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2632 * aclocal.m4: Replace copy of ../libtool.m4 with
2633 sinclude(../libtool.m4).
2635 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2637 * configure.in: Added libtool support; build shared libraries
2638 if --enable-shared was passed on command line.
2639 * Makefile.in: Modified most compilation commands to use libtool.
2640 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2641 libtool distribution.
2643 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2645 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2646 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2649 2000-05-12 H.J. Lu (hjl@gnu.org)
2651 * Makefile.in (GTHREAD_FLAGS): New.
2652 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2653 (OBJC_THREAD_FILE): Changed to thr-objc.
2655 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2657 (OBJC_THREAD_FILE): Removed.
2661 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2663 * objc/hash.h: Include string.h.
2665 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2667 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2669 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2671 * Object.m (strlen): Provide prototype on all 64bit platforms,
2673 * sarray.c (memcpy): Likewise.
2674 * encoding.c (objc_layout_finish_structure): Don't use
2675 ROUND_TYPE_ALIGN on sparc.
2677 * encoding.c (objc_layout_structure_next_member): Do the whole
2678 procedure even for the first member, so that we get correct
2681 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2683 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2686 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2688 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2690 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2692 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2694 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2696 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2697 the compiler when building C code.
2699 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2701 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2702 libdir, libsubdir and tooldir.
2704 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2706 * init.c (__objc_force_linking): Make global.
2708 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2710 * configure.in (AC_EXEEXT): Remove call.
2711 (compiler_name): Explicitly check with no extension and .exe
2713 * configure: Regenerate.
2715 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2717 * Makefile.in (CC1OBJ): Define in terms of CC.
2718 (runtime-info.h): Use.
2720 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2722 * objc-features.texi: Updated the URL to Boehm's GC page.
2724 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2726 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2727 the char as being signed (patch from Daniel Jacobowitz
2730 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2732 * configure.in (AC_PREREQ): Update to 2.13.
2733 (AC_EXEEXT): Call to find possible file extension.
2734 (compiler_name): Use.
2735 * configure: Regenerate.
2737 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2739 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2741 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2743 * configure.in (thread_file): Correct and simplify code to find
2745 * configure: Rebuilt.
2747 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2749 * configure.in (compiler_name): Add check to detect if this
2750 language's compiler has been built.
2751 * configure: Regenerate.
2753 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2755 * configure.in: Use AC_PREREQ(2.12.1).
2757 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2759 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2761 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2763 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2765 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2767 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2769 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2771 * objc-features.texi (Top): Changed the email address.
2772 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2774 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2776 * encoding.c: Redefine get_inner_array_type to get the first entry
2779 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2781 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2782 (objc_get_type_qualifiers): Similarly.
2783 * objc/encoding.h (_C_BYREF): Define.
2786 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2788 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2789 works out on 64-bit systems.
2791 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2793 * Makefile.in (INCLUDES): Make it multilib-friendly.
2795 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2797 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2799 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2800 Jeffrey A Law (law@cygnus.com)
2802 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2803 (FLAGS_TO_PASS): Added.
2804 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2806 * archive.c: Change config.h to tconfig.h.
2808 * configure.in: Find gcc's object directory even for multilibs.
2810 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2812 * configure.in: Escape ^ in grep string.
2813 * configure: Rebuilt.
2815 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2817 * All .h files pushed down into the objc/ subdirectory.
2818 * Makefile.in (copy_headers): Corresponding changes.
2819 * configure.in (AC_INIT): Corresponding changes.
2820 * configure: Rebuilt.
2822 1998-09-30 Ben Elliston <bje@cygnus.com>
2823 Jeff Law <law@cygnus.com>
2825 * Makefile.in: Rewrite.
2827 * configure.in: Likewise.
2829 * configure: Regenerate.
2831 * All .c files. Remove "objc" prefix when including objc header
2832 files. Include tconfig.h, not ../tconfig.h.
2834 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2836 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2837 (get_inner_array_type): Define.
2839 1998-09-21 Ben Elliston <bje@cygnus.com>
2841 * New directory. Moved files from ../gcc/objc.