1 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
3 * encoding.c: Tidied up comments.
4 (objc_skip_variable_name): New static inline function.
5 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
6 the same code over and over.
7 (objc_alignof_type): Same.
8 (objc_aligned_size): Same.
9 (objc_promoted_size): Same.
10 (objc_skip_typespec): Same.
11 (objc_layout_structure_next_member): Same.
12 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
13 historical bug where objc_skip_offset would skip one byte even if
14 there is no offset: check that the first offset digit is actually
15 a digit before skipping it.
16 (objc_skip_type_qualifiers): Mark as inline.
17 (objc_skip_typespec): Mark as inline.
19 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
21 * Makefile.in (C_SOURCE_FILES): Added methods.c.
22 * encoding.c (method_getNumberOfArguments): New.
23 (method_get_number_of_arguments): Call
24 method_getNumberOfArguments.
25 * ivars.c (ivar_getName): Check for NULL variable argument.
26 (ivar_getOffset): Check for NULL variable argument.
27 (ivar_getTypeEncoding): Check for NULL variable argument.
28 (class_copyIvarList): New.
30 * protocols.c (class_copyProtocolList): Check for Nil class_
32 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
33 'struct objc_method_list *' instead of MethodList_t.
34 (class_getMethodImplementation): New.
35 (class_respondsToSelector): New.
36 (class_getInstanceMethod): New.
37 (class_getClassMethod): New.
38 * objc/runtime.h: Updated comments.
39 (class_copyIvarList): New.
40 (class_getInstanceMethod): New.
41 (class_getClassMethod): New.
42 (class_getMethodImplementation): New.
43 (class_respondsToSelector): New.
44 (method_getName): New.
45 (method_getImplementation): New.
46 (method_getTypeEncoding): New.
47 (class_copyMethodList): New.
48 (method_getNumberOfArguments): New.
50 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
52 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
53 instead of objc/objc-api.h.
54 (objc_get_unknown_class_handler): Do not define.
55 (class_isMetaClass): New.
56 (class_getSuperclass): New.
57 (class_getVersion): New.
58 (class_setVersion): New.
59 (class_getInstanceSize): New.
60 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
61 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
63 (get_ttype_entry): Use objc_getRequiredClass instead of
65 * ivars.c (class_getClassVariable): New.
66 * objects.c: Include objc/runtime.h, objc/thr.h and
67 objc-private/module-abi-8.h instead of objc/objc-api.h
68 * objc/runtime.h (class_getClassVariable): New.
69 (class_isMetaClass): New.
70 (class_getSuperclass): New.
71 (class_getVersion): New.
72 (class_setVersion): New.
73 (class_getInstanceSize): New.
74 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
78 (__CLS_SETINFO): Same.
82 (CLS_SETRESOLV): Same.
83 (CLS_ISINITIALIZED): Same.
84 (CLS_SETINITIALIZED): Same.
85 (CLS_GETNUMBER): Same.
86 (CLS_SETNUMBER): Same.
88 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
90 * archive.c: Do not include objc/objc.h.
91 * class.c: Do not include objc/objc.h.
92 * encoding.c: Include objc/runtime.h, ctype.h and
93 objc-private/module-abi-8.h instead of objc/objc-api.h and
95 * error.c: Do not include objc/objc.h.
96 * gc.c: Include tconfig.h and objc/encoding.h only if
98 * hash.c: Include objc/runtime.h and objc/thr.h instead of
99 objc/objc-api.h. Do not include objc/objc.h.
100 * init.c: Do not include objc/objc.h.
101 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
102 objc/thr.h instead of objc/objc-api.h. Do not include
104 * linking.m: Tidied comment.
105 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
106 Do not include objc/objc.h.
107 * objects.c: Do not include objc/objc.h.
108 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
109 * protocols.c: Do not include objc/objc.h.
110 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
111 not include objc/objc.h.
112 * selector.c: Do not include objc/objc.h.
113 * sendmsg.c: Do not include objc/objc.h.
114 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
115 Do not include objc/objc.h.
116 * objc/objc-decls.h: Reindented code.
117 * objc/runtime.h Include objc-decls.h. Updated comments.
119 (objc_atomic_malloc): New.
123 * objc-private/runtime.h: Updated comments.
125 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
127 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
128 * objc-private/protocols.h: New.
130 * init.c: Include objc-private/protocols.h.
131 (__objc_exec_class): Call __objc_protocols_init on startup.
132 (__objc_init_protocols): Call __objc_protocols_add_protocol.
133 * objc-private/runtime.h: Use (struct objc_method_list *) instead
134 of MethodList_t, and (struct objc_method *) instead of Method_t.
135 * objc/deprecated/struct_objc_class.h: Define
136 __objc_STRUCT_OBJC_CLASS_defined.
137 * objc-private/module-abi-8.h (struct
138 objc_method_description_list): New.
139 (struct objc_class): Only define if
140 __objc_STRUCT_OBJC_CLASS_defined is undefined.
141 * objc/runtime.h (class_getName): New.
142 (objc_getProtocol): New.
143 (objc_copyProtocolList): New.
144 (class_addProtocol): New.
145 (class_conformsToProtocol): New.
146 (class_copyProtocolList): New.
147 (protocol_conformsToProtocol): New.
148 (protocol_isEqual): New.
149 (protocol_getName): New.
150 (protocol_getMethodDescription): New.
151 (protocol_copyMethodDescriptionList): New.
152 (protocol_getProperty): New.
153 (protocol_copyPropertyList): New.
154 (protocol_copyProtocolList): New.
155 * class.c (class_getName): New.
156 * selector.c (sel_isEqual): New.
158 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
160 * selector.c (sel_getName): Return "<null selector>" for a NULL
162 (sel_get_name): Return 0 for a NULL argument.
163 * objc/runtime.h (sel_getName): Updated documentation.
165 * objc-private/hash.h (class_hash_table): Unused declaration
167 (module_hash_table): Same.
168 * objc/deprecated/hash.h: Same changes.
170 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
172 * class.c (objc_getClassList): New.
173 (objc_getRequiredClass): New.
174 (objc_getMetaClass): New.
175 (objc_lookupClass): New.
176 (objc_getClass): New.
177 (__objc_get_unknown_class_handler): New.
178 (objc_setGetUnknownClassHandler): New.
179 (objc_get_class): Use __objc_get_unknown_class_handler.
180 (objc_lookup_class): Call objc_getClass.
181 * objc/objc-api.h: Updated comment and copyright notice.
182 * objc/runtime.h: Updated comments.
183 (objc_getClass): New.
184 (objc_lookupClass): New.
185 (objc_getMetaClass): New.
186 (objc_getRequiredClass): New.
187 (objc_getClassList): New.
188 (objc_setGetUnknownClassHandler): New.
189 (objc_get_unknown_class_handler): New.
190 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
191 instead of __objc_runtime_INCLUDE_GNU as include guard.
192 * objc-private/error.h (_objc_abort): Mark as noreturn.
194 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
196 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
198 * objc/objc.h: Updated comments.
199 * objc/runtime.h (object_getClass): New.
200 (object_getClassName): New.
201 (object_setClass): New.
202 (class_getInstanceVariable): New.
203 (object_getIndexedIvars): New.
204 (object_getInstanceVariable): New.
205 (object_setInstanceVariable): New.
206 (object_getIvar): New.
207 (object_setIvar): New.
209 (ivar_getOffset): New.
210 (ivar_getTypeEncoding): New.
211 * objc-private/module-abi-8.h (struct objc_class): Added.
212 * objects.c (object_getClassName): New.
213 (object_setClass): New.
215 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
217 * objc/objc.h: Updated comments.
218 * objc/objc-api.h: (object_copy): Added one argument; use a
219 #define to maintain backwards-compatibility. Moved
220 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
221 objc_get_uninstalled_dtable into
222 objc/deprecated/objc_get_uninstalled_dtable.h and
223 objc/deprecated/objc_object_alloc.h. Include these files.
224 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
225 * objc/deprecated/objc_object_alloc.h: New.
226 * objc/runtime.h (set_getName): New.
229 (sel_registerName): New.
230 (sel_registerTypedName): New.
232 (class_createInstance): New.
234 (object_dispose): New.
235 * objects.c: Do not include tconfig.h. Include gc_typed.h if
236 building the garbage collection version.
237 (__objc_object_alloc): Removed.
238 (__objc_object_copy): Removed.
239 (__objc_object_dispose): Removed.
240 (class_createInstance): New from code in class_create_instance.
241 Cast second argument of GC_malloc_explicitly_typed. Use
242 objc_calloc. Do not call _objc_object_alloc.
243 (class_create_instance): Call class_createInstance.
244 (object_copy): Added extraBytes argument. Do not call
246 (object_dispose): Do not call _objc_object_dispose.
247 * memory.c (objc_free): When using garbage collection, mark the
249 * selector.c (sel_getName): New.
250 (sel_get_name): Call sel_getName.
252 (sel_get_type): Call sel_getType.
253 (sel_registerName): New.
254 (sel_register_name): Call sel_registerName.
255 (sel_registerTypedName): New.
256 (sel_register_typed_name): Call sel_registerTypedName.
258 (sel_get_uid): Call sel_getUid.
260 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
262 * objc/objc-api.h: Define Method, Method_t, Category and
263 Category_t. Prevent including this file at the same time as
264 objc/runtime.h. Updated comments.
265 * objc/deprecated/struct_objc_method.h: Do not define Method,
267 * objc/deprecated/struct_objc_category.h: Do not define Category,
269 * objc-private/module-abi-8.h: New file containing a copy of all
270 the structure definitions. Not used yet.
271 * objc/encoding.h (objc_aligned_size): Removed duplicate
272 declaration. Updated comments.
273 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
274 Category, struct objc_method_description, _C_ID and similar,
275 _C_CONST and similar and _F_CONST and similar. Added
276 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
277 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
278 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
279 struct objc_struct_layout, objc_layout_structure,
280 objc_layout_structure_next_member, objc_layout_finish_structure,
281 objc_layout_structure_get_info. Prevent including this file at
282 the same time as objc/objc-api.h.
284 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
286 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
287 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
288 struct_objc_method_list.h, struct_objc_module.h,
289 struct_objc_protocol_list.h, struct_objc_symtab.h.
290 * objc/deprecated/struct_objc_category.h: New.
291 * objc/deprecated/struct_objc_ivar.h: New.
292 * objc/deprecated/struct_objc_ivar_list.h: New.
293 * objc/deprecated/struct_objc_method.h: New.
294 * objc/deprecated/struct_objc_method_list.h: New.
295 * objc/deprecated/struct_objc_module.h: New.
296 * objc/deprecated/struct_objc_protocol_list.h: New.
297 * objc/deprecated/struct_objc_symtab.h: New.
298 * objc/deprecated/struct_objc_static_instances.h: New.
299 * objc/objc-api.h: Definitions of deprecated structures moved into
300 the above header fragment files in objc/deprecated/. Include the
301 files instead of definition the structures here. Updated
303 * objc/runtime.h: Updated comments. Do not include objc-api.h.
304 (objc_set_enumeration_mutation_handler): Renamed to
305 objc_setEnumerationMutationHandler.
306 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
307 to objc_setEnumerationMutationHandler.
308 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
309 objc_setExceptionMatcher.
310 (objc_set_uncaught_exception_handler): Renamed to
311 objc_setUncaughtExceptionHandler.
312 * exception.c: Same changes.
314 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
316 * objc-sync.c: Include objc-private/common.h.
318 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
320 * objc-foreach.c: Include objc-private/common.h.
321 * objc/deprecated/METHOD_NULL.h: New file.
322 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
323 defining METHOD_NULL here.
324 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
325 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
327 ([-respondsTo:]): Same change.
328 * objc/objc-api.h (method_get_imp): Converted it into a normal
329 function so that we can hide the internals of struct objc_method.
330 * sendmsg.c (method_get_imp): Implemented.
332 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
334 * objc/objc-api.h (struct objc_super, Super, Super_t,
335 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
336 objc_msg_forward2): Declarations moved to objc/message.h. Include
338 * objc/message.h: Added such declarations; updated comments.
340 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
342 Implemented fast enumeration for Objective-C.
343 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
344 (OBJC_H): Added runtime.h
345 * objc-foreach.c: New file.
346 * objc/runtime.h: New file.
348 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
350 * objc/deprecated/struct_objc_class.h: Add padding
351 to avoid warning with -Wpadded.
353 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
355 * encoding.c (objc_sizeof_type): Added support for vector type and
356 for double long types.
357 (objc_alignof_type): Same change.
358 (objc_skip_typespec): Same change.
359 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
360 instead of '!' since '!' is already used for _C_VECTOR.
361 * objc/objc-api.h (_C_LNG_DBL): Added.
363 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
365 * libobjc_entry.c: File removed.
367 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
369 * sendmsg.c (objc_msg_lookup): Remove inline.
370 (objc_get_uninstalled_dtable): Likewise.
371 * encoding.c (objc_skip_type_qualifiers): Likewise.
372 (objc_skip_offset): Likewise.
373 * archive.c (__objc_write_object): Likewise
374 (__objc_write_class):
375 (__objc_write_selector):
377 (objc_read_unsigned_char):
379 (objc_read_unsigned_short):
382 (__objc_read_nbyte_uint):
383 (objc_read_unsigned_int):
384 (objc_read_unsigned_long):
385 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
386 (objc_EXPORT): Likewise.
387 * objc/message.h (objc-decls.h): Add include.
388 * objc/objc-api.h: Mark API by objc_EXPORT.
389 * libobjc.def (__objc_responds_to): Removed.
391 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
393 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
395 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
396 objc/sarray.h replaced with a placeholder including the file from
397 the deprecated/ directory.
398 * objc-private/sarray.h: New file (private copy of sarray.h).
399 * hash.c: Include <assert.h> instead of "assert.h"
400 * sarray.c: Include <assert.h> instead of "assert.h". Include
401 objc-private/sarray.h instead of objc/sarray.h.
402 * selector.c: Include objc-private/sarray.h instead of
404 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
405 instead of objc/sarray.h.
406 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
408 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
410 * objc-private/objc-list.h (list_remove_elem): Unused function
411 removed. (list_nth): Unused function removed. (list_find):
412 Unused function removed. (list_lenght): Unused function removed.
414 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
416 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
417 replaced with a placeholder including the file from the
418 deprecated/ directory.
419 * objc/objc-api.h: Updated includes.
420 * objc/typedstream.h: Updated includes.
421 * objc-private/hash.h: New file (private copy of hash.h).
422 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
423 objc/objc-list.h replaced with a placeholder including the file
424 from the deprecated/ directory.
425 * objc-private/objc-list.h: New file (private copy of objc-list.h).
426 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
427 instead of objc/hash.h and objc/objc-list.h.
428 * selector.c: Same change.
429 * class.c: Added include <string.h>, which used to be implicitly included
430 when hash.h was included.
431 * exception.c: Same change.
432 * objects.c: Same change.
433 * sarray.c: Same change.
434 * sendmsg.c: Same change.
435 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
437 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
439 Implemented objc_sync_enter() and objc_sync_exit(), which are
440 required by @synchronized() to work.
441 * objc-sync.c: New file.
442 * objc/objc-sync.h: New file.
443 * objc-private/objc-sync.h: New file.
444 * init.c (__objc_exec_class): Call __objc_sync_init() during the
445 Objective-C runtime startup.
446 * Makefile.in: Added objc-sync.c and objc-sync.h.
447 * configure.ac: Added GCC_CHECK_TLS.
448 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
449 * configure: Regenerated.
450 * config.h.in: Regenerated.
452 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
454 * Makefile.in (%_gc.lo): New pattern rules to build the
455 garbage-collected version of the library. Removed rules for
456 specific files that are no longer needed. Standardized all rules.
457 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
458 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
460 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
462 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
464 * memory.c (objc_calloc): Fixed call to GC_malloc when building
465 with Garbage Colletion.
467 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
469 * memory.c: Do not include objc-private/runtime.h.
471 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
473 * objc/deprecated/objc_malloc.h: New file.
474 * objc/deprecated/objc_valloc.h: New file.
475 * objc/objc-api.h: Include the files instead of defining
476 objc_valloc, _objc_malloc() and similar.
477 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
479 * memory.c: Removed the extra layer of indirection of _objc_malloc
481 (objc_calloc): Use GC_malloc in the garbage-collected
482 implementation as GC_malloc returns memory that is already freed.
483 (objc_valloc): Deprecated.
485 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
487 * objc/deprecated/objc_error.h: New file.
488 * objc/objc-api.h: Include deprecated/objc_error.h instead of
489 defining objc_error and related.
490 * error.c: New file. Added _objc_abort function which replaces
491 objc_error. No change in functionality as they both print an
493 * misc.c: File removed. Code moved into memory.c and error.c.
494 * memory.c: New file.
495 * objc-private/error.h: New file.
496 * archive.c: Include objc-private/error.h and use _objc_abort
497 instead of objc_error everywhere.
498 * class.c: Same change.
499 * encoding.c: Same change.
500 * init.c: Same change, and simplified init_check_module_version.
501 * memory.c: Same change.
502 * sendmsg.c: Same change.
503 * thr.c: Same change.
504 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
505 (OBJ_H): Reordered list.
506 (OBJS): Removed misc.lo, added memory.lo and error.lo.
507 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
508 (misc_gc.lo): Rule removed.
509 (error_gc.lo): Rule added.
510 (memory_gc.lo): Rule added.
512 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
514 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
515 to check the API version. Added some comments.
517 * objc-private/common.h: New file.
518 * NXConstStr.m: Include objc-private/common.h.
519 * Object.m: Same change.
520 * Protocol.m: Same change.
521 * archive.c: Same change.
522 * class.c: Same change.
523 * encoding.c: Same change.
524 * exception.c: Same change.
526 * hash.c: Same change.
527 * init.c: Same change.
528 * libobjc_entry.c: Same change.
529 * linking.m: Same change.
530 * misc.c: Same change (and added a comment).
531 * nil_method.c: Same change.
532 * objects.c: Same change.
533 * sarray.c: Same change.
534 * selector.c: Same change.
535 * sendmsg.c: Same change.
536 * thr.c: Same change.
538 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
540 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
542 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
544 * archive.c: Removed not needed includes.
545 * class.c: Same change.
546 * hash.c: Same change.
547 * misc.c: Same change.
548 * nil_method.c: Same change.
549 * objects.c: Same change.
550 * sarray.c: Same change.
551 * sendmsg.c: Same change.
552 * thr.c: Same change.
554 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
556 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
557 all the objc/*.h files.
558 * objc-private/runtime.h: New file.
559 * archive.c: Include objc-private/runtime.h (and required objc/*.h
560 files) instead of objc/runtime.h.
561 * class.c: Same change.
562 * hash.c: Same change.
563 * init.c: Same change.
564 * misc.c: Same change.
565 * nil_method.c: Same change.
566 * objects.c: Same change.
567 * sarray.c: Same change.
568 * selector.c: Same change.
569 * sendmsg.c: Same change.
570 * thr.c: Same change.
572 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
574 * objc/deprecated/struct_objc_selector.h: New file. Definition of
575 'struct objc_selector' and 'sel_eq' moved here.
576 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
577 'struct objc_procotol' moved here.
578 * objc/deprecated/struct_objc_class.h: New file. Definition of
579 'struct objc_class' moved here.
580 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
582 * objc/deprecated/STR.h: New file. Definition of STR moved here.
583 * objc/message.h: New file. Definitions for relval_t, apply_t,
584 arglist, arglist_t and objc_msg_lookup were moved here.
585 * objc/objc.h: Include the above files instead of defining the
586 corresponding structs, types and functions here. Added new opaque
587 definitions for SEL and Class. Use Class and not 'struct
588 objc_class *' in the definition of 'struct objc_object'.
589 Commented all types defined in the file. Removed special
590 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
592 * objc/deprecated/objc-unexpected-exception.h: Renamed to
593 objc_unexpected_exception.h.
594 * objc/objc-api.h: Updated include of
595 objc-unexpetected-exception.h
596 * objc/objc-exception.h: Updated comments.
597 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
598 files. Reindented list of files.
600 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
602 * objc/objc-api.h (objc_trace): Unused variable removed.
604 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
606 * objc/deprecated: New directory.
607 * objc/deprecated/README: New file.
608 * objc/README: New file.
609 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
610 objc/typedstream.h replaced with a placeholder including the file
611 from the deprecated/ directory.
612 * objc/deprecated/objc-unexpected-exception.h: New file with the
613 definition of _objc_unexpected_exception.
614 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
615 instead of defining _objc_unexpected_exception.
616 * objc/deprecated/Object.h: New file with the deprecated Object
617 methods in a 'Deprecated' category.
618 * objc/Object.h Include deprecated/Object.h instead of defining
619 the deprecated methods.
620 * Object.m: Moved deprecated methods into 'Deprecated' category.
621 * objc-private: New directory.
622 * objc-private/README: New file.
623 * Makefile.in (OBJC_DEPRECATED_H): New variable.
624 (install-headers): Create installation directory for
625 OBJC_DEPRECATED_H headers, and install them.
627 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
629 * objc/objc-exception.h: Fixed include of objc.h.
631 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
633 * objc/objc-exception.h: New file.
634 * exception.c (objc_set_uncaught_exception_handler): Implemented.
635 (objc_set_exception_matcher): Implemented.
636 (objc_exception_throw): Use the uncaught exception handler if set.
637 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
639 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
640 up. Removed segmentation fault when value is 'nil'.
641 * objc/objc-api.h (_objc_unexpected_exception): Mark as
643 * Makefile.in (exception.lo, exception_gc.lo): Use
644 -Wno-deprecated-declarations when compiling.
645 (OBJC_H): Added objc-exception.h
647 2010-09-08 Nicola Pero <nicola@nicola.brainstorm.co.uk>
649 * objc/typedstream.h: Deprecate all functions in the file. This
651 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
652 [-awake]): Documented that these methods are deprecated. Added a
653 brief description of the Object class and its relationship to the
655 * Makefile.in: Compile archive.c and Object.m with
656 -Wno-deprecated-declarations.
658 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
660 Removed obsolete intermediate threading layer.
661 * thr.c: Use __gthread_objc_xxx functions directly instead of
662 __objc_thread_xxx ones.
663 * objc/thr.h: Removed prototypes of no longer existing
664 __objc_thread_xxx functions.
665 * Makefile.in: Removed thr-objc.lo.
666 * thr-dce.c: File removed.
667 * thr-decosf1.c: File removed.
668 * thr-irix.c: File removed.
669 * thr-mach.c: File removed.
670 * thr-objc.c: File removed.
671 * thr-os2.c: File removed.
672 * thr-posix.c: File removed.
673 * thr-pthreads.c: File removed.
674 * thr-rtems.c: File removed.
675 * thr-single.c: File removed.
676 * thr-solaris.c: File removed.
677 * thr-vxworks.c: File removed.
678 * thr-win32.c: File removed.
679 * README.threads: File removed.
680 * THREADS.MACH: File removed.
683 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
685 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
687 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
689 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
690 Add a comment as to why, update FIXME comments.
692 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
694 * makefile.dos: Obsolete file removed.
696 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
698 * aclocal.m4: Regenerate.
700 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
703 * configure.ac (extra_ldflags_libobjc): Define appropriately for
704 Cygwin and MinGW hosts.
705 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
706 (libobjc.dll): Likewise.
707 * configure: Regenerate.
709 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
711 * configure: Regenerate.
713 2009-11-28 Jakub Jelinek <jakub@redhat.com>
715 * sarray.c (sarray_free): Use old_buckets variable.
716 * encoding.c (objc_layout_structure_next_member): Remove unused
717 bfld_type_size variable.
719 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
721 * configure.ac (AC_PREREQ): Bump to 2.64.
723 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
725 * aclocal.m4: Regenerate.
726 * configure: Regenerate.
727 * config.h.in: Regenerate.
729 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
731 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
733 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
735 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
737 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
739 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
741 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
743 2009-04-09 Nick Clifton <nickc@redhat.com>
745 * sendmsg.c: Change copyright header to refer to version 3 of
746 the GNU General Public License with version 3.1 of the GCC
747 Runtime Library Exception and to point readers at the COPYING3
748 and COPYING3.RUNTIME files and the FSF's license web page.
749 * NXConstStr.m: Likewise.
750 * Object.m: Likewise.
751 * Protocol.m: Likewise.
752 * archive.c: Likewise.
754 * encoding.c: Likewise.
755 * exception.c: Likewise.
759 * libobjc_entry.c: Likewise.
760 * linking.m: Likewise.
762 * nil_method.c: Likewise.
763 * objc/NXConstStr.h: Likewise.
764 * objc/Object.h: Likewise.
765 * objc/Protocol.h: Likewise.
766 * objc/encoding.h: Likewise.
767 * objc/hash.h: Likewise.
768 * objc/objc-api.h: Likewise.
769 * objc/objc-decls.h: Likewise.
770 * objc/objc-list.h: Likewise.
771 * objc/objc.h: Likewise.
772 * objc/runtime.h: Likewise.
773 * objc/sarray.h: Likewise.
774 * objc/thr.h: Likewise.
775 * objc/typedstream.h: Likewise.
776 * objects.c: Likewise.
777 * sarray.c: Likewise.
778 * selector.c: Likewise.
779 * thr-dce.c: Likewise.
780 * thr-decosf1.c: Likewise.
781 * thr-irix.c: Likewise.
782 * thr-mach.c: Likewise.
783 * thr-objc.c: Likewise.
784 * thr-os2.c: Likewise.
785 * thr-posix.c: Likewise.
786 * thr-pthreads.c: Likewise.
787 * thr-rtems.c: Likewise.
788 * thr-single.c: Likewise.
789 * thr-solaris.c: Likewise.
790 * thr-vxworks.c: Likewise.
791 * thr-win32.c: Likewise.
793 * libobjc.def: Change copyright header to refer to version 3 of
794 the GNU General Public License and to point readers at the COPYING3
795 file and the FSF's license web page.
796 * makefile.dos: Likewise.
798 2009-04-09 Jakub Jelinek <jakub@redhat.com>
800 * Makefile.in: Change copyright header to refer to version
801 3 of the GNU General Public License and to point readers at the
802 COPYING3 file and the FSF's license web page.
803 * configure.ac: Likewise.
805 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
806 David Ayers <ayers@fsfe.org>
809 * objc/objc-api.h (_objc_unexpected_exception): Declare
810 new hook. Update copyright dates.
811 * exception.c (objc_exception_throw): Use hook. Update
813 * libobjc.def (_objc_unexpected_exception): Export hook.
814 Update copyright dates.
816 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
818 * configure: Regenerate.
820 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
822 * configure: Regenerate.
824 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
826 * Object.m (errno): Replaced by errno.h include.
827 (compare): Cast self to id to prevent warning on comparison.
828 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
830 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
831 * thr-win32.c (__objc_thread_detach): Remove type warning.
832 (__objc_thread_id): Likewise.
833 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
836 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
837 Steve Ellcey <sje@cup.hp.com>
839 * configure: Regenerate for new libtool.
840 * config.h.in: Regenerate for new libtool.
842 2008-07-18 Matthias Klose <doko@ubuntu.com>
844 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
846 2008-07-18 Matthias Klose <doko@ubuntu.com>
848 * Makefile.in: Include ../boehm-gc/threads.mk.
849 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
851 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
853 * Makefile.in (install-info): New stub target.
855 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
857 * configure: Regenerate.
859 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
861 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
862 if HAVE_GETIPINFO is not defined.
864 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
866 * Object.m (compare): Add type id.
867 * objc/Object.h: Likewise.
868 * archive.c (objc_read_class): Use size_t to extend version to be
869 size of pointer scalar width.
870 * sendmsg.c (rtx): Undefine it before redefinition.
871 (__objc_print_dtable_stats): Cast arguments to long as intended.
873 2008-05-30 Julian Brown <julian@codesourcery.com>
875 * exception.c (__objc_exception_class): Initialise as constant
876 array for ARM EABI. Change macro to static const for non-ARM EABI.
877 (ObjcException): Add note about structure layout. Remove landingPad
878 and handlerSwitchValue for ARM EABI.
879 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
881 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
882 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
883 ARM EABI unwinding support.
884 (objc_exception_throw): Use memcpy to initialise exception class.
886 2008-05-25 Alan Modra <amodra@bigpond.net.au>
888 * encoding.c (strip_array_types): Rename from get_inner_array_type.
889 (rs6000_special_round_type_align): Update.
891 2008-05-09 Julian Brown <julian@codesourcery.com>
893 * Makefile.in (LTLDFLAGS): New.
894 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
896 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
899 * aclocal.m4: Regenerate.
900 * configure: Regenerate.
902 2008-01-24 David Edelsohn <edelsohn@gnu.org>
904 * configure: Regenerate.
906 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
908 * configure.ac: Don't run config-ml.in directly.
910 * configure: Regenerated.
912 2007-08-06 Andrew Pinski <pinskia@gmail.com>
915 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
916 of _Unwind_Word for variables which are used in
917 read_uleb128/read_sleb128.
918 (PERSONALITY_FUNCTION): Likewise.
920 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
922 * aclocal.m4: Regenerated.
924 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
926 * configure.ac: Fix a typo in *-*-darwin clause.
927 * configure: Regenerated.
929 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
931 * configure.ac: Fix a typo.
932 * configure: Regenerated.
934 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
936 * configure: Regenerate.
938 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
940 * Makefile.in: Replace all uses of libext with libsuffix.
941 * configure.ac: Likewise.
942 * configure: Regenerate.
945 * Makefile.in: Remove all uses of $(libext).
947 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
949 * Makefile.in: Remove all uses of $(libext).
951 2007-05-23 Steve Ellcey <sje@cup.hp.com>
953 * configure: Regenerate.
954 * aclocal.m4: Regenerate.
956 2007-04-21 Andrew Ruder <andy@aeruder.net>
958 * sendmsg.c (__objc_get_forward_imp): Call
959 __objc_msg_forward2 for real.
961 2007-04-09 Andrew Ruder <andy@aeruder.net>
963 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
964 external libraries to provide a function that returns the real
965 forwarding function based on both the selector and the receiver.
966 * objc/objc-api.h: Define __objc_msg_forward2.
968 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
970 * Makefile.in: Add dummy install-pdf target.
972 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
974 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
977 2006-10-31 Geoffrey Keating <geoffk@apple.com>
979 * encoding.c (darwin_rs6000_special_round_type_align): New.
981 2006-10-14 Geoffrey Keating <geoffk@apple.com>
983 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
984 * configure.ac: Use multi.m4 from aclocal rather than custom
985 code. Use multi_basedir instead of toplevel_srcdir.
986 * aclocal.m4: Regenerate.
987 * configure: Regenerate.
989 2006-10-10 Brooks Moses <bmoses@stanford.edu>
991 * Makefile.in: Added empty "pdf" target.
993 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
995 * configure: Regenerate.
997 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
999 * Makefile.in: Add install-html target. Add install-html to .PHONY
1001 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1004 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1006 2006-01-24 David Ayers <d.ayers@inode.at>
1009 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1010 and insure the new strings are '\0' termintated.
1012 2006-01-24 David Ayers <d.ayers@inode.at>
1015 * configure.ac: Add include directives for --enable-objc-gc.
1016 * Makefile.in: Ditto.
1017 * configure: Regenerate.
1019 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1020 instead of the local pointer to them.
1022 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1025 * objc/objc-api.c (_C_COMPLEX): New define.
1026 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1027 (objc_alignof_type): Likewise.
1028 (objc_skip_typespec): Likewise.
1030 2005-12-15 David Ayers <d.ayers@inode.at>
1033 * README (+load,+initialize): Fix documentation to reflect
1034 intended and implemented semantics for +load and +initialize.
1036 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1038 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1040 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1041 (rs6000_special_round_type_align): Update for the ABI fix.
1042 (objc_layout_finish_structure): Correct the encoding which is passed to
1045 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1048 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1049 but use the struct layout functions.
1050 (objc_alignof_type): Likewise.
1051 (objc_layout_structure): Handle _C_UNION_B also.
1052 (objc_layout_structure_next_member): Likewise.
1053 (objc_layout_finish_structure): Likewise.
1055 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1058 * objc/objc-api.h (_C_BOOL): New define.
1059 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1060 (objc_alignof_type): Likewise.
1061 (objc_skip_typespec): Likewise.
1063 2005-11-20 David Ayers <d.ayers@inode.at>
1066 * objc/hash.h: Remove deprecated hash API.
1067 * hash_compat.c: Remove.
1068 * Makefile.in: Remove reference to hash_compat.c.
1070 * configure.ac (VERSION): Bump library version to 2:0:0.
1071 * configure: Regenerate.
1073 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1076 * thr-objc.c (_XOPEN_SOURCE): Define.
1078 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1081 * objc/objc-api.h (struct objc_ivar): Move definition to
1084 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1085 Rasmus Hahn <rassahah@neofonie.de>
1088 * archive.c (objc_write_type): Correct the element offset.
1089 (objc_read_type): Likewise.
1091 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1093 * All files: Update FSF address.
1095 2005-08-13 Marcin Koziej <creep@desk.pl>
1096 Andrew Pinski <pinskia@physics.uc.edu>
1099 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1101 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1103 * Makefile.in (extra_ldflags_libobjc): New.
1104 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1105 (libobjc_gc$(libext).la): Likewise.
1106 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1107 "-Wl,-single_module".
1108 * configure: Regenerate.
1109 * linking.m (_objcInit): Remove.
1111 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1114 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1116 2005-06-08 David Ayers <d.ayers@inode.at>
1118 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1119 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1120 objc/runtime.h, objc/sarray.h, objc/thr.h,
1121 objc/typedstream.h: Do not include Objective-C headers as
1124 2005-06-07 David Ayers <d.ayers@inode.at>
1126 * archive.c, init.c, selector.c: Include hash.h.
1127 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1128 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1129 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1130 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1131 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1132 Include Objective-C headers with quotes and objc/ directory
1135 2005-05-19 Richard Henderson <rth@redhat.com>
1137 * exception.c: Revert last change.
1139 2005-05-19 David Ayers <d.ayers@inode.at>
1141 * exception.c: Include tsystem.h for unwind.h.
1143 2005-05-09 Mike Stump <mrs@apple.com>
1145 * configure: Regenerate.
1147 2005-04-12 Mike Stump <mrs@apple.com>
1149 * configure: Regenerate.
1151 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1153 * Makefile.in: Set gcc_version here.
1154 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1155 in definition of toolexeclibdir so that $(gcc_version) is expanded
1157 * aclocal.m4, configure: Regenerate.
1159 2005-03-03 David Ayers <d.ayers@inode.at>
1161 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1162 version reference. Correct typo.
1164 2005-03-02 David Ayers <d.ayers@inode.at>
1167 * Makefile.in (OBJS): Add hash_compat.lo.
1168 (OBJS_GC): Add hash_compat_gc.lo.
1169 (hash_compat_gc.lo): New target and rule.
1170 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1171 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1172 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1173 with objc_. Add deprecated non prefixed inlined versions.
1174 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1176 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1177 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1179 * hash_compat.c: New file.
1180 * archive.c: Update callers.
1182 * selector.c: Likewise.
1183 * libobjc.def: Add objc_ versions of hash functions.
1185 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1188 * Makefile.in (GTHREAD_FLAGS): Remove.
1189 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1190 * thr-objc.c: Include config.h.
1191 * configure.ac: Instead of looking at GCC's makefile, figure out if
1192 GTHREAD_FLAGS should be defined by looking at the `thread model'
1194 * configure: Regenerate.
1195 * config.h.in: Regenerate.
1197 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1200 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1201 (Determine CFLAGS for gthread): Use $host_subdir.
1202 * configure: Regenerate.
1203 * Makefile.in (host_subdir): New.
1206 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1209 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1211 Include limits.h and stdlib.h.
1212 Define BITS_PER_WORD.
1214 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1216 * selector.c (__objc_init_selector_tables): Add missing void to
1219 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1221 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1222 * configure, aclocal.m4: Regenerate.
1224 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1226 * configure: Regenerate for libtool change.
1228 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1230 * configure: Regenerate for libtool reversion.
1232 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1234 * configure: Regenerate for libtool change.
1236 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1238 * aclocal.m4, config.h.in: Regenerate.
1240 2004-10-08 Mike Stump <mrs@apple.com>
1241 Andrew Pinski <pinskia@physics.uc.edu>
1243 * aclocal.m4: Rename to ...
1244 * acinclude.m4: here and also use m4_include instead of sinclude.
1245 * aclocal.m4: Regenerate.
1246 * configure: Regenerate.
1247 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1248 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1250 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1252 * archive.c: Fix all the warnings about passing unsigned char*
1253 to char* and the other way too.
1255 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1258 * exception.c: Include config.h
1259 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1261 * configure.ac: Find out what exception handling code we use.
1262 * configure: Regenerate.
1263 * config.h.in: New file, regenerate.
1265 2004-09-16 Andrew Pinski <apinski@apple.com>
1267 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1269 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1271 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1272 ACX_NONCANONICAL_TARGET.
1273 * configure: Regenerate.
1275 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1277 * objc/sarray.h: Hoist include of assert.h near the top of file,
1278 and mark the remainder of the file 'extern "C"'.
1280 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1282 * objc/Object.h: Move includes out of extern "C" blocks.
1283 * objc/encoding.h: Likewise.
1284 * objc/hash.h: Likewise.
1285 * objc/objc-api.h: Likewise.
1286 * objc/runtime.h: Likewise.
1287 * objc/sarray.h: Likewise.
1288 * objc/typedstream.h: Likewise.
1290 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1292 * objc/NXConstStr.h: Update copyright date; bracket with
1293 'extern "C"' for C++ use; make include syntax consistent
1294 by using <...> instead of "..."; hoist <objc/...> includes
1295 above the 'extern "C"' block.
1296 * objc/Object.h: Likewise.
1297 * objc/Protocol.h: Likewise.
1298 * objc/encoding.h: Likewise.
1299 * objc/hash.h: Likewise.
1300 * objc/runtime.h: Likewise.
1301 * objc/sarray.h: Likewise.
1302 * objc/thr.h: Likewise.
1303 * objc/typedstream.h: Likewise.
1304 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1305 (objc_static_instances): For C++ case, do away with
1307 (objc_method): Hoist definition to file scope.
1308 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1309 class_get_instance_method, class_create_instance,
1310 class_get_class_name, class_get_instance_size,
1311 class_get_meta_class, class_get_super_class, class_get_version,
1312 class_is_class, class_is_meta_class, class_set_version,
1313 class_get_gc_object_type, class_ivar_set_gcinvisible,
1314 get_imp): Rename 'class' parameter to '_class'.
1315 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1316 * objc/objc.h: Update copyright date.
1317 (arglist_t): Provide a union tag.
1319 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1321 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1322 but instead use the attribute noreturn.
1324 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1326 * encoding.c: Rename target_flags with a #define to avoid
1327 conflict with a prior declaration.
1329 2004-06-24 Andrew Pinski <apinski@apple.com>
1331 * objc/encoding.h: Wrap the functions with extern "C" for C++
1333 * objc/hash.h: Likewise.
1334 * objc/objc-api.h: Likewise.
1335 * objc/objc-list.h: Likewise.
1336 * objc/runtime.h: Likewise.
1337 * objc/sarray.h: Likewise.
1338 * objc/thr.h: Likewise.
1339 * objc/typedstream.h: Likewise.
1342 2004-06-21 Nick Clifton <nickc@redhat.com>
1344 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1347 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1349 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1350 (exception_gc.lo): New.
1351 (OBJS_GC): Add exception_gc.lo.
1353 2004-06-17 Richard Henderson <rth@redhat.com>
1355 * exception.c: New file.
1356 * Makefile.in (exception.lo): New.
1359 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1361 * linking.m (_objcInit): New empty function
1364 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1366 * configure.ac: Support --enable-shared=libobjc.
1367 * configure: Regenerate.
1370 * configure.ac: Do not disable shared by default.
1371 * configure: Regenerate.
1373 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1375 * Protocol.m ([-isEqual:]): Small optimizations returning
1376 immediately if the argument is equal to self, and accessing
1377 the argument's name directly if it's a protocol.
1379 2004-06-03 David Ayers <d.ayers@inode.at>
1381 * Protocol.m ([-isEqual:]): Test the class of the argument.
1383 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1385 * configure.ac (includedir): Rename to ...
1387 * Makefile.in: s/includedir/includedirname/.
1390 * configure.ac (includedir): Set to "include"
1392 (libext) Set to empty except for Darwin.
1393 * configure: Regenerate
1394 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1395 s/include/$(includedir)/g.
1397 2004-05-25 Daniel Jacobowitz <drow@false.org>
1399 * Makefile.in: Add .NOEXPORT.
1401 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1403 Merge from the libobjc-branch
1404 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1406 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1408 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1410 * Makefile.in (OBJC_H): Add objc-deps.h.
1412 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1414 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1415 ([-hash], [-isEqual:]): New methods.
1417 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1419 * sarray.c (sarray_free): Add a better comment.
1421 2004-01-27 Adam Fedor <fedor@gnu.org>
1423 * hash.c (hash_add): Cast cachep to int.
1424 * selector.c (__sel_register_typed_name): Cast
1425 soffset_decode to int.
1427 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1429 * selector.c: Rename register_selectors_from_list to
1430 __objc_register_selectors_from_list. Update caller.
1431 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1432 while registering selectors. Use __sel_register_typed_name instead
1433 of sel_register_typed_name. Check for NULL method_name:s.
1434 (pool_alloc_selector): New function.
1435 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1436 selector structures.
1437 * sendmsg.c (class_add_method_list): Use
1438 __objc_register_selectors_from_list.
1439 * objc/runtime.h: Add __objc_register_selectors_from_list.
1441 2004-01-25 Adam Fedor <fedor@gnu.org>
1442 Nicola Pero <n.pero@mi.flashnet.it>
1443 Andrew Pinski <pinskia@physics.uc.edu>
1445 * objc/objc-decls.h: New file.
1446 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1447 (_objc_load_callback): Likewise.
1448 (_objc_object_alloc): Likewise.
1449 (_objc_object_copy): Likewise.
1450 (_objc_object_dispose): Likewise.
1452 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1454 * archive.c: s/__inline__/inline
1455 * sendmsg.c: Likewise.
1457 * encoding.c: Remove FIXME about the warning
1458 about unused variable.
1459 * sendmsg.c: Add a FIXME comment saying that
1460 this should be using libffi.
1462 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1465 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1467 * archive.c (objc_read_class): Initialize class_name.
1468 (objc_read_selector): Initialize selector_name.
1470 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1472 * Makefile.in (toolexecdir): Remove trailing space.
1474 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1477 * configure.ac: De-precious CC so multilibs work.
1478 * configure: Regenerate.
1480 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1482 * configure.ac: Restore toolexecdir.
1483 * Makefile.in: Restore toolexecdir.
1484 * configure: Regenerate.
1486 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1488 * configure.ac: Remove (unused) glibcpp_prefixdir.
1489 * configure: Regenerate.
1491 * configure.in: Rename to configure.ac.
1492 * Makefile.in: Update to match.
1494 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1495 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1496 * configure.in: Remove glibcpp_toolexecdir (unused).
1497 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1498 config.h or stamp-h (unused). Move one comment to the right place.
1499 * configure: Regenerate.
1500 * config.h.in: Remove (unused).
1502 * config.h.in: Regenerate with autoheader.
1504 * Makefile.in: Remove (unused) gcc_version_trigger.
1505 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1506 gcc_version_trigger.
1507 * configure: Regenerate.
1509 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1510 Sort file into sections. Remove dnl where appropriate. Fix
1512 * configure: Regenerate.
1514 * configure.in: Replace old AC_PROG_CC hack with new one.
1515 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1516 are no subdirectory output files, so this is fine). Change prereq
1518 * aclocal.m4: Include ../config/no-executables.m4.
1519 * configure: Regenerate with autoconf 2.59.
1521 * configure.in: Improve comments on gthread_cflags. Improve m4
1522 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1523 * configure: Regenerate.
1525 * configure.in: Move PACKAGE and VERSION settings up top. Remove
1526 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
1527 redundant checks for values of RANLIB, AR, INSTALL.
1528 * configure: Regenerate.
1530 * configure.in: Clean up handling of
1531 --enable-version-specific-runtime-libs and related variables;
1532 replace 'if test' with 'case' where reasonable. Fix comments.
1533 Remove useless libstdcxx_interface.
1534 * configure: Regenerate.
1536 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
1537 Replace uses of target_alias with target_noncanonical.
1538 * aclocal.m4: Include ../config/acx.m4.
1539 * configure: Regenerate.
1540 * Makefile.in: Replace uses of target_alias with target_noncanonical.
1541 Fix copyright statement.
1543 * configure.in: Hand-inline bulky, confusing macros from
1544 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
1545 Update copyright notice. Remove stuff for automake, which isn't
1546 used in this directory. Remove emacs local variables.
1547 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
1548 * configure: Regenerate.
1550 2004-03-16 Manfred Hollstein <mh@suse.com>
1552 * Makefile.in, configure.in, configure: Update copyright years.
1554 2004-03-15 Manfred Hollstein <mh@suse.com>
1556 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
1557 definition from configure.in.
1558 * configure.in (PACKAGE): Add definition.
1559 (VERSION): Add definition; substitute it in output files.
1560 * configure: Re-generate.
1562 2004-03-05 Ziemowit Laski <zlaski@apple.com>
1564 * objc/hash.h (hash_string, compare_strings):
1565 Add type-casts to make Objective-C++ happy.
1566 * objc/typedstream.h (objc_get_stream_class_version):
1567 Rename parameter from 'class' to 'class_name' to make
1568 Objective-C++ happy.
1570 2004-03-01 Michael Matz <matz@suse.de>
1572 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
1574 2004-02-06 Ziemowit Laski <zlaski@apple.com>
1576 * objc/objc-api.h (objc_super): The 'class' field shall
1577 be named 'super_class' #ifdef __cplusplus.
1579 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
1582 * encoding.c (rs6000_special_round_type_align): Define.
1584 2004-01-14 Adam Fedor <fedor@gnu.org>
1587 * selector.c (__objc_register_instance_methods_to_class): Free
1588 new_list if not used.
1590 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
1593 * sarray.c (sarray_free): Free array->is_copy_of latter.
1595 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1598 * Protocol.m (descriptionForInstanceMethod): Don't dereference
1599 instance_methods if it's NULL.
1600 (descriptionForClassMethod): Likewise for class_methods.
1602 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1604 * Makefile.in (runtime-info.h): Remove -Wp.
1606 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1608 * Makefile.in (CC1OBJ): Remove.
1609 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
1611 Use .m extension for temporary file.
1612 Remove assembler temp file.
1614 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
1616 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
1618 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1620 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
1622 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1624 * configure: Regenerate.
1626 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
1628 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
1629 (libdir)/gcc-lib/ when installing.
1630 * configure: Regenerate.
1632 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
1635 * sendmsg.c (get_imp): Fixed rare threading problem.
1636 (__objc_responds_to): Similar fixes.
1637 (objc_msg_lookup): Similar fixes.
1638 (__objc_init_install_dtable): Lock the runtime before checking if the
1641 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
1643 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
1644 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
1645 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
1646 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
1647 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
1648 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
1649 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
1650 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
1651 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
1652 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
1653 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
1655 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
1656 Nicola Pero <n.pero@mi.flashnet.it>
1659 * init.c (class_superclass_of_class): New function.
1660 (create_tree_of_subclasses_inherited_from): Use it.
1661 (__objc_tree_insert_class): Likewise.
1662 (class_is_subclass_of_class): Likewise.
1664 2003-04-11 David Chad <davidc@freebsd.org>
1665 Loren J. Rittle <ljrittle@acm.org>
1668 * objc/hash.h (hash_string): Constify correctly.
1669 (compare_ptrs): Use direct compare.
1670 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
1671 * objc/sarray.h: Global rename index to indx to avoid shadow.
1673 2003-03-12 Andreas Schwab <schwab@suse.de>
1675 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
1676 glibcpp_toolexeclibdir.
1677 * configure: Rebuilt.
1679 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1681 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1683 * configure: Rebuilt.
1685 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1687 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
1688 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
1689 version_specific_libs is enabled.
1690 * configure: Rebuilt.
1692 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1694 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1695 (install-libs, install-headers): Prepend $(DESTDIR) to
1696 destination paths in all (un)installation commands.
1698 2002-12-02 Zack Weinberg <zack@codesourcery.com>
1700 * thr-objc.c: Include coretypes.h and tm.h.
1702 2002-12-01 Zack Weinberg <zack@codesourcery.com>
1704 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
1706 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1708 * configure.in: Remove skip-this-dir support.
1709 * configure: Regenerate.
1711 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1713 * Makefile.in (all): Fix multilib parallel build.
1715 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
1717 * sendmsg.c (nil_method): Declare not to take a variable number of
1719 (objc_msg_lookup): Cast nil_method to IMP before returning it.
1720 (objc_msg_lookup_super): The same.
1722 2002-09-10 Jan Hubicka <jh@suse.cz>
1724 * nil_method.c (nil_method): No longer defined with variable
1727 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
1729 * objc/encoding.h: Fix formatting.
1730 * objc/hash.h: Likewise.
1731 * objc/objc-api.h: Likewise.
1732 * objc/runtime.h: Likewise.
1733 * objc/thr.h: Likewise.
1734 * archive.c: Likewise.
1735 * class.c: Likewise.
1736 * encoding.c: Likewise.
1741 * nil_method.c: Likewise.
1742 * objects.c: Likewise.
1743 * sarray.c: Likewise.
1744 * selector.c: Likewise.
1745 * sendmsg.c: Likewise.
1746 * thr-mach.c: Likewise.
1749 2002-06-25 DJ Delorie <dj@redhat.com>
1751 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
1752 GLIBCPP_TOPREL_CONFIGURE.
1753 * configure.in: Call it before AC_CANONICAL_SYSTEM.
1754 * configure: Regenerate.
1756 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1758 * Object.m (forward, read, write): Fix unused parameter warnings.
1759 * encoding.c: Include <stdlib.h>.
1760 (target_flags): Mark with attribute unused.
1762 * runtime.h (__objc_selector_max_index): Change to unsigned int.
1763 (__objc_generate_gc_type_description): Prototype.
1764 * selector.c (__objc_selector_max_index): Change to unsigned int.
1766 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
1768 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
1769 we always have a return value: if __objc_msg_forward does not
1770 supply a forwarding implementation, return the default
1771 __builtin_apply based one.
1773 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1775 * Object.m: Fix signed/unsigned warning.
1776 * Protocol.m: Likewise.
1777 * archive.c: Always include stdlib.h.
1778 (objc_read_short, objc_read_unsigned_short, objc_read_int,
1779 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
1780 Fix signed/unsigned warning.
1781 (objc_write_type, objc_read_type, objc_write_types,
1782 objc_read_types): Ensure ctype 8-bit safety.
1783 (__objc_no_write, __objc_no_read): Mark unused parameters.
1784 * class.c (class_table_setup): Specify void arg.
1785 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
1786 objc_skip_typespec, objc_skip_offset,
1787 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
1788 (objc_layout_structure_next_member): Ensure variables are
1790 * gc.c (__objc_generate_gc_type_description,
1791 class_ivar_set_gcinvisible): Mark unused parameters.
1792 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
1794 (__objc_init_protocols) Fix signed/unsigned warning.
1795 * nil_method.c (nil_method): Mark unused parameters.
1796 * thr.h (objc_thread_callback): Specify void arg.
1797 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
1798 signed/unsigned warning.
1799 (sarray_free): Fix formatting.
1800 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
1801 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
1803 2002-06-09 Andreas Jaeger <aj@suse.de>
1805 * encoding.c (objc_layout_structure_next_member): Remove unused
1808 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1810 * Makefile.in (SHELL): Set to @SHELL@.
1812 (ALL_CFLAGS): Add $(WARN_CFLAGS).
1814 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1816 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
1817 * configure: Regenerate.
1819 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
1821 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1822 script entry, and set LD to it when configuring multilibs.
1823 * configure: Rebuilt.
1825 2002-04-19 David O'Brien <obrien@FreeBSD.org>
1827 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
1829 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
1832 * objc/objc-api.h (struct objc_protocol_list): Change type of
1833 member count from int to size_t.
1835 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1838 * aclocal.m4: Replace with version copied from libstdc++-v3.
1839 * configure.in: Update for changes to aclocal and Makefile.
1840 * configure: Regenerate.
1841 * Makefile.in: Correct install of multilibs and shared libs, use
1842 INSTALL_DATA for include files.
1844 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
1846 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
1847 categories - when an unclaimed category was found, the loop was
1848 doing two steps forward instead of one, so that in certain cases
1849 it was failing to properly load all the categories. (Reported
1850 with fix by Alexander Malmberg <alexander@malmberg.org>).
1852 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
1854 * encoding.c: Add target_flags.
1856 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
1858 * objc/objc-api.h (_C_VECTOR): New.
1860 * encoding.c (VECTOR_TYPE): New.
1862 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
1864 * class.c: Rewritten the class table to use optimized, lock-free
1865 lookup. This more than doubles the speed of class method
1866 invocations. (class_table_setup), (class_table_insert),
1867 (class_table_replace), (class_table_get_safe),
1868 (class_table_next), (class_table_print),
1869 (class_table_print_histogram): New functions.
1870 (__objc_init_class_tables): Use class_table_setup.
1871 (__objc_add_class_to_hash): Use class_table_get_safe and
1872 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
1873 assert the existence of the table; do not lock the runtime; use
1874 class_table_get_safe. (objc_next_class): Use class_table_next.
1875 (__objc_resolve_class_links): Use class_table_next.
1876 (class_pose_as): Use class_table_replace.
1878 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
1880 * gc.c: Removed the DEBUG declaration.
1882 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
1884 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
1885 rather than through objc_thread_id, to save a function call.
1886 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
1889 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
1891 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
1892 to cast an id to a Class, which can not be done. Make the check
1893 by using CLS_ISMETA on the class pointer instead.
1894 (object_is_meta_class): Similar fix.
1896 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1898 * configure.in (AC_EXEEXT): Work around in case it expands to
1899 nothing, as in autoconf 2.50.
1900 * acinclude.m4: Likewise.
1901 * configure: Rebuilt.
1903 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
1905 * THREADS: Explain that when we compile libobjc inside GCC, we
1906 always use thr-objc.c as a backend, which uses GCC's thread code.
1908 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
1910 * init.c (__objc_send_message_in_list): When setting a new entry
1911 in __objc_load_methods use the method IMP as key, but check to see
1912 if the method is in the hashtable by looking at the IMP also.
1913 Also ... call the method after adding it to the hashtable rather
1914 than before ... thus preventing an obscure possibility of infinite
1915 recursion if a +load method itself loads a subclass.
1917 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
1919 * init.c (__objc_send_message_in_list): When setting a new entry
1920 in __objc_load_methods use the method name as key, not the method
1921 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
1923 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
1925 * objc-features.texi: Move to ../gcc/objc.texi.
1927 * Makefile.in: Don't generate documentation from
1930 2001-05-01 Mark Mitchell <mark@codesourcery.com>
1932 * fdl.texi: New file.
1933 * objc-features.texi: Simplify.
1934 * Makefile.in: Adjust accordingly.
1936 2001-04-30 Mark Mitchell <mark@codesourcery.com>
1938 * objc-features.texi: Use the GFDL.
1940 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
1942 * encoding.c (REAL_TYPE): Define.
1944 2001-03-19 David Edelsohn <edelsohn@gnu.org>
1946 * encoding.c (TYPE_MODE): Define.
1948 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
1950 * thr.c (objc_thread_add): New function.
1951 (objc_thread_remove): Ditto.
1952 * objc/thr.h: Declare them.
1953 * libobjc.def: Mention them.
1955 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
1957 * objc-features.texi: Document the @compatibility_alias compiler
1958 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
1960 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1962 * sendmsg.c (__objc_forward): Delete strlen() declaration.
1964 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1966 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
1967 we're not interested in the result and they might fail.
1968 * configure: Regenerated.
1970 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
1972 * objc-features.texi: Use @email.
1974 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
1976 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
1979 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
1981 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
1982 determines the value dynamically.
1984 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
1986 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
1987 libraries to provide a function that returns the real forwarding
1988 function. This can alleviate problems __builtin_apply() and
1989 friends have on various platforms. (Solution suggested by Helge
1992 * objc/objc-api.h: Define __objc_msg_forward.
1994 * sendmsg.c: Define gen_rtx_REG.
1996 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1998 * thr-rtems.c: New file. Stub to compile.
2000 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2002 * configure: Rebuilt with new libtool.m4.
2004 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2006 * configure.in: Create a config.h file. Check for <sched.h>.
2007 * configure: Regenerate.
2009 * config.h.in: Check for <sched.h>.
2011 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2013 * configure: Regenerate after change to ../libtool.m4.
2015 2000-08-14 Andreas Schwab <schwab@suse.de>
2017 * objc-features.texi (Top): Move @menu at end of node.
2019 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2021 * objc-features.texi: Move @node Top before @menu.
2023 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2025 * objc-features.texi: Documented the new -fconstant-string-class
2028 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2030 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2031 improve the Posix thread support for Objective-C.
2033 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2035 * aclocal.m4: Replace copy of ../libtool.m4 with
2036 sinclude(../libtool.m4).
2038 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2040 * configure.in: Added libtool support; build shared libraries
2041 if --enable-shared was passed on command line.
2042 * Makefile.in: Modified most compilation commands to use libtool.
2043 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2044 libtool distribution.
2046 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2048 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2049 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2052 2000-05-12 H.J. Lu (hjl@gnu.org)
2054 * Makefile.in (GTHREAD_FLAGS): New.
2055 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2056 (OBJC_THREAD_FILE): Changed to thr-objc.
2058 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2060 (OBJC_THREAD_FILE): Removed.
2064 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2066 * objc/hash.h: Include string.h.
2068 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2070 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2072 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2074 * Object.m (strlen): Provide prototype on all 64bit platforms,
2076 * sarray.c (memcpy): Likewise.
2077 * encoding.c (objc_layout_finish_structure): Don't use
2078 ROUND_TYPE_ALIGN on sparc.
2080 * encoding.c (objc_layout_structure_next_member): Do the whole
2081 procedure even for the first member, so that we get correct
2084 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2086 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2089 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2091 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2093 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2095 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2097 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2099 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2100 the compiler when building C code.
2102 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2104 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2105 libdir, libsubdir and tooldir.
2107 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2109 * init.c (__objc_force_linking): Make global.
2111 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2113 * configure.in (AC_EXEEXT): Remove call.
2114 (compiler_name): Explicitly check with no extension and .exe
2116 * configure: Regenerate.
2118 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2120 * Makefile.in (CC1OBJ): Define in terms of CC.
2121 (runtime-info.h): Use.
2123 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2125 * objc-features.texi: Updated the URL to Boehm's GC page.
2127 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2129 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2130 the char as being signed (patch from Daniel Jacobowitz
2133 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2135 * configure.in (AC_PREREQ): Update to 2.13.
2136 (AC_EXEEXT): Call to find possible file extension.
2137 (compiler_name): Use.
2138 * configure: Regenerate.
2140 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2142 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2144 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2146 * configure.in (thread_file): Correct and simplify code to find
2148 * configure: Rebuilt.
2150 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2152 * configure.in (compiler_name): Add check to detect if this
2153 language's compiler has been built.
2154 * configure: Regenerate.
2156 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2158 * configure.in: Use AC_PREREQ(2.12.1).
2160 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2162 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2164 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2166 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2168 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2170 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2172 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2174 * objc-features.texi (Top): Changed the email address.
2175 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2177 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2179 * encoding.c: Redefine get_inner_array_type to get the first entry
2182 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2184 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2185 (objc_get_type_qualifiers): Similarly.
2186 * objc/encoding.h (_C_BYREF): Define.
2189 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2191 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2192 works out on 64-bit systems.
2194 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2196 * Makefile.in (INCLUDES): Make it multilib-friendly.
2198 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2200 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2202 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2203 Jeffrey A Law (law@cygnus.com)
2205 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2206 (FLAGS_TO_PASS): Added.
2207 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2209 * archive.c: Change config.h to tconfig.h.
2211 * configure.in: Find gcc's object directory even for multilibs.
2213 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2215 * configure.in: Escape ^ in grep string.
2216 * configure: Rebuilt.
2218 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2220 * All .h files pushed down into the objc/ subdirectory.
2221 * Makefile.in (copy_headers): Corresponding changes.
2222 * configure.in (AC_INIT): Corresponding changes.
2223 * configure: Rebuilt.
2225 1998-09-30 Ben Elliston <bje@cygnus.com>
2226 Jeff Law <law@cygnus.com>
2228 * Makefile.in: Rewrite.
2230 * configure.in: Likewise.
2232 * configure: Regenerate.
2234 * All .c files. Remove "objc" prefix when including objc header
2235 files. Include tconfig.h, not ../tconfig.h.
2237 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2239 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2240 (get_inner_array_type): Define.
2242 1998-09-21 Ben Elliston <bje@cygnus.com>
2244 * New directory. Moved files from ../gcc/objc.