1 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
3 * configure: Regenerated.
5 2012-07-19 Tristan Gingold <gingold@adacore.com>
6 Richard Henderson <rth@redhat.com>
8 * exception.c (__gnu_objc_personality_seh0): New function.
10 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
12 * configure: Regenerated.
14 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16 * configure.ac (enable_objc_gc): Remove alpha*-dec-osf* handling.
17 * configure: Regenerate.
19 * thr.c (_XOPEN_SOURCE): Define unconditionally.
21 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
23 * configure: Regenerate.
25 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27 * Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
28 * configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
29 * configure: Regenerate.
30 * config.h.in: Regenerate.
32 2011-10-17 Paul Brook <paul@codesourcery.com>
33 Matthias Klose <doko@ubuntu.com>
35 * exception.c (parse_lsda_header): hardcode ttype_encoding for older
37 (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
39 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
42 * init.c (__objc_exec_class): Work around a bug in clang's code
43 generation. Clang sets the class->info field to values different
44 from 0x1 or 0x2 (the only allowed values in the traditional GNU
45 Objective-C runtime ABI) to store some additional information, but
46 this breaks backwards compatibility. Wipe out all the bits in the
47 fields other than the first two upon loading a class.
49 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
51 * class.c (objc_lookup_class): Added back for compatibility with
52 clang which seems to emit calls to it.
54 2011-10-08 Richard Frith-Macdonald <rfm@gnu.org>
55 Nicola Pero <nicola.pero@meta-innovation.com>
58 * sendmsg.c (__objc_send_initialize): If a class does not have an
59 +initialize method, search for an +initialize method in the
60 superclass and in the ancestor classes and execute the first one
61 that is found. This makes the GNU runtime behave in the same way
62 as the Apple/NeXT runtime with respect to +initialize methods and
65 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
68 * class.c (__objc_update_classes_with_methods): Iterate over meta
69 classes as well as normal classes when refreshing the method
70 implementations. This fixes replacing class methods.
72 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
74 * class.c (class_getSuperclass): Fixed to work with meta classes
75 still in construction too.
77 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
79 * class.c (class_getSuperclass): Fixed typo in comment.
81 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
84 * class.c (class_getSuperclass): Return the superclass if the
85 class is in construction.
86 * objc/runtime.h (class_getSuperclass): Updated documentation.
88 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
90 * Makefile.in (INCLUDES): Search
91 $(srcdir)/$(MULTISRCTOP)../libgcc.
93 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
95 * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
97 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
99 * configure.ac (VERSION): Bumped to 4:0:0.
100 * configure (VERSION): Likewise.
102 2011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
104 * objc/README: Updated.
105 * objc-private/selector.h: Updated comments.
107 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
109 * sendmsg.c (class_get_instance_method): Removed.
110 (class_get_class_method): Removed.
111 (objc_get_uninstalled_dtable): Removed.
113 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
115 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
116 * objects.c (class_create_instance): Removed.
117 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
118 * gc.c (__objc_generate_gc_type_description): Use
119 class_getInstanceSize() instead of class_get_instance_size().
120 * selector.c (sel_types_match): Made static.
121 (sel_get_typed_uid): Removed.
122 (sel_get_any_typed_uid): Removed.
123 (sel_get_name): Removed.
124 (sel_get_type): Removed.
125 (sel_register_name): Removed.
126 (sel_register_typed_name): Removed.
127 (sel_get_uid): Removed.
129 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
131 * encoding.c (method_get_number_of_arguments): Removed.
132 (method_get_sizeof_arguments): Removed.
134 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
136 * class.c (objc_next_class): Removed.
137 (class_pose_as): Removed.
139 (class_table_replace): Removed.
140 (objc_lookup_class): Removed.
142 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
144 Removed the Traditional Objective-C runtime public API.
145 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
146 (install-headers): Do not create the objc/deprecated directory and
147 do not install the deprecated headers.
148 (OBJC_H): Removed encoding.h and objc-api.h.
149 * Object.m: Removed all methods with the exception of -class and
150 -isEqual:. Updated includes. ([-class]): Use Modern API.
151 * objc/Object.h: Do not include deprecated/Object.h.
152 * objc/deprecated/Object.h: Removed.
153 * linking.m (__objc_linking): Call [Object class] instead of
155 * Protocol.m: Removed all methods with the exception of -isEqual:.
157 * objc/Protocol.h: Do not include deprecated/Protocol.h.
158 * objc/deprecated/Protocol.h: Removed.
159 * objc/deprecated/struct_objc_symtab.h: Removed.
160 * objc/deprecated/struct_objc_module.h: Removed.
161 * objc/deprecated/struct_objc_ivar.h: Removed.
162 * objc/deprecated/struct_objc_ivar_list.h: Removed.
163 * objc/deprecated/struct_objc_method.h: Removed.
164 * objc/deprecated/struct_objc_method_list.h: Removed.
165 * objc/deprecated/struct_objc_protocol_list.h: Removed.
166 * objc/deprecated/struct_objc_category.h: Removed.
167 * objc/deprecated/MetaClass.h: Removed.
168 * objc/deprecated/objc_msg_sendv.h: Removed.
169 * objc/deprecated/README: Removed.
170 * objc/deprecated/struct_objc_class.h: Removed.
171 * objc/deprecated/struct_objc_protocol.h: Removed.
172 * objc/deprecated/struct_objc_selector.h: Removed.
173 * objc/encoding.h: Removed.
174 * objc/message.h (struct objc_super): Removed the definition for
175 the Traditional Objective-C runtime API.
176 * objc/objc.h: Do not include objc/objc-decls.h.
177 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
178 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
179 and deprecated/objc_msg_sendv.h. Uncommented new definition of
181 * objc/objc-api.h: Removed.
182 * objc/runtime.h: Updated comments. Removed check to detect
183 concurrent usage of Traditional and Modern APIs.
184 * objc-private/module-abi-8.h: Always define struct objc_class and
185 struct objc_protocol. (struct objc_protocol_list): Changed type
186 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
187 (class_get_instance_size): Added.
188 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
189 'struct objc_protocol *' as argument, not a 'Protocol *'.
190 * objc-private/runtime.h: Updated comments.
191 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
192 * class.c: Include objc-private/selector.h.
193 (objc_get_meta_class): Return a Class instead of a MetaClass.
194 * encoding.c (method_get_next_argument): Removed.
195 (method_get_first_argument): Removed.
196 (method_get_nth_argument): Removed.
197 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
198 Include objc-private/module-abi-8.h and ctype.h.
199 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
200 objc_protocl *' as argument, not a 'Protocol *'.
201 (class_addProtocol): Added casts to 'struct objc_protocol *' and
203 (class_copyProtocolList): Likewise.
204 (protocol_conformsToProtocol): Likewise.
205 (protocol_copyProtocolList): Likewise.
206 * sarray.c: Include objc-private/module-abi-8.h.
207 * sendmsg.c (method_get_next_argument): Removed.
208 (method_get_first_argument): Removed.
209 (method_get_nth_argument): Removed.
210 (objc_msg_sendv): Removed.
211 (arglist_t, retval_t): New. (class_get_class_method): Take a
212 'Class', not 'MetaClass', argument.
213 * thr.c: Include module-abi-8.h.
215 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
217 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
218 and objc_get_uninstalled_dtable.h.
219 * objc/deprecated/struct_objc_static_instances.h: Removed.
220 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
221 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
222 and deprecated/objc_get_uninstalled_dtable.h.
224 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
226 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
227 * objc/deprecated/objc_object_alloc.h: Removed.
228 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
229 * objects.c (_objc_object_alloc, _objc_object_dispose,
230 _objc_object_copy): Removed.
231 * libobjc.def (__objc_object_alloc, __objc_object_copy,
232 __objc_object_dispose): Removed.
234 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
236 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
237 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
238 * objc/deprecated/METHOD_NULL.h: Removed.
240 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
242 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
243 objc_malloc.h and objc_unexpected_exception.h.
244 (exception.lo): Do not use -Wno-deprecated-declarations.
245 (exception_gc.lo): Likewise.
246 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
247 deprecated/objc_malloc.h and
248 deprecated/objc_unexpected_exception.h.
249 * objc/deprecated/objc_valloc.h: Removed.
250 * objc/deprecated/objc_malloc.h: Removed.
251 * objc/deprecated/objc_unexpected_exception.h: Removed.
252 * exception.c (_objc_unexpected_exception): Removed.
253 (objc_exception_throw): Do not check for
254 _objc_unexpected_exception.
255 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
256 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
257 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
259 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
261 * objc/objc.h: Do not include deprecated/STR.h.
262 * objc/deprecated/STR.h: Removed.
263 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
265 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
267 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
268 (OBJC_DEPRECATED_H): Likewise.
269 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
270 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
271 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
272 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
273 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
274 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
275 * objc/sarray.h: Removed.
276 * objc/hash.h: Removed.
277 * objc/deprecated/sarray.h: Removed.
278 * objc/deprecated/hash.h: Removed.
279 * objc/Object.h: Do not include objc/deprecated/hash.h
280 * Object.m: Include string.h.
281 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
282 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
285 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
287 * Object.m ([-forward::]): Removed.
288 * objc/deprecated/Object.h ([-forward::]): Removed.
289 * sendmsg.c (__objc_forward): Updated comments.
291 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
293 * Makefile.in (OBJC_H): Removed objc-list.h.
294 (OBJC_DEPRECATED_H): Removed objc-list.h.
295 * objc/objc-list.h: File removed.
296 * objc/deprecated/objc-list.h: File removed.
298 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
300 * Makefile.in (OBJC_H): Removed typedstream.h.
301 (OBJC_DEPRECATED_H): Removed typedstream.h.
302 (C_SOURCE_FILES): Removed archive.c.
303 (Object.lo): Rule removed.
304 (Object_gc.lo): Likewise.
305 (archive.lo): Likewise.
306 (archive_gc.lo): Likewise.
307 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
309 Do not include deprecated/typedstream.h.
310 * Object.m: Removed the same methods.
311 * archive.c: File removed.
312 * objc/typedstream.h: File removed.
313 * objc/deprecated/typedstream.h: File removed.
314 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
315 __objc_write_class, __objc_write_object, __objc_write_selector,
316 objc_close_typed_stream, objc_end_of_typed_stream,
317 objc_flush_typed_stream, objc_get_stream_class_version,
318 objc_open_typed_stream, objc_open_typed_stream_for_file,
319 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
320 objc_read_object, objc_read_selector, objc_read_short,
321 objc_read_string, objc_read_type, objc_read_types,
322 objc_read_unsigned_char, objc_read_unsigned_int,
323 objc_read_unsigned_long, objc_read_unsigned_short,
324 objc_write_array, objc_write_char, objc_write_int,
325 objc_write_long, objc_write_object, objc_write_object_reference,
326 objc_write_root_object, objc_write_selector, objc_write_short,
327 objc_write_string, objc_write_string_atomic, objc_write_type,
328 objc_write_types, objc_write_unsigned_char,
329 objc_write_unsigned_int, objc_write_unsigned_long,
330 objc_write_unsigned_short): Removed.
332 2011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
334 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
335 * objc/deprecated/objc_error.h: Removed.
336 * objc/objc-api.h: Do not include deprecated/objc_error.h.
337 * libobjc.def (objc_error, objc_verror): Removed.
338 * error.c (_objc_error_handler, objc_error, objc_verror,
339 objc_set_error_handler): Removed.
340 * Object.m ([-error:], [-perform:], [-perform:with:],
341 [-perform:with:with], [-subclassResponsibility:],
342 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
344 * objc/deprecated/Object.h: Removed the same methods.
345 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
346 method after trying to invoke the "doesNotRecognize:" method.
348 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
350 * sendmsg.c: Reindented part of the file. No non-trivial changes
353 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
355 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
356 not objc_lookup_class.
358 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
359 David Ayers <ayers@fsfe.org>
362 * sendmsg.c: Include objc/hash.h.
363 (get_implementation): New function, mostly with code from get_imp
364 updated to support the new +initialize dispatch table logic.
365 (get_imp): Use get_implementation.
366 (__objc_responds_to): Updated to support the new +initialize
367 dispatch table logic.
368 (class_respondsToSelector): Likewise.
369 (objc_msg_lookup): Use get_implementation.
370 (__objc_init_install_dtable): Removed.
371 (__objc_install_methods_in_dtable): Updated arguments.
372 (__objc_install_dispatch_table_for_class): Renamed to
373 __objc_install_dtable_for_class and updated to support the new
374 +initialize dispatch table logic.
375 (__objc_update_dispatch_table_for_class): Updated to support the
376 new +initialize dispatch table logic.
377 (__objc_forward): Call get_implementation instead of get_imp.
378 (prepared_dtable_table): New.
379 (__objc_prepare_dtable_for_class): New.
380 (__objc_prepared_dtable_for_class): New.
381 (__objc_get_prepared_imp): New.
382 (__objc_install_prepared_dtable_for_class): New.
384 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
387 * selector.c (__sel_register_typed_name): Use sel_types_match()
388 instead of strcmp() to compare selector types (Suggestion by
389 Richard Frith-Macdonald <rfm@gnu.org>).
391 2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394 * Makefile.in (OBJC_GCFLAGS): Move ...
395 * configure.ac (enable_objc_gc): ... here.
396 Add $(libsuffix) to OBJC_BOEHM_GC.
397 * configure: Regenerate.
399 2011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
401 * selector.c (sel_getTypedSelector): Return NULL if there are
402 multiple selectors with conflicting types.
403 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
405 2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
408 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
411 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
413 * configure: Regenerate.
415 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
417 * init.c (create_tree_of_subclasses_inherited_from): Use
418 class_superclass_of_class instead of assuming a class is
419 unresolved when it could be resolved. Tidied up assignment and
421 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
422 (objc_tree_insert_class): Tidied up loop; return immediately upon
424 (__objc_exec_class): Do not set __objc_class_tree_list.
426 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
428 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
430 (sel_registerTypedName): Same.
431 (sel_registerName): Same.
432 * objc/runtime.h: Updated documentation.
434 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
436 * objc/runtime.h (class_addIvar): Updated documentation. The
437 alignment is actually the log_2 of the alignment in bytes.
438 * ivars.c (class_addIvar): Corresponding change to the
441 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
443 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
444 be consistent with method_getTypeEncoding and
445 ivar_getTypeEncoding.
446 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
447 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
448 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
449 (sel_get_type): Updated call to sel_getType.
451 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
453 * objc/runtime.h (class_conformsToProtocol,
454 class_copyProtocolList): Updated documentation.
456 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
458 * init.c (create_tree_of_subclasses_inherited_from): Updated
459 DEBUG_PRINTF messages.
460 (__objc_tree_insert_class): Same.
461 (__objc_send_load_using_method_list): Same.
462 (__objc_send_load): Same.
463 (__objc_exec_class): Same. In particular, do not print the module
464 name since it is no longer used.
465 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
466 tracking +initialize calls.
467 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
468 tracking updates of dispatch tables.
469 (__objc_install_dispatch_table_for_class): Same.
471 2010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
473 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
474 (libobjc_gc$(libsuffix).la): Likewise.
476 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
478 * sendmsg.c (class_addMethod): Return NO if the method already
481 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
483 * init.c (duplicate_classes): New.
484 (__objc_exec_class): Initialize duplicate_classes.
485 (__objc_create_classes_tree): Ignore classes in the
486 duplicate_classes table.
487 (__objc_call_load_callback): Same.
488 (__objc_init_class): If a duplicate class is found, add it to
489 duplicate_classes instead of aborting. Return YES if the class is
490 not a duplicate, and NO if it is.
491 * objc-private/runtime.h (__objc_init_class): Updated prototype.
493 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
495 * objc-private/objc-list.h: Reindented file. No code changes.
496 * objc-private/sarray.h: Same change.
498 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
500 * objc-private/accessors.h: Removed 'extern "C"' guards. This
501 file is never compiled with C++.
502 * objc-private/hash.h: Same change.
503 * objc-private/objc-list.h: Same change.
504 * objc-private/objc-sync.h: Same change.
505 * objc-private/protocols.h: Same change.
506 * objc-private/runtime.h: Same change.
507 * objc-private/sarray.h: Same change.
508 * objc-private/selector.h: Same change.
510 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
513 * class.c (__objc_add_class_to_hash): Return YES if the class was
514 added, and NO if it already existed.
515 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
516 NO, then abort the program with an error message.
517 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
520 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
522 * init.c (_objc_load_callback): Initialize with 0.
523 (__objc_call_callback): Renamed to __objc_call_load_callback.
524 Check _objc_load_callback only once, and if it is not set, return
526 (objc_send_load): Updated call to __objc_call_callback.
528 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
531 * init.c (__objc_send_message_in_list): Renamed to
532 __objc_send_load_using_method_list. Do not take an 'op' argument.
533 Register the 'load' selector if needed.
534 (__objc_send_load): Do not register the 'load' selector. Updated
535 call to __objc_send_message_in_list.
536 (__objc_create_classes_tree): Add the class of any claimed
537 category that was loaded in the module to the list of classes for
538 which we try to execute +load.
540 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
542 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
544 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
545 a pointer using DEBUG_PRINTF.
547 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
550 * selector.c (__sel_register_typed_name): When registering a new
551 selector with the same name as an existing one, reuse the existing
552 name string. Also updated types, casts and comments in the whole
555 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
557 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
558 to be 'struct objc_selector *' and not 'SEL'.
559 * init.c (__objc_exec_class): Call
560 __objc_register_selectors_from_module instead of iterating over
561 each selector and calling __sel_register_typed_name for each.
562 * objc-private/selector.h: Declare
563 __objc_register_selectors_from_module instead of
564 __sel_register_typed_name.
565 * selector.c (__objc_register_selectors_from_module): New.
566 (__sel_register_typed_name): Made static.
568 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
570 * linking.m: Do not include objc/NXConstStr.h.
572 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
574 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
575 * objc-private/common.h (DEBUG_PRINTF): To here.
576 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
578 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
580 * hash.c: Tidied up comments and indentation. No code changes.
582 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
585 * accessors.m (objc_getProperty): If not atomic, do not
586 retain/autorelease the returned value.
588 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
590 * objc-private/runtime.h (__objc_selector_max_index,
591 __objc_init_selector_tables, __objc_register_selectors_from_class,
592 __objc_register_selectors_from_list,
593 __objc_register_selectors_from_description_list): Moved to ...
594 * objc-private/selector.h: ... here.
596 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
598 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
599 (__objc_print_dtable_stats): Removed.
600 (__sel_register_typed_name): Removed.
601 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
603 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
605 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
606 if appropriate, after loading the module.
608 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
610 * sendmsg.c (method_setImplementation): Do not declare.
612 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
614 * objc/message.h: Updated comments.
615 * objc/runtime.h: Updated comments.
617 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
619 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
620 * protocols.c: Updated all calls to objc_lookupClass to call
621 objc_lookUpClass instead.
622 * sendmsg.c (objc_lookupClass): Do not declare.
623 (get_imp): Update call to objc_lookupClass to call
624 objc_lookUpClass instead.
625 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
627 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
629 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
630 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
631 define. Updated comments.
633 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
635 * objc/encoding.h: Updated comments.
636 * objc/runtime.h: Updated comments.
637 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
638 (objc_sizeof_type): Same.
639 (objc_alignof_type): Same.
640 (objc_aligned_size): Same.
641 (objc_promoted_size): Same.
642 (objc_skip_type_qualifiers): Same.
643 (objc_skip_typespec): Same.
644 (objc_skip_offset): Same.
645 (objc_skip_argspec): Same.
646 (objc_get_type_qualifiers): Same.
647 (objc_layout_structure): Same.
648 (objc_layout_structure_next_member): Same.
649 (objc_layout_finish_structure): Same.
650 (objc_layout_structure_get_info): Same.
652 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
654 * init.c: Updated comments.
655 * objc/objc-api.h: Updated comments.
656 * objc/runtime.h (_objc_load_callback): Declare.
658 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
660 * objc/Object.h: Include deprecated/typedstream.h and
661 deprecated/hash.h instead of typedstream.h. Updated comments.
663 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
665 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
666 * objc/deprecated/objc_msg_sendv.h: New.
667 * objc/message.h: Do not define retval_t, apply_t, arglist,
668 arglist_t, objc_msg_sendv, now in
669 objc/deprecated/objc_msg_sendv.h.
670 * objc/objc.h: Do not include message.h; include
671 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
672 * sendmsg.c: Include objc/message.h.
673 * thr.c: Include objc/message.h.
675 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
677 * objc/objc-exception.h: Include objc-decls.h. Mark all
678 functions with objc_EXPORT.
679 * objc/objc-sync.h: Same change.
681 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
683 * Protocol.m: Moved all methods, with the exception of -isEqual:,
684 into the 'Deprecated' category.
685 * objc/Protocol.h: Removed all methods, moved to
686 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
687 * objc/deprecated/Protocol.h: New.
688 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
690 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
692 * init.c: Include objc-private/selector.h. Do not declare
693 __sel_register_typed_name.
694 * objc-private/selector.h (__sel_register_typed_name): Declare.
695 * selector.c: Include objc-private/selector.h.
697 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
699 * class.c: Tidied up comments and indentation. No code changes.
705 * objc-foreach.c: Same.
712 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
714 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
715 instead of objc/objc-api.h.
716 (init_check_module_version): Take a 'struct objc_module *'
717 argument instead of 'Module_t'. Use 'struct objc_module *'
718 instead of 'Module_t'.
719 (__objc_created_classes_tree): Take a 'struct objc_module *'
720 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
722 (__objc_call_callback): Take a 'struct objc_module *' argument
723 instead of 'Module_t'; use 'struct objc_symtab *' instead of
724 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
725 (_objc_load_callback): Take a 'struct objc_category *' argument
726 instead of 'Category *'.
727 (class_superclass_of_class): Use objc_getClass() instead of
729 (create_tree_of_subclasses_inherited_from): Same change (also, use
730 an explicit 'if' instead of '?').
731 (objc_init_statics): Same change.
732 (objc_send_load): Same change.
733 (__objc_init_protocol): same change.
734 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
735 argument instead of 'MethodList_t'. Use 'struct objc_method *'
736 instead of 'Method_t'.
737 (__objc_send_load): Use 'struct objc_method_list *' instead of
738 'MethodList_t'. Use sel_registerName() instead of
740 (__objc_exec_class): Take a 'struct objc_module *' argument
741 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
742 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
743 Use 'struct objc_category *' instead of 'Category_t'.
745 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
747 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
748 Include objc-private/module-abi-8.h and objc-private/selector.h
749 instead of objc/encoding.h.
750 (objc_msg_lookup_super): Use super->super_class instead of
752 (method_get_first_argument, method_get_next_argument): Declare
754 (class_get_instance_method): Declare before using.
755 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
756 (__objc_init_dispatch_tables, __objc_send_initialize): Use
757 sel_registerName() instead of sel_register_name().
758 (__objc_forward): Use sel_getName() instead of sel_get_name().
759 (objc_get_uninstalled_dtable): Use 'void' as argument.
760 * objc-private/selector.h: New.
762 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
764 * objc/message.h (objc_super): When using the modern API, do not
765 define Super and Super_t, and always use 'super_class' for the
767 (objc_msg_lookup_super): Updated prototype to use 'struct
768 objc_super *' instead of 'Super_t'.
769 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
770 'struct objc_super *' instead of 'Super_t'.
772 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
774 * objc/message.h: Update comments, reindented code and moved
775 deprecated types and functions at the end of the file. No code
778 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
780 * ivars.c (class_addIvar): Use the 'size' argument instead of
781 trying to calculate it using objc_sizeof_type().
782 * objc/runtime.h (class_addIvar): Updated comments.
784 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
786 * sendmsg.c: Reindented some code and tidied up comments. No
789 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
791 * objc/Object.h: Moved all the methods, with the exception of
792 -class and -isEqual:, into ...
793 * objc/deprecated/Object.h: here.
794 * Object.m: Moved all the methods, with the exception of -class
795 and -isEqual: into the 'Deprecated' category.
797 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
799 * objects.c (object_copy): Do not #undef as we are no longer
800 including objc/objc-api.h.
801 * selector.c: Include objc/runtime.h and
802 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
803 objc/encoding.h. Updated
804 (__objc_register_selectors_from_class): Use struct
805 objc_method_list * instead of MethodList_t.
806 (__objc_register_selectors_from_list): Use Method instead of
808 (struct objc_method_description_list): Do not define here.
809 (__objc_register_instance_methods_to_class): Use struct
810 objc_method_list * instead of MethodList_t and Method instead of
813 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
815 * selector.c: Reindented some code and tidied up comments. No
818 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
820 * encoding.c (_darwin_rs6000_special_round_type_align): New.
821 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
823 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
825 * sendmsg.c (selector_resolveClassMethod): New.
826 (selector_resolveInstanceMethod): New.
827 (__objc_resolve_class_method): New.
828 (__objc_resolve_instance_method): New.
829 (get_imp): Call __objc_resolve_class_method or
830 __objc_resolve_instance_method at the appropriate time.
831 (objc_msg_lookup): Same.
832 (class_getClassMethod): Same.
833 (class_getInstanceMethod): Same.
834 (__objc_init_dispatch_tables): Initialize
835 selector_resolveClassMethod and selector_resolveInstanceMethod.
836 * objc/runtime.h: Updated documentation of class_getClassMethod,
837 class_getInstanceMethod and class_getMethodImplementation.
839 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
841 * objc-private/module-abi-8.h (struct objc_symtab): Updated
842 description of sel_ref_cnt and refs.
843 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
845 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
849 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
850 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
851 * aclocal.m4: Regenerate.
852 * configure: Regenerate.
854 2010-12-03 Matthias Klose <doko@ubuntu.com>
856 * configure.ac (VERSION): Bump the version to 3:0:0.
857 * configure: Regenerate.
859 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
861 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
862 pass nil as the receiver since we don't know the receiver at this
865 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
867 * ivars.c: Include stdlib.h.
868 * protocols.c: Same change.
870 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
872 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
874 * init.c: Include objc-private/accessors.h.
875 (__objc_exec_class): Call __objc_accessors_init.
876 * objc-private/accessors.h: New.
878 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
880 * objc/message.h: Moved initial includes outside of extern "C".
881 * objc/runtime.h: Add extern "C" for Objective-C++.
883 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
885 * init.c (objc_send_load): Do not wait for NXConstantString to be
886 registered before executing +load. There is no point if
887 -fconstant-string-class=xxx is used when compiling all modules,
888 as is the case for almost all users.
889 * linking.m (__objc_linking): Do not try to forcefully link in
892 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
894 * objc/runtime.h: Updated comments.
895 (class_addMethod): New.
896 (class_addIvar): New.
897 (class_replaceMethod): New.
898 (objc_allocateClassPair): New.
899 (objc_registerClassPair): New.
900 (objc_disposeClassPair): New.
901 * class.c (objc_allocateClassPair): New.
902 (objc_registerClassPair): New.
903 (objc_disposeClassPair): New.
904 (class_getSuperclass): Return Nil if a class is in construction.
905 * init.c (__objc_exec_class): Call __objc_init_class.
906 (__objc_init_class): New.
907 * ivars.c (class_copyIvarList): Return NULL if class is in
908 construction. Do not lock the runtime mutex.
909 (class_getInstanceVariable): Return NULL if class is in
910 construction. Do not lock the runtime mutex.
911 (class_addIvar): New.
912 * sendmsg.c (class_addMethod): New.
913 (class_replaceMethod): New.
914 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
915 (_CLS_IN_CONSTRUCTION): New.
916 (CLS_IS_IN_CONSTRUCTION): New.
917 (CLS_SET_IN_CONSTRUCTION): New.
918 (CLS_SET_NOT_IN_CONSTRUCTION): New.
919 * objc-private/runtime.h (__objc_init_class): New.
921 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
923 * class.c (class_getSuperclass): Call __objc_resolve_class_links
924 if the class is not resolved yet.
925 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
927 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
929 * objc/runtime.h (class_getIvarLayout): New.
930 (class_getWeakIvarLayout): New.
931 (class_setIvarLayout): New.
932 (class_setWeakIvarLayout): New.
933 * ivars.c (class_getIvarLayout): New.
934 (class_getWeakIvarLayout): New.
935 (class_setIvarLayout): New.
936 (class_setWeakIvarLayout): New.
938 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
940 * objc/runtime.h (class_copyPropertyList): New.
941 (class_getProperty): New.
942 (property_getAttributes): New.
943 (property_getName): New.
944 * ivars.c (class_copyPropertyList): New.
945 (class_getProperty): New.
946 (property_getAttributes): New.
947 (property_getName): New.
949 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
951 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
952 * class.c (__objc_update_classes_with_methods): New.
953 (objc_getClassList): Do not lock the class lock.
954 * methods.c (method_exchangeImplementations): New.
955 (method_setImplementation): New.
956 * objc/runtime.h (method_setImplementation): New.
957 (method_exchangeImplementations): New.
959 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
961 * Protocol.m: Include objc/runtime.h and
962 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
963 repeat Protocol's instance variables.
964 (struct objc_method_description_list): Do not define here.
965 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
966 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
967 selectors directly instead of getting names and then using strcmp.
968 ([descriptionForClassMethod:]): Same change.
969 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
970 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
971 to compare selectors directly instead of getting names and then
973 * objc/Protocol.h: Updated comments.
975 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
977 * init.c (__objc_init_protocol): New function which fixes up a
978 protocol's class pointer, registers it with the runtime, register
979 all protocol selectors and registers associated protocols too.
980 (objc_init_statics): Detect if we are initializing protocols, and
981 if so, use __objc_init_protocol instead of only fixing up the
983 (__objc_init_protocls): Use __objc_init_protocol.
984 * objc-private/module-abi-8.h: Updated comments.
985 * objc-private/runtime.h
986 (__objc_register_selectors_from_description_list): New.
987 * selector.c (__objc_register_selectors_from_description_list):
988 New. (struct objc_method_description_list): Declare.
989 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
990 when accessing the name of a method, which is now correctly a SEL.
991 ([-descriptionForClassMethod:]): Same change.
992 * protocols.c (protocol_getMethodDescription): Same change.
993 * objc/runtime.h: Updated comments.
994 (sel_registerTypedName): Fixed typo in function name.
996 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
999 * init.c (objc_init_statics): Do not skip the initialization of a
1000 statics list if the first object has already been initialized; in
1001 the case of Protocols, while the first one may have been
1002 initialized, some others may not have been initialized yet.
1004 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1006 * Makefile.in (OBJC_DEPRECATED_H): Added
1007 objc_get_uninstalled_dtable, objc_object_alloc.h and
1008 struct_objc_static_instances.h.
1010 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1012 * encoding.c (method_copyReturnType): New.
1013 (method_copyArgumentType): New.
1014 (method_getReturnType): New.
1015 (method_getArgumentType): New.
1016 * methods.c (method_getDescription): New.
1017 * objc/runtime.h (method_copyReturnType): New.
1018 (method_copyArgumentType): New.
1019 (method_getReturnType): New.
1020 (method_getArgumentType): New.
1021 (method_getDescription): New.
1023 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1025 * encoding.c: Tidied up comments.
1026 (objc_skip_variable_name): New static inline function.
1027 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
1028 the same code over and over.
1029 (objc_alignof_type): Same.
1030 (objc_aligned_size): Same.
1031 (objc_promoted_size): Same.
1032 (objc_skip_typespec): Same.
1033 (objc_layout_structure_next_member): Same.
1034 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
1035 historical bug where objc_skip_offset would skip one byte even if
1036 there is no offset: check that the first offset digit is actually
1037 a digit before skipping it.
1038 (objc_skip_type_qualifiers): Mark as inline.
1039 (objc_skip_typespec): Mark as inline.
1041 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1043 * Makefile.in (C_SOURCE_FILES): Added methods.c.
1044 * encoding.c (method_getNumberOfArguments): New.
1045 (method_get_number_of_arguments): Call
1046 method_getNumberOfArguments.
1047 * ivars.c (ivar_getName): Check for NULL variable argument.
1048 (ivar_getOffset): Check for NULL variable argument.
1049 (ivar_getTypeEncoding): Check for NULL variable argument.
1050 (class_copyIvarList): New.
1052 * protocols.c (class_copyProtocolList): Check for Nil class_
1054 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1055 'struct objc_method_list *' instead of MethodList_t.
1056 (class_getMethodImplementation): New.
1057 (class_respondsToSelector): New.
1058 (class_getInstanceMethod): New.
1059 (class_getClassMethod): New.
1060 * objc/runtime.h: Updated comments.
1061 (class_copyIvarList): New.
1062 (class_getInstanceMethod): New.
1063 (class_getClassMethod): New.
1064 (class_getMethodImplementation): New.
1065 (class_respondsToSelector): New.
1066 (method_getName): New.
1067 (method_getImplementation): New.
1068 (method_getTypeEncoding): New.
1069 (class_copyMethodList): New.
1070 (method_getNumberOfArguments): New.
1072 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1074 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1075 instead of objc/objc-api.h.
1076 (objc_get_unknown_class_handler): Do not define.
1077 (class_isMetaClass): New.
1078 (class_getSuperclass): New.
1079 (class_getVersion): New.
1080 (class_setVersion): New.
1081 (class_getInstanceSize): New.
1082 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1083 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1084 objc_get_super_class.
1085 (get_ttype_entry): Use objc_getRequiredClass instead of
1087 * ivars.c (class_getClassVariable): New.
1088 * objects.c: Include objc/runtime.h, objc/thr.h and
1089 objc-private/module-abi-8.h instead of objc/objc-api.h
1090 * objc/runtime.h (class_getClassVariable): New.
1091 (class_isMetaClass): New.
1092 (class_getSuperclass): New.
1093 (class_getVersion): New.
1094 (class_setVersion): New.
1095 (class_getInstanceSize): New.
1096 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1099 (__CLS_ISINFO): Same.
1100 (__CLS_SETINFO): Same.
1102 (CLS_ISCLASS): Same.
1103 (CLS_ISRESOLV): Same.
1104 (CLS_SETRESOLV): Same.
1105 (CLS_ISINITIALIZED): Same.
1106 (CLS_SETINITIALIZED): Same.
1107 (CLS_GETNUMBER): Same.
1108 (CLS_SETNUMBER): Same.
1110 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1112 * archive.c: Do not include objc/objc.h.
1113 * class.c: Do not include objc/objc.h.
1114 * encoding.c: Include objc/runtime.h, ctype.h and
1115 objc-private/module-abi-8.h instead of objc/objc-api.h and
1117 * error.c: Do not include objc/objc.h.
1118 * gc.c: Include tconfig.h and objc/encoding.h only if
1120 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1121 objc/objc-api.h. Do not include objc/objc.h.
1122 * init.c: Do not include objc/objc.h.
1123 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1124 objc/thr.h instead of objc/objc-api.h. Do not include
1126 * linking.m: Tidied comment.
1127 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1128 Do not include objc/objc.h.
1129 * objects.c: Do not include objc/objc.h.
1130 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1131 * protocols.c: Do not include objc/objc.h.
1132 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1133 not include objc/objc.h.
1134 * selector.c: Do not include objc/objc.h.
1135 * sendmsg.c: Do not include objc/objc.h.
1136 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1137 Do not include objc/objc.h.
1138 * objc/objc-decls.h: Reindented code.
1139 * objc/runtime.h Include objc-decls.h. Updated comments.
1141 (objc_atomic_malloc): New.
1143 (objc_realloc): New.
1145 * objc-private/runtime.h: Updated comments.
1147 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1149 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1150 * objc-private/protocols.h: New.
1152 * init.c: Include objc-private/protocols.h.
1153 (__objc_exec_class): Call __objc_protocols_init on startup.
1154 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1155 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1156 of MethodList_t, and (struct objc_method *) instead of Method_t.
1157 * objc/deprecated/struct_objc_class.h: Define
1158 __objc_STRUCT_OBJC_CLASS_defined.
1159 * objc-private/module-abi-8.h (struct
1160 objc_method_description_list): New.
1161 (struct objc_class): Only define if
1162 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1163 * objc/runtime.h (class_getName): New.
1164 (objc_getProtocol): New.
1165 (objc_copyProtocolList): New.
1166 (class_addProtocol): New.
1167 (class_conformsToProtocol): New.
1168 (class_copyProtocolList): New.
1169 (protocol_conformsToProtocol): New.
1170 (protocol_isEqual): New.
1171 (protocol_getName): New.
1172 (protocol_getMethodDescription): New.
1173 (protocol_copyMethodDescriptionList): New.
1174 (protocol_getProperty): New.
1175 (protocol_copyPropertyList): New.
1176 (protocol_copyProtocolList): New.
1177 * class.c (class_getName): New.
1178 * selector.c (sel_isEqual): New.
1180 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1182 * selector.c (sel_getName): Return "<null selector>" for a NULL
1184 (sel_get_name): Return 0 for a NULL argument.
1185 * objc/runtime.h (sel_getName): Updated documentation.
1187 * objc-private/hash.h (class_hash_table): Unused declaration
1189 (module_hash_table): Same.
1190 * objc/deprecated/hash.h: Same changes.
1192 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1194 * class.c (objc_getClassList): New.
1195 (objc_getRequiredClass): New.
1196 (objc_getMetaClass): New.
1197 (objc_lookupClass): New.
1198 (objc_getClass): New.
1199 (__objc_get_unknown_class_handler): New.
1200 (objc_setGetUnknownClassHandler): New.
1201 (objc_get_class): Use __objc_get_unknown_class_handler.
1202 (objc_lookup_class): Call objc_getClass.
1203 * objc/objc-api.h: Updated comment and copyright notice.
1204 * objc/runtime.h: Updated comments.
1205 (objc_getClass): New.
1206 (objc_lookupClass): New.
1207 (objc_getMetaClass): New.
1208 (objc_getRequiredClass): New.
1209 (objc_getClassList): New.
1210 (objc_setGetUnknownClassHandler): New.
1211 (objc_get_unknown_class_handler): New.
1212 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1213 instead of __objc_runtime_INCLUDE_GNU as include guard.
1214 * objc-private/error.h (_objc_abort): Mark as noreturn.
1216 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1218 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1220 * objc/objc.h: Updated comments.
1221 * objc/runtime.h (object_getClass): New.
1222 (object_getClassName): New.
1223 (object_setClass): New.
1224 (class_getInstanceVariable): New.
1225 (object_getIndexedIvars): New.
1226 (object_getInstanceVariable): New.
1227 (object_setInstanceVariable): New.
1228 (object_getIvar): New.
1229 (object_setIvar): New.
1230 (ivar_getName): New.
1231 (ivar_getOffset): New.
1232 (ivar_getTypeEncoding): New.
1233 * objc-private/module-abi-8.h (struct objc_class): Added.
1234 * objects.c (object_getClassName): New.
1235 (object_setClass): New.
1237 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1239 * objc/objc.h: Updated comments.
1240 * objc/objc-api.h: (object_copy): Added one argument; use a
1241 #define to maintain backwards-compatibility. Moved
1242 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1243 objc_get_uninstalled_dtable into
1244 objc/deprecated/objc_get_uninstalled_dtable.h and
1245 objc/deprecated/objc_object_alloc.h. Include these files.
1246 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1247 * objc/deprecated/objc_object_alloc.h: New.
1248 * objc/runtime.h (set_getName): New.
1251 (sel_registerName): New.
1252 (sel_registerTypedName): New.
1254 (class_createInstance): New.
1256 (object_dispose): New.
1257 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1258 building the garbage collection version.
1259 (__objc_object_alloc): Removed.
1260 (__objc_object_copy): Removed.
1261 (__objc_object_dispose): Removed.
1262 (class_createInstance): New from code in class_create_instance.
1263 Cast second argument of GC_malloc_explicitly_typed. Use
1264 objc_calloc. Do not call _objc_object_alloc.
1265 (class_create_instance): Call class_createInstance.
1266 (object_copy): Added extraBytes argument. Do not call
1268 (object_dispose): Do not call _objc_object_dispose.
1269 * memory.c (objc_free): When using garbage collection, mark the
1271 * selector.c (sel_getName): New.
1272 (sel_get_name): Call sel_getName.
1274 (sel_get_type): Call sel_getType.
1275 (sel_registerName): New.
1276 (sel_register_name): Call sel_registerName.
1277 (sel_registerTypedName): New.
1278 (sel_register_typed_name): Call sel_registerTypedName.
1280 (sel_get_uid): Call sel_getUid.
1282 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1284 * objc/objc-api.h: Define Method, Method_t, Category and
1285 Category_t. Prevent including this file at the same time as
1286 objc/runtime.h. Updated comments.
1287 * objc/deprecated/struct_objc_method.h: Do not define Method,
1289 * objc/deprecated/struct_objc_category.h: Do not define Category,
1291 * objc-private/module-abi-8.h: New file containing a copy of all
1292 the structure definitions. Not used yet.
1293 * objc/encoding.h (objc_aligned_size): Removed duplicate
1294 declaration. Updated comments.
1295 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1296 Category, struct objc_method_description, _C_ID and similar,
1297 _C_CONST and similar and _F_CONST and similar. Added
1298 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1299 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1300 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1301 struct objc_struct_layout, objc_layout_structure,
1302 objc_layout_structure_next_member, objc_layout_finish_structure,
1303 objc_layout_structure_get_info. Prevent including this file at
1304 the same time as objc/objc-api.h.
1306 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1308 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1309 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1310 struct_objc_method_list.h, struct_objc_module.h,
1311 struct_objc_protocol_list.h, struct_objc_symtab.h.
1312 * objc/deprecated/struct_objc_category.h: New.
1313 * objc/deprecated/struct_objc_ivar.h: New.
1314 * objc/deprecated/struct_objc_ivar_list.h: New.
1315 * objc/deprecated/struct_objc_method.h: New.
1316 * objc/deprecated/struct_objc_method_list.h: New.
1317 * objc/deprecated/struct_objc_module.h: New.
1318 * objc/deprecated/struct_objc_protocol_list.h: New.
1319 * objc/deprecated/struct_objc_symtab.h: New.
1320 * objc/deprecated/struct_objc_static_instances.h: New.
1321 * objc/objc-api.h: Definitions of deprecated structures moved into
1322 the above header fragment files in objc/deprecated/. Include the
1323 files instead of definition the structures here. Updated
1325 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1326 (objc_set_enumeration_mutation_handler): Renamed to
1327 objc_setEnumerationMutationHandler.
1328 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1329 to objc_setEnumerationMutationHandler.
1330 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1331 objc_setExceptionMatcher.
1332 (objc_set_uncaught_exception_handler): Renamed to
1333 objc_setUncaughtExceptionHandler.
1334 * exception.c: Same changes.
1336 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1338 * objc-sync.c: Include objc-private/common.h.
1340 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1342 * objc-foreach.c: Include objc-private/common.h.
1343 * objc/deprecated/METHOD_NULL.h: New file.
1344 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1345 defining METHOD_NULL here.
1346 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1347 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1349 ([-respondsTo:]): Same change.
1350 * objc/objc-api.h (method_get_imp): Converted it into a normal
1351 function so that we can hide the internals of struct objc_method.
1352 * sendmsg.c (method_get_imp): Implemented.
1354 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1356 * objc/objc-api.h (struct objc_super, Super, Super_t,
1357 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1358 objc_msg_forward2): Declarations moved to objc/message.h. Include
1360 * objc/message.h: Added such declarations; updated comments.
1362 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1364 Implemented fast enumeration for Objective-C.
1365 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1366 (OBJC_H): Added runtime.h
1367 * objc-foreach.c: New file.
1368 * objc/runtime.h: New file.
1370 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
1372 * objc/deprecated/struct_objc_class.h: Add padding
1373 to avoid warning with -Wpadded.
1375 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1377 * encoding.c (objc_sizeof_type): Added support for vector type and
1378 for double long types.
1379 (objc_alignof_type): Same change.
1380 (objc_skip_typespec): Same change.
1381 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1382 instead of '!' since '!' is already used for _C_VECTOR.
1383 * objc/objc-api.h (_C_LNG_DBL): Added.
1385 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1387 * libobjc_entry.c: File removed.
1389 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
1391 * sendmsg.c (objc_msg_lookup): Remove inline.
1392 (objc_get_uninstalled_dtable): Likewise.
1393 * encoding.c (objc_skip_type_qualifiers): Likewise.
1394 (objc_skip_offset): Likewise.
1395 * archive.c (__objc_write_object): Likewise
1396 (__objc_write_class):
1397 (__objc_write_selector):
1399 (objc_read_unsigned_char):
1401 (objc_read_unsigned_short):
1404 (__objc_read_nbyte_uint):
1405 (objc_read_unsigned_int):
1406 (objc_read_unsigned_long):
1407 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1408 (objc_EXPORT): Likewise.
1409 * objc/message.h (objc-decls.h): Add include.
1410 * objc/objc-api.h: Mark API by objc_EXPORT.
1411 * libobjc.def (__objc_responds_to): Removed.
1413 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1415 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1417 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1418 objc/sarray.h replaced with a placeholder including the file from
1419 the deprecated/ directory.
1420 * objc-private/sarray.h: New file (private copy of sarray.h).
1421 * hash.c: Include <assert.h> instead of "assert.h"
1422 * sarray.c: Include <assert.h> instead of "assert.h". Include
1423 objc-private/sarray.h instead of objc/sarray.h.
1424 * selector.c: Include objc-private/sarray.h instead of
1426 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1427 instead of objc/sarray.h.
1428 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1430 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1432 * objc-private/objc-list.h (list_remove_elem): Unused function
1433 removed. (list_nth): Unused function removed. (list_find):
1434 Unused function removed. (list_lenght): Unused function removed.
1436 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1438 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1439 replaced with a placeholder including the file from the
1440 deprecated/ directory.
1441 * objc/objc-api.h: Updated includes.
1442 * objc/typedstream.h: Updated includes.
1443 * objc-private/hash.h: New file (private copy of hash.h).
1444 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1445 objc/objc-list.h replaced with a placeholder including the file
1446 from the deprecated/ directory.
1447 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1448 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1449 instead of objc/hash.h and objc/objc-list.h.
1450 * selector.c: Same change.
1451 * class.c: Added include <string.h>, which used to be implicitly included
1452 when hash.h was included.
1453 * exception.c: Same change.
1454 * objects.c: Same change.
1455 * sarray.c: Same change.
1456 * sendmsg.c: Same change.
1457 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1459 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1461 Implemented objc_sync_enter() and objc_sync_exit(), which are
1462 required by @synchronized() to work.
1463 * objc-sync.c: New file.
1464 * objc/objc-sync.h: New file.
1465 * objc-private/objc-sync.h: New file.
1466 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1467 Objective-C runtime startup.
1468 * Makefile.in: Added objc-sync.c and objc-sync.h.
1469 * configure.ac: Added GCC_CHECK_TLS.
1470 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1471 * configure: Regenerated.
1472 * config.h.in: Regenerated.
1474 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1476 * Makefile.in (%_gc.lo): New pattern rules to build the
1477 garbage-collected version of the library. Removed rules for
1478 specific files that are no longer needed. Standardized all rules.
1479 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1480 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1482 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1484 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1486 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1487 with Garbage Colletion.
1489 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1491 * memory.c: Do not include objc-private/runtime.h.
1493 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1495 * objc/deprecated/objc_malloc.h: New file.
1496 * objc/deprecated/objc_valloc.h: New file.
1497 * objc/objc-api.h: Include the files instead of defining
1498 objc_valloc, _objc_malloc() and similar.
1499 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1501 * memory.c: Removed the extra layer of indirection of _objc_malloc
1503 (objc_calloc): Use GC_malloc in the garbage-collected
1504 implementation as GC_malloc returns memory that is already freed.
1505 (objc_valloc): Deprecated.
1507 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1509 * objc/deprecated/objc_error.h: New file.
1510 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1511 defining objc_error and related.
1512 * error.c: New file. Added _objc_abort function which replaces
1513 objc_error. No change in functionality as they both print an
1515 * misc.c: File removed. Code moved into memory.c and error.c.
1516 * memory.c: New file.
1517 * objc-private/error.h: New file.
1518 * archive.c: Include objc-private/error.h and use _objc_abort
1519 instead of objc_error everywhere.
1520 * class.c: Same change.
1521 * encoding.c: Same change.
1522 * init.c: Same change, and simplified init_check_module_version.
1523 * memory.c: Same change.
1524 * sendmsg.c: Same change.
1525 * thr.c: Same change.
1526 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1527 (OBJ_H): Reordered list.
1528 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1529 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1530 (misc_gc.lo): Rule removed.
1531 (error_gc.lo): Rule added.
1532 (memory_gc.lo): Rule added.
1534 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1536 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1537 to check the API version. Added some comments.
1539 * objc-private/common.h: New file.
1540 * NXConstStr.m: Include objc-private/common.h.
1541 * Object.m: Same change.
1542 * Protocol.m: Same change.
1543 * archive.c: Same change.
1544 * class.c: Same change.
1545 * encoding.c: Same change.
1546 * exception.c: Same change.
1547 * gc.c: Same change.
1548 * hash.c: Same change.
1549 * init.c: Same change.
1550 * libobjc_entry.c: Same change.
1551 * linking.m: Same change.
1552 * misc.c: Same change (and added a comment).
1553 * nil_method.c: Same change.
1554 * objects.c: Same change.
1555 * sarray.c: Same change.
1556 * selector.c: Same change.
1557 * sendmsg.c: Same change.
1558 * thr.c: Same change.
1560 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1562 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1564 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1566 * archive.c: Removed not needed includes.
1567 * class.c: Same change.
1568 * hash.c: Same change.
1569 * misc.c: Same change.
1570 * nil_method.c: Same change.
1571 * objects.c: Same change.
1572 * sarray.c: Same change.
1573 * sendmsg.c: Same change.
1574 * thr.c: Same change.
1576 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1578 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1579 all the objc/*.h files.
1580 * objc-private/runtime.h: New file.
1581 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1582 files) instead of objc/runtime.h.
1583 * class.c: Same change.
1584 * hash.c: Same change.
1585 * init.c: Same change.
1586 * misc.c: Same change.
1587 * nil_method.c: Same change.
1588 * objects.c: Same change.
1589 * sarray.c: Same change.
1590 * selector.c: Same change.
1591 * sendmsg.c: Same change.
1592 * thr.c: Same change.
1594 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1596 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1597 'struct objc_selector' and 'sel_eq' moved here.
1598 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1599 'struct objc_procotol' moved here.
1600 * objc/deprecated/struct_objc_class.h: New file. Definition of
1601 'struct objc_class' moved here.
1602 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1604 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1605 * objc/message.h: New file. Definitions for relval_t, apply_t,
1606 arglist, arglist_t and objc_msg_lookup were moved here.
1607 * objc/objc.h: Include the above files instead of defining the
1608 corresponding structs, types and functions here. Added new opaque
1609 definitions for SEL and Class. Use Class and not 'struct
1610 objc_class *' in the definition of 'struct objc_object'.
1611 Commented all types defined in the file. Removed special
1612 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1614 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1615 objc_unexpected_exception.h.
1616 * objc/objc-api.h: Updated include of
1617 objc-unexpetected-exception.h
1618 * objc/objc-exception.h: Updated comments.
1619 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1620 files. Reindented list of files.
1622 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1624 * objc/objc-api.h (objc_trace): Unused variable removed.
1626 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1628 * objc/deprecated: New directory.
1629 * objc/deprecated/README: New file.
1630 * objc/README: New file.
1631 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1632 objc/typedstream.h replaced with a placeholder including the file
1633 from the deprecated/ directory.
1634 * objc/deprecated/objc-unexpected-exception.h: New file with the
1635 definition of _objc_unexpected_exception.
1636 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1637 instead of defining _objc_unexpected_exception.
1638 * objc/deprecated/Object.h: New file with the deprecated Object
1639 methods in a 'Deprecated' category.
1640 * objc/Object.h Include deprecated/Object.h instead of defining
1641 the deprecated methods.
1642 * Object.m: Moved deprecated methods into 'Deprecated' category.
1643 * objc-private: New directory.
1644 * objc-private/README: New file.
1645 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1646 (install-headers): Create installation directory for
1647 OBJC_DEPRECATED_H headers, and install them.
1649 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1651 * objc/objc-exception.h: Fixed include of objc.h.
1653 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1655 * objc/objc-exception.h: New file.
1656 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1657 (objc_set_exception_matcher): Implemented.
1658 (objc_exception_throw): Use the uncaught exception handler if set.
1659 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1661 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1662 up. Removed segmentation fault when value is 'nil'.
1663 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1665 * Makefile.in (exception.lo, exception_gc.lo): Use
1666 -Wno-deprecated-declarations when compiling.
1667 (OBJC_H): Added objc-exception.h
1669 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1671 * objc/typedstream.h: Deprecate all functions in the file. This
1673 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1674 [-awake]): Documented that these methods are deprecated. Added a
1675 brief description of the Object class and its relationship to the
1677 * Makefile.in: Compile archive.c and Object.m with
1678 -Wno-deprecated-declarations.
1680 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1682 Removed obsolete intermediate threading layer.
1683 * thr.c: Use __gthread_objc_xxx functions directly instead of
1684 __objc_thread_xxx ones.
1685 * objc/thr.h: Removed prototypes of no longer existing
1686 __objc_thread_xxx functions.
1687 * Makefile.in: Removed thr-objc.lo.
1688 * thr-dce.c: File removed.
1689 * thr-decosf1.c: File removed.
1690 * thr-irix.c: File removed.
1691 * thr-mach.c: File removed.
1692 * thr-objc.c: File removed.
1693 * thr-os2.c: File removed.
1694 * thr-posix.c: File removed.
1695 * thr-pthreads.c: File removed.
1696 * thr-rtems.c: File removed.
1697 * thr-single.c: File removed.
1698 * thr-solaris.c: File removed.
1699 * thr-vxworks.c: File removed.
1700 * thr-win32.c: File removed.
1701 * README.threads: File removed.
1702 * THREADS.MACH: File removed.
1705 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1707 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1709 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1711 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1712 Add a comment as to why, update FIXME comments.
1714 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1716 * makefile.dos: Obsolete file removed.
1718 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1720 * aclocal.m4: Regenerate.
1722 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1725 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1726 Cygwin and MinGW hosts.
1727 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1728 (libobjc.dll): Likewise.
1729 * configure: Regenerate.
1731 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1733 * configure: Regenerate.
1735 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1737 * sarray.c (sarray_free): Use old_buckets variable.
1738 * encoding.c (objc_layout_structure_next_member): Remove unused
1739 bfld_type_size variable.
1741 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1743 * configure.ac (AC_PREREQ): Bump to 2.64.
1745 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1747 * aclocal.m4: Regenerate.
1748 * configure: Regenerate.
1749 * config.h.in: Regenerate.
1751 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1753 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1755 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1757 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1759 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1761 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1763 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1765 2009-04-09 Nick Clifton <nickc@redhat.com>
1767 * sendmsg.c: Change copyright header to refer to version 3 of
1768 the GNU General Public License with version 3.1 of the GCC
1769 Runtime Library Exception and to point readers at the COPYING3
1770 and COPYING3.RUNTIME files and the FSF's license web page.
1771 * NXConstStr.m: Likewise.
1772 * Object.m: Likewise.
1773 * Protocol.m: Likewise.
1774 * archive.c: Likewise.
1775 * class.c: Likewise.
1776 * encoding.c: Likewise.
1777 * exception.c: Likewise.
1781 * libobjc_entry.c: Likewise.
1782 * linking.m: Likewise.
1784 * nil_method.c: Likewise.
1785 * objc/NXConstStr.h: Likewise.
1786 * objc/Object.h: Likewise.
1787 * objc/Protocol.h: Likewise.
1788 * objc/encoding.h: Likewise.
1789 * objc/hash.h: Likewise.
1790 * objc/objc-api.h: Likewise.
1791 * objc/objc-decls.h: Likewise.
1792 * objc/objc-list.h: Likewise.
1793 * objc/objc.h: Likewise.
1794 * objc/runtime.h: Likewise.
1795 * objc/sarray.h: Likewise.
1796 * objc/thr.h: Likewise.
1797 * objc/typedstream.h: Likewise.
1798 * objects.c: Likewise.
1799 * sarray.c: Likewise.
1800 * selector.c: Likewise.
1801 * thr-dce.c: Likewise.
1802 * thr-decosf1.c: Likewise.
1803 * thr-irix.c: Likewise.
1804 * thr-mach.c: Likewise.
1805 * thr-objc.c: Likewise.
1806 * thr-os2.c: Likewise.
1807 * thr-posix.c: Likewise.
1808 * thr-pthreads.c: Likewise.
1809 * thr-rtems.c: Likewise.
1810 * thr-single.c: Likewise.
1811 * thr-solaris.c: Likewise.
1812 * thr-vxworks.c: Likewise.
1813 * thr-win32.c: Likewise.
1815 * libobjc.def: Change copyright header to refer to version 3 of
1816 the GNU General Public License and to point readers at the COPYING3
1817 file and the FSF's license web page.
1818 * makefile.dos: Likewise.
1820 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1822 * Makefile.in: Change copyright header to refer to version
1823 3 of the GNU General Public License and to point readers at the
1824 COPYING3 file and the FSF's license web page.
1825 * configure.ac: Likewise.
1827 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1828 David Ayers <ayers@fsfe.org>
1831 * objc/objc-api.h (_objc_unexpected_exception): Declare
1832 new hook. Update copyright dates.
1833 * exception.c (objc_exception_throw): Use hook. Update
1835 * libobjc.def (_objc_unexpected_exception): Export hook.
1836 Update copyright dates.
1838 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1840 * configure: Regenerate.
1842 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1844 * configure: Regenerate.
1846 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1848 * Object.m (errno): Replaced by errno.h include.
1849 (compare): Cast self to id to prevent warning on comparison.
1850 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1852 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1853 * thr-win32.c (__objc_thread_detach): Remove type warning.
1854 (__objc_thread_id): Likewise.
1855 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1858 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1859 Steve Ellcey <sje@cup.hp.com>
1861 * configure: Regenerate for new libtool.
1862 * config.h.in: Regenerate for new libtool.
1864 2008-07-18 Matthias Klose <doko@ubuntu.com>
1866 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1868 2008-07-18 Matthias Klose <doko@ubuntu.com>
1870 * Makefile.in: Include ../boehm-gc/threads.mk.
1871 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1873 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1875 * Makefile.in (install-info): New stub target.
1877 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1879 * configure: Regenerate.
1881 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1883 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1884 if HAVE_GETIPINFO is not defined.
1886 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1888 * Object.m (compare): Add type id.
1889 * objc/Object.h: Likewise.
1890 * archive.c (objc_read_class): Use size_t to extend version to be
1891 size of pointer scalar width.
1892 * sendmsg.c (rtx): Undefine it before redefinition.
1893 (__objc_print_dtable_stats): Cast arguments to long as intended.
1895 2008-05-30 Julian Brown <julian@codesourcery.com>
1897 * exception.c (__objc_exception_class): Initialise as constant
1898 array for ARM EABI. Change macro to static const for non-ARM EABI.
1899 (ObjcException): Add note about structure layout. Remove landingPad
1900 and handlerSwitchValue for ARM EABI.
1901 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1903 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1904 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1905 ARM EABI unwinding support.
1906 (objc_exception_throw): Use memcpy to initialise exception class.
1908 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1910 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1911 (rs6000_special_round_type_align): Update.
1913 2008-05-09 Julian Brown <julian@codesourcery.com>
1915 * Makefile.in (LTLDFLAGS): New.
1916 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1918 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1921 * aclocal.m4: Regenerate.
1922 * configure: Regenerate.
1924 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1926 * configure: Regenerate.
1928 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1930 * configure.ac: Don't run config-ml.in directly.
1931 (multilib_arg): New.
1932 * configure: Regenerated.
1934 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1937 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1938 of _Unwind_Word for variables which are used in
1939 read_uleb128/read_sleb128.
1940 (PERSONALITY_FUNCTION): Likewise.
1942 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1944 * aclocal.m4: Regenerated.
1946 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1948 * configure.ac: Fix a typo in *-*-darwin clause.
1949 * configure: Regenerated.
1951 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1953 * configure.ac: Fix a typo.
1954 * configure: Regenerated.
1956 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1958 * configure: Regenerate.
1960 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1962 * Makefile.in: Replace all uses of libext with libsuffix.
1963 * configure.ac: Likewise.
1964 * configure: Regenerate.
1967 * Makefile.in: Remove all uses of $(libext).
1969 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1971 * Makefile.in: Remove all uses of $(libext).
1973 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1975 * configure: Regenerate.
1976 * aclocal.m4: Regenerate.
1978 2007-04-21 Andrew Ruder <andy@aeruder.net>
1980 * sendmsg.c (__objc_get_forward_imp): Call
1981 __objc_msg_forward2 for real.
1983 2007-04-09 Andrew Ruder <andy@aeruder.net>
1985 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1986 external libraries to provide a function that returns the real
1987 forwarding function based on both the selector and the receiver.
1988 * objc/objc-api.h: Define __objc_msg_forward2.
1990 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1992 * Makefile.in: Add dummy install-pdf target.
1994 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1996 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1999 2006-10-31 Geoffrey Keating <geoffk@apple.com>
2001 * encoding.c (darwin_rs6000_special_round_type_align): New.
2003 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2005 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
2006 * configure.ac: Use multi.m4 from aclocal rather than custom
2007 code. Use multi_basedir instead of toplevel_srcdir.
2008 * aclocal.m4: Regenerate.
2009 * configure: Regenerate.
2011 2006-10-10 Brooks Moses <bmoses@stanford.edu>
2013 * Makefile.in: Added empty "pdf" target.
2015 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
2017 * configure: Regenerate.
2019 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2021 * Makefile.in: Add install-html target. Add install-html to .PHONY
2023 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2026 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2028 2006-01-24 David Ayers <d.ayers@inode.at>
2031 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2032 and insure the new strings are '\0' termintated.
2034 2006-01-24 David Ayers <d.ayers@inode.at>
2037 * configure.ac: Add include directives for --enable-objc-gc.
2038 * Makefile.in: Ditto.
2039 * configure: Regenerate.
2041 * gc.c (__objc_class_structure_encoding): Increment the used bytes
2042 instead of the local pointer to them.
2044 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2047 * objc/objc-api.c (_C_COMPLEX): New define.
2048 * encoding.c (objc_sizeof_type): Handle _C_Complex.
2049 (objc_alignof_type): Likewise.
2050 (objc_skip_typespec): Likewise.
2052 2005-12-15 David Ayers <d.ayers@inode.at>
2055 * README (+load,+initialize): Fix documentation to reflect
2056 intended and implemented semantics for +load and +initialize.
2058 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2060 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2062 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2063 (rs6000_special_round_type_align): Update for the ABI fix.
2064 (objc_layout_finish_structure): Correct the encoding which is passed to
2067 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2070 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2071 but use the struct layout functions.
2072 (objc_alignof_type): Likewise.
2073 (objc_layout_structure): Handle _C_UNION_B also.
2074 (objc_layout_structure_next_member): Likewise.
2075 (objc_layout_finish_structure): Likewise.
2077 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2080 * objc/objc-api.h (_C_BOOL): New define.
2081 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2082 (objc_alignof_type): Likewise.
2083 (objc_skip_typespec): Likewise.
2085 2005-11-20 David Ayers <d.ayers@inode.at>
2088 * objc/hash.h: Remove deprecated hash API.
2089 * hash_compat.c: Remove.
2090 * Makefile.in: Remove reference to hash_compat.c.
2092 * configure.ac (VERSION): Bump library version to 2:0:0.
2093 * configure: Regenerate.
2095 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
2098 * thr-objc.c (_XOPEN_SOURCE): Define.
2100 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
2103 * objc/objc-api.h (struct objc_ivar): Move definition to
2106 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
2107 Rasmus Hahn <rassahah@neofonie.de>
2110 * archive.c (objc_write_type): Correct the element offset.
2111 (objc_read_type): Likewise.
2113 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2115 * All files: Update FSF address.
2117 2005-08-13 Marcin Koziej <creep@desk.pl>
2118 Andrew Pinski <pinskia@physics.uc.edu>
2121 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2123 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2125 * Makefile.in (extra_ldflags_libobjc): New.
2126 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2127 (libobjc_gc$(libext).la): Likewise.
2128 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2129 "-Wl,-single_module".
2130 * configure: Regenerate.
2131 * linking.m (_objcInit): Remove.
2133 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2136 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2138 2005-06-08 David Ayers <d.ayers@inode.at>
2140 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2141 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2142 objc/runtime.h, objc/sarray.h, objc/thr.h,
2143 objc/typedstream.h: Do not include Objective-C headers as
2146 2005-06-07 David Ayers <d.ayers@inode.at>
2148 * archive.c, init.c, selector.c: Include hash.h.
2149 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2150 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2151 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2152 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2153 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2154 Include Objective-C headers with quotes and objc/ directory
2157 2005-05-19 Richard Henderson <rth@redhat.com>
2159 * exception.c: Revert last change.
2161 2005-05-19 David Ayers <d.ayers@inode.at>
2163 * exception.c: Include tsystem.h for unwind.h.
2165 2005-05-09 Mike Stump <mrs@apple.com>
2167 * configure: Regenerate.
2169 2005-04-12 Mike Stump <mrs@apple.com>
2171 * configure: Regenerate.
2173 2005-03-21 Zack Weinberg <zack@codesourcery.com>
2175 * Makefile.in: Set gcc_version here.
2176 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2177 in definition of toolexeclibdir so that $(gcc_version) is expanded
2179 * aclocal.m4, configure: Regenerate.
2181 2005-03-03 David Ayers <d.ayers@inode.at>
2183 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2184 version reference. Correct typo.
2186 2005-03-02 David Ayers <d.ayers@inode.at>
2189 * Makefile.in (OBJS): Add hash_compat.lo.
2190 (OBJS_GC): Add hash_compat_gc.lo.
2191 (hash_compat_gc.lo): New target and rule.
2192 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2193 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2194 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2195 with objc_. Add deprecated non prefixed inlined versions.
2196 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2198 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2199 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2201 * hash_compat.c: New file.
2202 * archive.c: Update callers.
2204 * selector.c: Likewise.
2205 * libobjc.def: Add objc_ versions of hash functions.
2207 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2210 * Makefile.in (GTHREAD_FLAGS): Remove.
2211 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2212 * thr-objc.c: Include config.h.
2213 * configure.ac: Instead of looking at GCC's makefile, figure out if
2214 GTHREAD_FLAGS should be defined by looking at the `thread model'
2216 * configure: Regenerate.
2217 * config.h.in: Regenerate.
2219 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2222 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2223 (Determine CFLAGS for gthread): Use $host_subdir.
2224 * configure: Regenerate.
2225 * Makefile.in (host_subdir): New.
2228 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2231 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
2233 Include limits.h and stdlib.h.
2234 Define BITS_PER_WORD.
2236 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
2238 * selector.c (__objc_init_selector_tables): Add missing void to
2241 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
2243 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2244 * configure, aclocal.m4: Regenerate.
2246 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2248 * configure: Regenerate for libtool change.
2250 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2252 * configure: Regenerate for libtool reversion.
2254 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2256 * configure: Regenerate for libtool change.
2258 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2260 * aclocal.m4, config.h.in: Regenerate.
2262 2004-10-08 Mike Stump <mrs@apple.com>
2263 Andrew Pinski <pinskia@physics.uc.edu>
2265 * aclocal.m4: Rename to ...
2266 * acinclude.m4: here and also use m4_include instead of sinclude.
2267 * aclocal.m4: Regenerate.
2268 * configure: Regenerate.
2269 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
2270 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
2272 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2274 * archive.c: Fix all the warnings about passing unsigned char*
2275 to char* and the other way too.
2277 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2280 * exception.c: Include config.h
2281 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2283 * configure.ac: Find out what exception handling code we use.
2284 * configure: Regenerate.
2285 * config.h.in: New file, regenerate.
2287 2004-09-16 Andrew Pinski <apinski@apple.com>
2289 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2291 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2293 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2294 ACX_NONCANONICAL_TARGET.
2295 * configure: Regenerate.
2297 2004-08-13 Ziemowit Laski <zlaski@apple.com>
2299 * objc/sarray.h: Hoist include of assert.h near the top of file,
2300 and mark the remainder of the file 'extern "C"'.
2302 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2304 * objc/Object.h: Move includes out of extern "C" blocks.
2305 * objc/encoding.h: Likewise.
2306 * objc/hash.h: Likewise.
2307 * objc/objc-api.h: Likewise.
2308 * objc/runtime.h: Likewise.
2309 * objc/sarray.h: Likewise.
2310 * objc/typedstream.h: Likewise.
2312 2004-08-12 Ziemowit Laski <zlaski@apple.com>
2314 * objc/NXConstStr.h: Update copyright date; bracket with
2315 'extern "C"' for C++ use; make include syntax consistent
2316 by using <...> instead of "..."; hoist <objc/...> includes
2317 above the 'extern "C"' block.
2318 * objc/Object.h: Likewise.
2319 * objc/Protocol.h: Likewise.
2320 * objc/encoding.h: Likewise.
2321 * objc/hash.h: Likewise.
2322 * objc/runtime.h: Likewise.
2323 * objc/sarray.h: Likewise.
2324 * objc/thr.h: Likewise.
2325 * objc/typedstream.h: Likewise.
2326 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2327 (objc_static_instances): For C++ case, do away with
2329 (objc_method): Hoist definition to file scope.
2330 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2331 class_get_instance_method, class_create_instance,
2332 class_get_class_name, class_get_instance_size,
2333 class_get_meta_class, class_get_super_class, class_get_version,
2334 class_is_class, class_is_meta_class, class_set_version,
2335 class_get_gc_object_type, class_ivar_set_gcinvisible,
2336 get_imp): Rename 'class' parameter to '_class'.
2337 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2338 * objc/objc.h: Update copyright date.
2339 (arglist_t): Provide a union tag.
2341 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2343 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2344 but instead use the attribute noreturn.
2346 2004-06-28 Zack Weinberg <zack@codesourcery.com>
2348 * encoding.c: Rename target_flags with a #define to avoid
2349 conflict with a prior declaration.
2351 2004-06-24 Andrew Pinski <apinski@apple.com>
2353 * objc/encoding.h: Wrap the functions with extern "C" for C++
2355 * objc/hash.h: Likewise.
2356 * objc/objc-api.h: Likewise.
2357 * objc/objc-list.h: Likewise.
2358 * objc/runtime.h: Likewise.
2359 * objc/sarray.h: Likewise.
2360 * objc/thr.h: Likewise.
2361 * objc/typedstream.h: Likewise.
2364 2004-06-21 Nick Clifton <nickc@redhat.com>
2366 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2369 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
2371 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2372 (exception_gc.lo): New.
2373 (OBJS_GC): Add exception_gc.lo.
2375 2004-06-17 Richard Henderson <rth@redhat.com>
2377 * exception.c: New file.
2378 * Makefile.in (exception.lo): New.
2381 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2383 * linking.m (_objcInit): New empty function
2386 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2388 * configure.ac: Support --enable-shared=libobjc.
2389 * configure: Regenerate.
2392 * configure.ac: Do not disable shared by default.
2393 * configure: Regenerate.
2395 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2397 * Protocol.m ([-isEqual:]): Small optimizations returning
2398 immediately if the argument is equal to self, and accessing
2399 the argument's name directly if it's a protocol.
2401 2004-06-03 David Ayers <d.ayers@inode.at>
2403 * Protocol.m ([-isEqual:]): Test the class of the argument.
2405 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2407 * configure.ac (includedir): Rename to ...
2409 * Makefile.in: s/includedir/includedirname/.
2412 * configure.ac (includedir): Set to "include"
2414 (libext) Set to empty except for Darwin.
2415 * configure: Regenerate
2416 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2417 s/include/$(includedir)/g.
2419 2004-05-25 Daniel Jacobowitz <drow@false.org>
2421 * Makefile.in: Add .NOEXPORT.
2423 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2425 Merge from the libobjc-branch
2426 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
2428 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
2430 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
2432 * Makefile.in (OBJC_H): Add objc-deps.h.
2434 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
2436 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2437 ([-hash], [-isEqual:]): New methods.
2439 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
2441 * sarray.c (sarray_free): Add a better comment.
2443 2004-01-27 Adam Fedor <fedor@gnu.org>
2445 * hash.c (hash_add): Cast cachep to int.
2446 * selector.c (__sel_register_typed_name): Cast
2447 soffset_decode to int.
2449 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
2451 * selector.c: Rename register_selectors_from_list to
2452 __objc_register_selectors_from_list. Update caller.
2453 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2454 while registering selectors. Use __sel_register_typed_name instead
2455 of sel_register_typed_name. Check for NULL method_name:s.
2456 (pool_alloc_selector): New function.
2457 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2458 selector structures.
2459 * sendmsg.c (class_add_method_list): Use
2460 __objc_register_selectors_from_list.
2461 * objc/runtime.h: Add __objc_register_selectors_from_list.
2463 2004-01-25 Adam Fedor <fedor@gnu.org>
2464 Nicola Pero <n.pero@mi.flashnet.it>
2465 Andrew Pinski <pinskia@physics.uc.edu>
2467 * objc/objc-decls.h: New file.
2468 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2469 (_objc_load_callback): Likewise.
2470 (_objc_object_alloc): Likewise.
2471 (_objc_object_copy): Likewise.
2472 (_objc_object_dispose): Likewise.
2474 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2476 * archive.c: s/__inline__/inline
2477 * sendmsg.c: Likewise.
2479 * encoding.c: Remove FIXME about the warning
2480 about unused variable.
2481 * sendmsg.c: Add a FIXME comment saying that
2482 this should be using libffi.
2484 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
2487 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2489 * archive.c (objc_read_class): Initialize class_name.
2490 (objc_read_selector): Initialize selector_name.
2492 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
2494 * Makefile.in (toolexecdir): Remove trailing space.
2496 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2499 * configure.ac: De-precious CC so multilibs work.
2500 * configure: Regenerate.
2502 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2504 * configure.ac: Restore toolexecdir.
2505 * Makefile.in: Restore toolexecdir.
2506 * configure: Regenerate.
2508 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2510 * configure.ac: Remove (unused) glibcpp_prefixdir.
2511 * configure: Regenerate.
2513 * configure.in: Rename to configure.ac.
2514 * Makefile.in: Update to match.
2516 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2517 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2518 * configure.in: Remove glibcpp_toolexecdir (unused).
2519 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2520 config.h or stamp-h (unused). Move one comment to the right place.
2521 * configure: Regenerate.
2522 * config.h.in: Remove (unused).
2524 * config.h.in: Regenerate with autoheader.
2526 * Makefile.in: Remove (unused) gcc_version_trigger.
2527 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2528 gcc_version_trigger.
2529 * configure: Regenerate.
2531 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2532 Sort file into sections. Remove dnl where appropriate. Fix
2534 * configure: Regenerate.
2536 * configure.in: Replace old AC_PROG_CC hack with new one.
2537 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2538 are no subdirectory output files, so this is fine). Change prereq
2540 * aclocal.m4: Include ../config/no-executables.m4.
2541 * configure: Regenerate with autoconf 2.59.
2543 * configure.in: Improve comments on gthread_cflags. Improve m4
2544 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2545 * configure: Regenerate.
2547 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2548 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2549 redundant checks for values of RANLIB, AR, INSTALL.
2550 * configure: Regenerate.
2552 * configure.in: Clean up handling of
2553 --enable-version-specific-runtime-libs and related variables;
2554 replace 'if test' with 'case' where reasonable. Fix comments.
2555 Remove useless libstdcxx_interface.
2556 * configure: Regenerate.
2558 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2559 Replace uses of target_alias with target_noncanonical.
2560 * aclocal.m4: Include ../config/acx.m4.
2561 * configure: Regenerate.
2562 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2563 Fix copyright statement.
2565 * configure.in: Hand-inline bulky, confusing macros from
2566 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2567 Update copyright notice. Remove stuff for automake, which isn't
2568 used in this directory. Remove emacs local variables.
2569 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2570 * configure: Regenerate.
2572 2004-03-16 Manfred Hollstein <mh@suse.com>
2574 * Makefile.in, configure.in, configure: Update copyright years.
2576 2004-03-15 Manfred Hollstein <mh@suse.com>
2578 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2579 definition from configure.in.
2580 * configure.in (PACKAGE): Add definition.
2581 (VERSION): Add definition; substitute it in output files.
2582 * configure: Re-generate.
2584 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2586 * objc/hash.h (hash_string, compare_strings):
2587 Add type-casts to make Objective-C++ happy.
2588 * objc/typedstream.h (objc_get_stream_class_version):
2589 Rename parameter from 'class' to 'class_name' to make
2590 Objective-C++ happy.
2592 2004-03-01 Michael Matz <matz@suse.de>
2594 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2596 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2598 * objc/objc-api.h (objc_super): The 'class' field shall
2599 be named 'super_class' #ifdef __cplusplus.
2601 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2604 * encoding.c (rs6000_special_round_type_align): Define.
2606 2004-01-14 Adam Fedor <fedor@gnu.org>
2609 * selector.c (__objc_register_instance_methods_to_class): Free
2610 new_list if not used.
2612 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
2615 * sarray.c (sarray_free): Free array->is_copy_of latter.
2617 2003-12-01 Zack Weinberg <zack@codesourcery.com>
2620 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2621 instance_methods if it's NULL.
2622 (descriptionForClassMethod): Likewise for class_methods.
2624 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2626 * Makefile.in (runtime-info.h): Remove -Wp.
2628 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2630 * Makefile.in (CC1OBJ): Remove.
2631 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2633 Use .m extension for temporary file.
2634 Remove assembler temp file.
2636 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2638 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2640 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2642 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2644 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2646 * configure: Regenerate.
2648 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
2650 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2651 (libdir)/gcc-lib/ when installing.
2652 * configure: Regenerate.
2654 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2657 * sendmsg.c (get_imp): Fixed rare threading problem.
2658 (__objc_responds_to): Similar fixes.
2659 (objc_msg_lookup): Similar fixes.
2660 (__objc_init_install_dtable): Lock the runtime before checking if the
2663 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2665 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2666 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2667 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2668 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
2669 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
2670 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
2671 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2672 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2673 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2674 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2675 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2677 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2678 Nicola Pero <n.pero@mi.flashnet.it>
2681 * init.c (class_superclass_of_class): New function.
2682 (create_tree_of_subclasses_inherited_from): Use it.
2683 (__objc_tree_insert_class): Likewise.
2684 (class_is_subclass_of_class): Likewise.
2686 2003-04-11 David Chad <davidc@freebsd.org>
2687 Loren J. Rittle <ljrittle@acm.org>
2690 * objc/hash.h (hash_string): Constify correctly.
2691 (compare_ptrs): Use direct compare.
2692 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2693 * objc/sarray.h: Global rename index to indx to avoid shadow.
2695 2003-03-12 Andreas Schwab <schwab@suse.de>
2697 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2698 glibcpp_toolexeclibdir.
2699 * configure: Rebuilt.
2701 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2703 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2705 * configure: Rebuilt.
2707 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2709 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2710 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2711 version_specific_libs is enabled.
2712 * configure: Rebuilt.
2714 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2716 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2717 (install-libs, install-headers): Prepend $(DESTDIR) to
2718 destination paths in all (un)installation commands.
2720 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2722 * thr-objc.c: Include coretypes.h and tm.h.
2724 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2726 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2728 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2730 * configure.in: Remove skip-this-dir support.
2731 * configure: Regenerate.
2733 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2735 * Makefile.in (all): Fix multilib parallel build.
2737 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2739 * sendmsg.c (nil_method): Declare not to take a variable number of
2741 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2742 (objc_msg_lookup_super): The same.
2744 2002-09-10 Jan Hubicka <jh@suse.cz>
2746 * nil_method.c (nil_method): No longer defined with variable
2749 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2751 * objc/encoding.h: Fix formatting.
2752 * objc/hash.h: Likewise.
2753 * objc/objc-api.h: Likewise.
2754 * objc/runtime.h: Likewise.
2755 * objc/thr.h: Likewise.
2756 * archive.c: Likewise.
2757 * class.c: Likewise.
2758 * encoding.c: Likewise.
2763 * nil_method.c: Likewise.
2764 * objects.c: Likewise.
2765 * sarray.c: Likewise.
2766 * selector.c: Likewise.
2767 * sendmsg.c: Likewise.
2768 * thr-mach.c: Likewise.
2771 2002-06-25 DJ Delorie <dj@redhat.com>
2773 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2774 GLIBCPP_TOPREL_CONFIGURE.
2775 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2776 * configure: Regenerate.
2778 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2780 * Object.m (forward, read, write): Fix unused parameter warnings.
2781 * encoding.c: Include <stdlib.h>.
2782 (target_flags): Mark with attribute unused.
2784 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2785 (__objc_generate_gc_type_description): Prototype.
2786 * selector.c (__objc_selector_max_index): Change to unsigned int.
2788 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2790 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2791 we always have a return value: if __objc_msg_forward does not
2792 supply a forwarding implementation, return the default
2793 __builtin_apply based one.
2795 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2797 * Object.m: Fix signed/unsigned warning.
2798 * Protocol.m: Likewise.
2799 * archive.c: Always include stdlib.h.
2800 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2801 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2802 Fix signed/unsigned warning.
2803 (objc_write_type, objc_read_type, objc_write_types,
2804 objc_read_types): Ensure ctype 8-bit safety.
2805 (__objc_no_write, __objc_no_read): Mark unused parameters.
2806 * class.c (class_table_setup): Specify void arg.
2807 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2808 objc_skip_typespec, objc_skip_offset,
2809 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2810 (objc_layout_structure_next_member): Ensure variables are
2812 * gc.c (__objc_generate_gc_type_description,
2813 class_ivar_set_gcinvisible): Mark unused parameters.
2814 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2816 (__objc_init_protocols) Fix signed/unsigned warning.
2817 * nil_method.c (nil_method): Mark unused parameters.
2818 * thr.h (objc_thread_callback): Specify void arg.
2819 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2820 signed/unsigned warning.
2821 (sarray_free): Fix formatting.
2822 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2823 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2825 2002-06-09 Andreas Jaeger <aj@suse.de>
2827 * encoding.c (objc_layout_structure_next_member): Remove unused
2830 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2832 * Makefile.in (SHELL): Set to @SHELL@.
2834 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2836 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2838 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2839 * configure: Regenerate.
2841 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2843 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2844 script entry, and set LD to it when configuring multilibs.
2845 * configure: Rebuilt.
2847 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2849 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2851 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2854 * objc/objc-api.h (struct objc_protocol_list): Change type of
2855 member count from int to size_t.
2857 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2860 * aclocal.m4: Replace with version copied from libstdc++-v3.
2861 * configure.in: Update for changes to aclocal and Makefile.
2862 * configure: Regenerate.
2863 * Makefile.in: Correct install of multilibs and shared libs, use
2864 INSTALL_DATA for include files.
2866 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2868 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2869 categories - when an unclaimed category was found, the loop was
2870 doing two steps forward instead of one, so that in certain cases
2871 it was failing to properly load all the categories. (Reported
2872 with fix by Alexander Malmberg <alexander@malmberg.org>).
2874 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2876 * encoding.c: Add target_flags.
2878 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2880 * objc/objc-api.h (_C_VECTOR): New.
2882 * encoding.c (VECTOR_TYPE): New.
2884 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2886 * class.c: Rewritten the class table to use optimized, lock-free
2887 lookup. This more than doubles the speed of class method
2888 invocations. (class_table_setup), (class_table_insert),
2889 (class_table_replace), (class_table_get_safe),
2890 (class_table_next), (class_table_print),
2891 (class_table_print_histogram): New functions.
2892 (__objc_init_class_tables): Use class_table_setup.
2893 (__objc_add_class_to_hash): Use class_table_get_safe and
2894 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2895 assert the existence of the table; do not lock the runtime; use
2896 class_table_get_safe. (objc_next_class): Use class_table_next.
2897 (__objc_resolve_class_links): Use class_table_next.
2898 (class_pose_as): Use class_table_replace.
2900 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2902 * gc.c: Removed the DEBUG declaration.
2904 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2906 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2907 rather than through objc_thread_id, to save a function call.
2908 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2911 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2913 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2914 to cast an id to a Class, which can not be done. Make the check
2915 by using CLS_ISMETA on the class pointer instead.
2916 (object_is_meta_class): Similar fix.
2918 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2920 * configure.in (AC_EXEEXT): Work around in case it expands to
2921 nothing, as in autoconf 2.50.
2922 * acinclude.m4: Likewise.
2923 * configure: Rebuilt.
2925 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2927 * THREADS: Explain that when we compile libobjc inside GCC, we
2928 always use thr-objc.c as a backend, which uses GCC's thread code.
2930 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2932 * init.c (__objc_send_message_in_list): When setting a new entry
2933 in __objc_load_methods use the method IMP as key, but check to see
2934 if the method is in the hashtable by looking at the IMP also.
2935 Also ... call the method after adding it to the hashtable rather
2936 than before ... thus preventing an obscure possibility of infinite
2937 recursion if a +load method itself loads a subclass.
2939 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2941 * init.c (__objc_send_message_in_list): When setting a new entry
2942 in __objc_load_methods use the method name as key, not the method
2943 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2945 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2947 * objc-features.texi: Move to ../gcc/objc.texi.
2949 * Makefile.in: Don't generate documentation from
2952 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2954 * fdl.texi: New file.
2955 * objc-features.texi: Simplify.
2956 * Makefile.in: Adjust accordingly.
2958 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2960 * objc-features.texi: Use the GFDL.
2962 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2964 * encoding.c (REAL_TYPE): Define.
2966 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2968 * encoding.c (TYPE_MODE): Define.
2970 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2972 * thr.c (objc_thread_add): New function.
2973 (objc_thread_remove): Ditto.
2974 * objc/thr.h: Declare them.
2975 * libobjc.def: Mention them.
2977 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2979 * objc-features.texi: Document the @compatibility_alias compiler
2980 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2982 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2984 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2986 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2988 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2989 we're not interested in the result and they might fail.
2990 * configure: Regenerated.
2992 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2994 * objc-features.texi: Use @email.
2996 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2998 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
3001 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
3003 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
3004 determines the value dynamically.
3006 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
3008 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
3009 libraries to provide a function that returns the real forwarding
3010 function. This can alleviate problems __builtin_apply() and
3011 friends have on various platforms. (Solution suggested by Helge
3014 * objc/objc-api.h: Define __objc_msg_forward.
3016 * sendmsg.c: Define gen_rtx_REG.
3018 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3020 * thr-rtems.c: New file. Stub to compile.
3022 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3024 * configure: Rebuilt with new libtool.m4.
3026 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3028 * configure.in: Create a config.h file. Check for <sched.h>.
3029 * configure: Regenerate.
3031 * config.h.in: Check for <sched.h>.
3033 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
3035 * configure: Regenerate after change to ../libtool.m4.
3037 2000-08-14 Andreas Schwab <schwab@suse.de>
3039 * objc-features.texi (Top): Move @menu at end of node.
3041 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
3043 * objc-features.texi: Move @node Top before @menu.
3045 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3047 * objc-features.texi: Documented the new -fconstant-string-class
3050 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3052 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3053 improve the Posix thread support for Objective-C.
3055 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3057 * aclocal.m4: Replace copy of ../libtool.m4 with
3058 sinclude(../libtool.m4).
3060 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
3062 * configure.in: Added libtool support; build shared libraries
3063 if --enable-shared was passed on command line.
3064 * Makefile.in: Modified most compilation commands to use libtool.
3065 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3066 libtool distribution.
3068 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3070 * sarray.c, Object.m: Removed the explicit prototypes for strlen
3071 and memcpy on 64-bit platforms (Suggested by Rodney Brown
3074 2000-05-12 H.J. Lu (hjl@gnu.org)
3076 * Makefile.in (GTHREAD_FLAGS): New.
3077 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3078 (OBJC_THREAD_FILE): Changed to thr-objc.
3080 * configure.in (GTHREAD_FLAGS): New, check and replace it for
3082 (OBJC_THREAD_FILE): Removed.
3086 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3088 * objc/hash.h: Include string.h.
3090 2000-04-15 David Edelsohn <edelsohn@gnu.org>
3092 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3094 2000-04-12 Jakub Jelinek <jakub@redhat.com>
3096 * Object.m (strlen): Provide prototype on all 64bit platforms,
3098 * sarray.c (memcpy): Likewise.
3099 * encoding.c (objc_layout_finish_structure): Don't use
3100 ROUND_TYPE_ALIGN on sparc.
3102 * encoding.c (objc_layout_structure_next_member): Do the whole
3103 procedure even for the first member, so that we get correct
3106 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3108 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3111 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3113 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3115 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3117 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3119 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3121 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3122 the compiler when building C code.
3124 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3126 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3127 libdir, libsubdir and tooldir.
3129 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3131 * init.c (__objc_force_linking): Make global.
3133 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3135 * configure.in (AC_EXEEXT): Remove call.
3136 (compiler_name): Explicitly check with no extension and .exe
3138 * configure: Regenerate.
3140 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3142 * Makefile.in (CC1OBJ): Define in terms of CC.
3143 (runtime-info.h): Use.
3145 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3147 * objc-features.texi: Updated the URL to Boehm's GC page.
3149 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3151 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3152 the char as being signed (patch from Daniel Jacobowitz
3155 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3157 * configure.in (AC_PREREQ): Update to 2.13.
3158 (AC_EXEEXT): Call to find possible file extension.
3159 (compiler_name): Use.
3160 * configure: Regenerate.
3162 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3164 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3166 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3168 * configure.in (thread_file): Correct and simplify code to find
3170 * configure: Rebuilt.
3172 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3174 * configure.in (compiler_name): Add check to detect if this
3175 language's compiler has been built.
3176 * configure: Regenerate.
3178 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3180 * configure.in: Use AC_PREREQ(2.12.1).
3182 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3184 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3186 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3188 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3190 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3192 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3194 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3196 * objc-features.texi (Top): Changed the email address.
3197 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3199 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3201 * encoding.c: Redefine get_inner_array_type to get the first entry
3204 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3206 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3207 (objc_get_type_qualifiers): Similarly.
3208 * objc/encoding.h (_C_BYREF): Define.
3211 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3213 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3214 works out on 64-bit systems.
3216 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3218 * Makefile.in (INCLUDES): Make it multilib-friendly.
3220 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3222 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3224 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3225 Jeffrey A Law (law@cygnus.com)
3227 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3228 (FLAGS_TO_PASS): Added.
3229 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3231 * archive.c: Change config.h to tconfig.h.
3233 * configure.in: Find gcc's object directory even for multilibs.
3235 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
3237 * configure.in: Escape ^ in grep string.
3238 * configure: Rebuilt.
3240 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3242 * All .h files pushed down into the objc/ subdirectory.
3243 * Makefile.in (copy_headers): Corresponding changes.
3244 * configure.in (AC_INIT): Corresponding changes.
3245 * configure: Rebuilt.
3247 1998-09-30 Ben Elliston <bje@cygnus.com>
3248 Jeff Law <law@cygnus.com>
3250 * Makefile.in: Rewrite.
3252 * configure.in: Likewise.
3254 * configure: Regenerate.
3256 * All .c files. Remove "objc" prefix when including objc header
3257 files. Include tconfig.h, not ../tconfig.h.
3259 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3261 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3262 (get_inner_array_type): Define.
3264 1998-09-21 Ben Elliston <bje@cygnus.com>
3266 * New directory. Moved files from ../gcc/objc.