1 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
3 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
4 * objects.c (class_create_instance): Removed.
5 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
6 * gc.c (__objc_generate_gc_type_description): Use
7 class_getInstanceSize() instead of class_get_instance_size().
8 * selector.c (sel_types_match): Made static.
9 (sel_get_typed_uid): Removed.
10 (sel_get_any_typed_uid): Removed.
11 (sel_get_name): Removed.
12 (sel_get_type): Removed.
13 (sel_register_name): Removed.
14 (sel_register_typed_name): Removed.
15 (sel_get_uid): Removed.
17 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
19 * encoding.c (method_get_number_of_arguments): Removed.
20 (method_get_sizeof_arguments): Removed.
22 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
24 * class.c (objc_next_class): Removed.
25 (class_pose_as): Removed.
27 (class_table_replace): Removed.
28 (objc_lookup_class): Removed.
30 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
32 Removed the Traditional Objective-C runtime public API.
33 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
34 (install-headers): Do not create the objc/deprecated directory and
35 do not install the deprecated headers.
36 (OBJC_H): Removed encoding.h and objc-api.h.
37 * Object.m: Removed all methods with the exception of -class and
38 -isEqual:. Updated includes. ([-class]): Use Modern API.
39 * objc/Object.h: Do not include deprecated/Object.h.
40 * objc/deprecated/Object.h: Removed.
41 * linking.m (__objc_linking): Call [Object class] instead of
43 * Protocol.m: Removed all methods with the exception of -isEqual:.
45 * objc/Protocol.h: Do not include deprecated/Protocol.h.
46 * objc/deprecated/Protocol.h: Removed.
47 * objc/deprecated/struct_objc_symtab.h: Removed.
48 * objc/deprecated/struct_objc_module.h: Removed.
49 * objc/deprecated/struct_objc_ivar.h: Removed.
50 * objc/deprecated/struct_objc_ivar_list.h: Removed.
51 * objc/deprecated/struct_objc_method.h: Removed.
52 * objc/deprecated/struct_objc_method_list.h: Removed.
53 * objc/deprecated/struct_objc_protocol_list.h: Removed.
54 * objc/deprecated/struct_objc_category.h: Removed.
55 * objc/deprecated/MetaClass.h: Removed.
56 * objc/deprecated/objc_msg_sendv.h: Removed.
57 * objc/deprecated/README: Removed.
58 * objc/deprecated/struct_objc_class.h: Removed.
59 * objc/deprecated/struct_objc_protocol.h: Removed.
60 * objc/deprecated/struct_objc_selector.h: Removed.
61 * objc/encoding.h: Removed.
62 * objc/message.h (struct objc_super): Removed the definition for
63 the Traditional Objective-C runtime API.
64 * objc/objc.h: Do not include objc/objc-decls.h.
65 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
66 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
67 and deprecated/objc_msg_sendv.h. Uncommented new definition of
69 * objc/objc-api.h: Removed.
70 * objc/runtime.h: Updated comments. Removed check to detect
71 concurrent usage of Traditional and Modern APIs.
72 * objc-private/module-abi-8.h: Always define struct objc_class and
73 struct objc_protocol. (struct objc_protocol_list): Changed type
74 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
75 (class_get_instance_size): Added.
76 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
77 'struct objc_protocol *' as argument, not a 'Protocol *'.
78 * objc-private/runtime.h: Updated comments.
79 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
80 * class.c: Include objc-private/selector.h.
81 (objc_get_meta_class): Return a Class instead of a MetaClass.
82 * encoding.c (method_get_next_argument): Removed.
83 (method_get_first_argument): Removed.
84 (method_get_nth_argument): Removed.
85 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
86 Include objc-private/module-abi-8.h and ctype.h.
87 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
88 objc_protocl *' as argument, not a 'Protocol *'.
89 (class_addProtocol): Added casts to 'struct objc_protocol *' and
91 (class_copyProtocolList): Likewise.
92 (protocol_conformsToProtocol): Likewise.
93 (protocol_copyProtocolList): Likewise.
94 * sarray.c: Include objc-private/module-abi-8.h.
95 * sendmsg.c (method_get_next_argument): Removed.
96 (method_get_first_argument): Removed.
97 (method_get_nth_argument): Removed.
98 (objc_msg_sendv): Removed.
99 (arglist_t, retval_t): New. (class_get_class_method): Take a
100 'Class', not 'MetaClass', argument.
101 * thr.c: Include module-abi-8.h.
103 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
105 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
106 and objc_get_uninstalled_dtable.h.
107 * objc/deprecated/struct_objc_static_instances.h: Removed.
108 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
109 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
110 and deprecated/objc_get_uninstalled_dtable.h.
112 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
114 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
115 * objc/deprecated/objc_object_alloc.h: Removed.
116 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
117 * objects.c (_objc_object_alloc, _objc_object_dispose,
118 _objc_object_copy): Removed.
119 * libobjc.def (__objc_object_alloc, __objc_object_copy,
120 __objc_object_dispose): Removed.
122 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
124 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
125 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
126 * objc/deprecated/METHOD_NULL.h: Removed.
128 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
130 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
131 objc_malloc.h and objc_unexpected_exception.h.
132 (exception.lo): Do not use -Wno-deprecated-declarations.
133 (exception_gc.lo): Likewise.
134 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
135 deprecated/objc_malloc.h and
136 deprecated/objc_unexpected_exception.h.
137 * objc/deprecated/objc_valloc.h: Removed.
138 * objc/deprecated/objc_malloc.h: Removed.
139 * objc/deprecated/objc_unexpected_exception.h: Removed.
140 * exception.c (_objc_unexpected_exception): Removed.
141 (objc_exception_throw): Do not check for
142 _objc_unexpected_exception.
143 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
144 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
145 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
147 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
149 * objc/objc.h: Do not include deprecated/STR.h.
150 * objc/deprecated/STR.h: Removed.
151 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
153 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
155 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
156 (OBJC_DEPRECATED_H): Likewise.
157 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
158 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
159 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
160 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
161 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
162 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
163 * objc/sarray.h: Removed.
164 * objc/hash.h: Removed.
165 * objc/deprecated/sarray.h: Removed.
166 * objc/deprecated/hash.h: Removed.
167 * objc/Object.h: Do not include objc/deprecated/hash.h
168 * Object.m: Include string.h.
169 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
170 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
173 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
175 * Object.m ([-forward::]): Removed.
176 * objc/deprecated/Object.h ([-forward::]): Removed.
177 * sendmsg.c (__objc_forward): Updated comments.
179 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
181 * Makefile.in (OBJC_H): Removed objc-list.h.
182 (OBJC_DEPRECATED_H): Removed objc-list.h.
183 * objc/objc-list.h: File removed.
184 * objc/deprecated/objc-list.h: File removed.
186 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
188 * Makefile.in (OBJC_H): Removed typedstream.h.
189 (OBJC_DEPRECATED_H): Removed typedstream.h.
190 (C_SOURCE_FILES): Removed archive.c.
191 (Object.lo): Rule removed.
192 (Object_gc.lo): Likewise.
193 (archive.lo): Likewise.
194 (archive_gc.lo): Likewise.
195 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
197 Do not include deprecated/typedstream.h.
198 * Object.m: Removed the same methods.
199 * archive.c: File removed.
200 * objc/typedstream.h: File removed.
201 * objc/deprecated/typedstream.h: File removed.
202 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
203 __objc_write_class, __objc_write_object, __objc_write_selector,
204 objc_close_typed_stream, objc_end_of_typed_stream,
205 objc_flush_typed_stream, objc_get_stream_class_version,
206 objc_open_typed_stream, objc_open_typed_stream_for_file,
207 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
208 objc_read_object, objc_read_selector, objc_read_short,
209 objc_read_string, objc_read_type, objc_read_types,
210 objc_read_unsigned_char, objc_read_unsigned_int,
211 objc_read_unsigned_long, objc_read_unsigned_short,
212 objc_write_array, objc_write_char, objc_write_int,
213 objc_write_long, objc_write_object, objc_write_object_reference,
214 objc_write_root_object, objc_write_selector, objc_write_short,
215 objc_write_string, objc_write_string_atomic, objc_write_type,
216 objc_write_types, objc_write_unsigned_char,
217 objc_write_unsigned_int, objc_write_unsigned_long,
218 objc_write_unsigned_short): Removed.
220 2011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
222 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
223 * objc/deprecated/objc_error.h: Removed.
224 * objc/objc-api.h: Do not include deprecated/objc_error.h.
225 * libobjc.def (objc_error, objc_verror): Removed.
226 * error.c (_objc_error_handler, objc_error, objc_verror,
227 objc_set_error_handler): Removed.
228 * Object.m ([-error:], [-perform:], [-perform:with:],
229 [-perform:with:with], [-subclassResponsibility:],
230 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
232 * objc/deprecated/Object.h: Removed the same methods.
233 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
234 method after trying to invoke the "doesNotRecognize:" method.
236 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
238 * sendmsg.c: Reindented part of the file. No non-trivial changes
241 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
243 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
244 not objc_lookup_class.
246 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
247 David Ayers <ayers@fsfe.org>
250 * sendmsg.c: Include objc/hash.h.
251 (get_implementation): New function, mostly with code from get_imp
252 updated to support the new +initialize dispatch table logic.
253 (get_imp): Use get_implementation.
254 (__objc_responds_to): Updated to support the new +initialize
255 dispatch table logic.
256 (class_respondsToSelector): Likewise.
257 (objc_msg_lookup): Use get_implementation.
258 (__objc_init_install_dtable): Removed.
259 (__objc_install_methods_in_dtable): Updated arguments.
260 (__objc_install_dispatch_table_for_class): Renamed to
261 __objc_install_dtable_for_class and updated to support the new
262 +initialize dispatch table logic.
263 (__objc_update_dispatch_table_for_class): Updated to support the
264 new +initialize dispatch table logic.
265 (__objc_forward): Call get_implementation instead of get_imp.
266 (prepared_dtable_table): New.
267 (__objc_prepare_dtable_for_class): New.
268 (__objc_prepared_dtable_for_class): New.
269 (__objc_get_prepared_imp): New.
270 (__objc_install_prepared_dtable_for_class): New.
272 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
275 * selector.c (__sel_register_typed_name): Use sel_types_match()
276 instead of strcmp() to compare selector types (Suggestion by
277 Richard Frith-Macdonald <rfm@gnu.org>).
279 2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
282 * Makefile.in (OBJC_GCFLAGS): Move ...
283 * configure.ac (enable_objc_gc): ... here.
284 Add $(libsuffix) to OBJC_BOEHM_GC.
285 * configure: Regenerate.
287 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
289 * selector.c (sel_getTypedSelector): Return NULL if there are
290 multiple selectors with conflicting types.
291 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
293 2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
296 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
299 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
301 * configure: Regenerate.
303 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
305 * init.c (create_tree_of_subclasses_inherited_from): Use
306 class_superclass_of_class instead of assuming a class is
307 unresolved when it could be resolved. Tidied up assignment and
309 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
310 (objc_tree_insert_class): Tidied up loop; return immediately upon
312 (__objc_exec_class): Do not set __objc_class_tree_list.
314 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
316 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
318 (sel_registerTypedName): Same.
319 (sel_registerName): Same.
320 * objc/runtime.h: Updated documentation.
322 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
324 * objc/runtime.h (class_addIvar): Updated documentation. The
325 alignment is actually the log_2 of the alignment in bytes.
326 * ivars.c (class_addIvar): Corresponding change to the
329 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
331 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
332 be consistent with method_getTypeEncoding and
333 ivar_getTypeEncoding.
334 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
335 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
336 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
337 (sel_get_type): Updated call to sel_getType.
339 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
341 * objc/runtime.h (class_conformsToProtocol,
342 class_copyProtocolList): Updated documentation.
344 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
346 * init.c (create_tree_of_subclasses_inherited_from): Updated
347 DEBUG_PRINTF messages.
348 (__objc_tree_insert_class): Same.
349 (__objc_send_load_using_method_list): Same.
350 (__objc_send_load): Same.
351 (__objc_exec_class): Same. In particular, do not print the module
352 name since it is no longer used.
353 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
354 tracking +initialize calls.
355 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
356 tracking updates of dispatch tables.
357 (__objc_install_dispatch_table_for_class): Same.
359 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
362 (libobjc_gc$(libsuffix).la): Likewise.
364 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
366 * sendmsg.c (class_addMethod): Return NO if the method already
369 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
371 * init.c (duplicate_classes): New.
372 (__objc_exec_class): Initialize duplicate_classes.
373 (__objc_create_classes_tree): Ignore classes in the
374 duplicate_classes table.
375 (__objc_call_load_callback): Same.
376 (__objc_init_class): If a duplicate class is found, add it to
377 duplicate_classes instead of aborting. Return YES if the class is
378 not a duplicate, and NO if it is.
379 * objc-private/runtime.h (__objc_init_class): Updated prototype.
381 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
383 * objc-private/objc-list.h: Reindented file. No code changes.
384 * objc-private/sarray.h: Same change.
386 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
388 * objc-private/accessors.h: Removed 'extern "C"' guards. This
389 file is never compiled with C++.
390 * objc-private/hash.h: Same change.
391 * objc-private/objc-list.h: Same change.
392 * objc-private/objc-sync.h: Same change.
393 * objc-private/protocols.h: Same change.
394 * objc-private/runtime.h: Same change.
395 * objc-private/sarray.h: Same change.
396 * objc-private/selector.h: Same change.
398 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
401 * class.c (__objc_add_class_to_hash): Return YES if the class was
402 added, and NO if it already existed.
403 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
404 NO, then abort the program with an error message.
405 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
408 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
410 * init.c (_objc_load_callback): Initialize with 0.
411 (__objc_call_callback): Renamed to __objc_call_load_callback.
412 Check _objc_load_callback only once, and if it is not set, return
414 (objc_send_load): Updated call to __objc_call_callback.
416 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
419 * init.c (__objc_send_message_in_list): Renamed to
420 __objc_send_load_using_method_list. Do not take an 'op' argument.
421 Register the 'load' selector if needed.
422 (__objc_send_load): Do not register the 'load' selector. Updated
423 call to __objc_send_message_in_list.
424 (__objc_create_classes_tree): Add the class of any claimed
425 category that was loaded in the module to the list of classes for
426 which we try to execute +load.
428 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
430 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
432 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
433 a pointer using DEBUG_PRINTF.
435 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
438 * selector.c (__sel_register_typed_name): When registering a new
439 selector with the same name as an existing one, reuse the existing
440 name string. Also updated types, casts and comments in the whole
443 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
445 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
446 to be 'struct objc_selector *' and not 'SEL'.
447 * init.c (__objc_exec_class): Call
448 __objc_register_selectors_from_module instead of iterating over
449 each selector and calling __sel_register_typed_name for each.
450 * objc-private/selector.h: Declare
451 __objc_register_selectors_from_module instead of
452 __sel_register_typed_name.
453 * selector.c (__objc_register_selectors_from_module): New.
454 (__sel_register_typed_name): Made static.
456 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
458 * linking.m: Do not include objc/NXConstStr.h.
460 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
462 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
463 * objc-private/common.h (DEBUG_PRINTF): To here.
464 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
466 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
468 * hash.c: Tidied up comments and indentation. No code changes.
470 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
473 * accessors.m (objc_getProperty): If not atomic, do not
474 retain/autorelease the returned value.
476 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
478 * objc-private/runtime.h (__objc_selector_max_index,
479 __objc_init_selector_tables, __objc_register_selectors_from_class,
480 __objc_register_selectors_from_list,
481 __objc_register_selectors_from_description_list): Moved to ...
482 * objc-private/selector.h: ... here.
484 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
486 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
487 (__objc_print_dtable_stats): Removed.
488 (__sel_register_typed_name): Removed.
489 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
491 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
493 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
494 if appropriate, after loading the module.
496 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
498 * sendmsg.c (method_setImplementation): Do not declare.
500 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
502 * objc/message.h: Updated comments.
503 * objc/runtime.h: Updated comments.
505 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
507 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
508 * protocols.c: Updated all calls to objc_lookupClass to call
509 objc_lookUpClass instead.
510 * sendmsg.c (objc_lookupClass): Do not declare.
511 (get_imp): Update call to objc_lookupClass to call
512 objc_lookUpClass instead.
513 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
515 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
517 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
518 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
519 define. Updated comments.
521 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
523 * objc/encoding.h: Updated comments.
524 * objc/runtime.h: Updated comments.
525 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
526 (objc_sizeof_type): Same.
527 (objc_alignof_type): Same.
528 (objc_aligned_size): Same.
529 (objc_promoted_size): Same.
530 (objc_skip_type_qualifiers): Same.
531 (objc_skip_typespec): Same.
532 (objc_skip_offset): Same.
533 (objc_skip_argspec): Same.
534 (objc_get_type_qualifiers): Same.
535 (objc_layout_structure): Same.
536 (objc_layout_structure_next_member): Same.
537 (objc_layout_finish_structure): Same.
538 (objc_layout_structure_get_info): Same.
540 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
542 * init.c: Updated comments.
543 * objc/objc-api.h: Updated comments.
544 * objc/runtime.h (_objc_load_callback): Declare.
546 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
548 * objc/Object.h: Include deprecated/typedstream.h and
549 deprecated/hash.h instead of typedstream.h. Updated comments.
551 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
553 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
554 * objc/deprecated/objc_msg_sendv.h: New.
555 * objc/message.h: Do not define retval_t, apply_t, arglist,
556 arglist_t, objc_msg_sendv, now in
557 objc/deprecated/objc_msg_sendv.h.
558 * objc/objc.h: Do not include message.h; include
559 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
560 * sendmsg.c: Include objc/message.h.
561 * thr.c: Include objc/message.h.
563 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
565 * objc/objc-exception.h: Include objc-decls.h. Mark all
566 functions with objc_EXPORT.
567 * objc/objc-sync.h: Same change.
569 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
571 * Protocol.m: Moved all methods, with the exception of -isEqual:,
572 into the 'Deprecated' category.
573 * objc/Protocol.h: Removed all methods, moved to
574 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
575 * objc/deprecated/Protocol.h: New.
576 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
578 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
580 * init.c: Include objc-private/selector.h. Do not declare
581 __sel_register_typed_name.
582 * objc-private/selector.h (__sel_register_typed_name): Declare.
583 * selector.c: Include objc-private/selector.h.
585 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
587 * class.c: Tidied up comments and indentation. No code changes.
593 * objc-foreach.c: Same.
600 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
602 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
603 instead of objc/objc-api.h.
604 (init_check_module_version): Take a 'struct objc_module *'
605 argument instead of 'Module_t'. Use 'struct objc_module *'
606 instead of 'Module_t'.
607 (__objc_created_classes_tree): Take a 'struct objc_module *'
608 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
610 (__objc_call_callback): Take a 'struct objc_module *' argument
611 instead of 'Module_t'; use 'struct objc_symtab *' instead of
612 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
613 (_objc_load_callback): Take a 'struct objc_category *' argument
614 instead of 'Category *'.
615 (class_superclass_of_class): Use objc_getClass() instead of
617 (create_tree_of_subclasses_inherited_from): Same change (also, use
618 an explicit 'if' instead of '?').
619 (objc_init_statics): Same change.
620 (objc_send_load): Same change.
621 (__objc_init_protocol): same change.
622 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
623 argument instead of 'MethodList_t'. Use 'struct objc_method *'
624 instead of 'Method_t'.
625 (__objc_send_load): Use 'struct objc_method_list *' instead of
626 'MethodList_t'. Use sel_registerName() instead of
628 (__objc_exec_class): Take a 'struct objc_module *' argument
629 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
630 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
631 Use 'struct objc_category *' instead of 'Category_t'.
633 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
635 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
636 Include objc-private/module-abi-8.h and objc-private/selector.h
637 instead of objc/encoding.h.
638 (objc_msg_lookup_super): Use super->super_class instead of
640 (method_get_first_argument, method_get_next_argument): Declare
642 (class_get_instance_method): Declare before using.
643 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
644 (__objc_init_dispatch_tables, __objc_send_initialize): Use
645 sel_registerName() instead of sel_register_name().
646 (__objc_forward): Use sel_getName() instead of sel_get_name().
647 (objc_get_uninstalled_dtable): Use 'void' as argument.
648 * objc-private/selector.h: New.
650 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
652 * objc/message.h (objc_super): When using the modern API, do not
653 define Super and Super_t, and always use 'super_class' for the
655 (objc_msg_lookup_super): Updated prototype to use 'struct
656 objc_super *' instead of 'Super_t'.
657 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
658 'struct objc_super *' instead of 'Super_t'.
660 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
662 * objc/message.h: Update comments, reindented code and moved
663 deprecated types and functions at the end of the file. No code
666 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
668 * ivars.c (class_addIvar): Use the 'size' argument instead of
669 trying to calculate it using objc_sizeof_type().
670 * objc/runtime.h (class_addIvar): Updated comments.
672 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
674 * sendmsg.c: Reindented some code and tidied up comments. No
677 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
679 * objc/Object.h: Moved all the methods, with the exception of
680 -class and -isEqual:, into ...
681 * objc/deprecated/Object.h: here.
682 * Object.m: Moved all the methods, with the exception of -class
683 and -isEqual: into the 'Deprecated' category.
685 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
687 * objects.c (object_copy): Do not #undef as we are no longer
688 including objc/objc-api.h.
689 * selector.c: Include objc/runtime.h and
690 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
691 objc/encoding.h. Updated
692 (__objc_register_selectors_from_class): Use struct
693 objc_method_list * instead of MethodList_t.
694 (__objc_register_selectors_from_list): Use Method instead of
696 (struct objc_method_description_list): Do not define here.
697 (__objc_register_instance_methods_to_class): Use struct
698 objc_method_list * instead of MethodList_t and Method instead of
701 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
703 * selector.c: Reindented some code and tidied up comments. No
706 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
708 * encoding.c (_darwin_rs6000_special_round_type_align): New.
709 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
711 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
713 * sendmsg.c (selector_resolveClassMethod): New.
714 (selector_resolveInstanceMethod): New.
715 (__objc_resolve_class_method): New.
716 (__objc_resolve_instance_method): New.
717 (get_imp): Call __objc_resolve_class_method or
718 __objc_resolve_instance_method at the appropriate time.
719 (objc_msg_lookup): Same.
720 (class_getClassMethod): Same.
721 (class_getInstanceMethod): Same.
722 (__objc_init_dispatch_tables): Initialize
723 selector_resolveClassMethod and selector_resolveInstanceMethod.
724 * objc/runtime.h: Updated documentation of class_getClassMethod,
725 class_getInstanceMethod and class_getMethodImplementation.
727 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
729 * objc-private/module-abi-8.h (struct objc_symtab): Updated
730 description of sel_ref_cnt and refs.
731 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
733 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
737 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
738 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
739 * aclocal.m4: Regenerate.
740 * configure: Regenerate.
742 2010-12-03 Matthias Klose <doko@ubuntu.com>
744 * configure.ac (VERSION): Bump the version to 3:0:0.
745 * configure: Regenerate.
747 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
749 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
750 pass nil as the receiver since we don't know the receiver at this
753 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
755 * ivars.c: Include stdlib.h.
756 * protocols.c: Same change.
758 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
760 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
762 * init.c: Include objc-private/accessors.h.
763 (__objc_exec_class): Call __objc_accessors_init.
764 * objc-private/accessors.h: New.
766 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
768 * objc/message.h: Moved initial includes outside of extern "C".
769 * objc/runtime.h: Add extern "C" for Objective-C++.
771 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
773 * init.c (objc_send_load): Do not wait for NXConstantString to be
774 registered before executing +load. There is no point if
775 -fconstant-string-class=xxx is used when compiling all modules,
776 as is the case for almost all users.
777 * linking.m (__objc_linking): Do not try to forcefully link in
780 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
782 * objc/runtime.h: Updated comments.
783 (class_addMethod): New.
784 (class_addIvar): New.
785 (class_replaceMethod): New.
786 (objc_allocateClassPair): New.
787 (objc_registerClassPair): New.
788 (objc_disposeClassPair): New.
789 * class.c (objc_allocateClassPair): New.
790 (objc_registerClassPair): New.
791 (objc_disposeClassPair): New.
792 (class_getSuperclass): Return Nil if a class is in construction.
793 * init.c (__objc_exec_class): Call __objc_init_class.
794 (__objc_init_class): New.
795 * ivars.c (class_copyIvarList): Return NULL if class is in
796 construction. Do not lock the runtime mutex.
797 (class_getInstanceVariable): Return NULL if class is in
798 construction. Do not lock the runtime mutex.
799 (class_addIvar): New.
800 * sendmsg.c (class_addMethod): New.
801 (class_replaceMethod): New.
802 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
803 (_CLS_IN_CONSTRUCTION): New.
804 (CLS_IS_IN_CONSTRUCTION): New.
805 (CLS_SET_IN_CONSTRUCTION): New.
806 (CLS_SET_NOT_IN_CONSTRUCTION): New.
807 * objc-private/runtime.h (__objc_init_class): New.
809 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
811 * class.c (class_getSuperclass): Call __objc_resolve_class_links
812 if the class is not resolved yet.
813 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
815 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
817 * objc/runtime.h (class_getIvarLayout): New.
818 (class_getWeakIvarLayout): New.
819 (class_setIvarLayout): New.
820 (class_setWeakIvarLayout): New.
821 * ivars.c (class_getIvarLayout): New.
822 (class_getWeakIvarLayout): New.
823 (class_setIvarLayout): New.
824 (class_setWeakIvarLayout): New.
826 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
828 * objc/runtime.h (class_copyPropertyList): New.
829 (class_getProperty): New.
830 (property_getAttributes): New.
831 (property_getName): New.
832 * ivars.c (class_copyPropertyList): New.
833 (class_getProperty): New.
834 (property_getAttributes): New.
835 (property_getName): New.
837 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
839 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
840 * class.c (__objc_update_classes_with_methods): New.
841 (objc_getClassList): Do not lock the class lock.
842 * methods.c (method_exchangeImplementations): New.
843 (method_setImplementation): New.
844 * objc/runtime.h (method_setImplementation): New.
845 (method_exchangeImplementations): New.
847 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
849 * Protocol.m: Include objc/runtime.h and
850 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
851 repeat Protocol's instance variables.
852 (struct objc_method_description_list): Do not define here.
853 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
854 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
855 selectors directly instead of getting names and then using strcmp.
856 ([descriptionForClassMethod:]): Same change.
857 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
858 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
859 to compare selectors directly instead of getting names and then
861 * objc/Protocol.h: Updated comments.
863 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
865 * init.c (__objc_init_protocol): New function which fixes up a
866 protocol's class pointer, registers it with the runtime, register
867 all protocol selectors and registers associated protocols too.
868 (objc_init_statics): Detect if we are initializing protocols, and
869 if so, use __objc_init_protocol instead of only fixing up the
871 (__objc_init_protocls): Use __objc_init_protocol.
872 * objc-private/module-abi-8.h: Updated comments.
873 * objc-private/runtime.h
874 (__objc_register_selectors_from_description_list): New.
875 * selector.c (__objc_register_selectors_from_description_list):
876 New. (struct objc_method_description_list): Declare.
877 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
878 when accessing the name of a method, which is now correctly a SEL.
879 ([-descriptionForClassMethod:]): Same change.
880 * protocols.c (protocol_getMethodDescription): Same change.
881 * objc/runtime.h: Updated comments.
882 (sel_registerTypedName): Fixed typo in function name.
884 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
887 * init.c (objc_init_statics): Do not skip the initialization of a
888 statics list if the first object has already been initialized; in
889 the case of Protocols, while the first one may have been
890 initialized, some others may not have been initialized yet.
892 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
894 * Makefile.in (OBJC_DEPRECATED_H): Added
895 objc_get_uninstalled_dtable, objc_object_alloc.h and
896 struct_objc_static_instances.h.
898 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
900 * encoding.c (method_copyReturnType): New.
901 (method_copyArgumentType): New.
902 (method_getReturnType): New.
903 (method_getArgumentType): New.
904 * methods.c (method_getDescription): New.
905 * objc/runtime.h (method_copyReturnType): New.
906 (method_copyArgumentType): New.
907 (method_getReturnType): New.
908 (method_getArgumentType): New.
909 (method_getDescription): New.
911 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
913 * encoding.c: Tidied up comments.
914 (objc_skip_variable_name): New static inline function.
915 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
916 the same code over and over.
917 (objc_alignof_type): Same.
918 (objc_aligned_size): Same.
919 (objc_promoted_size): Same.
920 (objc_skip_typespec): Same.
921 (objc_layout_structure_next_member): Same.
922 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
923 historical bug where objc_skip_offset would skip one byte even if
924 there is no offset: check that the first offset digit is actually
925 a digit before skipping it.
926 (objc_skip_type_qualifiers): Mark as inline.
927 (objc_skip_typespec): Mark as inline.
929 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
931 * Makefile.in (C_SOURCE_FILES): Added methods.c.
932 * encoding.c (method_getNumberOfArguments): New.
933 (method_get_number_of_arguments): Call
934 method_getNumberOfArguments.
935 * ivars.c (ivar_getName): Check for NULL variable argument.
936 (ivar_getOffset): Check for NULL variable argument.
937 (ivar_getTypeEncoding): Check for NULL variable argument.
938 (class_copyIvarList): New.
940 * protocols.c (class_copyProtocolList): Check for Nil class_
942 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
943 'struct objc_method_list *' instead of MethodList_t.
944 (class_getMethodImplementation): New.
945 (class_respondsToSelector): New.
946 (class_getInstanceMethod): New.
947 (class_getClassMethod): New.
948 * objc/runtime.h: Updated comments.
949 (class_copyIvarList): New.
950 (class_getInstanceMethod): New.
951 (class_getClassMethod): New.
952 (class_getMethodImplementation): New.
953 (class_respondsToSelector): New.
954 (method_getName): New.
955 (method_getImplementation): New.
956 (method_getTypeEncoding): New.
957 (class_copyMethodList): New.
958 (method_getNumberOfArguments): New.
960 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
962 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
963 instead of objc/objc-api.h.
964 (objc_get_unknown_class_handler): Do not define.
965 (class_isMetaClass): New.
966 (class_getSuperclass): New.
967 (class_getVersion): New.
968 (class_setVersion): New.
969 (class_getInstanceSize): New.
970 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
971 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
972 objc_get_super_class.
973 (get_ttype_entry): Use objc_getRequiredClass instead of
975 * ivars.c (class_getClassVariable): New.
976 * objects.c: Include objc/runtime.h, objc/thr.h and
977 objc-private/module-abi-8.h instead of objc/objc-api.h
978 * objc/runtime.h (class_getClassVariable): New.
979 (class_isMetaClass): New.
980 (class_getSuperclass): New.
981 (class_getVersion): New.
982 (class_setVersion): New.
983 (class_getInstanceSize): New.
984 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
987 (__CLS_ISINFO): Same.
988 (__CLS_SETINFO): Same.
991 (CLS_ISRESOLV): Same.
992 (CLS_SETRESOLV): Same.
993 (CLS_ISINITIALIZED): Same.
994 (CLS_SETINITIALIZED): Same.
995 (CLS_GETNUMBER): Same.
996 (CLS_SETNUMBER): Same.
998 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1000 * archive.c: Do not include objc/objc.h.
1001 * class.c: Do not include objc/objc.h.
1002 * encoding.c: Include objc/runtime.h, ctype.h and
1003 objc-private/module-abi-8.h instead of objc/objc-api.h and
1005 * error.c: Do not include objc/objc.h.
1006 * gc.c: Include tconfig.h and objc/encoding.h only if
1008 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1009 objc/objc-api.h. Do not include objc/objc.h.
1010 * init.c: Do not include objc/objc.h.
1011 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1012 objc/thr.h instead of objc/objc-api.h. Do not include
1014 * linking.m: Tidied comment.
1015 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1016 Do not include objc/objc.h.
1017 * objects.c: Do not include objc/objc.h.
1018 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1019 * protocols.c: Do not include objc/objc.h.
1020 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1021 not include objc/objc.h.
1022 * selector.c: Do not include objc/objc.h.
1023 * sendmsg.c: Do not include objc/objc.h.
1024 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1025 Do not include objc/objc.h.
1026 * objc/objc-decls.h: Reindented code.
1027 * objc/runtime.h Include objc-decls.h. Updated comments.
1029 (objc_atomic_malloc): New.
1031 (objc_realloc): New.
1033 * objc-private/runtime.h: Updated comments.
1035 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1037 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1038 * objc-private/protocols.h: New.
1040 * init.c: Include objc-private/protocols.h.
1041 (__objc_exec_class): Call __objc_protocols_init on startup.
1042 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1043 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1044 of MethodList_t, and (struct objc_method *) instead of Method_t.
1045 * objc/deprecated/struct_objc_class.h: Define
1046 __objc_STRUCT_OBJC_CLASS_defined.
1047 * objc-private/module-abi-8.h (struct
1048 objc_method_description_list): New.
1049 (struct objc_class): Only define if
1050 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1051 * objc/runtime.h (class_getName): New.
1052 (objc_getProtocol): New.
1053 (objc_copyProtocolList): New.
1054 (class_addProtocol): New.
1055 (class_conformsToProtocol): New.
1056 (class_copyProtocolList): New.
1057 (protocol_conformsToProtocol): New.
1058 (protocol_isEqual): New.
1059 (protocol_getName): New.
1060 (protocol_getMethodDescription): New.
1061 (protocol_copyMethodDescriptionList): New.
1062 (protocol_getProperty): New.
1063 (protocol_copyPropertyList): New.
1064 (protocol_copyProtocolList): New.
1065 * class.c (class_getName): New.
1066 * selector.c (sel_isEqual): New.
1068 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1070 * selector.c (sel_getName): Return "<null selector>" for a NULL
1072 (sel_get_name): Return 0 for a NULL argument.
1073 * objc/runtime.h (sel_getName): Updated documentation.
1075 * objc-private/hash.h (class_hash_table): Unused declaration
1077 (module_hash_table): Same.
1078 * objc/deprecated/hash.h: Same changes.
1080 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1082 * class.c (objc_getClassList): New.
1083 (objc_getRequiredClass): New.
1084 (objc_getMetaClass): New.
1085 (objc_lookupClass): New.
1086 (objc_getClass): New.
1087 (__objc_get_unknown_class_handler): New.
1088 (objc_setGetUnknownClassHandler): New.
1089 (objc_get_class): Use __objc_get_unknown_class_handler.
1090 (objc_lookup_class): Call objc_getClass.
1091 * objc/objc-api.h: Updated comment and copyright notice.
1092 * objc/runtime.h: Updated comments.
1093 (objc_getClass): New.
1094 (objc_lookupClass): New.
1095 (objc_getMetaClass): New.
1096 (objc_getRequiredClass): New.
1097 (objc_getClassList): New.
1098 (objc_setGetUnknownClassHandler): New.
1099 (objc_get_unknown_class_handler): New.
1100 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1101 instead of __objc_runtime_INCLUDE_GNU as include guard.
1102 * objc-private/error.h (_objc_abort): Mark as noreturn.
1104 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1106 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1108 * objc/objc.h: Updated comments.
1109 * objc/runtime.h (object_getClass): New.
1110 (object_getClassName): New.
1111 (object_setClass): New.
1112 (class_getInstanceVariable): New.
1113 (object_getIndexedIvars): New.
1114 (object_getInstanceVariable): New.
1115 (object_setInstanceVariable): New.
1116 (object_getIvar): New.
1117 (object_setIvar): New.
1118 (ivar_getName): New.
1119 (ivar_getOffset): New.
1120 (ivar_getTypeEncoding): New.
1121 * objc-private/module-abi-8.h (struct objc_class): Added.
1122 * objects.c (object_getClassName): New.
1123 (object_setClass): New.
1125 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1127 * objc/objc.h: Updated comments.
1128 * objc/objc-api.h: (object_copy): Added one argument; use a
1129 #define to maintain backwards-compatibility. Moved
1130 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1131 objc_get_uninstalled_dtable into
1132 objc/deprecated/objc_get_uninstalled_dtable.h and
1133 objc/deprecated/objc_object_alloc.h. Include these files.
1134 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1135 * objc/deprecated/objc_object_alloc.h: New.
1136 * objc/runtime.h (set_getName): New.
1139 (sel_registerName): New.
1140 (sel_registerTypedName): New.
1142 (class_createInstance): New.
1144 (object_dispose): New.
1145 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1146 building the garbage collection version.
1147 (__objc_object_alloc): Removed.
1148 (__objc_object_copy): Removed.
1149 (__objc_object_dispose): Removed.
1150 (class_createInstance): New from code in class_create_instance.
1151 Cast second argument of GC_malloc_explicitly_typed. Use
1152 objc_calloc. Do not call _objc_object_alloc.
1153 (class_create_instance): Call class_createInstance.
1154 (object_copy): Added extraBytes argument. Do not call
1156 (object_dispose): Do not call _objc_object_dispose.
1157 * memory.c (objc_free): When using garbage collection, mark the
1159 * selector.c (sel_getName): New.
1160 (sel_get_name): Call sel_getName.
1162 (sel_get_type): Call sel_getType.
1163 (sel_registerName): New.
1164 (sel_register_name): Call sel_registerName.
1165 (sel_registerTypedName): New.
1166 (sel_register_typed_name): Call sel_registerTypedName.
1168 (sel_get_uid): Call sel_getUid.
1170 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1172 * objc/objc-api.h: Define Method, Method_t, Category and
1173 Category_t. Prevent including this file at the same time as
1174 objc/runtime.h. Updated comments.
1175 * objc/deprecated/struct_objc_method.h: Do not define Method,
1177 * objc/deprecated/struct_objc_category.h: Do not define Category,
1179 * objc-private/module-abi-8.h: New file containing a copy of all
1180 the structure definitions. Not used yet.
1181 * objc/encoding.h (objc_aligned_size): Removed duplicate
1182 declaration. Updated comments.
1183 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1184 Category, struct objc_method_description, _C_ID and similar,
1185 _C_CONST and similar and _F_CONST and similar. Added
1186 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1187 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1188 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1189 struct objc_struct_layout, objc_layout_structure,
1190 objc_layout_structure_next_member, objc_layout_finish_structure,
1191 objc_layout_structure_get_info. Prevent including this file at
1192 the same time as objc/objc-api.h.
1194 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1196 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1197 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1198 struct_objc_method_list.h, struct_objc_module.h,
1199 struct_objc_protocol_list.h, struct_objc_symtab.h.
1200 * objc/deprecated/struct_objc_category.h: New.
1201 * objc/deprecated/struct_objc_ivar.h: New.
1202 * objc/deprecated/struct_objc_ivar_list.h: New.
1203 * objc/deprecated/struct_objc_method.h: New.
1204 * objc/deprecated/struct_objc_method_list.h: New.
1205 * objc/deprecated/struct_objc_module.h: New.
1206 * objc/deprecated/struct_objc_protocol_list.h: New.
1207 * objc/deprecated/struct_objc_symtab.h: New.
1208 * objc/deprecated/struct_objc_static_instances.h: New.
1209 * objc/objc-api.h: Definitions of deprecated structures moved into
1210 the above header fragment files in objc/deprecated/. Include the
1211 files instead of definition the structures here. Updated
1213 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1214 (objc_set_enumeration_mutation_handler): Renamed to
1215 objc_setEnumerationMutationHandler.
1216 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1217 to objc_setEnumerationMutationHandler.
1218 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1219 objc_setExceptionMatcher.
1220 (objc_set_uncaught_exception_handler): Renamed to
1221 objc_setUncaughtExceptionHandler.
1222 * exception.c: Same changes.
1224 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1226 * objc-sync.c: Include objc-private/common.h.
1228 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1230 * objc-foreach.c: Include objc-private/common.h.
1231 * objc/deprecated/METHOD_NULL.h: New file.
1232 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1233 defining METHOD_NULL here.
1234 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1235 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1237 ([-respondsTo:]): Same change.
1238 * objc/objc-api.h (method_get_imp): Converted it into a normal
1239 function so that we can hide the internals of struct objc_method.
1240 * sendmsg.c (method_get_imp): Implemented.
1242 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1244 * objc/objc-api.h (struct objc_super, Super, Super_t,
1245 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1246 objc_msg_forward2): Declarations moved to objc/message.h. Include
1248 * objc/message.h: Added such declarations; updated comments.
1250 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1252 Implemented fast enumeration for Objective-C.
1253 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1254 (OBJC_H): Added runtime.h
1255 * objc-foreach.c: New file.
1256 * objc/runtime.h: New file.
1258 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
1260 * objc/deprecated/struct_objc_class.h: Add padding
1261 to avoid warning with -Wpadded.
1263 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1265 * encoding.c (objc_sizeof_type): Added support for vector type and
1266 for double long types.
1267 (objc_alignof_type): Same change.
1268 (objc_skip_typespec): Same change.
1269 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1270 instead of '!' since '!' is already used for _C_VECTOR.
1271 * objc/objc-api.h (_C_LNG_DBL): Added.
1273 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1275 * libobjc_entry.c: File removed.
1277 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
1279 * sendmsg.c (objc_msg_lookup): Remove inline.
1280 (objc_get_uninstalled_dtable): Likewise.
1281 * encoding.c (objc_skip_type_qualifiers): Likewise.
1282 (objc_skip_offset): Likewise.
1283 * archive.c (__objc_write_object): Likewise
1284 (__objc_write_class):
1285 (__objc_write_selector):
1287 (objc_read_unsigned_char):
1289 (objc_read_unsigned_short):
1292 (__objc_read_nbyte_uint):
1293 (objc_read_unsigned_int):
1294 (objc_read_unsigned_long):
1295 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1296 (objc_EXPORT): Likewise.
1297 * objc/message.h (objc-decls.h): Add include.
1298 * objc/objc-api.h: Mark API by objc_EXPORT.
1299 * libobjc.def (__objc_responds_to): Removed.
1301 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1303 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1305 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1306 objc/sarray.h replaced with a placeholder including the file from
1307 the deprecated/ directory.
1308 * objc-private/sarray.h: New file (private copy of sarray.h).
1309 * hash.c: Include <assert.h> instead of "assert.h"
1310 * sarray.c: Include <assert.h> instead of "assert.h". Include
1311 objc-private/sarray.h instead of objc/sarray.h.
1312 * selector.c: Include objc-private/sarray.h instead of
1314 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1315 instead of objc/sarray.h.
1316 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1318 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1320 * objc-private/objc-list.h (list_remove_elem): Unused function
1321 removed. (list_nth): Unused function removed. (list_find):
1322 Unused function removed. (list_lenght): Unused function removed.
1324 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1326 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1327 replaced with a placeholder including the file from the
1328 deprecated/ directory.
1329 * objc/objc-api.h: Updated includes.
1330 * objc/typedstream.h: Updated includes.
1331 * objc-private/hash.h: New file (private copy of hash.h).
1332 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1333 objc/objc-list.h replaced with a placeholder including the file
1334 from the deprecated/ directory.
1335 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1336 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1337 instead of objc/hash.h and objc/objc-list.h.
1338 * selector.c: Same change.
1339 * class.c: Added include <string.h>, which used to be implicitly included
1340 when hash.h was included.
1341 * exception.c: Same change.
1342 * objects.c: Same change.
1343 * sarray.c: Same change.
1344 * sendmsg.c: Same change.
1345 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1347 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1349 Implemented objc_sync_enter() and objc_sync_exit(), which are
1350 required by @synchronized() to work.
1351 * objc-sync.c: New file.
1352 * objc/objc-sync.h: New file.
1353 * objc-private/objc-sync.h: New file.
1354 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1355 Objective-C runtime startup.
1356 * Makefile.in: Added objc-sync.c and objc-sync.h.
1357 * configure.ac: Added GCC_CHECK_TLS.
1358 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1359 * configure: Regenerated.
1360 * config.h.in: Regenerated.
1362 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1364 * Makefile.in (%_gc.lo): New pattern rules to build the
1365 garbage-collected version of the library. Removed rules for
1366 specific files that are no longer needed. Standardized all rules.
1367 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1368 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1370 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1372 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1374 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1375 with Garbage Colletion.
1377 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1379 * memory.c: Do not include objc-private/runtime.h.
1381 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1383 * objc/deprecated/objc_malloc.h: New file.
1384 * objc/deprecated/objc_valloc.h: New file.
1385 * objc/objc-api.h: Include the files instead of defining
1386 objc_valloc, _objc_malloc() and similar.
1387 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1389 * memory.c: Removed the extra layer of indirection of _objc_malloc
1391 (objc_calloc): Use GC_malloc in the garbage-collected
1392 implementation as GC_malloc returns memory that is already freed.
1393 (objc_valloc): Deprecated.
1395 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1397 * objc/deprecated/objc_error.h: New file.
1398 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1399 defining objc_error and related.
1400 * error.c: New file. Added _objc_abort function which replaces
1401 objc_error. No change in functionality as they both print an
1403 * misc.c: File removed. Code moved into memory.c and error.c.
1404 * memory.c: New file.
1405 * objc-private/error.h: New file.
1406 * archive.c: Include objc-private/error.h and use _objc_abort
1407 instead of objc_error everywhere.
1408 * class.c: Same change.
1409 * encoding.c: Same change.
1410 * init.c: Same change, and simplified init_check_module_version.
1411 * memory.c: Same change.
1412 * sendmsg.c: Same change.
1413 * thr.c: Same change.
1414 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1415 (OBJ_H): Reordered list.
1416 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1417 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1418 (misc_gc.lo): Rule removed.
1419 (error_gc.lo): Rule added.
1420 (memory_gc.lo): Rule added.
1422 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1424 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1425 to check the API version. Added some comments.
1427 * objc-private/common.h: New file.
1428 * NXConstStr.m: Include objc-private/common.h.
1429 * Object.m: Same change.
1430 * Protocol.m: Same change.
1431 * archive.c: Same change.
1432 * class.c: Same change.
1433 * encoding.c: Same change.
1434 * exception.c: Same change.
1435 * gc.c: Same change.
1436 * hash.c: Same change.
1437 * init.c: Same change.
1438 * libobjc_entry.c: Same change.
1439 * linking.m: Same change.
1440 * misc.c: Same change (and added a comment).
1441 * nil_method.c: Same change.
1442 * objects.c: Same change.
1443 * sarray.c: Same change.
1444 * selector.c: Same change.
1445 * sendmsg.c: Same change.
1446 * thr.c: Same change.
1448 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1450 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1452 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1454 * archive.c: Removed not needed includes.
1455 * class.c: Same change.
1456 * hash.c: Same change.
1457 * misc.c: Same change.
1458 * nil_method.c: Same change.
1459 * objects.c: Same change.
1460 * sarray.c: Same change.
1461 * sendmsg.c: Same change.
1462 * thr.c: Same change.
1464 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1466 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1467 all the objc/*.h files.
1468 * objc-private/runtime.h: New file.
1469 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1470 files) instead of objc/runtime.h.
1471 * class.c: Same change.
1472 * hash.c: Same change.
1473 * init.c: Same change.
1474 * misc.c: Same change.
1475 * nil_method.c: Same change.
1476 * objects.c: Same change.
1477 * sarray.c: Same change.
1478 * selector.c: Same change.
1479 * sendmsg.c: Same change.
1480 * thr.c: Same change.
1482 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1484 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1485 'struct objc_selector' and 'sel_eq' moved here.
1486 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1487 'struct objc_procotol' moved here.
1488 * objc/deprecated/struct_objc_class.h: New file. Definition of
1489 'struct objc_class' moved here.
1490 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1492 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1493 * objc/message.h: New file. Definitions for relval_t, apply_t,
1494 arglist, arglist_t and objc_msg_lookup were moved here.
1495 * objc/objc.h: Include the above files instead of defining the
1496 corresponding structs, types and functions here. Added new opaque
1497 definitions for SEL and Class. Use Class and not 'struct
1498 objc_class *' in the definition of 'struct objc_object'.
1499 Commented all types defined in the file. Removed special
1500 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1502 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1503 objc_unexpected_exception.h.
1504 * objc/objc-api.h: Updated include of
1505 objc-unexpetected-exception.h
1506 * objc/objc-exception.h: Updated comments.
1507 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1508 files. Reindented list of files.
1510 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1512 * objc/objc-api.h (objc_trace): Unused variable removed.
1514 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1516 * objc/deprecated: New directory.
1517 * objc/deprecated/README: New file.
1518 * objc/README: New file.
1519 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1520 objc/typedstream.h replaced with a placeholder including the file
1521 from the deprecated/ directory.
1522 * objc/deprecated/objc-unexpected-exception.h: New file with the
1523 definition of _objc_unexpected_exception.
1524 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1525 instead of defining _objc_unexpected_exception.
1526 * objc/deprecated/Object.h: New file with the deprecated Object
1527 methods in a 'Deprecated' category.
1528 * objc/Object.h Include deprecated/Object.h instead of defining
1529 the deprecated methods.
1530 * Object.m: Moved deprecated methods into 'Deprecated' category.
1531 * objc-private: New directory.
1532 * objc-private/README: New file.
1533 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1534 (install-headers): Create installation directory for
1535 OBJC_DEPRECATED_H headers, and install them.
1537 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1539 * objc/objc-exception.h: Fixed include of objc.h.
1541 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1543 * objc/objc-exception.h: New file.
1544 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1545 (objc_set_exception_matcher): Implemented.
1546 (objc_exception_throw): Use the uncaught exception handler if set.
1547 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1549 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1550 up. Removed segmentation fault when value is 'nil'.
1551 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1553 * Makefile.in (exception.lo, exception_gc.lo): Use
1554 -Wno-deprecated-declarations when compiling.
1555 (OBJC_H): Added objc-exception.h
1557 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1559 * objc/typedstream.h: Deprecate all functions in the file. This
1561 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1562 [-awake]): Documented that these methods are deprecated. Added a
1563 brief description of the Object class and its relationship to the
1565 * Makefile.in: Compile archive.c and Object.m with
1566 -Wno-deprecated-declarations.
1568 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1570 Removed obsolete intermediate threading layer.
1571 * thr.c: Use __gthread_objc_xxx functions directly instead of
1572 __objc_thread_xxx ones.
1573 * objc/thr.h: Removed prototypes of no longer existing
1574 __objc_thread_xxx functions.
1575 * Makefile.in: Removed thr-objc.lo.
1576 * thr-dce.c: File removed.
1577 * thr-decosf1.c: File removed.
1578 * thr-irix.c: File removed.
1579 * thr-mach.c: File removed.
1580 * thr-objc.c: File removed.
1581 * thr-os2.c: File removed.
1582 * thr-posix.c: File removed.
1583 * thr-pthreads.c: File removed.
1584 * thr-rtems.c: File removed.
1585 * thr-single.c: File removed.
1586 * thr-solaris.c: File removed.
1587 * thr-vxworks.c: File removed.
1588 * thr-win32.c: File removed.
1589 * README.threads: File removed.
1590 * THREADS.MACH: File removed.
1593 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1595 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1597 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1599 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1600 Add a comment as to why, update FIXME comments.
1602 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1604 * makefile.dos: Obsolete file removed.
1606 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1608 * aclocal.m4: Regenerate.
1610 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1613 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1614 Cygwin and MinGW hosts.
1615 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1616 (libobjc.dll): Likewise.
1617 * configure: Regenerate.
1619 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1621 * configure: Regenerate.
1623 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1625 * sarray.c (sarray_free): Use old_buckets variable.
1626 * encoding.c (objc_layout_structure_next_member): Remove unused
1627 bfld_type_size variable.
1629 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1631 * configure.ac (AC_PREREQ): Bump to 2.64.
1633 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1635 * aclocal.m4: Regenerate.
1636 * configure: Regenerate.
1637 * config.h.in: Regenerate.
1639 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1641 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1643 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1645 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1647 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1649 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1651 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1653 2009-04-09 Nick Clifton <nickc@redhat.com>
1655 * sendmsg.c: Change copyright header to refer to version 3 of
1656 the GNU General Public License with version 3.1 of the GCC
1657 Runtime Library Exception and to point readers at the COPYING3
1658 and COPYING3.RUNTIME files and the FSF's license web page.
1659 * NXConstStr.m: Likewise.
1660 * Object.m: Likewise.
1661 * Protocol.m: Likewise.
1662 * archive.c: Likewise.
1663 * class.c: Likewise.
1664 * encoding.c: Likewise.
1665 * exception.c: Likewise.
1669 * libobjc_entry.c: Likewise.
1670 * linking.m: Likewise.
1672 * nil_method.c: Likewise.
1673 * objc/NXConstStr.h: Likewise.
1674 * objc/Object.h: Likewise.
1675 * objc/Protocol.h: Likewise.
1676 * objc/encoding.h: Likewise.
1677 * objc/hash.h: Likewise.
1678 * objc/objc-api.h: Likewise.
1679 * objc/objc-decls.h: Likewise.
1680 * objc/objc-list.h: Likewise.
1681 * objc/objc.h: Likewise.
1682 * objc/runtime.h: Likewise.
1683 * objc/sarray.h: Likewise.
1684 * objc/thr.h: Likewise.
1685 * objc/typedstream.h: Likewise.
1686 * objects.c: Likewise.
1687 * sarray.c: Likewise.
1688 * selector.c: Likewise.
1689 * thr-dce.c: Likewise.
1690 * thr-decosf1.c: Likewise.
1691 * thr-irix.c: Likewise.
1692 * thr-mach.c: Likewise.
1693 * thr-objc.c: Likewise.
1694 * thr-os2.c: Likewise.
1695 * thr-posix.c: Likewise.
1696 * thr-pthreads.c: Likewise.
1697 * thr-rtems.c: Likewise.
1698 * thr-single.c: Likewise.
1699 * thr-solaris.c: Likewise.
1700 * thr-vxworks.c: Likewise.
1701 * thr-win32.c: Likewise.
1703 * libobjc.def: Change copyright header to refer to version 3 of
1704 the GNU General Public License and to point readers at the COPYING3
1705 file and the FSF's license web page.
1706 * makefile.dos: Likewise.
1708 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1710 * Makefile.in: Change copyright header to refer to version
1711 3 of the GNU General Public License and to point readers at the
1712 COPYING3 file and the FSF's license web page.
1713 * configure.ac: Likewise.
1715 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1716 David Ayers <ayers@fsfe.org>
1719 * objc/objc-api.h (_objc_unexpected_exception): Declare
1720 new hook. Update copyright dates.
1721 * exception.c (objc_exception_throw): Use hook. Update
1723 * libobjc.def (_objc_unexpected_exception): Export hook.
1724 Update copyright dates.
1726 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1728 * configure: Regenerate.
1730 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1732 * configure: Regenerate.
1734 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1736 * Object.m (errno): Replaced by errno.h include.
1737 (compare): Cast self to id to prevent warning on comparison.
1738 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1740 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1741 * thr-win32.c (__objc_thread_detach): Remove type warning.
1742 (__objc_thread_id): Likewise.
1743 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1746 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1747 Steve Ellcey <sje@cup.hp.com>
1749 * configure: Regenerate for new libtool.
1750 * config.h.in: Regenerate for new libtool.
1752 2008-07-18 Matthias Klose <doko@ubuntu.com>
1754 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1756 2008-07-18 Matthias Klose <doko@ubuntu.com>
1758 * Makefile.in: Include ../boehm-gc/threads.mk.
1759 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1761 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1763 * Makefile.in (install-info): New stub target.
1765 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1767 * configure: Regenerate.
1769 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1771 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1772 if HAVE_GETIPINFO is not defined.
1774 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1776 * Object.m (compare): Add type id.
1777 * objc/Object.h: Likewise.
1778 * archive.c (objc_read_class): Use size_t to extend version to be
1779 size of pointer scalar width.
1780 * sendmsg.c (rtx): Undefine it before redefinition.
1781 (__objc_print_dtable_stats): Cast arguments to long as intended.
1783 2008-05-30 Julian Brown <julian@codesourcery.com>
1785 * exception.c (__objc_exception_class): Initialise as constant
1786 array for ARM EABI. Change macro to static const for non-ARM EABI.
1787 (ObjcException): Add note about structure layout. Remove landingPad
1788 and handlerSwitchValue for ARM EABI.
1789 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1791 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1792 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1793 ARM EABI unwinding support.
1794 (objc_exception_throw): Use memcpy to initialise exception class.
1796 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1798 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1799 (rs6000_special_round_type_align): Update.
1801 2008-05-09 Julian Brown <julian@codesourcery.com>
1803 * Makefile.in (LTLDFLAGS): New.
1804 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1806 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1809 * aclocal.m4: Regenerate.
1810 * configure: Regenerate.
1812 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1814 * configure: Regenerate.
1816 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1818 * configure.ac: Don't run config-ml.in directly.
1819 (multilib_arg): New.
1820 * configure: Regenerated.
1822 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1825 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1826 of _Unwind_Word for variables which are used in
1827 read_uleb128/read_sleb128.
1828 (PERSONALITY_FUNCTION): Likewise.
1830 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1832 * aclocal.m4: Regenerated.
1834 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1836 * configure.ac: Fix a typo in *-*-darwin clause.
1837 * configure: Regenerated.
1839 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1841 * configure.ac: Fix a typo.
1842 * configure: Regenerated.
1844 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1846 * configure: Regenerate.
1848 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1850 * Makefile.in: Replace all uses of libext with libsuffix.
1851 * configure.ac: Likewise.
1852 * configure: Regenerate.
1855 * Makefile.in: Remove all uses of $(libext).
1857 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1859 * Makefile.in: Remove all uses of $(libext).
1861 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1863 * configure: Regenerate.
1864 * aclocal.m4: Regenerate.
1866 2007-04-21 Andrew Ruder <andy@aeruder.net>
1868 * sendmsg.c (__objc_get_forward_imp): Call
1869 __objc_msg_forward2 for real.
1871 2007-04-09 Andrew Ruder <andy@aeruder.net>
1873 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1874 external libraries to provide a function that returns the real
1875 forwarding function based on both the selector and the receiver.
1876 * objc/objc-api.h: Define __objc_msg_forward2.
1878 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1880 * Makefile.in: Add dummy install-pdf target.
1882 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1884 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1887 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1889 * encoding.c (darwin_rs6000_special_round_type_align): New.
1891 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1893 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1894 * configure.ac: Use multi.m4 from aclocal rather than custom
1895 code. Use multi_basedir instead of toplevel_srcdir.
1896 * aclocal.m4: Regenerate.
1897 * configure: Regenerate.
1899 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1901 * Makefile.in: Added empty "pdf" target.
1903 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1905 * configure: Regenerate.
1907 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1909 * Makefile.in: Add install-html target. Add install-html to .PHONY
1911 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1914 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1916 2006-01-24 David Ayers <d.ayers@inode.at>
1919 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1920 and insure the new strings are '\0' termintated.
1922 2006-01-24 David Ayers <d.ayers@inode.at>
1925 * configure.ac: Add include directives for --enable-objc-gc.
1926 * Makefile.in: Ditto.
1927 * configure: Regenerate.
1929 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1930 instead of the local pointer to them.
1932 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1935 * objc/objc-api.c (_C_COMPLEX): New define.
1936 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1937 (objc_alignof_type): Likewise.
1938 (objc_skip_typespec): Likewise.
1940 2005-12-15 David Ayers <d.ayers@inode.at>
1943 * README (+load,+initialize): Fix documentation to reflect
1944 intended and implemented semantics for +load and +initialize.
1946 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1948 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1950 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1951 (rs6000_special_round_type_align): Update for the ABI fix.
1952 (objc_layout_finish_structure): Correct the encoding which is passed to
1955 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1958 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1959 but use the struct layout functions.
1960 (objc_alignof_type): Likewise.
1961 (objc_layout_structure): Handle _C_UNION_B also.
1962 (objc_layout_structure_next_member): Likewise.
1963 (objc_layout_finish_structure): Likewise.
1965 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1968 * objc/objc-api.h (_C_BOOL): New define.
1969 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1970 (objc_alignof_type): Likewise.
1971 (objc_skip_typespec): Likewise.
1973 2005-11-20 David Ayers <d.ayers@inode.at>
1976 * objc/hash.h: Remove deprecated hash API.
1977 * hash_compat.c: Remove.
1978 * Makefile.in: Remove reference to hash_compat.c.
1980 * configure.ac (VERSION): Bump library version to 2:0:0.
1981 * configure: Regenerate.
1983 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1986 * thr-objc.c (_XOPEN_SOURCE): Define.
1988 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1991 * objc/objc-api.h (struct objc_ivar): Move definition to
1994 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1995 Rasmus Hahn <rassahah@neofonie.de>
1998 * archive.c (objc_write_type): Correct the element offset.
1999 (objc_read_type): Likewise.
2001 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2003 * All files: Update FSF address.
2005 2005-08-13 Marcin Koziej <creep@desk.pl>
2006 Andrew Pinski <pinskia@physics.uc.edu>
2009 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2011 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2013 * Makefile.in (extra_ldflags_libobjc): New.
2014 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2015 (libobjc_gc$(libext).la): Likewise.
2016 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2017 "-Wl,-single_module".
2018 * configure: Regenerate.
2019 * linking.m (_objcInit): Remove.
2021 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2024 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2026 2005-06-08 David Ayers <d.ayers@inode.at>
2028 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2029 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2030 objc/runtime.h, objc/sarray.h, objc/thr.h,
2031 objc/typedstream.h: Do not include Objective-C headers as
2034 2005-06-07 David Ayers <d.ayers@inode.at>
2036 * archive.c, init.c, selector.c: Include hash.h.
2037 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2038 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2039 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2040 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2041 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2042 Include Objective-C headers with quotes and objc/ directory
2045 2005-05-19 Richard Henderson <rth@redhat.com>
2047 * exception.c: Revert last change.
2049 2005-05-19 David Ayers <d.ayers@inode.at>
2051 * exception.c: Include tsystem.h for unwind.h.
2053 2005-05-09 Mike Stump <mrs@apple.com>
2055 * configure: Regenerate.
2057 2005-04-12 Mike Stump <mrs@apple.com>
2059 * configure: Regenerate.
2061 2005-03-21 Zack Weinberg <zack@codesourcery.com>
2063 * Makefile.in: Set gcc_version here.
2064 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2065 in definition of toolexeclibdir so that $(gcc_version) is expanded
2067 * aclocal.m4, configure: Regenerate.
2069 2005-03-03 David Ayers <d.ayers@inode.at>
2071 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2072 version reference. Correct typo.
2074 2005-03-02 David Ayers <d.ayers@inode.at>
2077 * Makefile.in (OBJS): Add hash_compat.lo.
2078 (OBJS_GC): Add hash_compat_gc.lo.
2079 (hash_compat_gc.lo): New target and rule.
2080 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2081 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2082 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2083 with objc_. Add deprecated non prefixed inlined versions.
2084 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2086 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2087 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2089 * hash_compat.c: New file.
2090 * archive.c: Update callers.
2092 * selector.c: Likewise.
2093 * libobjc.def: Add objc_ versions of hash functions.
2095 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2098 * Makefile.in (GTHREAD_FLAGS): Remove.
2099 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2100 * thr-objc.c: Include config.h.
2101 * configure.ac: Instead of looking at GCC's makefile, figure out if
2102 GTHREAD_FLAGS should be defined by looking at the `thread model'
2104 * configure: Regenerate.
2105 * config.h.in: Regenerate.
2107 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2110 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2111 (Determine CFLAGS for gthread): Use $host_subdir.
2112 * configure: Regenerate.
2113 * Makefile.in (host_subdir): New.
2116 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2119 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2121 Include limits.h and stdlib.h.
2122 Define BITS_PER_WORD.
2124 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
2126 * selector.c (__objc_init_selector_tables): Add missing void to
2129 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
2131 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2132 * configure, aclocal.m4: Regenerate.
2134 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2136 * configure: Regenerate for libtool change.
2138 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2140 * configure: Regenerate for libtool reversion.
2142 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2144 * configure: Regenerate for libtool change.
2146 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2148 * aclocal.m4, config.h.in: Regenerate.
2150 2004-10-08 Mike Stump <mrs@apple.com>
2151 Andrew Pinski <pinskia@physics.uc.edu>
2153 * aclocal.m4: Rename to ...
2154 * acinclude.m4: here and also use m4_include instead of sinclude.
2155 * aclocal.m4: Regenerate.
2156 * configure: Regenerate.
2157 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2158 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2160 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2162 * archive.c: Fix all the warnings about passing unsigned char*
2163 to char* and the other way too.
2165 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2168 * exception.c: Include config.h
2169 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2171 * configure.ac: Find out what exception handling code we use.
2172 * configure: Regenerate.
2173 * config.h.in: New file, regenerate.
2175 2004-09-16 Andrew Pinski <apinski@apple.com>
2177 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2179 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2181 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2182 ACX_NONCANONICAL_TARGET.
2183 * configure: Regenerate.
2185 2004-08-13 Ziemowit Laski <zlaski@apple.com>
2187 * objc/sarray.h: Hoist include of assert.h near the top of file,
2188 and mark the remainder of the file 'extern "C"'.
2190 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2192 * objc/Object.h: Move includes out of extern "C" blocks.
2193 * objc/encoding.h: Likewise.
2194 * objc/hash.h: Likewise.
2195 * objc/objc-api.h: Likewise.
2196 * objc/runtime.h: Likewise.
2197 * objc/sarray.h: Likewise.
2198 * objc/typedstream.h: Likewise.
2200 2004-08-12 Ziemowit Laski <zlaski@apple.com>
2202 * objc/NXConstStr.h: Update copyright date; bracket with
2203 'extern "C"' for C++ use; make include syntax consistent
2204 by using <...> instead of "..."; hoist <objc/...> includes
2205 above the 'extern "C"' block.
2206 * objc/Object.h: Likewise.
2207 * objc/Protocol.h: Likewise.
2208 * objc/encoding.h: Likewise.
2209 * objc/hash.h: Likewise.
2210 * objc/runtime.h: Likewise.
2211 * objc/sarray.h: Likewise.
2212 * objc/thr.h: Likewise.
2213 * objc/typedstream.h: Likewise.
2214 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2215 (objc_static_instances): For C++ case, do away with
2217 (objc_method): Hoist definition to file scope.
2218 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2219 class_get_instance_method, class_create_instance,
2220 class_get_class_name, class_get_instance_size,
2221 class_get_meta_class, class_get_super_class, class_get_version,
2222 class_is_class, class_is_meta_class, class_set_version,
2223 class_get_gc_object_type, class_ivar_set_gcinvisible,
2224 get_imp): Rename 'class' parameter to '_class'.
2225 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2226 * objc/objc.h: Update copyright date.
2227 (arglist_t): Provide a union tag.
2229 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2231 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2232 but instead use the attribute noreturn.
2234 2004-06-28 Zack Weinberg <zack@codesourcery.com>
2236 * encoding.c: Rename target_flags with a #define to avoid
2237 conflict with a prior declaration.
2239 2004-06-24 Andrew Pinski <apinski@apple.com>
2241 * objc/encoding.h: Wrap the functions with extern "C" for C++
2243 * objc/hash.h: Likewise.
2244 * objc/objc-api.h: Likewise.
2245 * objc/objc-list.h: Likewise.
2246 * objc/runtime.h: Likewise.
2247 * objc/sarray.h: Likewise.
2248 * objc/thr.h: Likewise.
2249 * objc/typedstream.h: Likewise.
2252 2004-06-21 Nick Clifton <nickc@redhat.com>
2254 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2257 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
2259 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2260 (exception_gc.lo): New.
2261 (OBJS_GC): Add exception_gc.lo.
2263 2004-06-17 Richard Henderson <rth@redhat.com>
2265 * exception.c: New file.
2266 * Makefile.in (exception.lo): New.
2269 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2271 * linking.m (_objcInit): New empty function
2274 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2276 * configure.ac: Support --enable-shared=libobjc.
2277 * configure: Regenerate.
2280 * configure.ac: Do not disable shared by default.
2281 * configure: Regenerate.
2283 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2285 * Protocol.m ([-isEqual:]): Small optimizations returning
2286 immediately if the argument is equal to self, and accessing
2287 the argument's name directly if it's a protocol.
2289 2004-06-03 David Ayers <d.ayers@inode.at>
2291 * Protocol.m ([-isEqual:]): Test the class of the argument.
2293 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2295 * configure.ac (includedir): Rename to ...
2297 * Makefile.in: s/includedir/includedirname/.
2300 * configure.ac (includedir): Set to "include"
2302 (libext) Set to empty except for Darwin.
2303 * configure: Regenerate
2304 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2305 s/include/$(includedir)/g.
2307 2004-05-25 Daniel Jacobowitz <drow@false.org>
2309 * Makefile.in: Add .NOEXPORT.
2311 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2313 Merge from the libobjc-branch
2314 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2316 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2318 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2320 * Makefile.in (OBJC_H): Add objc-deps.h.
2322 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2324 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2325 ([-hash], [-isEqual:]): New methods.
2327 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2329 * sarray.c (sarray_free): Add a better comment.
2331 2004-01-27 Adam Fedor <fedor@gnu.org>
2333 * hash.c (hash_add): Cast cachep to int.
2334 * selector.c (__sel_register_typed_name): Cast
2335 soffset_decode to int.
2337 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2339 * selector.c: Rename register_selectors_from_list to
2340 __objc_register_selectors_from_list. Update caller.
2341 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2342 while registering selectors. Use __sel_register_typed_name instead
2343 of sel_register_typed_name. Check for NULL method_name:s.
2344 (pool_alloc_selector): New function.
2345 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2346 selector structures.
2347 * sendmsg.c (class_add_method_list): Use
2348 __objc_register_selectors_from_list.
2349 * objc/runtime.h: Add __objc_register_selectors_from_list.
2351 2004-01-25 Adam Fedor <fedor@gnu.org>
2352 Nicola Pero <n.pero@mi.flashnet.it>
2353 Andrew Pinski <pinskia@physics.uc.edu>
2355 * objc/objc-decls.h: New file.
2356 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2357 (_objc_load_callback): Likewise.
2358 (_objc_object_alloc): Likewise.
2359 (_objc_object_copy): Likewise.
2360 (_objc_object_dispose): Likewise.
2362 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2364 * archive.c: s/__inline__/inline
2365 * sendmsg.c: Likewise.
2367 * encoding.c: Remove FIXME about the warning
2368 about unused variable.
2369 * sendmsg.c: Add a FIXME comment saying that
2370 this should be using libffi.
2372 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2375 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2377 * archive.c (objc_read_class): Initialize class_name.
2378 (objc_read_selector): Initialize selector_name.
2380 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2382 * Makefile.in (toolexecdir): Remove trailing space.
2384 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2387 * configure.ac: De-precious CC so multilibs work.
2388 * configure: Regenerate.
2390 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2392 * configure.ac: Restore toolexecdir.
2393 * Makefile.in: Restore toolexecdir.
2394 * configure: Regenerate.
2396 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2398 * configure.ac: Remove (unused) glibcpp_prefixdir.
2399 * configure: Regenerate.
2401 * configure.in: Rename to configure.ac.
2402 * Makefile.in: Update to match.
2404 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2405 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2406 * configure.in: Remove glibcpp_toolexecdir (unused).
2407 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2408 config.h or stamp-h (unused). Move one comment to the right place.
2409 * configure: Regenerate.
2410 * config.h.in: Remove (unused).
2412 * config.h.in: Regenerate with autoheader.
2414 * Makefile.in: Remove (unused) gcc_version_trigger.
2415 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2416 gcc_version_trigger.
2417 * configure: Regenerate.
2419 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2420 Sort file into sections. Remove dnl where appropriate. Fix
2422 * configure: Regenerate.
2424 * configure.in: Replace old AC_PROG_CC hack with new one.
2425 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2426 are no subdirectory output files, so this is fine). Change prereq
2428 * aclocal.m4: Include ../config/no-executables.m4.
2429 * configure: Regenerate with autoconf 2.59.
2431 * configure.in: Improve comments on gthread_cflags. Improve m4
2432 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2433 * configure: Regenerate.
2435 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2436 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2437 redundant checks for values of RANLIB, AR, INSTALL.
2438 * configure: Regenerate.
2440 * configure.in: Clean up handling of
2441 --enable-version-specific-runtime-libs and related variables;
2442 replace 'if test' with 'case' where reasonable. Fix comments.
2443 Remove useless libstdcxx_interface.
2444 * configure: Regenerate.
2446 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2447 Replace uses of target_alias with target_noncanonical.
2448 * aclocal.m4: Include ../config/acx.m4.
2449 * configure: Regenerate.
2450 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2451 Fix copyright statement.
2453 * configure.in: Hand-inline bulky, confusing macros from
2454 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2455 Update copyright notice. Remove stuff for automake, which isn't
2456 used in this directory. Remove emacs local variables.
2457 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2458 * configure: Regenerate.
2460 2004-03-16 Manfred Hollstein <mh@suse.com>
2462 * Makefile.in, configure.in, configure: Update copyright years.
2464 2004-03-15 Manfred Hollstein <mh@suse.com>
2466 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2467 definition from configure.in.
2468 * configure.in (PACKAGE): Add definition.
2469 (VERSION): Add definition; substitute it in output files.
2470 * configure: Re-generate.
2472 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2474 * objc/hash.h (hash_string, compare_strings):
2475 Add type-casts to make Objective-C++ happy.
2476 * objc/typedstream.h (objc_get_stream_class_version):
2477 Rename parameter from 'class' to 'class_name' to make
2478 Objective-C++ happy.
2480 2004-03-01 Michael Matz <matz@suse.de>
2482 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2484 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2486 * objc/objc-api.h (objc_super): The 'class' field shall
2487 be named 'super_class' #ifdef __cplusplus.
2489 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2492 * encoding.c (rs6000_special_round_type_align): Define.
2494 2004-01-14 Adam Fedor <fedor@gnu.org>
2497 * selector.c (__objc_register_instance_methods_to_class): Free
2498 new_list if not used.
2500 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2503 * sarray.c (sarray_free): Free array->is_copy_of latter.
2505 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2508 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2509 instance_methods if it's NULL.
2510 (descriptionForClassMethod): Likewise for class_methods.
2512 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2514 * Makefile.in (runtime-info.h): Remove -Wp.
2516 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2518 * Makefile.in (CC1OBJ): Remove.
2519 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2521 Use .m extension for temporary file.
2522 Remove assembler temp file.
2524 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2526 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2528 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2530 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2532 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2534 * configure: Regenerate.
2536 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2538 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2539 (libdir)/gcc-lib/ when installing.
2540 * configure: Regenerate.
2542 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2545 * sendmsg.c (get_imp): Fixed rare threading problem.
2546 (__objc_responds_to): Similar fixes.
2547 (objc_msg_lookup): Similar fixes.
2548 (__objc_init_install_dtable): Lock the runtime before checking if the
2551 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2553 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2554 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2555 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2556 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2557 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2558 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2559 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2560 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2561 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2562 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2563 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2565 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2566 Nicola Pero <n.pero@mi.flashnet.it>
2569 * init.c (class_superclass_of_class): New function.
2570 (create_tree_of_subclasses_inherited_from): Use it.
2571 (__objc_tree_insert_class): Likewise.
2572 (class_is_subclass_of_class): Likewise.
2574 2003-04-11 David Chad <davidc@freebsd.org>
2575 Loren J. Rittle <ljrittle@acm.org>
2578 * objc/hash.h (hash_string): Constify correctly.
2579 (compare_ptrs): Use direct compare.
2580 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2581 * objc/sarray.h: Global rename index to indx to avoid shadow.
2583 2003-03-12 Andreas Schwab <schwab@suse.de>
2585 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2586 glibcpp_toolexeclibdir.
2587 * configure: Rebuilt.
2589 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2591 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2593 * configure: Rebuilt.
2595 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2597 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2598 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2599 version_specific_libs is enabled.
2600 * configure: Rebuilt.
2602 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2604 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2605 (install-libs, install-headers): Prepend $(DESTDIR) to
2606 destination paths in all (un)installation commands.
2608 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2610 * thr-objc.c: Include coretypes.h and tm.h.
2612 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2614 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2616 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2618 * configure.in: Remove skip-this-dir support.
2619 * configure: Regenerate.
2621 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2623 * Makefile.in (all): Fix multilib parallel build.
2625 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2627 * sendmsg.c (nil_method): Declare not to take a variable number of
2629 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2630 (objc_msg_lookup_super): The same.
2632 2002-09-10 Jan Hubicka <jh@suse.cz>
2634 * nil_method.c (nil_method): No longer defined with variable
2637 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2639 * objc/encoding.h: Fix formatting.
2640 * objc/hash.h: Likewise.
2641 * objc/objc-api.h: Likewise.
2642 * objc/runtime.h: Likewise.
2643 * objc/thr.h: Likewise.
2644 * archive.c: Likewise.
2645 * class.c: Likewise.
2646 * encoding.c: Likewise.
2651 * nil_method.c: Likewise.
2652 * objects.c: Likewise.
2653 * sarray.c: Likewise.
2654 * selector.c: Likewise.
2655 * sendmsg.c: Likewise.
2656 * thr-mach.c: Likewise.
2659 2002-06-25 DJ Delorie <dj@redhat.com>
2661 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2662 GLIBCPP_TOPREL_CONFIGURE.
2663 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2664 * configure: Regenerate.
2666 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2668 * Object.m (forward, read, write): Fix unused parameter warnings.
2669 * encoding.c: Include <stdlib.h>.
2670 (target_flags): Mark with attribute unused.
2672 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2673 (__objc_generate_gc_type_description): Prototype.
2674 * selector.c (__objc_selector_max_index): Change to unsigned int.
2676 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2678 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2679 we always have a return value: if __objc_msg_forward does not
2680 supply a forwarding implementation, return the default
2681 __builtin_apply based one.
2683 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2685 * Object.m: Fix signed/unsigned warning.
2686 * Protocol.m: Likewise.
2687 * archive.c: Always include stdlib.h.
2688 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2689 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2690 Fix signed/unsigned warning.
2691 (objc_write_type, objc_read_type, objc_write_types,
2692 objc_read_types): Ensure ctype 8-bit safety.
2693 (__objc_no_write, __objc_no_read): Mark unused parameters.
2694 * class.c (class_table_setup): Specify void arg.
2695 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2696 objc_skip_typespec, objc_skip_offset,
2697 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2698 (objc_layout_structure_next_member): Ensure variables are
2700 * gc.c (__objc_generate_gc_type_description,
2701 class_ivar_set_gcinvisible): Mark unused parameters.
2702 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2704 (__objc_init_protocols) Fix signed/unsigned warning.
2705 * nil_method.c (nil_method): Mark unused parameters.
2706 * thr.h (objc_thread_callback): Specify void arg.
2707 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2708 signed/unsigned warning.
2709 (sarray_free): Fix formatting.
2710 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2711 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2713 2002-06-09 Andreas Jaeger <aj@suse.de>
2715 * encoding.c (objc_layout_structure_next_member): Remove unused
2718 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2720 * Makefile.in (SHELL): Set to @SHELL@.
2722 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2724 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2726 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2727 * configure: Regenerate.
2729 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2731 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2732 script entry, and set LD to it when configuring multilibs.
2733 * configure: Rebuilt.
2735 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2737 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2739 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2742 * objc/objc-api.h (struct objc_protocol_list): Change type of
2743 member count from int to size_t.
2745 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2748 * aclocal.m4: Replace with version copied from libstdc++-v3.
2749 * configure.in: Update for changes to aclocal and Makefile.
2750 * configure: Regenerate.
2751 * Makefile.in: Correct install of multilibs and shared libs, use
2752 INSTALL_DATA for include files.
2754 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2756 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2757 categories - when an unclaimed category was found, the loop was
2758 doing two steps forward instead of one, so that in certain cases
2759 it was failing to properly load all the categories. (Reported
2760 with fix by Alexander Malmberg <alexander@malmberg.org>).
2762 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2764 * encoding.c: Add target_flags.
2766 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2768 * objc/objc-api.h (_C_VECTOR): New.
2770 * encoding.c (VECTOR_TYPE): New.
2772 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2774 * class.c: Rewritten the class table to use optimized, lock-free
2775 lookup. This more than doubles the speed of class method
2776 invocations. (class_table_setup), (class_table_insert),
2777 (class_table_replace), (class_table_get_safe),
2778 (class_table_next), (class_table_print),
2779 (class_table_print_histogram): New functions.
2780 (__objc_init_class_tables): Use class_table_setup.
2781 (__objc_add_class_to_hash): Use class_table_get_safe and
2782 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2783 assert the existence of the table; do not lock the runtime; use
2784 class_table_get_safe. (objc_next_class): Use class_table_next.
2785 (__objc_resolve_class_links): Use class_table_next.
2786 (class_pose_as): Use class_table_replace.
2788 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2790 * gc.c: Removed the DEBUG declaration.
2792 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2794 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2795 rather than through objc_thread_id, to save a function call.
2796 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2799 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2801 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2802 to cast an id to a Class, which can not be done. Make the check
2803 by using CLS_ISMETA on the class pointer instead.
2804 (object_is_meta_class): Similar fix.
2806 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2808 * configure.in (AC_EXEEXT): Work around in case it expands to
2809 nothing, as in autoconf 2.50.
2810 * acinclude.m4: Likewise.
2811 * configure: Rebuilt.
2813 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2815 * THREADS: Explain that when we compile libobjc inside GCC, we
2816 always use thr-objc.c as a backend, which uses GCC's thread code.
2818 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2820 * init.c (__objc_send_message_in_list): When setting a new entry
2821 in __objc_load_methods use the method IMP as key, but check to see
2822 if the method is in the hashtable by looking at the IMP also.
2823 Also ... call the method after adding it to the hashtable rather
2824 than before ... thus preventing an obscure possibility of infinite
2825 recursion if a +load method itself loads a subclass.
2827 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2829 * init.c (__objc_send_message_in_list): When setting a new entry
2830 in __objc_load_methods use the method name as key, not the method
2831 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2833 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2835 * objc-features.texi: Move to ../gcc/objc.texi.
2837 * Makefile.in: Don't generate documentation from
2840 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2842 * fdl.texi: New file.
2843 * objc-features.texi: Simplify.
2844 * Makefile.in: Adjust accordingly.
2846 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2848 * objc-features.texi: Use the GFDL.
2850 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2852 * encoding.c (REAL_TYPE): Define.
2854 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2856 * encoding.c (TYPE_MODE): Define.
2858 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2860 * thr.c (objc_thread_add): New function.
2861 (objc_thread_remove): Ditto.
2862 * objc/thr.h: Declare them.
2863 * libobjc.def: Mention them.
2865 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2867 * objc-features.texi: Document the @compatibility_alias compiler
2868 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2870 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2872 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2874 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2876 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2877 we're not interested in the result and they might fail.
2878 * configure: Regenerated.
2880 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2882 * objc-features.texi: Use @email.
2884 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2886 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2889 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2891 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2892 determines the value dynamically.
2894 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2896 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2897 libraries to provide a function that returns the real forwarding
2898 function. This can alleviate problems __builtin_apply() and
2899 friends have on various platforms. (Solution suggested by Helge
2902 * objc/objc-api.h: Define __objc_msg_forward.
2904 * sendmsg.c: Define gen_rtx_REG.
2906 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2908 * thr-rtems.c: New file. Stub to compile.
2910 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2912 * configure: Rebuilt with new libtool.m4.
2914 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2916 * configure.in: Create a config.h file. Check for <sched.h>.
2917 * configure: Regenerate.
2919 * config.h.in: Check for <sched.h>.
2921 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2923 * configure: Regenerate after change to ../libtool.m4.
2925 2000-08-14 Andreas Schwab <schwab@suse.de>
2927 * objc-features.texi (Top): Move @menu at end of node.
2929 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2931 * objc-features.texi: Move @node Top before @menu.
2933 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2935 * objc-features.texi: Documented the new -fconstant-string-class
2938 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2940 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2941 improve the Posix thread support for Objective-C.
2943 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2945 * aclocal.m4: Replace copy of ../libtool.m4 with
2946 sinclude(../libtool.m4).
2948 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2950 * configure.in: Added libtool support; build shared libraries
2951 if --enable-shared was passed on command line.
2952 * Makefile.in: Modified most compilation commands to use libtool.
2953 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2954 libtool distribution.
2956 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2958 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2959 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2962 2000-05-12 H.J. Lu (hjl@gnu.org)
2964 * Makefile.in (GTHREAD_FLAGS): New.
2965 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2966 (OBJC_THREAD_FILE): Changed to thr-objc.
2968 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2970 (OBJC_THREAD_FILE): Removed.
2974 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2976 * objc/hash.h: Include string.h.
2978 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2980 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2982 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2984 * Object.m (strlen): Provide prototype on all 64bit platforms,
2986 * sarray.c (memcpy): Likewise.
2987 * encoding.c (objc_layout_finish_structure): Don't use
2988 ROUND_TYPE_ALIGN on sparc.
2990 * encoding.c (objc_layout_structure_next_member): Do the whole
2991 procedure even for the first member, so that we get correct
2994 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2996 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2999 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3001 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3003 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3005 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3007 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3009 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3010 the compiler when building C code.
3012 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3014 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3015 libdir, libsubdir and tooldir.
3017 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3019 * init.c (__objc_force_linking): Make global.
3021 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3023 * configure.in (AC_EXEEXT): Remove call.
3024 (compiler_name): Explicitly check with no extension and .exe
3026 * configure: Regenerate.
3028 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3030 * Makefile.in (CC1OBJ): Define in terms of CC.
3031 (runtime-info.h): Use.
3033 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3035 * objc-features.texi: Updated the URL to Boehm's GC page.
3037 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3039 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3040 the char as being signed (patch from Daniel Jacobowitz
3043 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3045 * configure.in (AC_PREREQ): Update to 2.13.
3046 (AC_EXEEXT): Call to find possible file extension.
3047 (compiler_name): Use.
3048 * configure: Regenerate.
3050 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3052 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3054 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3056 * configure.in (thread_file): Correct and simplify code to find
3058 * configure: Rebuilt.
3060 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3062 * configure.in (compiler_name): Add check to detect if this
3063 language's compiler has been built.
3064 * configure: Regenerate.
3066 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3068 * configure.in: Use AC_PREREQ(2.12.1).
3070 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3072 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3074 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3076 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3078 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3080 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3082 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3084 * objc-features.texi (Top): Changed the email address.
3085 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3087 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3089 * encoding.c: Redefine get_inner_array_type to get the first entry
3092 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3094 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3095 (objc_get_type_qualifiers): Similarly.
3096 * objc/encoding.h (_C_BYREF): Define.
3099 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3101 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3102 works out on 64-bit systems.
3104 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3106 * Makefile.in (INCLUDES): Make it multilib-friendly.
3108 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3110 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3112 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3113 Jeffrey A Law (law@cygnus.com)
3115 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3116 (FLAGS_TO_PASS): Added.
3117 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3119 * archive.c: Change config.h to tconfig.h.
3121 * configure.in: Find gcc's object directory even for multilibs.
3123 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
3125 * configure.in: Escape ^ in grep string.
3126 * configure: Rebuilt.
3128 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3130 * All .h files pushed down into the objc/ subdirectory.
3131 * Makefile.in (copy_headers): Corresponding changes.
3132 * configure.in (AC_INIT): Corresponding changes.
3133 * configure: Rebuilt.
3135 1998-09-30 Ben Elliston <bje@cygnus.com>
3136 Jeff Law <law@cygnus.com>
3138 * Makefile.in: Rewrite.
3140 * configure.in: Likewise.
3142 * configure: Regenerate.
3144 * All .c files. Remove "objc" prefix when including objc header
3145 files. Include tconfig.h, not ../tconfig.h.
3147 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3149 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3150 (get_inner_array_type): Define.
3152 1998-09-21 Ben Elliston <bje@cygnus.com>
3154 * New directory. Moved files from ../gcc/objc.