1 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
3 * init.c (create_tree_of_subclasses_inherited_from): Use
4 class_superclass_of_class instead of assuming a class is
5 unresolved when it could be resolved. Tidied up assignment and
7 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
8 (objc_tree_insert_class): Tidied up loop; return immediately upon
10 (__objc_exec_class): Do not set __objc_class_tree_list.
12 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
14 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
16 (sel_registerTypedName): Same.
17 (sel_registerName): Same.
18 * objc/runtime.h: Updated documentation.
20 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
22 * objc/runtime.h (class_addIvar): Updated documentation. The
23 alignment is actually the log_2 of the alignment in bytes.
24 * ivars.c (class_addIvar): Corresponding change to the
27 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
29 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
30 be consistent with method_getTypeEncoding and
32 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
33 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
34 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
35 (sel_get_type): Updated call to sel_getType.
37 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
39 * objc/runtime.h (class_conformsToProtocol,
40 class_copyProtocolList): Updated documentation.
42 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
44 * init.c (create_tree_of_subclasses_inherited_from): Updated
45 DEBUG_PRINTF messages.
46 (__objc_tree_insert_class): Same.
47 (__objc_send_load_using_method_list): Same.
48 (__objc_send_load): Same.
49 (__objc_exec_class): Same. In particular, do not print the module
50 name since it is no longer used.
51 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
52 tracking +initialize calls.
53 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
54 tracking updates of dispatch tables.
55 (__objc_install_dispatch_table_for_class): Same.
57 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
59 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
60 (libobjc_gc$(libsuffix).la): Likewise.
62 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
64 * sendmsg.c (class_addMethod): Return NO if the method already
67 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
69 * init.c (duplicate_classes): New.
70 (__objc_exec_class): Initialize duplicate_classes.
71 (__objc_create_classes_tree): Ignore classes in the
72 duplicate_classes table.
73 (__objc_call_load_callback): Same.
74 (__objc_init_class): If a duplicate class is found, add it to
75 duplicate_classes instead of aborting. Return YES if the class is
76 not a duplicate, and NO if it is.
77 * objc-private/runtime.h (__objc_init_class): Updated prototype.
79 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
81 * objc-private/objc-list.h: Reindented file. No code changes.
82 * objc-private/sarray.h: Same change.
84 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
86 * objc-private/accessors.h: Removed 'extern "C"' guards. This
87 file is never compiled with C++.
88 * objc-private/hash.h: Same change.
89 * objc-private/objc-list.h: Same change.
90 * objc-private/objc-sync.h: Same change.
91 * objc-private/protocols.h: Same change.
92 * objc-private/runtime.h: Same change.
93 * objc-private/sarray.h: Same change.
94 * objc-private/selector.h: Same change.
96 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
99 * class.c (__objc_add_class_to_hash): Return YES if the class was
100 added, and NO if it already existed.
101 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
102 NO, then abort the program with an error message.
103 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
106 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
108 * init.c (_objc_load_callback): Initialize with 0.
109 (__objc_call_callback): Renamed to __objc_call_load_callback.
110 Check _objc_load_callback only once, and if it is not set, return
112 (objc_send_load): Updated call to __objc_call_callback.
114 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
117 * init.c (__objc_send_message_in_list): Renamed to
118 __objc_send_load_using_method_list. Do not take an 'op' argument.
119 Register the 'load' selector if needed.
120 (__objc_send_load): Do not register the 'load' selector. Updated
121 call to __objc_send_message_in_list.
122 (__objc_create_classes_tree): Add the class of any claimed
123 category that was loaded in the module to the list of classes for
124 which we try to execute +load.
126 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
128 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
130 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
131 a pointer using DEBUG_PRINTF.
133 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
136 * selector.c (__sel_register_typed_name): When registering a new
137 selector with the same name as an existing one, reuse the existing
138 name string. Also updated types, casts and comments in the whole
141 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
143 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
144 to be 'struct objc_selector *' and not 'SEL'.
145 * init.c (__objc_exec_class): Call
146 __objc_register_selectors_from_module instead of iterating over
147 each selector and calling __sel_register_typed_name for each.
148 * objc-private/selector.h: Declare
149 __objc_register_selectors_from_module instead of
150 __sel_register_typed_name.
151 * selector.c (__objc_register_selectors_from_module): New.
152 (__sel_register_typed_name): Made static.
154 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
156 * linking.m: Do not include objc/NXConstStr.h.
158 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
160 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
161 * objc-private/common.h (DEBUG_PRINTF): To here.
162 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
164 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
166 * hash.c: Tidied up comments and indentation. No code changes.
168 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
171 * accessors.m (objc_getProperty): If not atomic, do not
172 retain/autorelease the returned value.
174 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
176 * objc-private/runtime.h (__objc_selector_max_index,
177 __objc_init_selector_tables, __objc_register_selectors_from_class,
178 __objc_register_selectors_from_list,
179 __objc_register_selectors_from_description_list): Moved to ...
180 * objc-private/selector.h: ... here.
182 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
184 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
185 (__objc_print_dtable_stats): Removed.
186 (__sel_register_typed_name): Removed.
187 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
189 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
191 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
192 if appropriate, after loading the module.
194 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
196 * sendmsg.c (method_setImplementation): Do not declare.
198 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
200 * objc/message.h: Updated comments.
201 * objc/runtime.h: Updated comments.
203 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
205 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
206 * protocols.c: Updated all calls to objc_lookupClass to call
207 objc_lookUpClass instead.
208 * sendmsg.c (objc_lookupClass): Do not declare.
209 (get_imp): Update call to objc_lookupClass to call
210 objc_lookUpClass instead.
211 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
213 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
215 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
216 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
217 define. Updated comments.
219 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
221 * objc/encoding.h: Updated comments.
222 * objc/runtime.h: Updated comments.
223 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
224 (objc_sizeof_type): Same.
225 (objc_alignof_type): Same.
226 (objc_aligned_size): Same.
227 (objc_promoted_size): Same.
228 (objc_skip_type_qualifiers): Same.
229 (objc_skip_typespec): Same.
230 (objc_skip_offset): Same.
231 (objc_skip_argspec): Same.
232 (objc_get_type_qualifiers): Same.
233 (objc_layout_structure): Same.
234 (objc_layout_structure_next_member): Same.
235 (objc_layout_finish_structure): Same.
236 (objc_layout_structure_get_info): Same.
238 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
240 * init.c: Updated comments.
241 * objc/objc-api.h: Updated comments.
242 * objc/runtime.h (_objc_load_callback): Declare.
244 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
246 * objc/Object.h: Include deprecated/typedstream.h and
247 deprecated/hash.h instead of typedstream.h. Updated comments.
249 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
251 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
252 * objc/deprecated/objc_msg_sendv.h: New.
253 * objc/message.h: Do not define retval_t, apply_t, arglist,
254 arglist_t, objc_msg_sendv, now in
255 objc/deprecated/objc_msg_sendv.h.
256 * objc/objc.h: Do not include message.h; include
257 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
258 * sendmsg.c: Include objc/message.h.
259 * thr.c: Include objc/message.h.
261 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
263 * objc/objc-exception.h: Include objc-decls.h. Mark all
264 functions with objc_EXPORT.
265 * objc/objc-sync.h: Same change.
267 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
269 * Protocol.m: Moved all methods, with the exception of -isEqual:,
270 into the 'Deprecated' category.
271 * objc/Protocol.h: Removed all methods, moved to
272 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
273 * objc/deprecated/Protocol.h: New.
274 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
276 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
278 * init.c: Include objc-private/selector.h. Do not declare
279 __sel_register_typed_name.
280 * objc-private/selector.h (__sel_register_typed_name): Declare.
281 * selector.c: Include objc-private/selector.h.
283 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
285 * class.c: Tidied up comments and indentation. No code changes.
291 * objc-foreach.c: Same.
298 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
300 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
301 instead of objc/objc-api.h.
302 (init_check_module_version): Take a 'struct objc_module *'
303 argument instead of 'Module_t'. Use 'struct objc_module *'
304 instead of 'Module_t'.
305 (__objc_created_classes_tree): Take a 'struct objc_module *'
306 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
308 (__objc_call_callback): Take a 'struct objc_module *' argument
309 instead of 'Module_t'; use 'struct objc_symtab *' instead of
310 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
311 (_objc_load_callback): Take a 'struct objc_category *' argument
312 instead of 'Category *'.
313 (class_superclass_of_class): Use objc_getClass() instead of
315 (create_tree_of_subclasses_inherited_from): Same change (also, use
316 an explicit 'if' instead of '?').
317 (objc_init_statics): Same change.
318 (objc_send_load): Same change.
319 (__objc_init_protocol): same change.
320 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
321 argument instead of 'MethodList_t'. Use 'struct objc_method *'
322 instead of 'Method_t'.
323 (__objc_send_load): Use 'struct objc_method_list *' instead of
324 'MethodList_t'. Use sel_registerName() instead of
326 (__objc_exec_class): Take a 'struct objc_module *' argument
327 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
328 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
329 Use 'struct objc_category *' instead of 'Category_t'.
331 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
333 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
334 Include objc-private/module-abi-8.h and objc-private/selector.h
335 instead of objc/encoding.h.
336 (objc_msg_lookup_super): Use super->super_class instead of
338 (method_get_first_argument, method_get_next_argument): Declare
340 (class_get_instance_method): Declare before using.
341 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
342 (__objc_init_dispatch_tables, __objc_send_initialize): Use
343 sel_registerName() instead of sel_register_name().
344 (__objc_forward): Use sel_getName() instead of sel_get_name().
345 (objc_get_uninstalled_dtable): Use 'void' as argument.
346 * objc-private/selector.h: New.
348 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
350 * objc/message.h (objc_super): When using the modern API, do not
351 define Super and Super_t, and always use 'super_class' for the
353 (objc_msg_lookup_super): Updated prototype to use 'struct
354 objc_super *' instead of 'Super_t'.
355 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
356 'struct objc_super *' instead of 'Super_t'.
358 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
360 * objc/message.h: Update comments, reindented code and moved
361 deprecated types and functions at the end of the file. No code
364 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
366 * ivars.c (class_addIvar): Use the 'size' argument instead of
367 trying to calculate it using objc_sizeof_type().
368 * objc/runtime.h (class_addIvar): Updated comments.
370 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
372 * sendmsg.c: Reindented some code and tidied up comments. No
375 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
377 * objc/Object.h: Moved all the methods, with the exception of
378 -class and -isEqual:, into ...
379 * objc/deprecated/Object.h: here.
380 * Object.m: Moved all the methods, with the exception of -class
381 and -isEqual: into the 'Deprecated' category.
383 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
385 * objects.c (object_copy): Do not #undef as we are no longer
386 including objc/objc-api.h.
387 * selector.c: Include objc/runtime.h and
388 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
389 objc/encoding.h. Updated
390 (__objc_register_selectors_from_class): Use struct
391 objc_method_list * instead of MethodList_t.
392 (__objc_register_selectors_from_list): Use Method instead of
394 (struct objc_method_description_list): Do not define here.
395 (__objc_register_instance_methods_to_class): Use struct
396 objc_method_list * instead of MethodList_t and Method instead of
399 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
401 * selector.c: Reindented some code and tidied up comments. No
404 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
406 * encoding.c (_darwin_rs6000_special_round_type_align): New.
407 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
409 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
411 * sendmsg.c (selector_resolveClassMethod): New.
412 (selector_resolveInstanceMethod): New.
413 (__objc_resolve_class_method): New.
414 (__objc_resolve_instance_method): New.
415 (get_imp): Call __objc_resolve_class_method or
416 __objc_resolve_instance_method at the appropriate time.
417 (objc_msg_lookup): Same.
418 (class_getClassMethod): Same.
419 (class_getInstanceMethod): Same.
420 (__objc_init_dispatch_tables): Initialize
421 selector_resolveClassMethod and selector_resolveInstanceMethod.
422 * objc/runtime.h: Updated documentation of class_getClassMethod,
423 class_getInstanceMethod and class_getMethodImplementation.
425 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
427 * objc-private/module-abi-8.h (struct objc_symtab): Updated
428 description of sel_ref_cnt and refs.
429 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
431 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
435 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
436 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
437 * aclocal.m4: Regenerate.
438 * configure: Regenerate.
440 2010-12-03 Matthias Klose <doko@ubuntu.com>
442 * configure.ac (VERSION): Bump the version to 3:0:0.
443 * configure: Regenerate.
445 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
447 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
448 pass nil as the receiver since we don't know the receiver at this
451 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
453 * ivars.c: Include stdlib.h.
454 * protocols.c: Same change.
456 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
458 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
460 * init.c: Include objc-private/accessors.h.
461 (__objc_exec_class): Call __objc_accessors_init.
462 * objc-private/accessors.h: New.
464 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
466 * objc/message.h: Moved initial includes outside of extern "C".
467 * objc/runtime.h: Add extern "C" for Objective-C++.
469 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
471 * init.c (objc_send_load): Do not wait for NXConstantString to be
472 registered before executing +load. There is no point if
473 -fconstant-string-class=xxx is used when compiling all modules,
474 as is the case for almost all users.
475 * linking.m (__objc_linking): Do not try to forcefully link in
478 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
480 * objc/runtime.h: Updated comments.
481 (class_addMethod): New.
482 (class_addIvar): New.
483 (class_replaceMethod): New.
484 (objc_allocateClassPair): New.
485 (objc_registerClassPair): New.
486 (objc_disposeClassPair): New.
487 * class.c (objc_allocateClassPair): New.
488 (objc_registerClassPair): New.
489 (objc_disposeClassPair): New.
490 (class_getSuperclass): Return Nil if a class is in construction.
491 * init.c (__objc_exec_class): Call __objc_init_class.
492 (__objc_init_class): New.
493 * ivars.c (class_copyIvarList): Return NULL if class is in
494 construction. Do not lock the runtime mutex.
495 (class_getInstanceVariable): Return NULL if class is in
496 construction. Do not lock the runtime mutex.
497 (class_addIvar): New.
498 * sendmsg.c (class_addMethod): New.
499 (class_replaceMethod): New.
500 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
501 (_CLS_IN_CONSTRUCTION): New.
502 (CLS_IS_IN_CONSTRUCTION): New.
503 (CLS_SET_IN_CONSTRUCTION): New.
504 (CLS_SET_NOT_IN_CONSTRUCTION): New.
505 * objc-private/runtime.h (__objc_init_class): New.
507 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
509 * class.c (class_getSuperclass): Call __objc_resolve_class_links
510 if the class is not resolved yet.
511 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
513 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
515 * objc/runtime.h (class_getIvarLayout): New.
516 (class_getWeakIvarLayout): New.
517 (class_setIvarLayout): New.
518 (class_setWeakIvarLayout): New.
519 * ivars.c (class_getIvarLayout): New.
520 (class_getWeakIvarLayout): New.
521 (class_setIvarLayout): New.
522 (class_setWeakIvarLayout): New.
524 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
526 * objc/runtime.h (class_copyPropertyList): New.
527 (class_getProperty): New.
528 (property_getAttributes): New.
529 (property_getName): New.
530 * ivars.c (class_copyPropertyList): New.
531 (class_getProperty): New.
532 (property_getAttributes): New.
533 (property_getName): New.
535 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
537 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
538 * class.c (__objc_update_classes_with_methods): New.
539 (objc_getClassList): Do not lock the class lock.
540 * methods.c (method_exchangeImplementations): New.
541 (method_setImplementation): New.
542 * objc/runtime.h (method_setImplementation): New.
543 (method_exchangeImplementations): New.
545 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
547 * Protocol.m: Include objc/runtime.h and
548 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
549 repeat Protocol's instance variables.
550 (struct objc_method_description_list): Do not define here.
551 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
552 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
553 selectors directly instead of getting names and then using strcmp.
554 ([descriptionForClassMethod:]): Same change.
555 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
556 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
557 to compare selectors directly instead of getting names and then
559 * objc/Protocol.h: Updated comments.
561 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
563 * init.c (__objc_init_protocol): New function which fixes up a
564 protocol's class pointer, registers it with the runtime, register
565 all protocol selectors and registers associated protocols too.
566 (objc_init_statics): Detect if we are initializing protocols, and
567 if so, use __objc_init_protocol instead of only fixing up the
569 (__objc_init_protocls): Use __objc_init_protocol.
570 * objc-private/module-abi-8.h: Updated comments.
571 * objc-private/runtime.h
572 (__objc_register_selectors_from_description_list): New.
573 * selector.c (__objc_register_selectors_from_description_list):
574 New. (struct objc_method_description_list): Declare.
575 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
576 when accessing the name of a method, which is now correctly a SEL.
577 ([-descriptionForClassMethod:]): Same change.
578 * protocols.c (protocol_getMethodDescription): Same change.
579 * objc/runtime.h: Updated comments.
580 (sel_registerTypedName): Fixed typo in function name.
582 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
585 * init.c (objc_init_statics): Do not skip the initialization of a
586 statics list if the first object has already been initialized; in
587 the case of Protocols, while the first one may have been
588 initialized, some others may not have been initialized yet.
590 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
592 * Makefile.in (OBJC_DEPRECATED_H): Added
593 objc_get_uninstalled_dtable, objc_object_alloc.h and
594 struct_objc_static_instances.h.
596 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
598 * encoding.c (method_copyReturnType): New.
599 (method_copyArgumentType): New.
600 (method_getReturnType): New.
601 (method_getArgumentType): New.
602 * methods.c (method_getDescription): New.
603 * objc/runtime.h (method_copyReturnType): New.
604 (method_copyArgumentType): New.
605 (method_getReturnType): New.
606 (method_getArgumentType): New.
607 (method_getDescription): New.
609 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
611 * encoding.c: Tidied up comments.
612 (objc_skip_variable_name): New static inline function.
613 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
614 the same code over and over.
615 (objc_alignof_type): Same.
616 (objc_aligned_size): Same.
617 (objc_promoted_size): Same.
618 (objc_skip_typespec): Same.
619 (objc_layout_structure_next_member): Same.
620 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
621 historical bug where objc_skip_offset would skip one byte even if
622 there is no offset: check that the first offset digit is actually
623 a digit before skipping it.
624 (objc_skip_type_qualifiers): Mark as inline.
625 (objc_skip_typespec): Mark as inline.
627 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
629 * Makefile.in (C_SOURCE_FILES): Added methods.c.
630 * encoding.c (method_getNumberOfArguments): New.
631 (method_get_number_of_arguments): Call
632 method_getNumberOfArguments.
633 * ivars.c (ivar_getName): Check for NULL variable argument.
634 (ivar_getOffset): Check for NULL variable argument.
635 (ivar_getTypeEncoding): Check for NULL variable argument.
636 (class_copyIvarList): New.
638 * protocols.c (class_copyProtocolList): Check for Nil class_
640 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
641 'struct objc_method_list *' instead of MethodList_t.
642 (class_getMethodImplementation): New.
643 (class_respondsToSelector): New.
644 (class_getInstanceMethod): New.
645 (class_getClassMethod): New.
646 * objc/runtime.h: Updated comments.
647 (class_copyIvarList): New.
648 (class_getInstanceMethod): New.
649 (class_getClassMethod): New.
650 (class_getMethodImplementation): New.
651 (class_respondsToSelector): New.
652 (method_getName): New.
653 (method_getImplementation): New.
654 (method_getTypeEncoding): New.
655 (class_copyMethodList): New.
656 (method_getNumberOfArguments): New.
658 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
660 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
661 instead of objc/objc-api.h.
662 (objc_get_unknown_class_handler): Do not define.
663 (class_isMetaClass): New.
664 (class_getSuperclass): New.
665 (class_getVersion): New.
666 (class_setVersion): New.
667 (class_getInstanceSize): New.
668 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
669 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
670 objc_get_super_class.
671 (get_ttype_entry): Use objc_getRequiredClass instead of
673 * ivars.c (class_getClassVariable): New.
674 * objects.c: Include objc/runtime.h, objc/thr.h and
675 objc-private/module-abi-8.h instead of objc/objc-api.h
676 * objc/runtime.h (class_getClassVariable): New.
677 (class_isMetaClass): New.
678 (class_getSuperclass): New.
679 (class_getVersion): New.
680 (class_setVersion): New.
681 (class_getInstanceSize): New.
682 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
685 (__CLS_ISINFO): Same.
686 (__CLS_SETINFO): Same.
689 (CLS_ISRESOLV): Same.
690 (CLS_SETRESOLV): Same.
691 (CLS_ISINITIALIZED): Same.
692 (CLS_SETINITIALIZED): Same.
693 (CLS_GETNUMBER): Same.
694 (CLS_SETNUMBER): Same.
696 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
698 * archive.c: Do not include objc/objc.h.
699 * class.c: Do not include objc/objc.h.
700 * encoding.c: Include objc/runtime.h, ctype.h and
701 objc-private/module-abi-8.h instead of objc/objc-api.h and
703 * error.c: Do not include objc/objc.h.
704 * gc.c: Include tconfig.h and objc/encoding.h only if
706 * hash.c: Include objc/runtime.h and objc/thr.h instead of
707 objc/objc-api.h. Do not include objc/objc.h.
708 * init.c: Do not include objc/objc.h.
709 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
710 objc/thr.h instead of objc/objc-api.h. Do not include
712 * linking.m: Tidied comment.
713 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
714 Do not include objc/objc.h.
715 * objects.c: Do not include objc/objc.h.
716 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
717 * protocols.c: Do not include objc/objc.h.
718 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
719 not include objc/objc.h.
720 * selector.c: Do not include objc/objc.h.
721 * sendmsg.c: Do not include objc/objc.h.
722 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
723 Do not include objc/objc.h.
724 * objc/objc-decls.h: Reindented code.
725 * objc/runtime.h Include objc-decls.h. Updated comments.
727 (objc_atomic_malloc): New.
731 * objc-private/runtime.h: Updated comments.
733 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
735 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
736 * objc-private/protocols.h: New.
738 * init.c: Include objc-private/protocols.h.
739 (__objc_exec_class): Call __objc_protocols_init on startup.
740 (__objc_init_protocols): Call __objc_protocols_add_protocol.
741 * objc-private/runtime.h: Use (struct objc_method_list *) instead
742 of MethodList_t, and (struct objc_method *) instead of Method_t.
743 * objc/deprecated/struct_objc_class.h: Define
744 __objc_STRUCT_OBJC_CLASS_defined.
745 * objc-private/module-abi-8.h (struct
746 objc_method_description_list): New.
747 (struct objc_class): Only define if
748 __objc_STRUCT_OBJC_CLASS_defined is undefined.
749 * objc/runtime.h (class_getName): New.
750 (objc_getProtocol): New.
751 (objc_copyProtocolList): New.
752 (class_addProtocol): New.
753 (class_conformsToProtocol): New.
754 (class_copyProtocolList): New.
755 (protocol_conformsToProtocol): New.
756 (protocol_isEqual): New.
757 (protocol_getName): New.
758 (protocol_getMethodDescription): New.
759 (protocol_copyMethodDescriptionList): New.
760 (protocol_getProperty): New.
761 (protocol_copyPropertyList): New.
762 (protocol_copyProtocolList): New.
763 * class.c (class_getName): New.
764 * selector.c (sel_isEqual): New.
766 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
768 * selector.c (sel_getName): Return "<null selector>" for a NULL
770 (sel_get_name): Return 0 for a NULL argument.
771 * objc/runtime.h (sel_getName): Updated documentation.
773 * objc-private/hash.h (class_hash_table): Unused declaration
775 (module_hash_table): Same.
776 * objc/deprecated/hash.h: Same changes.
778 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
780 * class.c (objc_getClassList): New.
781 (objc_getRequiredClass): New.
782 (objc_getMetaClass): New.
783 (objc_lookupClass): New.
784 (objc_getClass): New.
785 (__objc_get_unknown_class_handler): New.
786 (objc_setGetUnknownClassHandler): New.
787 (objc_get_class): Use __objc_get_unknown_class_handler.
788 (objc_lookup_class): Call objc_getClass.
789 * objc/objc-api.h: Updated comment and copyright notice.
790 * objc/runtime.h: Updated comments.
791 (objc_getClass): New.
792 (objc_lookupClass): New.
793 (objc_getMetaClass): New.
794 (objc_getRequiredClass): New.
795 (objc_getClassList): New.
796 (objc_setGetUnknownClassHandler): New.
797 (objc_get_unknown_class_handler): New.
798 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
799 instead of __objc_runtime_INCLUDE_GNU as include guard.
800 * objc-private/error.h (_objc_abort): Mark as noreturn.
802 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
804 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
806 * objc/objc.h: Updated comments.
807 * objc/runtime.h (object_getClass): New.
808 (object_getClassName): New.
809 (object_setClass): New.
810 (class_getInstanceVariable): New.
811 (object_getIndexedIvars): New.
812 (object_getInstanceVariable): New.
813 (object_setInstanceVariable): New.
814 (object_getIvar): New.
815 (object_setIvar): New.
817 (ivar_getOffset): New.
818 (ivar_getTypeEncoding): New.
819 * objc-private/module-abi-8.h (struct objc_class): Added.
820 * objects.c (object_getClassName): New.
821 (object_setClass): New.
823 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
825 * objc/objc.h: Updated comments.
826 * objc/objc-api.h: (object_copy): Added one argument; use a
827 #define to maintain backwards-compatibility. Moved
828 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
829 objc_get_uninstalled_dtable into
830 objc/deprecated/objc_get_uninstalled_dtable.h and
831 objc/deprecated/objc_object_alloc.h. Include these files.
832 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
833 * objc/deprecated/objc_object_alloc.h: New.
834 * objc/runtime.h (set_getName): New.
837 (sel_registerName): New.
838 (sel_registerTypedName): New.
840 (class_createInstance): New.
842 (object_dispose): New.
843 * objects.c: Do not include tconfig.h. Include gc_typed.h if
844 building the garbage collection version.
845 (__objc_object_alloc): Removed.
846 (__objc_object_copy): Removed.
847 (__objc_object_dispose): Removed.
848 (class_createInstance): New from code in class_create_instance.
849 Cast second argument of GC_malloc_explicitly_typed. Use
850 objc_calloc. Do not call _objc_object_alloc.
851 (class_create_instance): Call class_createInstance.
852 (object_copy): Added extraBytes argument. Do not call
854 (object_dispose): Do not call _objc_object_dispose.
855 * memory.c (objc_free): When using garbage collection, mark the
857 * selector.c (sel_getName): New.
858 (sel_get_name): Call sel_getName.
860 (sel_get_type): Call sel_getType.
861 (sel_registerName): New.
862 (sel_register_name): Call sel_registerName.
863 (sel_registerTypedName): New.
864 (sel_register_typed_name): Call sel_registerTypedName.
866 (sel_get_uid): Call sel_getUid.
868 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
870 * objc/objc-api.h: Define Method, Method_t, Category and
871 Category_t. Prevent including this file at the same time as
872 objc/runtime.h. Updated comments.
873 * objc/deprecated/struct_objc_method.h: Do not define Method,
875 * objc/deprecated/struct_objc_category.h: Do not define Category,
877 * objc-private/module-abi-8.h: New file containing a copy of all
878 the structure definitions. Not used yet.
879 * objc/encoding.h (objc_aligned_size): Removed duplicate
880 declaration. Updated comments.
881 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
882 Category, struct objc_method_description, _C_ID and similar,
883 _C_CONST and similar and _F_CONST and similar. Added
884 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
885 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
886 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
887 struct objc_struct_layout, objc_layout_structure,
888 objc_layout_structure_next_member, objc_layout_finish_structure,
889 objc_layout_structure_get_info. Prevent including this file at
890 the same time as objc/objc-api.h.
892 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
894 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
895 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
896 struct_objc_method_list.h, struct_objc_module.h,
897 struct_objc_protocol_list.h, struct_objc_symtab.h.
898 * objc/deprecated/struct_objc_category.h: New.
899 * objc/deprecated/struct_objc_ivar.h: New.
900 * objc/deprecated/struct_objc_ivar_list.h: New.
901 * objc/deprecated/struct_objc_method.h: New.
902 * objc/deprecated/struct_objc_method_list.h: New.
903 * objc/deprecated/struct_objc_module.h: New.
904 * objc/deprecated/struct_objc_protocol_list.h: New.
905 * objc/deprecated/struct_objc_symtab.h: New.
906 * objc/deprecated/struct_objc_static_instances.h: New.
907 * objc/objc-api.h: Definitions of deprecated structures moved into
908 the above header fragment files in objc/deprecated/. Include the
909 files instead of definition the structures here. Updated
911 * objc/runtime.h: Updated comments. Do not include objc-api.h.
912 (objc_set_enumeration_mutation_handler): Renamed to
913 objc_setEnumerationMutationHandler.
914 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
915 to objc_setEnumerationMutationHandler.
916 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
917 objc_setExceptionMatcher.
918 (objc_set_uncaught_exception_handler): Renamed to
919 objc_setUncaughtExceptionHandler.
920 * exception.c: Same changes.
922 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
924 * objc-sync.c: Include objc-private/common.h.
926 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
928 * objc-foreach.c: Include objc-private/common.h.
929 * objc/deprecated/METHOD_NULL.h: New file.
930 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
931 defining METHOD_NULL here.
932 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
933 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
935 ([-respondsTo:]): Same change.
936 * objc/objc-api.h (method_get_imp): Converted it into a normal
937 function so that we can hide the internals of struct objc_method.
938 * sendmsg.c (method_get_imp): Implemented.
940 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
942 * objc/objc-api.h (struct objc_super, Super, Super_t,
943 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
944 objc_msg_forward2): Declarations moved to objc/message.h. Include
946 * objc/message.h: Added such declarations; updated comments.
948 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
950 Implemented fast enumeration for Objective-C.
951 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
952 (OBJC_H): Added runtime.h
953 * objc-foreach.c: New file.
954 * objc/runtime.h: New file.
956 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
958 * objc/deprecated/struct_objc_class.h: Add padding
959 to avoid warning with -Wpadded.
961 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
963 * encoding.c (objc_sizeof_type): Added support for vector type and
964 for double long types.
965 (objc_alignof_type): Same change.
966 (objc_skip_typespec): Same change.
967 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
968 instead of '!' since '!' is already used for _C_VECTOR.
969 * objc/objc-api.h (_C_LNG_DBL): Added.
971 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
973 * libobjc_entry.c: File removed.
975 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
977 * sendmsg.c (objc_msg_lookup): Remove inline.
978 (objc_get_uninstalled_dtable): Likewise.
979 * encoding.c (objc_skip_type_qualifiers): Likewise.
980 (objc_skip_offset): Likewise.
981 * archive.c (__objc_write_object): Likewise
982 (__objc_write_class):
983 (__objc_write_selector):
985 (objc_read_unsigned_char):
987 (objc_read_unsigned_short):
990 (__objc_read_nbyte_uint):
991 (objc_read_unsigned_int):
992 (objc_read_unsigned_long):
993 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
994 (objc_EXPORT): Likewise.
995 * objc/message.h (objc-decls.h): Add include.
996 * objc/objc-api.h: Mark API by objc_EXPORT.
997 * libobjc.def (__objc_responds_to): Removed.
999 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1001 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1003 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1004 objc/sarray.h replaced with a placeholder including the file from
1005 the deprecated/ directory.
1006 * objc-private/sarray.h: New file (private copy of sarray.h).
1007 * hash.c: Include <assert.h> instead of "assert.h"
1008 * sarray.c: Include <assert.h> instead of "assert.h". Include
1009 objc-private/sarray.h instead of objc/sarray.h.
1010 * selector.c: Include objc-private/sarray.h instead of
1012 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1013 instead of objc/sarray.h.
1014 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1016 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1018 * objc-private/objc-list.h (list_remove_elem): Unused function
1019 removed. (list_nth): Unused function removed. (list_find):
1020 Unused function removed. (list_lenght): Unused function removed.
1022 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1024 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1025 replaced with a placeholder including the file from the
1026 deprecated/ directory.
1027 * objc/objc-api.h: Updated includes.
1028 * objc/typedstream.h: Updated includes.
1029 * objc-private/hash.h: New file (private copy of hash.h).
1030 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1031 objc/objc-list.h replaced with a placeholder including the file
1032 from the deprecated/ directory.
1033 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1034 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1035 instead of objc/hash.h and objc/objc-list.h.
1036 * selector.c: Same change.
1037 * class.c: Added include <string.h>, which used to be implicitly included
1038 when hash.h was included.
1039 * exception.c: Same change.
1040 * objects.c: Same change.
1041 * sarray.c: Same change.
1042 * sendmsg.c: Same change.
1043 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1045 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1047 Implemented objc_sync_enter() and objc_sync_exit(), which are
1048 required by @synchronized() to work.
1049 * objc-sync.c: New file.
1050 * objc/objc-sync.h: New file.
1051 * objc-private/objc-sync.h: New file.
1052 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1053 Objective-C runtime startup.
1054 * Makefile.in: Added objc-sync.c and objc-sync.h.
1055 * configure.ac: Added GCC_CHECK_TLS.
1056 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1057 * configure: Regenerated.
1058 * config.h.in: Regenerated.
1060 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1062 * Makefile.in (%_gc.lo): New pattern rules to build the
1063 garbage-collected version of the library. Removed rules for
1064 specific files that are no longer needed. Standardized all rules.
1065 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1066 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1068 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1070 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1072 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1073 with Garbage Colletion.
1075 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1077 * memory.c: Do not include objc-private/runtime.h.
1079 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1081 * objc/deprecated/objc_malloc.h: New file.
1082 * objc/deprecated/objc_valloc.h: New file.
1083 * objc/objc-api.h: Include the files instead of defining
1084 objc_valloc, _objc_malloc() and similar.
1085 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1087 * memory.c: Removed the extra layer of indirection of _objc_malloc
1089 (objc_calloc): Use GC_malloc in the garbage-collected
1090 implementation as GC_malloc returns memory that is already freed.
1091 (objc_valloc): Deprecated.
1093 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1095 * objc/deprecated/objc_error.h: New file.
1096 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1097 defining objc_error and related.
1098 * error.c: New file. Added _objc_abort function which replaces
1099 objc_error. No change in functionality as they both print an
1101 * misc.c: File removed. Code moved into memory.c and error.c.
1102 * memory.c: New file.
1103 * objc-private/error.h: New file.
1104 * archive.c: Include objc-private/error.h and use _objc_abort
1105 instead of objc_error everywhere.
1106 * class.c: Same change.
1107 * encoding.c: Same change.
1108 * init.c: Same change, and simplified init_check_module_version.
1109 * memory.c: Same change.
1110 * sendmsg.c: Same change.
1111 * thr.c: Same change.
1112 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1113 (OBJ_H): Reordered list.
1114 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1115 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1116 (misc_gc.lo): Rule removed.
1117 (error_gc.lo): Rule added.
1118 (memory_gc.lo): Rule added.
1120 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1122 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1123 to check the API version. Added some comments.
1125 * objc-private/common.h: New file.
1126 * NXConstStr.m: Include objc-private/common.h.
1127 * Object.m: Same change.
1128 * Protocol.m: Same change.
1129 * archive.c: Same change.
1130 * class.c: Same change.
1131 * encoding.c: Same change.
1132 * exception.c: Same change.
1133 * gc.c: Same change.
1134 * hash.c: Same change.
1135 * init.c: Same change.
1136 * libobjc_entry.c: Same change.
1137 * linking.m: Same change.
1138 * misc.c: Same change (and added a comment).
1139 * nil_method.c: Same change.
1140 * objects.c: Same change.
1141 * sarray.c: Same change.
1142 * selector.c: Same change.
1143 * sendmsg.c: Same change.
1144 * thr.c: Same change.
1146 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1148 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1150 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1152 * archive.c: Removed not needed includes.
1153 * class.c: Same change.
1154 * hash.c: Same change.
1155 * misc.c: Same change.
1156 * nil_method.c: Same change.
1157 * objects.c: Same change.
1158 * sarray.c: Same change.
1159 * sendmsg.c: Same change.
1160 * thr.c: Same change.
1162 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1164 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1165 all the objc/*.h files.
1166 * objc-private/runtime.h: New file.
1167 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1168 files) instead of objc/runtime.h.
1169 * class.c: Same change.
1170 * hash.c: Same change.
1171 * init.c: Same change.
1172 * misc.c: Same change.
1173 * nil_method.c: Same change.
1174 * objects.c: Same change.
1175 * sarray.c: Same change.
1176 * selector.c: Same change.
1177 * sendmsg.c: Same change.
1178 * thr.c: Same change.
1180 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1182 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1183 'struct objc_selector' and 'sel_eq' moved here.
1184 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1185 'struct objc_procotol' moved here.
1186 * objc/deprecated/struct_objc_class.h: New file. Definition of
1187 'struct objc_class' moved here.
1188 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1190 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1191 * objc/message.h: New file. Definitions for relval_t, apply_t,
1192 arglist, arglist_t and objc_msg_lookup were moved here.
1193 * objc/objc.h: Include the above files instead of defining the
1194 corresponding structs, types and functions here. Added new opaque
1195 definitions for SEL and Class. Use Class and not 'struct
1196 objc_class *' in the definition of 'struct objc_object'.
1197 Commented all types defined in the file. Removed special
1198 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1200 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1201 objc_unexpected_exception.h.
1202 * objc/objc-api.h: Updated include of
1203 objc-unexpetected-exception.h
1204 * objc/objc-exception.h: Updated comments.
1205 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1206 files. Reindented list of files.
1208 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1210 * objc/objc-api.h (objc_trace): Unused variable removed.
1212 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1214 * objc/deprecated: New directory.
1215 * objc/deprecated/README: New file.
1216 * objc/README: New file.
1217 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1218 objc/typedstream.h replaced with a placeholder including the file
1219 from the deprecated/ directory.
1220 * objc/deprecated/objc-unexpected-exception.h: New file with the
1221 definition of _objc_unexpected_exception.
1222 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1223 instead of defining _objc_unexpected_exception.
1224 * objc/deprecated/Object.h: New file with the deprecated Object
1225 methods in a 'Deprecated' category.
1226 * objc/Object.h Include deprecated/Object.h instead of defining
1227 the deprecated methods.
1228 * Object.m: Moved deprecated methods into 'Deprecated' category.
1229 * objc-private: New directory.
1230 * objc-private/README: New file.
1231 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1232 (install-headers): Create installation directory for
1233 OBJC_DEPRECATED_H headers, and install them.
1235 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1237 * objc/objc-exception.h: Fixed include of objc.h.
1239 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1241 * objc/objc-exception.h: New file.
1242 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1243 (objc_set_exception_matcher): Implemented.
1244 (objc_exception_throw): Use the uncaught exception handler if set.
1245 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1247 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1248 up. Removed segmentation fault when value is 'nil'.
1249 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1251 * Makefile.in (exception.lo, exception_gc.lo): Use
1252 -Wno-deprecated-declarations when compiling.
1253 (OBJC_H): Added objc-exception.h
1255 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1257 * objc/typedstream.h: Deprecate all functions in the file. This
1259 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1260 [-awake]): Documented that these methods are deprecated. Added a
1261 brief description of the Object class and its relationship to the
1263 * Makefile.in: Compile archive.c and Object.m with
1264 -Wno-deprecated-declarations.
1266 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1268 Removed obsolete intermediate threading layer.
1269 * thr.c: Use __gthread_objc_xxx functions directly instead of
1270 __objc_thread_xxx ones.
1271 * objc/thr.h: Removed prototypes of no longer existing
1272 __objc_thread_xxx functions.
1273 * Makefile.in: Removed thr-objc.lo.
1274 * thr-dce.c: File removed.
1275 * thr-decosf1.c: File removed.
1276 * thr-irix.c: File removed.
1277 * thr-mach.c: File removed.
1278 * thr-objc.c: File removed.
1279 * thr-os2.c: File removed.
1280 * thr-posix.c: File removed.
1281 * thr-pthreads.c: File removed.
1282 * thr-rtems.c: File removed.
1283 * thr-single.c: File removed.
1284 * thr-solaris.c: File removed.
1285 * thr-vxworks.c: File removed.
1286 * thr-win32.c: File removed.
1287 * README.threads: File removed.
1288 * THREADS.MACH: File removed.
1291 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1293 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1295 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1297 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1298 Add a comment as to why, update FIXME comments.
1300 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1302 * makefile.dos: Obsolete file removed.
1304 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1306 * aclocal.m4: Regenerate.
1308 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1311 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1312 Cygwin and MinGW hosts.
1313 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1314 (libobjc.dll): Likewise.
1315 * configure: Regenerate.
1317 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1319 * configure: Regenerate.
1321 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1323 * sarray.c (sarray_free): Use old_buckets variable.
1324 * encoding.c (objc_layout_structure_next_member): Remove unused
1325 bfld_type_size variable.
1327 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1329 * configure.ac (AC_PREREQ): Bump to 2.64.
1331 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1333 * aclocal.m4: Regenerate.
1334 * configure: Regenerate.
1335 * config.h.in: Regenerate.
1337 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1339 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1341 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1343 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1345 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1347 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1349 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1351 2009-04-09 Nick Clifton <nickc@redhat.com>
1353 * sendmsg.c: Change copyright header to refer to version 3 of
1354 the GNU General Public License with version 3.1 of the GCC
1355 Runtime Library Exception and to point readers at the COPYING3
1356 and COPYING3.RUNTIME files and the FSF's license web page.
1357 * NXConstStr.m: Likewise.
1358 * Object.m: Likewise.
1359 * Protocol.m: Likewise.
1360 * archive.c: Likewise.
1361 * class.c: Likewise.
1362 * encoding.c: Likewise.
1363 * exception.c: Likewise.
1367 * libobjc_entry.c: Likewise.
1368 * linking.m: Likewise.
1370 * nil_method.c: Likewise.
1371 * objc/NXConstStr.h: Likewise.
1372 * objc/Object.h: Likewise.
1373 * objc/Protocol.h: Likewise.
1374 * objc/encoding.h: Likewise.
1375 * objc/hash.h: Likewise.
1376 * objc/objc-api.h: Likewise.
1377 * objc/objc-decls.h: Likewise.
1378 * objc/objc-list.h: Likewise.
1379 * objc/objc.h: Likewise.
1380 * objc/runtime.h: Likewise.
1381 * objc/sarray.h: Likewise.
1382 * objc/thr.h: Likewise.
1383 * objc/typedstream.h: Likewise.
1384 * objects.c: Likewise.
1385 * sarray.c: Likewise.
1386 * selector.c: Likewise.
1387 * thr-dce.c: Likewise.
1388 * thr-decosf1.c: Likewise.
1389 * thr-irix.c: Likewise.
1390 * thr-mach.c: Likewise.
1391 * thr-objc.c: Likewise.
1392 * thr-os2.c: Likewise.
1393 * thr-posix.c: Likewise.
1394 * thr-pthreads.c: Likewise.
1395 * thr-rtems.c: Likewise.
1396 * thr-single.c: Likewise.
1397 * thr-solaris.c: Likewise.
1398 * thr-vxworks.c: Likewise.
1399 * thr-win32.c: Likewise.
1401 * libobjc.def: Change copyright header to refer to version 3 of
1402 the GNU General Public License and to point readers at the COPYING3
1403 file and the FSF's license web page.
1404 * makefile.dos: Likewise.
1406 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1408 * Makefile.in: Change copyright header to refer to version
1409 3 of the GNU General Public License and to point readers at the
1410 COPYING3 file and the FSF's license web page.
1411 * configure.ac: Likewise.
1413 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1414 David Ayers <ayers@fsfe.org>
1417 * objc/objc-api.h (_objc_unexpected_exception): Declare
1418 new hook. Update copyright dates.
1419 * exception.c (objc_exception_throw): Use hook. Update
1421 * libobjc.def (_objc_unexpected_exception): Export hook.
1422 Update copyright dates.
1424 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1426 * configure: Regenerate.
1428 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1430 * configure: Regenerate.
1432 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1434 * Object.m (errno): Replaced by errno.h include.
1435 (compare): Cast self to id to prevent warning on comparison.
1436 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1438 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1439 * thr-win32.c (__objc_thread_detach): Remove type warning.
1440 (__objc_thread_id): Likewise.
1441 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1444 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1445 Steve Ellcey <sje@cup.hp.com>
1447 * configure: Regenerate for new libtool.
1448 * config.h.in: Regenerate for new libtool.
1450 2008-07-18 Matthias Klose <doko@ubuntu.com>
1452 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1454 2008-07-18 Matthias Klose <doko@ubuntu.com>
1456 * Makefile.in: Include ../boehm-gc/threads.mk.
1457 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1459 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1461 * Makefile.in (install-info): New stub target.
1463 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1465 * configure: Regenerate.
1467 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1469 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1470 if HAVE_GETIPINFO is not defined.
1472 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1474 * Object.m (compare): Add type id.
1475 * objc/Object.h: Likewise.
1476 * archive.c (objc_read_class): Use size_t to extend version to be
1477 size of pointer scalar width.
1478 * sendmsg.c (rtx): Undefine it before redefinition.
1479 (__objc_print_dtable_stats): Cast arguments to long as intended.
1481 2008-05-30 Julian Brown <julian@codesourcery.com>
1483 * exception.c (__objc_exception_class): Initialise as constant
1484 array for ARM EABI. Change macro to static const for non-ARM EABI.
1485 (ObjcException): Add note about structure layout. Remove landingPad
1486 and handlerSwitchValue for ARM EABI.
1487 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1489 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1490 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1491 ARM EABI unwinding support.
1492 (objc_exception_throw): Use memcpy to initialise exception class.
1494 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1496 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1497 (rs6000_special_round_type_align): Update.
1499 2008-05-09 Julian Brown <julian@codesourcery.com>
1501 * Makefile.in (LTLDFLAGS): New.
1502 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1504 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1507 * aclocal.m4: Regenerate.
1508 * configure: Regenerate.
1510 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1512 * configure: Regenerate.
1514 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1516 * configure.ac: Don't run config-ml.in directly.
1517 (multilib_arg): New.
1518 * configure: Regenerated.
1520 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1523 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1524 of _Unwind_Word for variables which are used in
1525 read_uleb128/read_sleb128.
1526 (PERSONALITY_FUNCTION): Likewise.
1528 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1530 * aclocal.m4: Regenerated.
1532 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1534 * configure.ac: Fix a typo in *-*-darwin clause.
1535 * configure: Regenerated.
1537 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1539 * configure.ac: Fix a typo.
1540 * configure: Regenerated.
1542 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1544 * configure: Regenerate.
1546 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1548 * Makefile.in: Replace all uses of libext with libsuffix.
1549 * configure.ac: Likewise.
1550 * configure: Regenerate.
1553 * Makefile.in: Remove all uses of $(libext).
1555 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1557 * Makefile.in: Remove all uses of $(libext).
1559 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1561 * configure: Regenerate.
1562 * aclocal.m4: Regenerate.
1564 2007-04-21 Andrew Ruder <andy@aeruder.net>
1566 * sendmsg.c (__objc_get_forward_imp): Call
1567 __objc_msg_forward2 for real.
1569 2007-04-09 Andrew Ruder <andy@aeruder.net>
1571 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1572 external libraries to provide a function that returns the real
1573 forwarding function based on both the selector and the receiver.
1574 * objc/objc-api.h: Define __objc_msg_forward2.
1576 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1578 * Makefile.in: Add dummy install-pdf target.
1580 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1582 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1585 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1587 * encoding.c (darwin_rs6000_special_round_type_align): New.
1589 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1591 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1592 * configure.ac: Use multi.m4 from aclocal rather than custom
1593 code. Use multi_basedir instead of toplevel_srcdir.
1594 * aclocal.m4: Regenerate.
1595 * configure: Regenerate.
1597 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1599 * Makefile.in: Added empty "pdf" target.
1601 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1603 * configure: Regenerate.
1605 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1607 * Makefile.in: Add install-html target. Add install-html to .PHONY
1609 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1612 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1614 2006-01-24 David Ayers <d.ayers@inode.at>
1617 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1618 and insure the new strings are '\0' termintated.
1620 2006-01-24 David Ayers <d.ayers@inode.at>
1623 * configure.ac: Add include directives for --enable-objc-gc.
1624 * Makefile.in: Ditto.
1625 * configure: Regenerate.
1627 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1628 instead of the local pointer to them.
1630 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1633 * objc/objc-api.c (_C_COMPLEX): New define.
1634 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1635 (objc_alignof_type): Likewise.
1636 (objc_skip_typespec): Likewise.
1638 2005-12-15 David Ayers <d.ayers@inode.at>
1641 * README (+load,+initialize): Fix documentation to reflect
1642 intended and implemented semantics for +load and +initialize.
1644 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1646 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1648 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1649 (rs6000_special_round_type_align): Update for the ABI fix.
1650 (objc_layout_finish_structure): Correct the encoding which is passed to
1653 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1656 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1657 but use the struct layout functions.
1658 (objc_alignof_type): Likewise.
1659 (objc_layout_structure): Handle _C_UNION_B also.
1660 (objc_layout_structure_next_member): Likewise.
1661 (objc_layout_finish_structure): Likewise.
1663 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1666 * objc/objc-api.h (_C_BOOL): New define.
1667 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1668 (objc_alignof_type): Likewise.
1669 (objc_skip_typespec): Likewise.
1671 2005-11-20 David Ayers <d.ayers@inode.at>
1674 * objc/hash.h: Remove deprecated hash API.
1675 * hash_compat.c: Remove.
1676 * Makefile.in: Remove reference to hash_compat.c.
1678 * configure.ac (VERSION): Bump library version to 2:0:0.
1679 * configure: Regenerate.
1681 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1684 * thr-objc.c (_XOPEN_SOURCE): Define.
1686 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1689 * objc/objc-api.h (struct objc_ivar): Move definition to
1692 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1693 Rasmus Hahn <rassahah@neofonie.de>
1696 * archive.c (objc_write_type): Correct the element offset.
1697 (objc_read_type): Likewise.
1699 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1701 * All files: Update FSF address.
1703 2005-08-13 Marcin Koziej <creep@desk.pl>
1704 Andrew Pinski <pinskia@physics.uc.edu>
1707 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1709 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1711 * Makefile.in (extra_ldflags_libobjc): New.
1712 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1713 (libobjc_gc$(libext).la): Likewise.
1714 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1715 "-Wl,-single_module".
1716 * configure: Regenerate.
1717 * linking.m (_objcInit): Remove.
1719 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1722 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1724 2005-06-08 David Ayers <d.ayers@inode.at>
1726 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1727 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1728 objc/runtime.h, objc/sarray.h, objc/thr.h,
1729 objc/typedstream.h: Do not include Objective-C headers as
1732 2005-06-07 David Ayers <d.ayers@inode.at>
1734 * archive.c, init.c, selector.c: Include hash.h.
1735 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1736 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1737 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1738 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1739 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1740 Include Objective-C headers with quotes and objc/ directory
1743 2005-05-19 Richard Henderson <rth@redhat.com>
1745 * exception.c: Revert last change.
1747 2005-05-19 David Ayers <d.ayers@inode.at>
1749 * exception.c: Include tsystem.h for unwind.h.
1751 2005-05-09 Mike Stump <mrs@apple.com>
1753 * configure: Regenerate.
1755 2005-04-12 Mike Stump <mrs@apple.com>
1757 * configure: Regenerate.
1759 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1761 * Makefile.in: Set gcc_version here.
1762 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1763 in definition of toolexeclibdir so that $(gcc_version) is expanded
1765 * aclocal.m4, configure: Regenerate.
1767 2005-03-03 David Ayers <d.ayers@inode.at>
1769 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1770 version reference. Correct typo.
1772 2005-03-02 David Ayers <d.ayers@inode.at>
1775 * Makefile.in (OBJS): Add hash_compat.lo.
1776 (OBJS_GC): Add hash_compat_gc.lo.
1777 (hash_compat_gc.lo): New target and rule.
1778 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1779 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1780 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1781 with objc_. Add deprecated non prefixed inlined versions.
1782 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1784 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1785 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1787 * hash_compat.c: New file.
1788 * archive.c: Update callers.
1790 * selector.c: Likewise.
1791 * libobjc.def: Add objc_ versions of hash functions.
1793 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1796 * Makefile.in (GTHREAD_FLAGS): Remove.
1797 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1798 * thr-objc.c: Include config.h.
1799 * configure.ac: Instead of looking at GCC's makefile, figure out if
1800 GTHREAD_FLAGS should be defined by looking at the `thread model'
1802 * configure: Regenerate.
1803 * config.h.in: Regenerate.
1805 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1808 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1809 (Determine CFLAGS for gthread): Use $host_subdir.
1810 * configure: Regenerate.
1811 * Makefile.in (host_subdir): New.
1814 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1817 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1819 Include limits.h and stdlib.h.
1820 Define BITS_PER_WORD.
1822 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1824 * selector.c (__objc_init_selector_tables): Add missing void to
1827 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1829 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1830 * configure, aclocal.m4: Regenerate.
1832 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1834 * configure: Regenerate for libtool change.
1836 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1838 * configure: Regenerate for libtool reversion.
1840 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1842 * configure: Regenerate for libtool change.
1844 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1846 * aclocal.m4, config.h.in: Regenerate.
1848 2004-10-08 Mike Stump <mrs@apple.com>
1849 Andrew Pinski <pinskia@physics.uc.edu>
1851 * aclocal.m4: Rename to ...
1852 * acinclude.m4: here and also use m4_include instead of sinclude.
1853 * aclocal.m4: Regenerate.
1854 * configure: Regenerate.
1855 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1856 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1858 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1860 * archive.c: Fix all the warnings about passing unsigned char*
1861 to char* and the other way too.
1863 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1866 * exception.c: Include config.h
1867 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1869 * configure.ac: Find out what exception handling code we use.
1870 * configure: Regenerate.
1871 * config.h.in: New file, regenerate.
1873 2004-09-16 Andrew Pinski <apinski@apple.com>
1875 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1877 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1879 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1880 ACX_NONCANONICAL_TARGET.
1881 * configure: Regenerate.
1883 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1885 * objc/sarray.h: Hoist include of assert.h near the top of file,
1886 and mark the remainder of the file 'extern "C"'.
1888 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1890 * objc/Object.h: Move includes out of extern "C" blocks.
1891 * objc/encoding.h: Likewise.
1892 * objc/hash.h: Likewise.
1893 * objc/objc-api.h: Likewise.
1894 * objc/runtime.h: Likewise.
1895 * objc/sarray.h: Likewise.
1896 * objc/typedstream.h: Likewise.
1898 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1900 * objc/NXConstStr.h: Update copyright date; bracket with
1901 'extern "C"' for C++ use; make include syntax consistent
1902 by using <...> instead of "..."; hoist <objc/...> includes
1903 above the 'extern "C"' block.
1904 * objc/Object.h: Likewise.
1905 * objc/Protocol.h: Likewise.
1906 * objc/encoding.h: Likewise.
1907 * objc/hash.h: Likewise.
1908 * objc/runtime.h: Likewise.
1909 * objc/sarray.h: Likewise.
1910 * objc/thr.h: Likewise.
1911 * objc/typedstream.h: Likewise.
1912 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1913 (objc_static_instances): For C++ case, do away with
1915 (objc_method): Hoist definition to file scope.
1916 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1917 class_get_instance_method, class_create_instance,
1918 class_get_class_name, class_get_instance_size,
1919 class_get_meta_class, class_get_super_class, class_get_version,
1920 class_is_class, class_is_meta_class, class_set_version,
1921 class_get_gc_object_type, class_ivar_set_gcinvisible,
1922 get_imp): Rename 'class' parameter to '_class'.
1923 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1924 * objc/objc.h: Update copyright date.
1925 (arglist_t): Provide a union tag.
1927 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1929 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1930 but instead use the attribute noreturn.
1932 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1934 * encoding.c: Rename target_flags with a #define to avoid
1935 conflict with a prior declaration.
1937 2004-06-24 Andrew Pinski <apinski@apple.com>
1939 * objc/encoding.h: Wrap the functions with extern "C" for C++
1941 * objc/hash.h: Likewise.
1942 * objc/objc-api.h: Likewise.
1943 * objc/objc-list.h: Likewise.
1944 * objc/runtime.h: Likewise.
1945 * objc/sarray.h: Likewise.
1946 * objc/thr.h: Likewise.
1947 * objc/typedstream.h: Likewise.
1950 2004-06-21 Nick Clifton <nickc@redhat.com>
1952 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1955 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1957 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1958 (exception_gc.lo): New.
1959 (OBJS_GC): Add exception_gc.lo.
1961 2004-06-17 Richard Henderson <rth@redhat.com>
1963 * exception.c: New file.
1964 * Makefile.in (exception.lo): New.
1967 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1969 * linking.m (_objcInit): New empty function
1972 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1974 * configure.ac: Support --enable-shared=libobjc.
1975 * configure: Regenerate.
1978 * configure.ac: Do not disable shared by default.
1979 * configure: Regenerate.
1981 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1983 * Protocol.m ([-isEqual:]): Small optimizations returning
1984 immediately if the argument is equal to self, and accessing
1985 the argument's name directly if it's a protocol.
1987 2004-06-03 David Ayers <d.ayers@inode.at>
1989 * Protocol.m ([-isEqual:]): Test the class of the argument.
1991 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1993 * configure.ac (includedir): Rename to ...
1995 * Makefile.in: s/includedir/includedirname/.
1998 * configure.ac (includedir): Set to "include"
2000 (libext) Set to empty except for Darwin.
2001 * configure: Regenerate
2002 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2003 s/include/$(includedir)/g.
2005 2004-05-25 Daniel Jacobowitz <drow@false.org>
2007 * Makefile.in: Add .NOEXPORT.
2009 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2011 Merge from the libobjc-branch
2012 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2014 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2016 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2018 * Makefile.in (OBJC_H): Add objc-deps.h.
2020 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2022 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2023 ([-hash], [-isEqual:]): New methods.
2025 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2027 * sarray.c (sarray_free): Add a better comment.
2029 2004-01-27 Adam Fedor <fedor@gnu.org>
2031 * hash.c (hash_add): Cast cachep to int.
2032 * selector.c (__sel_register_typed_name): Cast
2033 soffset_decode to int.
2035 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2037 * selector.c: Rename register_selectors_from_list to
2038 __objc_register_selectors_from_list. Update caller.
2039 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2040 while registering selectors. Use __sel_register_typed_name instead
2041 of sel_register_typed_name. Check for NULL method_name:s.
2042 (pool_alloc_selector): New function.
2043 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2044 selector structures.
2045 * sendmsg.c (class_add_method_list): Use
2046 __objc_register_selectors_from_list.
2047 * objc/runtime.h: Add __objc_register_selectors_from_list.
2049 2004-01-25 Adam Fedor <fedor@gnu.org>
2050 Nicola Pero <n.pero@mi.flashnet.it>
2051 Andrew Pinski <pinskia@physics.uc.edu>
2053 * objc/objc-decls.h: New file.
2054 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2055 (_objc_load_callback): Likewise.
2056 (_objc_object_alloc): Likewise.
2057 (_objc_object_copy): Likewise.
2058 (_objc_object_dispose): Likewise.
2060 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2062 * archive.c: s/__inline__/inline
2063 * sendmsg.c: Likewise.
2065 * encoding.c: Remove FIXME about the warning
2066 about unused variable.
2067 * sendmsg.c: Add a FIXME comment saying that
2068 this should be using libffi.
2070 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2073 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2075 * archive.c (objc_read_class): Initialize class_name.
2076 (objc_read_selector): Initialize selector_name.
2078 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2080 * Makefile.in (toolexecdir): Remove trailing space.
2082 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2085 * configure.ac: De-precious CC so multilibs work.
2086 * configure: Regenerate.
2088 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2090 * configure.ac: Restore toolexecdir.
2091 * Makefile.in: Restore toolexecdir.
2092 * configure: Regenerate.
2094 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2096 * configure.ac: Remove (unused) glibcpp_prefixdir.
2097 * configure: Regenerate.
2099 * configure.in: Rename to configure.ac.
2100 * Makefile.in: Update to match.
2102 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2103 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2104 * configure.in: Remove glibcpp_toolexecdir (unused).
2105 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2106 config.h or stamp-h (unused). Move one comment to the right place.
2107 * configure: Regenerate.
2108 * config.h.in: Remove (unused).
2110 * config.h.in: Regenerate with autoheader.
2112 * Makefile.in: Remove (unused) gcc_version_trigger.
2113 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2114 gcc_version_trigger.
2115 * configure: Regenerate.
2117 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2118 Sort file into sections. Remove dnl where appropriate. Fix
2120 * configure: Regenerate.
2122 * configure.in: Replace old AC_PROG_CC hack with new one.
2123 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2124 are no subdirectory output files, so this is fine). Change prereq
2126 * aclocal.m4: Include ../config/no-executables.m4.
2127 * configure: Regenerate with autoconf 2.59.
2129 * configure.in: Improve comments on gthread_cflags. Improve m4
2130 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2131 * configure: Regenerate.
2133 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2134 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2135 redundant checks for values of RANLIB, AR, INSTALL.
2136 * configure: Regenerate.
2138 * configure.in: Clean up handling of
2139 --enable-version-specific-runtime-libs and related variables;
2140 replace 'if test' with 'case' where reasonable. Fix comments.
2141 Remove useless libstdcxx_interface.
2142 * configure: Regenerate.
2144 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2145 Replace uses of target_alias with target_noncanonical.
2146 * aclocal.m4: Include ../config/acx.m4.
2147 * configure: Regenerate.
2148 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2149 Fix copyright statement.
2151 * configure.in: Hand-inline bulky, confusing macros from
2152 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2153 Update copyright notice. Remove stuff for automake, which isn't
2154 used in this directory. Remove emacs local variables.
2155 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2156 * configure: Regenerate.
2158 2004-03-16 Manfred Hollstein <mh@suse.com>
2160 * Makefile.in, configure.in, configure: Update copyright years.
2162 2004-03-15 Manfred Hollstein <mh@suse.com>
2164 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2165 definition from configure.in.
2166 * configure.in (PACKAGE): Add definition.
2167 (VERSION): Add definition; substitute it in output files.
2168 * configure: Re-generate.
2170 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2172 * objc/hash.h (hash_string, compare_strings):
2173 Add type-casts to make Objective-C++ happy.
2174 * objc/typedstream.h (objc_get_stream_class_version):
2175 Rename parameter from 'class' to 'class_name' to make
2176 Objective-C++ happy.
2178 2004-03-01 Michael Matz <matz@suse.de>
2180 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2182 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2184 * objc/objc-api.h (objc_super): The 'class' field shall
2185 be named 'super_class' #ifdef __cplusplus.
2187 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2190 * encoding.c (rs6000_special_round_type_align): Define.
2192 2004-01-14 Adam Fedor <fedor@gnu.org>
2195 * selector.c (__objc_register_instance_methods_to_class): Free
2196 new_list if not used.
2198 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2201 * sarray.c (sarray_free): Free array->is_copy_of latter.
2203 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2206 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2207 instance_methods if it's NULL.
2208 (descriptionForClassMethod): Likewise for class_methods.
2210 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2212 * Makefile.in (runtime-info.h): Remove -Wp.
2214 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2216 * Makefile.in (CC1OBJ): Remove.
2217 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2219 Use .m extension for temporary file.
2220 Remove assembler temp file.
2222 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2224 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2226 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2228 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2230 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2232 * configure: Regenerate.
2234 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2236 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2237 (libdir)/gcc-lib/ when installing.
2238 * configure: Regenerate.
2240 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2243 * sendmsg.c (get_imp): Fixed rare threading problem.
2244 (__objc_responds_to): Similar fixes.
2245 (objc_msg_lookup): Similar fixes.
2246 (__objc_init_install_dtable): Lock the runtime before checking if the
2249 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2251 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2252 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2253 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2254 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2255 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2256 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2257 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2258 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2259 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2260 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2261 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2263 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2264 Nicola Pero <n.pero@mi.flashnet.it>
2267 * init.c (class_superclass_of_class): New function.
2268 (create_tree_of_subclasses_inherited_from): Use it.
2269 (__objc_tree_insert_class): Likewise.
2270 (class_is_subclass_of_class): Likewise.
2272 2003-04-11 David Chad <davidc@freebsd.org>
2273 Loren J. Rittle <ljrittle@acm.org>
2276 * objc/hash.h (hash_string): Constify correctly.
2277 (compare_ptrs): Use direct compare.
2278 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2279 * objc/sarray.h: Global rename index to indx to avoid shadow.
2281 2003-03-12 Andreas Schwab <schwab@suse.de>
2283 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2284 glibcpp_toolexeclibdir.
2285 * configure: Rebuilt.
2287 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2289 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2291 * configure: Rebuilt.
2293 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2295 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2296 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2297 version_specific_libs is enabled.
2298 * configure: Rebuilt.
2300 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2302 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2303 (install-libs, install-headers): Prepend $(DESTDIR) to
2304 destination paths in all (un)installation commands.
2306 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2308 * thr-objc.c: Include coretypes.h and tm.h.
2310 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2312 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2314 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2316 * configure.in: Remove skip-this-dir support.
2317 * configure: Regenerate.
2319 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2321 * Makefile.in (all): Fix multilib parallel build.
2323 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2325 * sendmsg.c (nil_method): Declare not to take a variable number of
2327 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2328 (objc_msg_lookup_super): The same.
2330 2002-09-10 Jan Hubicka <jh@suse.cz>
2332 * nil_method.c (nil_method): No longer defined with variable
2335 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2337 * objc/encoding.h: Fix formatting.
2338 * objc/hash.h: Likewise.
2339 * objc/objc-api.h: Likewise.
2340 * objc/runtime.h: Likewise.
2341 * objc/thr.h: Likewise.
2342 * archive.c: Likewise.
2343 * class.c: Likewise.
2344 * encoding.c: Likewise.
2349 * nil_method.c: Likewise.
2350 * objects.c: Likewise.
2351 * sarray.c: Likewise.
2352 * selector.c: Likewise.
2353 * sendmsg.c: Likewise.
2354 * thr-mach.c: Likewise.
2357 2002-06-25 DJ Delorie <dj@redhat.com>
2359 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2360 GLIBCPP_TOPREL_CONFIGURE.
2361 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2362 * configure: Regenerate.
2364 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2366 * Object.m (forward, read, write): Fix unused parameter warnings.
2367 * encoding.c: Include <stdlib.h>.
2368 (target_flags): Mark with attribute unused.
2370 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2371 (__objc_generate_gc_type_description): Prototype.
2372 * selector.c (__objc_selector_max_index): Change to unsigned int.
2374 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2376 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2377 we always have a return value: if __objc_msg_forward does not
2378 supply a forwarding implementation, return the default
2379 __builtin_apply based one.
2381 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2383 * Object.m: Fix signed/unsigned warning.
2384 * Protocol.m: Likewise.
2385 * archive.c: Always include stdlib.h.
2386 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2387 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2388 Fix signed/unsigned warning.
2389 (objc_write_type, objc_read_type, objc_write_types,
2390 objc_read_types): Ensure ctype 8-bit safety.
2391 (__objc_no_write, __objc_no_read): Mark unused parameters.
2392 * class.c (class_table_setup): Specify void arg.
2393 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2394 objc_skip_typespec, objc_skip_offset,
2395 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2396 (objc_layout_structure_next_member): Ensure variables are
2398 * gc.c (__objc_generate_gc_type_description,
2399 class_ivar_set_gcinvisible): Mark unused parameters.
2400 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2402 (__objc_init_protocols) Fix signed/unsigned warning.
2403 * nil_method.c (nil_method): Mark unused parameters.
2404 * thr.h (objc_thread_callback): Specify void arg.
2405 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2406 signed/unsigned warning.
2407 (sarray_free): Fix formatting.
2408 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2409 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2411 2002-06-09 Andreas Jaeger <aj@suse.de>
2413 * encoding.c (objc_layout_structure_next_member): Remove unused
2416 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2418 * Makefile.in (SHELL): Set to @SHELL@.
2420 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2422 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2424 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2425 * configure: Regenerate.
2427 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2429 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2430 script entry, and set LD to it when configuring multilibs.
2431 * configure: Rebuilt.
2433 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2435 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2437 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2440 * objc/objc-api.h (struct objc_protocol_list): Change type of
2441 member count from int to size_t.
2443 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2446 * aclocal.m4: Replace with version copied from libstdc++-v3.
2447 * configure.in: Update for changes to aclocal and Makefile.
2448 * configure: Regenerate.
2449 * Makefile.in: Correct install of multilibs and shared libs, use
2450 INSTALL_DATA for include files.
2452 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2454 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2455 categories - when an unclaimed category was found, the loop was
2456 doing two steps forward instead of one, so that in certain cases
2457 it was failing to properly load all the categories. (Reported
2458 with fix by Alexander Malmberg <alexander@malmberg.org>).
2460 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2462 * encoding.c: Add target_flags.
2464 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2466 * objc/objc-api.h (_C_VECTOR): New.
2468 * encoding.c (VECTOR_TYPE): New.
2470 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2472 * class.c: Rewritten the class table to use optimized, lock-free
2473 lookup. This more than doubles the speed of class method
2474 invocations. (class_table_setup), (class_table_insert),
2475 (class_table_replace), (class_table_get_safe),
2476 (class_table_next), (class_table_print),
2477 (class_table_print_histogram): New functions.
2478 (__objc_init_class_tables): Use class_table_setup.
2479 (__objc_add_class_to_hash): Use class_table_get_safe and
2480 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2481 assert the existence of the table; do not lock the runtime; use
2482 class_table_get_safe. (objc_next_class): Use class_table_next.
2483 (__objc_resolve_class_links): Use class_table_next.
2484 (class_pose_as): Use class_table_replace.
2486 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2488 * gc.c: Removed the DEBUG declaration.
2490 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2492 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2493 rather than through objc_thread_id, to save a function call.
2494 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2497 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2499 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2500 to cast an id to a Class, which can not be done. Make the check
2501 by using CLS_ISMETA on the class pointer instead.
2502 (object_is_meta_class): Similar fix.
2504 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2506 * configure.in (AC_EXEEXT): Work around in case it expands to
2507 nothing, as in autoconf 2.50.
2508 * acinclude.m4: Likewise.
2509 * configure: Rebuilt.
2511 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2513 * THREADS: Explain that when we compile libobjc inside GCC, we
2514 always use thr-objc.c as a backend, which uses GCC's thread code.
2516 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2518 * init.c (__objc_send_message_in_list): When setting a new entry
2519 in __objc_load_methods use the method IMP as key, but check to see
2520 if the method is in the hashtable by looking at the IMP also.
2521 Also ... call the method after adding it to the hashtable rather
2522 than before ... thus preventing an obscure possibility of infinite
2523 recursion if a +load method itself loads a subclass.
2525 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2527 * init.c (__objc_send_message_in_list): When setting a new entry
2528 in __objc_load_methods use the method name as key, not the method
2529 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2531 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2533 * objc-features.texi: Move to ../gcc/objc.texi.
2535 * Makefile.in: Don't generate documentation from
2538 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2540 * fdl.texi: New file.
2541 * objc-features.texi: Simplify.
2542 * Makefile.in: Adjust accordingly.
2544 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2546 * objc-features.texi: Use the GFDL.
2548 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2550 * encoding.c (REAL_TYPE): Define.
2552 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2554 * encoding.c (TYPE_MODE): Define.
2556 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2558 * thr.c (objc_thread_add): New function.
2559 (objc_thread_remove): Ditto.
2560 * objc/thr.h: Declare them.
2561 * libobjc.def: Mention them.
2563 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2565 * objc-features.texi: Document the @compatibility_alias compiler
2566 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2568 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2570 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2572 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2574 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2575 we're not interested in the result and they might fail.
2576 * configure: Regenerated.
2578 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2580 * objc-features.texi: Use @email.
2582 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2584 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2587 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2589 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2590 determines the value dynamically.
2592 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2594 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2595 libraries to provide a function that returns the real forwarding
2596 function. This can alleviate problems __builtin_apply() and
2597 friends have on various platforms. (Solution suggested by Helge
2600 * objc/objc-api.h: Define __objc_msg_forward.
2602 * sendmsg.c: Define gen_rtx_REG.
2604 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2606 * thr-rtems.c: New file. Stub to compile.
2608 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2610 * configure: Rebuilt with new libtool.m4.
2612 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2614 * configure.in: Create a config.h file. Check for <sched.h>.
2615 * configure: Regenerate.
2617 * config.h.in: Check for <sched.h>.
2619 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2621 * configure: Regenerate after change to ../libtool.m4.
2623 2000-08-14 Andreas Schwab <schwab@suse.de>
2625 * objc-features.texi (Top): Move @menu at end of node.
2627 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2629 * objc-features.texi: Move @node Top before @menu.
2631 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2633 * objc-features.texi: Documented the new -fconstant-string-class
2636 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2638 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2639 improve the Posix thread support for Objective-C.
2641 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2643 * aclocal.m4: Replace copy of ../libtool.m4 with
2644 sinclude(../libtool.m4).
2646 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2648 * configure.in: Added libtool support; build shared libraries
2649 if --enable-shared was passed on command line.
2650 * Makefile.in: Modified most compilation commands to use libtool.
2651 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2652 libtool distribution.
2654 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2656 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2657 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2660 2000-05-12 H.J. Lu (hjl@gnu.org)
2662 * Makefile.in (GTHREAD_FLAGS): New.
2663 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2664 (OBJC_THREAD_FILE): Changed to thr-objc.
2666 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2668 (OBJC_THREAD_FILE): Removed.
2672 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2674 * objc/hash.h: Include string.h.
2676 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2678 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2680 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2682 * Object.m (strlen): Provide prototype on all 64bit platforms,
2684 * sarray.c (memcpy): Likewise.
2685 * encoding.c (objc_layout_finish_structure): Don't use
2686 ROUND_TYPE_ALIGN on sparc.
2688 * encoding.c (objc_layout_structure_next_member): Do the whole
2689 procedure even for the first member, so that we get correct
2692 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2694 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2697 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2699 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2701 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2703 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2705 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2707 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2708 the compiler when building C code.
2710 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2712 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2713 libdir, libsubdir and tooldir.
2715 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2717 * init.c (__objc_force_linking): Make global.
2719 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2721 * configure.in (AC_EXEEXT): Remove call.
2722 (compiler_name): Explicitly check with no extension and .exe
2724 * configure: Regenerate.
2726 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2728 * Makefile.in (CC1OBJ): Define in terms of CC.
2729 (runtime-info.h): Use.
2731 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2733 * objc-features.texi: Updated the URL to Boehm's GC page.
2735 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2737 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2738 the char as being signed (patch from Daniel Jacobowitz
2741 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2743 * configure.in (AC_PREREQ): Update to 2.13.
2744 (AC_EXEEXT): Call to find possible file extension.
2745 (compiler_name): Use.
2746 * configure: Regenerate.
2748 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2750 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2752 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2754 * configure.in (thread_file): Correct and simplify code to find
2756 * configure: Rebuilt.
2758 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2760 * configure.in (compiler_name): Add check to detect if this
2761 language's compiler has been built.
2762 * configure: Regenerate.
2764 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2766 * configure.in: Use AC_PREREQ(2.12.1).
2768 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2770 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2772 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2774 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2776 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2778 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2780 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2782 * objc-features.texi (Top): Changed the email address.
2783 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2785 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2787 * encoding.c: Redefine get_inner_array_type to get the first entry
2790 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2792 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2793 (objc_get_type_qualifiers): Similarly.
2794 * objc/encoding.h (_C_BYREF): Define.
2797 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2799 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2800 works out on 64-bit systems.
2802 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2804 * Makefile.in (INCLUDES): Make it multilib-friendly.
2806 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2808 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2810 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2811 Jeffrey A Law (law@cygnus.com)
2813 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2814 (FLAGS_TO_PASS): Added.
2815 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2817 * archive.c: Change config.h to tconfig.h.
2819 * configure.in: Find gcc's object directory even for multilibs.
2821 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2823 * configure.in: Escape ^ in grep string.
2824 * configure: Rebuilt.
2826 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2828 * All .h files pushed down into the objc/ subdirectory.
2829 * Makefile.in (copy_headers): Corresponding changes.
2830 * configure.in (AC_INIT): Corresponding changes.
2831 * configure: Rebuilt.
2833 1998-09-30 Ben Elliston <bje@cygnus.com>
2834 Jeff Law <law@cygnus.com>
2836 * Makefile.in: Rewrite.
2838 * configure.in: Likewise.
2840 * configure: Regenerate.
2842 * All .c files. Remove "objc" prefix when including objc header
2843 files. Include tconfig.h, not ../tconfig.h.
2845 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2847 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2848 (get_inner_array_type): Define.
2850 1998-09-21 Ben Elliston <bje@cygnus.com>
2852 * New directory. Moved files from ../gcc/objc.