1 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
3 * objc/runtime.h (class_getIvarLayout): New.
4 (class_getWeakIvarLayout): New.
5 (class_setIvarLayout): New.
6 (class_setWeakIvarLayout): New.
7 * ivars.c (class_getIvarLayout): New.
8 (class_getWeakIvarLayout): New.
9 (class_setIvarLayout): New.
10 (class_setWeakIvarLayout): New.
12 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
14 * objc/runtime.h (class_copyPropertyList): New.
15 (class_getProperty): New.
16 (property_getAttributes): New.
17 (property_getName): New.
18 * ivars.c (class_copyPropertyList): New.
19 (class_getProperty): New.
20 (property_getAttributes): New.
21 (property_getName): New.
23 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
25 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
26 * class.c (__objc_update_classes_with_methods): New.
27 (objc_getClassList): Do not lock the class lock.
28 * methods.c (method_exchangeImplementations): New.
29 (method_setImplementation): New.
30 * objc/runtime.h (method_setImplementation): New.
31 (method_exchangeImplementations): New.
33 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
35 * Protocol.m: Include objc/runtime.h and
36 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
37 repeat Protocol's instance variables.
38 (struct objc_method_description_list): Do not define here.
39 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
40 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
41 selectors directly instead of getting names and then using strcmp.
42 ([descriptionForClassMethod:]): Same change.
43 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
44 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
45 to compare selectors directly instead of getting names and then
47 * objc/Protocol.h: Updated comments.
49 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
51 * init.c (__objc_init_protocol): New function which fixes up a
52 protocol's class pointer, registers it with the runtime, register
53 all protocol selectors and registers associated protocols too.
54 (objc_init_statics): Detect if we are initializing protocols, and
55 if so, use __objc_init_protocol instead of only fixing up the
57 (__objc_init_protocls): Use __objc_init_protocol.
58 * objc-private/module-abi-8.h: Updated comments.
59 * objc-private/runtime.h
60 (__objc_register_selectors_from_description_list): New.
61 * selector.c (__objc_register_selectors_from_description_list):
62 New. (struct objc_method_description_list): Declare.
63 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
64 when accessing the name of a method, which is now correctly a SEL.
65 ([-descriptionForClassMethod:]): Same change.
66 * protocols.c (protocol_getMethodDescription): Same change.
67 * objc/runtime.h: Updated comments.
68 (sel_registerTypedName): Fixed typo in function name.
70 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
73 * init.c (objc_init_statics): Do not skip the initialization of a
74 statics list if the first object has already been initialized; in
75 the case of Protocols, while the first one may have been
76 initialized, some others may not have been initialized yet.
78 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
80 * Makefile.in (OBJC_DEPRECATED_H): Added
81 objc_get_uninstalled_dtable, objc_object_alloc.h and
82 struct_objc_static_instances.h.
84 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
86 * encoding.c (method_copyReturnType): New.
87 (method_copyArgumentType): New.
88 (method_getReturnType): New.
89 (method_getArgumentType): New.
90 * methods.c (method_getDescription): New.
91 * objc/runtime.h (method_copyReturnType): New.
92 (method_copyArgumentType): New.
93 (method_getReturnType): New.
94 (method_getArgumentType): New.
95 (method_getDescription): New.
97 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
99 * encoding.c: Tidied up comments.
100 (objc_skip_variable_name): New static inline function.
101 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
102 the same code over and over.
103 (objc_alignof_type): Same.
104 (objc_aligned_size): Same.
105 (objc_promoted_size): Same.
106 (objc_skip_typespec): Same.
107 (objc_layout_structure_next_member): Same.
108 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
109 historical bug where objc_skip_offset would skip one byte even if
110 there is no offset: check that the first offset digit is actually
111 a digit before skipping it.
112 (objc_skip_type_qualifiers): Mark as inline.
113 (objc_skip_typespec): Mark as inline.
115 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
117 * Makefile.in (C_SOURCE_FILES): Added methods.c.
118 * encoding.c (method_getNumberOfArguments): New.
119 (method_get_number_of_arguments): Call
120 method_getNumberOfArguments.
121 * ivars.c (ivar_getName): Check for NULL variable argument.
122 (ivar_getOffset): Check for NULL variable argument.
123 (ivar_getTypeEncoding): Check for NULL variable argument.
124 (class_copyIvarList): New.
126 * protocols.c (class_copyProtocolList): Check for Nil class_
128 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
129 'struct objc_method_list *' instead of MethodList_t.
130 (class_getMethodImplementation): New.
131 (class_respondsToSelector): New.
132 (class_getInstanceMethod): New.
133 (class_getClassMethod): New.
134 * objc/runtime.h: Updated comments.
135 (class_copyIvarList): New.
136 (class_getInstanceMethod): New.
137 (class_getClassMethod): New.
138 (class_getMethodImplementation): New.
139 (class_respondsToSelector): New.
140 (method_getName): New.
141 (method_getImplementation): New.
142 (method_getTypeEncoding): New.
143 (class_copyMethodList): New.
144 (method_getNumberOfArguments): New.
146 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
148 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
149 instead of objc/objc-api.h.
150 (objc_get_unknown_class_handler): Do not define.
151 (class_isMetaClass): New.
152 (class_getSuperclass): New.
153 (class_getVersion): New.
154 (class_setVersion): New.
155 (class_getInstanceSize): New.
156 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
157 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
158 objc_get_super_class.
159 (get_ttype_entry): Use objc_getRequiredClass instead of
161 * ivars.c (class_getClassVariable): New.
162 * objects.c: Include objc/runtime.h, objc/thr.h and
163 objc-private/module-abi-8.h instead of objc/objc-api.h
164 * objc/runtime.h (class_getClassVariable): New.
165 (class_isMetaClass): New.
166 (class_getSuperclass): New.
167 (class_getVersion): New.
168 (class_setVersion): New.
169 (class_getInstanceSize): New.
170 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
173 (__CLS_ISINFO): Same.
174 (__CLS_SETINFO): Same.
177 (CLS_ISRESOLV): Same.
178 (CLS_SETRESOLV): Same.
179 (CLS_ISINITIALIZED): Same.
180 (CLS_SETINITIALIZED): Same.
181 (CLS_GETNUMBER): Same.
182 (CLS_SETNUMBER): Same.
184 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
186 * archive.c: Do not include objc/objc.h.
187 * class.c: Do not include objc/objc.h.
188 * encoding.c: Include objc/runtime.h, ctype.h and
189 objc-private/module-abi-8.h instead of objc/objc-api.h and
191 * error.c: Do not include objc/objc.h.
192 * gc.c: Include tconfig.h and objc/encoding.h only if
194 * hash.c: Include objc/runtime.h and objc/thr.h instead of
195 objc/objc-api.h. Do not include objc/objc.h.
196 * init.c: Do not include objc/objc.h.
197 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
198 objc/thr.h instead of objc/objc-api.h. Do not include
200 * linking.m: Tidied comment.
201 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
202 Do not include objc/objc.h.
203 * objects.c: Do not include objc/objc.h.
204 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
205 * protocols.c: Do not include objc/objc.h.
206 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
207 not include objc/objc.h.
208 * selector.c: Do not include objc/objc.h.
209 * sendmsg.c: Do not include objc/objc.h.
210 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
211 Do not include objc/objc.h.
212 * objc/objc-decls.h: Reindented code.
213 * objc/runtime.h Include objc-decls.h. Updated comments.
215 (objc_atomic_malloc): New.
219 * objc-private/runtime.h: Updated comments.
221 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
223 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
224 * objc-private/protocols.h: New.
226 * init.c: Include objc-private/protocols.h.
227 (__objc_exec_class): Call __objc_protocols_init on startup.
228 (__objc_init_protocols): Call __objc_protocols_add_protocol.
229 * objc-private/runtime.h: Use (struct objc_method_list *) instead
230 of MethodList_t, and (struct objc_method *) instead of Method_t.
231 * objc/deprecated/struct_objc_class.h: Define
232 __objc_STRUCT_OBJC_CLASS_defined.
233 * objc-private/module-abi-8.h (struct
234 objc_method_description_list): New.
235 (struct objc_class): Only define if
236 __objc_STRUCT_OBJC_CLASS_defined is undefined.
237 * objc/runtime.h (class_getName): New.
238 (objc_getProtocol): New.
239 (objc_copyProtocolList): New.
240 (class_addProtocol): New.
241 (class_conformsToProtocol): New.
242 (class_copyProtocolList): New.
243 (protocol_conformsToProtocol): New.
244 (protocol_isEqual): New.
245 (protocol_getName): New.
246 (protocol_getMethodDescription): New.
247 (protocol_copyMethodDescriptionList): New.
248 (protocol_getProperty): New.
249 (protocol_copyPropertyList): New.
250 (protocol_copyProtocolList): New.
251 * class.c (class_getName): New.
252 * selector.c (sel_isEqual): New.
254 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
256 * selector.c (sel_getName): Return "<null selector>" for a NULL
258 (sel_get_name): Return 0 for a NULL argument.
259 * objc/runtime.h (sel_getName): Updated documentation.
261 * objc-private/hash.h (class_hash_table): Unused declaration
263 (module_hash_table): Same.
264 * objc/deprecated/hash.h: Same changes.
266 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
268 * class.c (objc_getClassList): New.
269 (objc_getRequiredClass): New.
270 (objc_getMetaClass): New.
271 (objc_lookupClass): New.
272 (objc_getClass): New.
273 (__objc_get_unknown_class_handler): New.
274 (objc_setGetUnknownClassHandler): New.
275 (objc_get_class): Use __objc_get_unknown_class_handler.
276 (objc_lookup_class): Call objc_getClass.
277 * objc/objc-api.h: Updated comment and copyright notice.
278 * objc/runtime.h: Updated comments.
279 (objc_getClass): New.
280 (objc_lookupClass): New.
281 (objc_getMetaClass): New.
282 (objc_getRequiredClass): New.
283 (objc_getClassList): New.
284 (objc_setGetUnknownClassHandler): New.
285 (objc_get_unknown_class_handler): New.
286 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
287 instead of __objc_runtime_INCLUDE_GNU as include guard.
288 * objc-private/error.h (_objc_abort): Mark as noreturn.
290 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
292 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
294 * objc/objc.h: Updated comments.
295 * objc/runtime.h (object_getClass): New.
296 (object_getClassName): New.
297 (object_setClass): New.
298 (class_getInstanceVariable): New.
299 (object_getIndexedIvars): New.
300 (object_getInstanceVariable): New.
301 (object_setInstanceVariable): New.
302 (object_getIvar): New.
303 (object_setIvar): New.
305 (ivar_getOffset): New.
306 (ivar_getTypeEncoding): New.
307 * objc-private/module-abi-8.h (struct objc_class): Added.
308 * objects.c (object_getClassName): New.
309 (object_setClass): New.
311 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
313 * objc/objc.h: Updated comments.
314 * objc/objc-api.h: (object_copy): Added one argument; use a
315 #define to maintain backwards-compatibility. Moved
316 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
317 objc_get_uninstalled_dtable into
318 objc/deprecated/objc_get_uninstalled_dtable.h and
319 objc/deprecated/objc_object_alloc.h. Include these files.
320 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
321 * objc/deprecated/objc_object_alloc.h: New.
322 * objc/runtime.h (set_getName): New.
325 (sel_registerName): New.
326 (sel_registerTypedName): New.
328 (class_createInstance): New.
330 (object_dispose): New.
331 * objects.c: Do not include tconfig.h. Include gc_typed.h if
332 building the garbage collection version.
333 (__objc_object_alloc): Removed.
334 (__objc_object_copy): Removed.
335 (__objc_object_dispose): Removed.
336 (class_createInstance): New from code in class_create_instance.
337 Cast second argument of GC_malloc_explicitly_typed. Use
338 objc_calloc. Do not call _objc_object_alloc.
339 (class_create_instance): Call class_createInstance.
340 (object_copy): Added extraBytes argument. Do not call
342 (object_dispose): Do not call _objc_object_dispose.
343 * memory.c (objc_free): When using garbage collection, mark the
345 * selector.c (sel_getName): New.
346 (sel_get_name): Call sel_getName.
348 (sel_get_type): Call sel_getType.
349 (sel_registerName): New.
350 (sel_register_name): Call sel_registerName.
351 (sel_registerTypedName): New.
352 (sel_register_typed_name): Call sel_registerTypedName.
354 (sel_get_uid): Call sel_getUid.
356 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
358 * objc/objc-api.h: Define Method, Method_t, Category and
359 Category_t. Prevent including this file at the same time as
360 objc/runtime.h. Updated comments.
361 * objc/deprecated/struct_objc_method.h: Do not define Method,
363 * objc/deprecated/struct_objc_category.h: Do not define Category,
365 * objc-private/module-abi-8.h: New file containing a copy of all
366 the structure definitions. Not used yet.
367 * objc/encoding.h (objc_aligned_size): Removed duplicate
368 declaration. Updated comments.
369 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
370 Category, struct objc_method_description, _C_ID and similar,
371 _C_CONST and similar and _F_CONST and similar. Added
372 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
373 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
374 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
375 struct objc_struct_layout, objc_layout_structure,
376 objc_layout_structure_next_member, objc_layout_finish_structure,
377 objc_layout_structure_get_info. Prevent including this file at
378 the same time as objc/objc-api.h.
380 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
382 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
383 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
384 struct_objc_method_list.h, struct_objc_module.h,
385 struct_objc_protocol_list.h, struct_objc_symtab.h.
386 * objc/deprecated/struct_objc_category.h: New.
387 * objc/deprecated/struct_objc_ivar.h: New.
388 * objc/deprecated/struct_objc_ivar_list.h: New.
389 * objc/deprecated/struct_objc_method.h: New.
390 * objc/deprecated/struct_objc_method_list.h: New.
391 * objc/deprecated/struct_objc_module.h: New.
392 * objc/deprecated/struct_objc_protocol_list.h: New.
393 * objc/deprecated/struct_objc_symtab.h: New.
394 * objc/deprecated/struct_objc_static_instances.h: New.
395 * objc/objc-api.h: Definitions of deprecated structures moved into
396 the above header fragment files in objc/deprecated/. Include the
397 files instead of definition the structures here. Updated
399 * objc/runtime.h: Updated comments. Do not include objc-api.h.
400 (objc_set_enumeration_mutation_handler): Renamed to
401 objc_setEnumerationMutationHandler.
402 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
403 to objc_setEnumerationMutationHandler.
404 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
405 objc_setExceptionMatcher.
406 (objc_set_uncaught_exception_handler): Renamed to
407 objc_setUncaughtExceptionHandler.
408 * exception.c: Same changes.
410 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
412 * objc-sync.c: Include objc-private/common.h.
414 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
416 * objc-foreach.c: Include objc-private/common.h.
417 * objc/deprecated/METHOD_NULL.h: New file.
418 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
419 defining METHOD_NULL here.
420 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
421 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
423 ([-respondsTo:]): Same change.
424 * objc/objc-api.h (method_get_imp): Converted it into a normal
425 function so that we can hide the internals of struct objc_method.
426 * sendmsg.c (method_get_imp): Implemented.
428 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
430 * objc/objc-api.h (struct objc_super, Super, Super_t,
431 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
432 objc_msg_forward2): Declarations moved to objc/message.h. Include
434 * objc/message.h: Added such declarations; updated comments.
436 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
438 Implemented fast enumeration for Objective-C.
439 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
440 (OBJC_H): Added runtime.h
441 * objc-foreach.c: New file.
442 * objc/runtime.h: New file.
444 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
446 * objc/deprecated/struct_objc_class.h: Add padding
447 to avoid warning with -Wpadded.
449 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
451 * encoding.c (objc_sizeof_type): Added support for vector type and
452 for double long types.
453 (objc_alignof_type): Same change.
454 (objc_skip_typespec): Same change.
455 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
456 instead of '!' since '!' is already used for _C_VECTOR.
457 * objc/objc-api.h (_C_LNG_DBL): Added.
459 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
461 * libobjc_entry.c: File removed.
463 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
465 * sendmsg.c (objc_msg_lookup): Remove inline.
466 (objc_get_uninstalled_dtable): Likewise.
467 * encoding.c (objc_skip_type_qualifiers): Likewise.
468 (objc_skip_offset): Likewise.
469 * archive.c (__objc_write_object): Likewise
470 (__objc_write_class):
471 (__objc_write_selector):
473 (objc_read_unsigned_char):
475 (objc_read_unsigned_short):
478 (__objc_read_nbyte_uint):
479 (objc_read_unsigned_int):
480 (objc_read_unsigned_long):
481 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
482 (objc_EXPORT): Likewise.
483 * objc/message.h (objc-decls.h): Add include.
484 * objc/objc-api.h: Mark API by objc_EXPORT.
485 * libobjc.def (__objc_responds_to): Removed.
487 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
489 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
491 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
492 objc/sarray.h replaced with a placeholder including the file from
493 the deprecated/ directory.
494 * objc-private/sarray.h: New file (private copy of sarray.h).
495 * hash.c: Include <assert.h> instead of "assert.h"
496 * sarray.c: Include <assert.h> instead of "assert.h". Include
497 objc-private/sarray.h instead of objc/sarray.h.
498 * selector.c: Include objc-private/sarray.h instead of
500 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
501 instead of objc/sarray.h.
502 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
504 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
506 * objc-private/objc-list.h (list_remove_elem): Unused function
507 removed. (list_nth): Unused function removed. (list_find):
508 Unused function removed. (list_lenght): Unused function removed.
510 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
512 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
513 replaced with a placeholder including the file from the
514 deprecated/ directory.
515 * objc/objc-api.h: Updated includes.
516 * objc/typedstream.h: Updated includes.
517 * objc-private/hash.h: New file (private copy of hash.h).
518 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
519 objc/objc-list.h replaced with a placeholder including the file
520 from the deprecated/ directory.
521 * objc-private/objc-list.h: New file (private copy of objc-list.h).
522 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
523 instead of objc/hash.h and objc/objc-list.h.
524 * selector.c: Same change.
525 * class.c: Added include <string.h>, which used to be implicitly included
526 when hash.h was included.
527 * exception.c: Same change.
528 * objects.c: Same change.
529 * sarray.c: Same change.
530 * sendmsg.c: Same change.
531 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
533 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
535 Implemented objc_sync_enter() and objc_sync_exit(), which are
536 required by @synchronized() to work.
537 * objc-sync.c: New file.
538 * objc/objc-sync.h: New file.
539 * objc-private/objc-sync.h: New file.
540 * init.c (__objc_exec_class): Call __objc_sync_init() during the
541 Objective-C runtime startup.
542 * Makefile.in: Added objc-sync.c and objc-sync.h.
543 * configure.ac: Added GCC_CHECK_TLS.
544 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
545 * configure: Regenerated.
546 * config.h.in: Regenerated.
548 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
550 * Makefile.in (%_gc.lo): New pattern rules to build the
551 garbage-collected version of the library. Removed rules for
552 specific files that are no longer needed. Standardized all rules.
553 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
554 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
556 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
558 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
560 * memory.c (objc_calloc): Fixed call to GC_malloc when building
561 with Garbage Colletion.
563 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
565 * memory.c: Do not include objc-private/runtime.h.
567 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
569 * objc/deprecated/objc_malloc.h: New file.
570 * objc/deprecated/objc_valloc.h: New file.
571 * objc/objc-api.h: Include the files instead of defining
572 objc_valloc, _objc_malloc() and similar.
573 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
575 * memory.c: Removed the extra layer of indirection of _objc_malloc
577 (objc_calloc): Use GC_malloc in the garbage-collected
578 implementation as GC_malloc returns memory that is already freed.
579 (objc_valloc): Deprecated.
581 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
583 * objc/deprecated/objc_error.h: New file.
584 * objc/objc-api.h: Include deprecated/objc_error.h instead of
585 defining objc_error and related.
586 * error.c: New file. Added _objc_abort function which replaces
587 objc_error. No change in functionality as they both print an
589 * misc.c: File removed. Code moved into memory.c and error.c.
590 * memory.c: New file.
591 * objc-private/error.h: New file.
592 * archive.c: Include objc-private/error.h and use _objc_abort
593 instead of objc_error everywhere.
594 * class.c: Same change.
595 * encoding.c: Same change.
596 * init.c: Same change, and simplified init_check_module_version.
597 * memory.c: Same change.
598 * sendmsg.c: Same change.
599 * thr.c: Same change.
600 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
601 (OBJ_H): Reordered list.
602 (OBJS): Removed misc.lo, added memory.lo and error.lo.
603 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
604 (misc_gc.lo): Rule removed.
605 (error_gc.lo): Rule added.
606 (memory_gc.lo): Rule added.
608 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
610 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
611 to check the API version. Added some comments.
613 * objc-private/common.h: New file.
614 * NXConstStr.m: Include objc-private/common.h.
615 * Object.m: Same change.
616 * Protocol.m: Same change.
617 * archive.c: Same change.
618 * class.c: Same change.
619 * encoding.c: Same change.
620 * exception.c: Same change.
622 * hash.c: Same change.
623 * init.c: Same change.
624 * libobjc_entry.c: Same change.
625 * linking.m: Same change.
626 * misc.c: Same change (and added a comment).
627 * nil_method.c: Same change.
628 * objects.c: Same change.
629 * sarray.c: Same change.
630 * selector.c: Same change.
631 * sendmsg.c: Same change.
632 * thr.c: Same change.
634 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
636 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
638 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
640 * archive.c: Removed not needed includes.
641 * class.c: Same change.
642 * hash.c: Same change.
643 * misc.c: Same change.
644 * nil_method.c: Same change.
645 * objects.c: Same change.
646 * sarray.c: Same change.
647 * sendmsg.c: Same change.
648 * thr.c: Same change.
650 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
652 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
653 all the objc/*.h files.
654 * objc-private/runtime.h: New file.
655 * archive.c: Include objc-private/runtime.h (and required objc/*.h
656 files) instead of objc/runtime.h.
657 * class.c: Same change.
658 * hash.c: Same change.
659 * init.c: Same change.
660 * misc.c: Same change.
661 * nil_method.c: Same change.
662 * objects.c: Same change.
663 * sarray.c: Same change.
664 * selector.c: Same change.
665 * sendmsg.c: Same change.
666 * thr.c: Same change.
668 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
670 * objc/deprecated/struct_objc_selector.h: New file. Definition of
671 'struct objc_selector' and 'sel_eq' moved here.
672 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
673 'struct objc_procotol' moved here.
674 * objc/deprecated/struct_objc_class.h: New file. Definition of
675 'struct objc_class' moved here.
676 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
678 * objc/deprecated/STR.h: New file. Definition of STR moved here.
679 * objc/message.h: New file. Definitions for relval_t, apply_t,
680 arglist, arglist_t and objc_msg_lookup were moved here.
681 * objc/objc.h: Include the above files instead of defining the
682 corresponding structs, types and functions here. Added new opaque
683 definitions for SEL and Class. Use Class and not 'struct
684 objc_class *' in the definition of 'struct objc_object'.
685 Commented all types defined in the file. Removed special
686 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
688 * objc/deprecated/objc-unexpected-exception.h: Renamed to
689 objc_unexpected_exception.h.
690 * objc/objc-api.h: Updated include of
691 objc-unexpetected-exception.h
692 * objc/objc-exception.h: Updated comments.
693 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
694 files. Reindented list of files.
696 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
698 * objc/objc-api.h (objc_trace): Unused variable removed.
700 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
702 * objc/deprecated: New directory.
703 * objc/deprecated/README: New file.
704 * objc/README: New file.
705 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
706 objc/typedstream.h replaced with a placeholder including the file
707 from the deprecated/ directory.
708 * objc/deprecated/objc-unexpected-exception.h: New file with the
709 definition of _objc_unexpected_exception.
710 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
711 instead of defining _objc_unexpected_exception.
712 * objc/deprecated/Object.h: New file with the deprecated Object
713 methods in a 'Deprecated' category.
714 * objc/Object.h Include deprecated/Object.h instead of defining
715 the deprecated methods.
716 * Object.m: Moved deprecated methods into 'Deprecated' category.
717 * objc-private: New directory.
718 * objc-private/README: New file.
719 * Makefile.in (OBJC_DEPRECATED_H): New variable.
720 (install-headers): Create installation directory for
721 OBJC_DEPRECATED_H headers, and install them.
723 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
725 * objc/objc-exception.h: Fixed include of objc.h.
727 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
729 * objc/objc-exception.h: New file.
730 * exception.c (objc_set_uncaught_exception_handler): Implemented.
731 (objc_set_exception_matcher): Implemented.
732 (objc_exception_throw): Use the uncaught exception handler if set.
733 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
735 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
736 up. Removed segmentation fault when value is 'nil'.
737 * objc/objc-api.h (_objc_unexpected_exception): Mark as
739 * Makefile.in (exception.lo, exception_gc.lo): Use
740 -Wno-deprecated-declarations when compiling.
741 (OBJC_H): Added objc-exception.h
743 2010-09-08 Nicola Pero <nicola@nicola.brainstorm.co.uk>
745 * objc/typedstream.h: Deprecate all functions in the file. This
747 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
748 [-awake]): Documented that these methods are deprecated. Added a
749 brief description of the Object class and its relationship to the
751 * Makefile.in: Compile archive.c and Object.m with
752 -Wno-deprecated-declarations.
754 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
756 Removed obsolete intermediate threading layer.
757 * thr.c: Use __gthread_objc_xxx functions directly instead of
758 __objc_thread_xxx ones.
759 * objc/thr.h: Removed prototypes of no longer existing
760 __objc_thread_xxx functions.
761 * Makefile.in: Removed thr-objc.lo.
762 * thr-dce.c: File removed.
763 * thr-decosf1.c: File removed.
764 * thr-irix.c: File removed.
765 * thr-mach.c: File removed.
766 * thr-objc.c: File removed.
767 * thr-os2.c: File removed.
768 * thr-posix.c: File removed.
769 * thr-pthreads.c: File removed.
770 * thr-rtems.c: File removed.
771 * thr-single.c: File removed.
772 * thr-solaris.c: File removed.
773 * thr-vxworks.c: File removed.
774 * thr-win32.c: File removed.
775 * README.threads: File removed.
776 * THREADS.MACH: File removed.
779 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
781 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
783 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
785 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
786 Add a comment as to why, update FIXME comments.
788 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
790 * makefile.dos: Obsolete file removed.
792 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
794 * aclocal.m4: Regenerate.
796 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
799 * configure.ac (extra_ldflags_libobjc): Define appropriately for
800 Cygwin and MinGW hosts.
801 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
802 (libobjc.dll): Likewise.
803 * configure: Regenerate.
805 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
807 * configure: Regenerate.
809 2009-11-28 Jakub Jelinek <jakub@redhat.com>
811 * sarray.c (sarray_free): Use old_buckets variable.
812 * encoding.c (objc_layout_structure_next_member): Remove unused
813 bfld_type_size variable.
815 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
817 * configure.ac (AC_PREREQ): Bump to 2.64.
819 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
821 * aclocal.m4: Regenerate.
822 * configure: Regenerate.
823 * config.h.in: Regenerate.
825 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
827 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
829 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
831 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
833 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
835 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
837 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
839 2009-04-09 Nick Clifton <nickc@redhat.com>
841 * sendmsg.c: Change copyright header to refer to version 3 of
842 the GNU General Public License with version 3.1 of the GCC
843 Runtime Library Exception and to point readers at the COPYING3
844 and COPYING3.RUNTIME files and the FSF's license web page.
845 * NXConstStr.m: Likewise.
846 * Object.m: Likewise.
847 * Protocol.m: Likewise.
848 * archive.c: Likewise.
850 * encoding.c: Likewise.
851 * exception.c: Likewise.
855 * libobjc_entry.c: Likewise.
856 * linking.m: Likewise.
858 * nil_method.c: Likewise.
859 * objc/NXConstStr.h: Likewise.
860 * objc/Object.h: Likewise.
861 * objc/Protocol.h: Likewise.
862 * objc/encoding.h: Likewise.
863 * objc/hash.h: Likewise.
864 * objc/objc-api.h: Likewise.
865 * objc/objc-decls.h: Likewise.
866 * objc/objc-list.h: Likewise.
867 * objc/objc.h: Likewise.
868 * objc/runtime.h: Likewise.
869 * objc/sarray.h: Likewise.
870 * objc/thr.h: Likewise.
871 * objc/typedstream.h: Likewise.
872 * objects.c: Likewise.
873 * sarray.c: Likewise.
874 * selector.c: Likewise.
875 * thr-dce.c: Likewise.
876 * thr-decosf1.c: Likewise.
877 * thr-irix.c: Likewise.
878 * thr-mach.c: Likewise.
879 * thr-objc.c: Likewise.
880 * thr-os2.c: Likewise.
881 * thr-posix.c: Likewise.
882 * thr-pthreads.c: Likewise.
883 * thr-rtems.c: Likewise.
884 * thr-single.c: Likewise.
885 * thr-solaris.c: Likewise.
886 * thr-vxworks.c: Likewise.
887 * thr-win32.c: Likewise.
889 * libobjc.def: Change copyright header to refer to version 3 of
890 the GNU General Public License and to point readers at the COPYING3
891 file and the FSF's license web page.
892 * makefile.dos: Likewise.
894 2009-04-09 Jakub Jelinek <jakub@redhat.com>
896 * Makefile.in: Change copyright header to refer to version
897 3 of the GNU General Public License and to point readers at the
898 COPYING3 file and the FSF's license web page.
899 * configure.ac: Likewise.
901 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
902 David Ayers <ayers@fsfe.org>
905 * objc/objc-api.h (_objc_unexpected_exception): Declare
906 new hook. Update copyright dates.
907 * exception.c (objc_exception_throw): Use hook. Update
909 * libobjc.def (_objc_unexpected_exception): Export hook.
910 Update copyright dates.
912 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
914 * configure: Regenerate.
916 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
918 * configure: Regenerate.
920 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
922 * Object.m (errno): Replaced by errno.h include.
923 (compare): Cast self to id to prevent warning on comparison.
924 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
926 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
927 * thr-win32.c (__objc_thread_detach): Remove type warning.
928 (__objc_thread_id): Likewise.
929 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
932 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
933 Steve Ellcey <sje@cup.hp.com>
935 * configure: Regenerate for new libtool.
936 * config.h.in: Regenerate for new libtool.
938 2008-07-18 Matthias Klose <doko@ubuntu.com>
940 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
942 2008-07-18 Matthias Klose <doko@ubuntu.com>
944 * Makefile.in: Include ../boehm-gc/threads.mk.
945 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
947 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
949 * Makefile.in (install-info): New stub target.
951 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
953 * configure: Regenerate.
955 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
957 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
958 if HAVE_GETIPINFO is not defined.
960 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
962 * Object.m (compare): Add type id.
963 * objc/Object.h: Likewise.
964 * archive.c (objc_read_class): Use size_t to extend version to be
965 size of pointer scalar width.
966 * sendmsg.c (rtx): Undefine it before redefinition.
967 (__objc_print_dtable_stats): Cast arguments to long as intended.
969 2008-05-30 Julian Brown <julian@codesourcery.com>
971 * exception.c (__objc_exception_class): Initialise as constant
972 array for ARM EABI. Change macro to static const for non-ARM EABI.
973 (ObjcException): Add note about structure layout. Remove landingPad
974 and handlerSwitchValue for ARM EABI.
975 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
977 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
978 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
979 ARM EABI unwinding support.
980 (objc_exception_throw): Use memcpy to initialise exception class.
982 2008-05-25 Alan Modra <amodra@bigpond.net.au>
984 * encoding.c (strip_array_types): Rename from get_inner_array_type.
985 (rs6000_special_round_type_align): Update.
987 2008-05-09 Julian Brown <julian@codesourcery.com>
989 * Makefile.in (LTLDFLAGS): New.
990 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
992 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
995 * aclocal.m4: Regenerate.
996 * configure: Regenerate.
998 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1000 * configure: Regenerate.
1002 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1004 * configure.ac: Don't run config-ml.in directly.
1005 (multilib_arg): New.
1006 * configure: Regenerated.
1008 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1011 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1012 of _Unwind_Word for variables which are used in
1013 read_uleb128/read_sleb128.
1014 (PERSONALITY_FUNCTION): Likewise.
1016 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1018 * aclocal.m4: Regenerated.
1020 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1022 * configure.ac: Fix a typo in *-*-darwin clause.
1023 * configure: Regenerated.
1025 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1027 * configure.ac: Fix a typo.
1028 * configure: Regenerated.
1030 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1032 * configure: Regenerate.
1034 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1036 * Makefile.in: Replace all uses of libext with libsuffix.
1037 * configure.ac: Likewise.
1038 * configure: Regenerate.
1041 * Makefile.in: Remove all uses of $(libext).
1043 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1045 * Makefile.in: Remove all uses of $(libext).
1047 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1049 * configure: Regenerate.
1050 * aclocal.m4: Regenerate.
1052 2007-04-21 Andrew Ruder <andy@aeruder.net>
1054 * sendmsg.c (__objc_get_forward_imp): Call
1055 __objc_msg_forward2 for real.
1057 2007-04-09 Andrew Ruder <andy@aeruder.net>
1059 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1060 external libraries to provide a function that returns the real
1061 forwarding function based on both the selector and the receiver.
1062 * objc/objc-api.h: Define __objc_msg_forward2.
1064 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1066 * Makefile.in: Add dummy install-pdf target.
1068 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1070 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1073 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1075 * encoding.c (darwin_rs6000_special_round_type_align): New.
1077 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1079 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1080 * configure.ac: Use multi.m4 from aclocal rather than custom
1081 code. Use multi_basedir instead of toplevel_srcdir.
1082 * aclocal.m4: Regenerate.
1083 * configure: Regenerate.
1085 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1087 * Makefile.in: Added empty "pdf" target.
1089 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1091 * configure: Regenerate.
1093 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1095 * Makefile.in: Add install-html target. Add install-html to .PHONY
1097 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1100 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1102 2006-01-24 David Ayers <d.ayers@inode.at>
1105 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1106 and insure the new strings are '\0' termintated.
1108 2006-01-24 David Ayers <d.ayers@inode.at>
1111 * configure.ac: Add include directives for --enable-objc-gc.
1112 * Makefile.in: Ditto.
1113 * configure: Regenerate.
1115 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1116 instead of the local pointer to them.
1118 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1121 * objc/objc-api.c (_C_COMPLEX): New define.
1122 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1123 (objc_alignof_type): Likewise.
1124 (objc_skip_typespec): Likewise.
1126 2005-12-15 David Ayers <d.ayers@inode.at>
1129 * README (+load,+initialize): Fix documentation to reflect
1130 intended and implemented semantics for +load and +initialize.
1132 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1134 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1136 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1137 (rs6000_special_round_type_align): Update for the ABI fix.
1138 (objc_layout_finish_structure): Correct the encoding which is passed to
1141 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1144 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1145 but use the struct layout functions.
1146 (objc_alignof_type): Likewise.
1147 (objc_layout_structure): Handle _C_UNION_B also.
1148 (objc_layout_structure_next_member): Likewise.
1149 (objc_layout_finish_structure): Likewise.
1151 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1154 * objc/objc-api.h (_C_BOOL): New define.
1155 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1156 (objc_alignof_type): Likewise.
1157 (objc_skip_typespec): Likewise.
1159 2005-11-20 David Ayers <d.ayers@inode.at>
1162 * objc/hash.h: Remove deprecated hash API.
1163 * hash_compat.c: Remove.
1164 * Makefile.in: Remove reference to hash_compat.c.
1166 * configure.ac (VERSION): Bump library version to 2:0:0.
1167 * configure: Regenerate.
1169 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1172 * thr-objc.c (_XOPEN_SOURCE): Define.
1174 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1177 * objc/objc-api.h (struct objc_ivar): Move definition to
1180 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1181 Rasmus Hahn <rassahah@neofonie.de>
1184 * archive.c (objc_write_type): Correct the element offset.
1185 (objc_read_type): Likewise.
1187 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1189 * All files: Update FSF address.
1191 2005-08-13 Marcin Koziej <creep@desk.pl>
1192 Andrew Pinski <pinskia@physics.uc.edu>
1195 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1197 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1199 * Makefile.in (extra_ldflags_libobjc): New.
1200 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1201 (libobjc_gc$(libext).la): Likewise.
1202 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1203 "-Wl,-single_module".
1204 * configure: Regenerate.
1205 * linking.m (_objcInit): Remove.
1207 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1210 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1212 2005-06-08 David Ayers <d.ayers@inode.at>
1214 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1215 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1216 objc/runtime.h, objc/sarray.h, objc/thr.h,
1217 objc/typedstream.h: Do not include Objective-C headers as
1220 2005-06-07 David Ayers <d.ayers@inode.at>
1222 * archive.c, init.c, selector.c: Include hash.h.
1223 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1224 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1225 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1226 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1227 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1228 Include Objective-C headers with quotes and objc/ directory
1231 2005-05-19 Richard Henderson <rth@redhat.com>
1233 * exception.c: Revert last change.
1235 2005-05-19 David Ayers <d.ayers@inode.at>
1237 * exception.c: Include tsystem.h for unwind.h.
1239 2005-05-09 Mike Stump <mrs@apple.com>
1241 * configure: Regenerate.
1243 2005-04-12 Mike Stump <mrs@apple.com>
1245 * configure: Regenerate.
1247 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1249 * Makefile.in: Set gcc_version here.
1250 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1251 in definition of toolexeclibdir so that $(gcc_version) is expanded
1253 * aclocal.m4, configure: Regenerate.
1255 2005-03-03 David Ayers <d.ayers@inode.at>
1257 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1258 version reference. Correct typo.
1260 2005-03-02 David Ayers <d.ayers@inode.at>
1263 * Makefile.in (OBJS): Add hash_compat.lo.
1264 (OBJS_GC): Add hash_compat_gc.lo.
1265 (hash_compat_gc.lo): New target and rule.
1266 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1267 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1268 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1269 with objc_. Add deprecated non prefixed inlined versions.
1270 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1272 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1273 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1275 * hash_compat.c: New file.
1276 * archive.c: Update callers.
1278 * selector.c: Likewise.
1279 * libobjc.def: Add objc_ versions of hash functions.
1281 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1284 * Makefile.in (GTHREAD_FLAGS): Remove.
1285 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1286 * thr-objc.c: Include config.h.
1287 * configure.ac: Instead of looking at GCC's makefile, figure out if
1288 GTHREAD_FLAGS should be defined by looking at the `thread model'
1290 * configure: Regenerate.
1291 * config.h.in: Regenerate.
1293 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1296 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1297 (Determine CFLAGS for gthread): Use $host_subdir.
1298 * configure: Regenerate.
1299 * Makefile.in (host_subdir): New.
1302 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1305 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1307 Include limits.h and stdlib.h.
1308 Define BITS_PER_WORD.
1310 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1312 * selector.c (__objc_init_selector_tables): Add missing void to
1315 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1317 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1318 * configure, aclocal.m4: Regenerate.
1320 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1322 * configure: Regenerate for libtool change.
1324 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1326 * configure: Regenerate for libtool reversion.
1328 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1330 * configure: Regenerate for libtool change.
1332 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1334 * aclocal.m4, config.h.in: Regenerate.
1336 2004-10-08 Mike Stump <mrs@apple.com>
1337 Andrew Pinski <pinskia@physics.uc.edu>
1339 * aclocal.m4: Rename to ...
1340 * acinclude.m4: here and also use m4_include instead of sinclude.
1341 * aclocal.m4: Regenerate.
1342 * configure: Regenerate.
1343 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1344 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1346 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1348 * archive.c: Fix all the warnings about passing unsigned char*
1349 to char* and the other way too.
1351 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1354 * exception.c: Include config.h
1355 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1357 * configure.ac: Find out what exception handling code we use.
1358 * configure: Regenerate.
1359 * config.h.in: New file, regenerate.
1361 2004-09-16 Andrew Pinski <apinski@apple.com>
1363 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1365 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1367 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1368 ACX_NONCANONICAL_TARGET.
1369 * configure: Regenerate.
1371 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1373 * objc/sarray.h: Hoist include of assert.h near the top of file,
1374 and mark the remainder of the file 'extern "C"'.
1376 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1378 * objc/Object.h: Move includes out of extern "C" blocks.
1379 * objc/encoding.h: Likewise.
1380 * objc/hash.h: Likewise.
1381 * objc/objc-api.h: Likewise.
1382 * objc/runtime.h: Likewise.
1383 * objc/sarray.h: Likewise.
1384 * objc/typedstream.h: Likewise.
1386 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1388 * objc/NXConstStr.h: Update copyright date; bracket with
1389 'extern "C"' for C++ use; make include syntax consistent
1390 by using <...> instead of "..."; hoist <objc/...> includes
1391 above the 'extern "C"' block.
1392 * objc/Object.h: Likewise.
1393 * objc/Protocol.h: Likewise.
1394 * objc/encoding.h: Likewise.
1395 * objc/hash.h: Likewise.
1396 * objc/runtime.h: Likewise.
1397 * objc/sarray.h: Likewise.
1398 * objc/thr.h: Likewise.
1399 * objc/typedstream.h: Likewise.
1400 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1401 (objc_static_instances): For C++ case, do away with
1403 (objc_method): Hoist definition to file scope.
1404 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1405 class_get_instance_method, class_create_instance,
1406 class_get_class_name, class_get_instance_size,
1407 class_get_meta_class, class_get_super_class, class_get_version,
1408 class_is_class, class_is_meta_class, class_set_version,
1409 class_get_gc_object_type, class_ivar_set_gcinvisible,
1410 get_imp): Rename 'class' parameter to '_class'.
1411 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1412 * objc/objc.h: Update copyright date.
1413 (arglist_t): Provide a union tag.
1415 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1417 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1418 but instead use the attribute noreturn.
1420 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1422 * encoding.c: Rename target_flags with a #define to avoid
1423 conflict with a prior declaration.
1425 2004-06-24 Andrew Pinski <apinski@apple.com>
1427 * objc/encoding.h: Wrap the functions with extern "C" for C++
1429 * objc/hash.h: Likewise.
1430 * objc/objc-api.h: Likewise.
1431 * objc/objc-list.h: Likewise.
1432 * objc/runtime.h: Likewise.
1433 * objc/sarray.h: Likewise.
1434 * objc/thr.h: Likewise.
1435 * objc/typedstream.h: Likewise.
1438 2004-06-21 Nick Clifton <nickc@redhat.com>
1440 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1443 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1445 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1446 (exception_gc.lo): New.
1447 (OBJS_GC): Add exception_gc.lo.
1449 2004-06-17 Richard Henderson <rth@redhat.com>
1451 * exception.c: New file.
1452 * Makefile.in (exception.lo): New.
1455 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1457 * linking.m (_objcInit): New empty function
1460 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1462 * configure.ac: Support --enable-shared=libobjc.
1463 * configure: Regenerate.
1466 * configure.ac: Do not disable shared by default.
1467 * configure: Regenerate.
1469 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1471 * Protocol.m ([-isEqual:]): Small optimizations returning
1472 immediately if the argument is equal to self, and accessing
1473 the argument's name directly if it's a protocol.
1475 2004-06-03 David Ayers <d.ayers@inode.at>
1477 * Protocol.m ([-isEqual:]): Test the class of the argument.
1479 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1481 * configure.ac (includedir): Rename to ...
1483 * Makefile.in: s/includedir/includedirname/.
1486 * configure.ac (includedir): Set to "include"
1488 (libext) Set to empty except for Darwin.
1489 * configure: Regenerate
1490 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1491 s/include/$(includedir)/g.
1493 2004-05-25 Daniel Jacobowitz <drow@false.org>
1495 * Makefile.in: Add .NOEXPORT.
1497 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1499 Merge from the libobjc-branch
1500 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1502 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1504 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1506 * Makefile.in (OBJC_H): Add objc-deps.h.
1508 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1510 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1511 ([-hash], [-isEqual:]): New methods.
1513 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1515 * sarray.c (sarray_free): Add a better comment.
1517 2004-01-27 Adam Fedor <fedor@gnu.org>
1519 * hash.c (hash_add): Cast cachep to int.
1520 * selector.c (__sel_register_typed_name): Cast
1521 soffset_decode to int.
1523 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1525 * selector.c: Rename register_selectors_from_list to
1526 __objc_register_selectors_from_list. Update caller.
1527 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1528 while registering selectors. Use __sel_register_typed_name instead
1529 of sel_register_typed_name. Check for NULL method_name:s.
1530 (pool_alloc_selector): New function.
1531 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1532 selector structures.
1533 * sendmsg.c (class_add_method_list): Use
1534 __objc_register_selectors_from_list.
1535 * objc/runtime.h: Add __objc_register_selectors_from_list.
1537 2004-01-25 Adam Fedor <fedor@gnu.org>
1538 Nicola Pero <n.pero@mi.flashnet.it>
1539 Andrew Pinski <pinskia@physics.uc.edu>
1541 * objc/objc-decls.h: New file.
1542 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1543 (_objc_load_callback): Likewise.
1544 (_objc_object_alloc): Likewise.
1545 (_objc_object_copy): Likewise.
1546 (_objc_object_dispose): Likewise.
1548 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1550 * archive.c: s/__inline__/inline
1551 * sendmsg.c: Likewise.
1553 * encoding.c: Remove FIXME about the warning
1554 about unused variable.
1555 * sendmsg.c: Add a FIXME comment saying that
1556 this should be using libffi.
1558 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1561 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1563 * archive.c (objc_read_class): Initialize class_name.
1564 (objc_read_selector): Initialize selector_name.
1566 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1568 * Makefile.in (toolexecdir): Remove trailing space.
1570 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1573 * configure.ac: De-precious CC so multilibs work.
1574 * configure: Regenerate.
1576 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1578 * configure.ac: Restore toolexecdir.
1579 * Makefile.in: Restore toolexecdir.
1580 * configure: Regenerate.
1582 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1584 * configure.ac: Remove (unused) glibcpp_prefixdir.
1585 * configure: Regenerate.
1587 * configure.in: Rename to configure.ac.
1588 * Makefile.in: Update to match.
1590 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1591 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1592 * configure.in: Remove glibcpp_toolexecdir (unused).
1593 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1594 config.h or stamp-h (unused). Move one comment to the right place.
1595 * configure: Regenerate.
1596 * config.h.in: Remove (unused).
1598 * config.h.in: Regenerate with autoheader.
1600 * Makefile.in: Remove (unused) gcc_version_trigger.
1601 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1602 gcc_version_trigger.
1603 * configure: Regenerate.
1605 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1606 Sort file into sections. Remove dnl where appropriate. Fix
1608 * configure: Regenerate.
1610 * configure.in: Replace old AC_PROG_CC hack with new one.
1611 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1612 are no subdirectory output files, so this is fine). Change prereq
1614 * aclocal.m4: Include ../config/no-executables.m4.
1615 * configure: Regenerate with autoconf 2.59.
1617 * configure.in: Improve comments on gthread_cflags. Improve m4
1618 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1619 * configure: Regenerate.
1621 * configure.in: Move PACKAGE and VERSION settings up top. Remove
1622 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
1623 redundant checks for values of RANLIB, AR, INSTALL.
1624 * configure: Regenerate.
1626 * configure.in: Clean up handling of
1627 --enable-version-specific-runtime-libs and related variables;
1628 replace 'if test' with 'case' where reasonable. Fix comments.
1629 Remove useless libstdcxx_interface.
1630 * configure: Regenerate.
1632 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
1633 Replace uses of target_alias with target_noncanonical.
1634 * aclocal.m4: Include ../config/acx.m4.
1635 * configure: Regenerate.
1636 * Makefile.in: Replace uses of target_alias with target_noncanonical.
1637 Fix copyright statement.
1639 * configure.in: Hand-inline bulky, confusing macros from
1640 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
1641 Update copyright notice. Remove stuff for automake, which isn't
1642 used in this directory. Remove emacs local variables.
1643 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
1644 * configure: Regenerate.
1646 2004-03-16 Manfred Hollstein <mh@suse.com>
1648 * Makefile.in, configure.in, configure: Update copyright years.
1650 2004-03-15 Manfred Hollstein <mh@suse.com>
1652 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
1653 definition from configure.in.
1654 * configure.in (PACKAGE): Add definition.
1655 (VERSION): Add definition; substitute it in output files.
1656 * configure: Re-generate.
1658 2004-03-05 Ziemowit Laski <zlaski@apple.com>
1660 * objc/hash.h (hash_string, compare_strings):
1661 Add type-casts to make Objective-C++ happy.
1662 * objc/typedstream.h (objc_get_stream_class_version):
1663 Rename parameter from 'class' to 'class_name' to make
1664 Objective-C++ happy.
1666 2004-03-01 Michael Matz <matz@suse.de>
1668 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
1670 2004-02-06 Ziemowit Laski <zlaski@apple.com>
1672 * objc/objc-api.h (objc_super): The 'class' field shall
1673 be named 'super_class' #ifdef __cplusplus.
1675 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
1678 * encoding.c (rs6000_special_round_type_align): Define.
1680 2004-01-14 Adam Fedor <fedor@gnu.org>
1683 * selector.c (__objc_register_instance_methods_to_class): Free
1684 new_list if not used.
1686 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
1689 * sarray.c (sarray_free): Free array->is_copy_of latter.
1691 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1694 * Protocol.m (descriptionForInstanceMethod): Don't dereference
1695 instance_methods if it's NULL.
1696 (descriptionForClassMethod): Likewise for class_methods.
1698 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1700 * Makefile.in (runtime-info.h): Remove -Wp.
1702 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1704 * Makefile.in (CC1OBJ): Remove.
1705 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
1707 Use .m extension for temporary file.
1708 Remove assembler temp file.
1710 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
1712 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
1714 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1716 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
1718 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1720 * configure: Regenerate.
1722 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
1724 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
1725 (libdir)/gcc-lib/ when installing.
1726 * configure: Regenerate.
1728 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
1731 * sendmsg.c (get_imp): Fixed rare threading problem.
1732 (__objc_responds_to): Similar fixes.
1733 (objc_msg_lookup): Similar fixes.
1734 (__objc_init_install_dtable): Lock the runtime before checking if the
1737 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
1739 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
1740 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
1741 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
1742 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
1743 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
1744 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
1745 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
1746 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
1747 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
1748 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
1749 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
1751 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
1752 Nicola Pero <n.pero@mi.flashnet.it>
1755 * init.c (class_superclass_of_class): New function.
1756 (create_tree_of_subclasses_inherited_from): Use it.
1757 (__objc_tree_insert_class): Likewise.
1758 (class_is_subclass_of_class): Likewise.
1760 2003-04-11 David Chad <davidc@freebsd.org>
1761 Loren J. Rittle <ljrittle@acm.org>
1764 * objc/hash.h (hash_string): Constify correctly.
1765 (compare_ptrs): Use direct compare.
1766 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
1767 * objc/sarray.h: Global rename index to indx to avoid shadow.
1769 2003-03-12 Andreas Schwab <schwab@suse.de>
1771 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
1772 glibcpp_toolexeclibdir.
1773 * configure: Rebuilt.
1775 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1777 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1779 * configure: Rebuilt.
1781 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1783 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
1784 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
1785 version_specific_libs is enabled.
1786 * configure: Rebuilt.
1788 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1790 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1791 (install-libs, install-headers): Prepend $(DESTDIR) to
1792 destination paths in all (un)installation commands.
1794 2002-12-02 Zack Weinberg <zack@codesourcery.com>
1796 * thr-objc.c: Include coretypes.h and tm.h.
1798 2002-12-01 Zack Weinberg <zack@codesourcery.com>
1800 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
1802 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1804 * configure.in: Remove skip-this-dir support.
1805 * configure: Regenerate.
1807 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1809 * Makefile.in (all): Fix multilib parallel build.
1811 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
1813 * sendmsg.c (nil_method): Declare not to take a variable number of
1815 (objc_msg_lookup): Cast nil_method to IMP before returning it.
1816 (objc_msg_lookup_super): The same.
1818 2002-09-10 Jan Hubicka <jh@suse.cz>
1820 * nil_method.c (nil_method): No longer defined with variable
1823 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
1825 * objc/encoding.h: Fix formatting.
1826 * objc/hash.h: Likewise.
1827 * objc/objc-api.h: Likewise.
1828 * objc/runtime.h: Likewise.
1829 * objc/thr.h: Likewise.
1830 * archive.c: Likewise.
1831 * class.c: Likewise.
1832 * encoding.c: Likewise.
1837 * nil_method.c: Likewise.
1838 * objects.c: Likewise.
1839 * sarray.c: Likewise.
1840 * selector.c: Likewise.
1841 * sendmsg.c: Likewise.
1842 * thr-mach.c: Likewise.
1845 2002-06-25 DJ Delorie <dj@redhat.com>
1847 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
1848 GLIBCPP_TOPREL_CONFIGURE.
1849 * configure.in: Call it before AC_CANONICAL_SYSTEM.
1850 * configure: Regenerate.
1852 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1854 * Object.m (forward, read, write): Fix unused parameter warnings.
1855 * encoding.c: Include <stdlib.h>.
1856 (target_flags): Mark with attribute unused.
1858 * runtime.h (__objc_selector_max_index): Change to unsigned int.
1859 (__objc_generate_gc_type_description): Prototype.
1860 * selector.c (__objc_selector_max_index): Change to unsigned int.
1862 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
1864 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
1865 we always have a return value: if __objc_msg_forward does not
1866 supply a forwarding implementation, return the default
1867 __builtin_apply based one.
1869 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1871 * Object.m: Fix signed/unsigned warning.
1872 * Protocol.m: Likewise.
1873 * archive.c: Always include stdlib.h.
1874 (objc_read_short, objc_read_unsigned_short, objc_read_int,
1875 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
1876 Fix signed/unsigned warning.
1877 (objc_write_type, objc_read_type, objc_write_types,
1878 objc_read_types): Ensure ctype 8-bit safety.
1879 (__objc_no_write, __objc_no_read): Mark unused parameters.
1880 * class.c (class_table_setup): Specify void arg.
1881 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
1882 objc_skip_typespec, objc_skip_offset,
1883 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
1884 (objc_layout_structure_next_member): Ensure variables are
1886 * gc.c (__objc_generate_gc_type_description,
1887 class_ivar_set_gcinvisible): Mark unused parameters.
1888 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
1890 (__objc_init_protocols) Fix signed/unsigned warning.
1891 * nil_method.c (nil_method): Mark unused parameters.
1892 * thr.h (objc_thread_callback): Specify void arg.
1893 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
1894 signed/unsigned warning.
1895 (sarray_free): Fix formatting.
1896 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
1897 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
1899 2002-06-09 Andreas Jaeger <aj@suse.de>
1901 * encoding.c (objc_layout_structure_next_member): Remove unused
1904 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1906 * Makefile.in (SHELL): Set to @SHELL@.
1908 (ALL_CFLAGS): Add $(WARN_CFLAGS).
1910 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1912 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
1913 * configure: Regenerate.
1915 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
1917 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1918 script entry, and set LD to it when configuring multilibs.
1919 * configure: Rebuilt.
1921 2002-04-19 David O'Brien <obrien@FreeBSD.org>
1923 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
1925 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
1928 * objc/objc-api.h (struct objc_protocol_list): Change type of
1929 member count from int to size_t.
1931 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1934 * aclocal.m4: Replace with version copied from libstdc++-v3.
1935 * configure.in: Update for changes to aclocal and Makefile.
1936 * configure: Regenerate.
1937 * Makefile.in: Correct install of multilibs and shared libs, use
1938 INSTALL_DATA for include files.
1940 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
1942 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
1943 categories - when an unclaimed category was found, the loop was
1944 doing two steps forward instead of one, so that in certain cases
1945 it was failing to properly load all the categories. (Reported
1946 with fix by Alexander Malmberg <alexander@malmberg.org>).
1948 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
1950 * encoding.c: Add target_flags.
1952 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
1954 * objc/objc-api.h (_C_VECTOR): New.
1956 * encoding.c (VECTOR_TYPE): New.
1958 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
1960 * class.c: Rewritten the class table to use optimized, lock-free
1961 lookup. This more than doubles the speed of class method
1962 invocations. (class_table_setup), (class_table_insert),
1963 (class_table_replace), (class_table_get_safe),
1964 (class_table_next), (class_table_print),
1965 (class_table_print_histogram): New functions.
1966 (__objc_init_class_tables): Use class_table_setup.
1967 (__objc_add_class_to_hash): Use class_table_get_safe and
1968 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
1969 assert the existence of the table; do not lock the runtime; use
1970 class_table_get_safe. (objc_next_class): Use class_table_next.
1971 (__objc_resolve_class_links): Use class_table_next.
1972 (class_pose_as): Use class_table_replace.
1974 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
1976 * gc.c: Removed the DEBUG declaration.
1978 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
1980 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
1981 rather than through objc_thread_id, to save a function call.
1982 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
1985 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
1987 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
1988 to cast an id to a Class, which can not be done. Make the check
1989 by using CLS_ISMETA on the class pointer instead.
1990 (object_is_meta_class): Similar fix.
1992 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1994 * configure.in (AC_EXEEXT): Work around in case it expands to
1995 nothing, as in autoconf 2.50.
1996 * acinclude.m4: Likewise.
1997 * configure: Rebuilt.
1999 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2001 * THREADS: Explain that when we compile libobjc inside GCC, we
2002 always use thr-objc.c as a backend, which uses GCC's thread code.
2004 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2006 * init.c (__objc_send_message_in_list): When setting a new entry
2007 in __objc_load_methods use the method IMP as key, but check to see
2008 if the method is in the hashtable by looking at the IMP also.
2009 Also ... call the method after adding it to the hashtable rather
2010 than before ... thus preventing an obscure possibility of infinite
2011 recursion if a +load method itself loads a subclass.
2013 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2015 * init.c (__objc_send_message_in_list): When setting a new entry
2016 in __objc_load_methods use the method name as key, not the method
2017 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2019 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2021 * objc-features.texi: Move to ../gcc/objc.texi.
2023 * Makefile.in: Don't generate documentation from
2026 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2028 * fdl.texi: New file.
2029 * objc-features.texi: Simplify.
2030 * Makefile.in: Adjust accordingly.
2032 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2034 * objc-features.texi: Use the GFDL.
2036 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2038 * encoding.c (REAL_TYPE): Define.
2040 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2042 * encoding.c (TYPE_MODE): Define.
2044 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2046 * thr.c (objc_thread_add): New function.
2047 (objc_thread_remove): Ditto.
2048 * objc/thr.h: Declare them.
2049 * libobjc.def: Mention them.
2051 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2053 * objc-features.texi: Document the @compatibility_alias compiler
2054 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2056 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2058 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2060 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2062 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2063 we're not interested in the result and they might fail.
2064 * configure: Regenerated.
2066 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2068 * objc-features.texi: Use @email.
2070 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2072 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2075 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2077 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2078 determines the value dynamically.
2080 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2082 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2083 libraries to provide a function that returns the real forwarding
2084 function. This can alleviate problems __builtin_apply() and
2085 friends have on various platforms. (Solution suggested by Helge
2088 * objc/objc-api.h: Define __objc_msg_forward.
2090 * sendmsg.c: Define gen_rtx_REG.
2092 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2094 * thr-rtems.c: New file. Stub to compile.
2096 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2098 * configure: Rebuilt with new libtool.m4.
2100 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2102 * configure.in: Create a config.h file. Check for <sched.h>.
2103 * configure: Regenerate.
2105 * config.h.in: Check for <sched.h>.
2107 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2109 * configure: Regenerate after change to ../libtool.m4.
2111 2000-08-14 Andreas Schwab <schwab@suse.de>
2113 * objc-features.texi (Top): Move @menu at end of node.
2115 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2117 * objc-features.texi: Move @node Top before @menu.
2119 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2121 * objc-features.texi: Documented the new -fconstant-string-class
2124 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2126 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2127 improve the Posix thread support for Objective-C.
2129 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2131 * aclocal.m4: Replace copy of ../libtool.m4 with
2132 sinclude(../libtool.m4).
2134 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2136 * configure.in: Added libtool support; build shared libraries
2137 if --enable-shared was passed on command line.
2138 * Makefile.in: Modified most compilation commands to use libtool.
2139 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2140 libtool distribution.
2142 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2144 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2145 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2148 2000-05-12 H.J. Lu (hjl@gnu.org)
2150 * Makefile.in (GTHREAD_FLAGS): New.
2151 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2152 (OBJC_THREAD_FILE): Changed to thr-objc.
2154 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2156 (OBJC_THREAD_FILE): Removed.
2160 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2162 * objc/hash.h: Include string.h.
2164 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2166 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2168 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2170 * Object.m (strlen): Provide prototype on all 64bit platforms,
2172 * sarray.c (memcpy): Likewise.
2173 * encoding.c (objc_layout_finish_structure): Don't use
2174 ROUND_TYPE_ALIGN on sparc.
2176 * encoding.c (objc_layout_structure_next_member): Do the whole
2177 procedure even for the first member, so that we get correct
2180 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2182 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2185 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2187 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2189 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2191 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2193 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2195 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2196 the compiler when building C code.
2198 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2200 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2201 libdir, libsubdir and tooldir.
2203 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2205 * init.c (__objc_force_linking): Make global.
2207 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2209 * configure.in (AC_EXEEXT): Remove call.
2210 (compiler_name): Explicitly check with no extension and .exe
2212 * configure: Regenerate.
2214 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2216 * Makefile.in (CC1OBJ): Define in terms of CC.
2217 (runtime-info.h): Use.
2219 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2221 * objc-features.texi: Updated the URL to Boehm's GC page.
2223 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2225 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2226 the char as being signed (patch from Daniel Jacobowitz
2229 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2231 * configure.in (AC_PREREQ): Update to 2.13.
2232 (AC_EXEEXT): Call to find possible file extension.
2233 (compiler_name): Use.
2234 * configure: Regenerate.
2236 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2238 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2240 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2242 * configure.in (thread_file): Correct and simplify code to find
2244 * configure: Rebuilt.
2246 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2248 * configure.in (compiler_name): Add check to detect if this
2249 language's compiler has been built.
2250 * configure: Regenerate.
2252 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2254 * configure.in: Use AC_PREREQ(2.12.1).
2256 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2258 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2260 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2262 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2264 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2266 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2268 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2270 * objc-features.texi (Top): Changed the email address.
2271 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2273 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2275 * encoding.c: Redefine get_inner_array_type to get the first entry
2278 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2280 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2281 (objc_get_type_qualifiers): Similarly.
2282 * objc/encoding.h (_C_BYREF): Define.
2285 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2287 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2288 works out on 64-bit systems.
2290 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2292 * Makefile.in (INCLUDES): Make it multilib-friendly.
2294 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2296 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2298 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2299 Jeffrey A Law (law@cygnus.com)
2301 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2302 (FLAGS_TO_PASS): Added.
2303 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2305 * archive.c: Change config.h to tconfig.h.
2307 * configure.in: Find gcc's object directory even for multilibs.
2309 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2311 * configure.in: Escape ^ in grep string.
2312 * configure: Rebuilt.
2314 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2316 * All .h files pushed down into the objc/ subdirectory.
2317 * Makefile.in (copy_headers): Corresponding changes.
2318 * configure.in (AC_INIT): Corresponding changes.
2319 * configure: Rebuilt.
2321 1998-09-30 Ben Elliston <bje@cygnus.com>
2322 Jeff Law <law@cygnus.com>
2324 * Makefile.in: Rewrite.
2326 * configure.in: Likewise.
2328 * configure: Regenerate.
2330 * All .c files. Remove "objc" prefix when including objc header
2331 files. Include tconfig.h, not ../tconfig.h.
2333 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2335 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2336 (get_inner_array_type): Define.
2338 1998-09-21 Ben Elliston <bje@cygnus.com>
2340 * New directory. Moved files from ../gcc/objc.