1 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
3 * Protocol.m: Include objc/runtime.h and
4 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
5 repeat Protocol's instance variables.
6 (struct objc_method_description_list): Do not define here.
7 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
8 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
9 selectors directly instead of getting names and then using strcmp.
10 ([descriptionForClassMethod:]): Same change.
11 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
12 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
13 to compare selectors directly instead of getting names and then
15 * objc/Protocol.h: Updated comments.
17 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
19 * init.c (__objc_init_protocol): New function which fixes up a
20 protocol's class pointer, registers it with the runtime, register
21 all protocol selectors and registers associated protocols too.
22 (objc_init_statics): Detect if we are initializing protocols, and
23 if so, use __objc_init_protocol instead of only fixing up the
25 (__objc_init_protocls): Use __objc_init_protocol.
26 * objc-private/module-abi-8.h: Updated comments.
27 * objc-private/runtime.h
28 (__objc_register_selectors_from_description_list): New.
29 * selector.c (__objc_register_selectors_from_description_list):
30 New. (struct objc_method_description_list): Declare.
31 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
32 when accessing the name of a method, which is now correctly a SEL.
33 ([-descriptionForClassMethod:]): Same change.
34 * protocols.c (protocol_getMethodDescription): Same change.
35 * objc/runtime.h: Updated comments.
36 (sel_registerTypedName): Fixed typo in function name.
38 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
41 * init.c (objc_init_statics): Do not skip the initialization of a
42 statics list if the first object has already been initialized; in
43 the case of Protocols, while the first one may have been
44 initialized, some others may not have been initialized yet.
46 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
48 * Makefile.in (OBJC_DEPRECATED_H): Added
49 objc_get_uninstalled_dtable, objc_object_alloc.h and
50 struct_objc_static_instances.h.
52 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
54 * encoding.c (method_copyReturnType): New.
55 (method_copyArgumentType): New.
56 (method_getReturnType): New.
57 (method_getArgumentType): New.
58 * methods.c (method_getDescription): New.
59 * objc/runtime.h (method_copyReturnType): New.
60 (method_copyArgumentType): New.
61 (method_getReturnType): New.
62 (method_getArgumentType): New.
63 (method_getDescription): New.
65 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
67 * encoding.c: Tidied up comments.
68 (objc_skip_variable_name): New static inline function.
69 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
70 the same code over and over.
71 (objc_alignof_type): Same.
72 (objc_aligned_size): Same.
73 (objc_promoted_size): Same.
74 (objc_skip_typespec): Same.
75 (objc_layout_structure_next_member): Same.
76 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
77 historical bug where objc_skip_offset would skip one byte even if
78 there is no offset: check that the first offset digit is actually
79 a digit before skipping it.
80 (objc_skip_type_qualifiers): Mark as inline.
81 (objc_skip_typespec): Mark as inline.
83 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
85 * Makefile.in (C_SOURCE_FILES): Added methods.c.
86 * encoding.c (method_getNumberOfArguments): New.
87 (method_get_number_of_arguments): Call
88 method_getNumberOfArguments.
89 * ivars.c (ivar_getName): Check for NULL variable argument.
90 (ivar_getOffset): Check for NULL variable argument.
91 (ivar_getTypeEncoding): Check for NULL variable argument.
92 (class_copyIvarList): New.
94 * protocols.c (class_copyProtocolList): Check for Nil class_
96 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
97 'struct objc_method_list *' instead of MethodList_t.
98 (class_getMethodImplementation): New.
99 (class_respondsToSelector): New.
100 (class_getInstanceMethod): New.
101 (class_getClassMethod): New.
102 * objc/runtime.h: Updated comments.
103 (class_copyIvarList): New.
104 (class_getInstanceMethod): New.
105 (class_getClassMethod): New.
106 (class_getMethodImplementation): New.
107 (class_respondsToSelector): New.
108 (method_getName): New.
109 (method_getImplementation): New.
110 (method_getTypeEncoding): New.
111 (class_copyMethodList): New.
112 (method_getNumberOfArguments): New.
114 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
116 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
117 instead of objc/objc-api.h.
118 (objc_get_unknown_class_handler): Do not define.
119 (class_isMetaClass): New.
120 (class_getSuperclass): New.
121 (class_getVersion): New.
122 (class_setVersion): New.
123 (class_getInstanceSize): New.
124 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
125 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
126 objc_get_super_class.
127 (get_ttype_entry): Use objc_getRequiredClass instead of
129 * ivars.c (class_getClassVariable): New.
130 * objects.c: Include objc/runtime.h, objc/thr.h and
131 objc-private/module-abi-8.h instead of objc/objc-api.h
132 * objc/runtime.h (class_getClassVariable): New.
133 (class_isMetaClass): New.
134 (class_getSuperclass): New.
135 (class_getVersion): New.
136 (class_setVersion): New.
137 (class_getInstanceSize): New.
138 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
141 (__CLS_ISINFO): Same.
142 (__CLS_SETINFO): Same.
145 (CLS_ISRESOLV): Same.
146 (CLS_SETRESOLV): Same.
147 (CLS_ISINITIALIZED): Same.
148 (CLS_SETINITIALIZED): Same.
149 (CLS_GETNUMBER): Same.
150 (CLS_SETNUMBER): Same.
152 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
154 * archive.c: Do not include objc/objc.h.
155 * class.c: Do not include objc/objc.h.
156 * encoding.c: Include objc/runtime.h, ctype.h and
157 objc-private/module-abi-8.h instead of objc/objc-api.h and
159 * error.c: Do not include objc/objc.h.
160 * gc.c: Include tconfig.h and objc/encoding.h only if
162 * hash.c: Include objc/runtime.h and objc/thr.h instead of
163 objc/objc-api.h. Do not include objc/objc.h.
164 * init.c: Do not include objc/objc.h.
165 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
166 objc/thr.h instead of objc/objc-api.h. Do not include
168 * linking.m: Tidied comment.
169 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
170 Do not include objc/objc.h.
171 * objects.c: Do not include objc/objc.h.
172 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
173 * protocols.c: Do not include objc/objc.h.
174 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
175 not include objc/objc.h.
176 * selector.c: Do not include objc/objc.h.
177 * sendmsg.c: Do not include objc/objc.h.
178 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
179 Do not include objc/objc.h.
180 * objc/objc-decls.h: Reindented code.
181 * objc/runtime.h Include objc-decls.h. Updated comments.
183 (objc_atomic_malloc): New.
187 * objc-private/runtime.h: Updated comments.
189 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
191 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
192 * objc-private/protocols.h: New.
194 * init.c: Include objc-private/protocols.h.
195 (__objc_exec_class): Call __objc_protocols_init on startup.
196 (__objc_init_protocols): Call __objc_protocols_add_protocol.
197 * objc-private/runtime.h: Use (struct objc_method_list *) instead
198 of MethodList_t, and (struct objc_method *) instead of Method_t.
199 * objc/deprecated/struct_objc_class.h: Define
200 __objc_STRUCT_OBJC_CLASS_defined.
201 * objc-private/module-abi-8.h (struct
202 objc_method_description_list): New.
203 (struct objc_class): Only define if
204 __objc_STRUCT_OBJC_CLASS_defined is undefined.
205 * objc/runtime.h (class_getName): New.
206 (objc_getProtocol): New.
207 (objc_copyProtocolList): New.
208 (class_addProtocol): New.
209 (class_conformsToProtocol): New.
210 (class_copyProtocolList): New.
211 (protocol_conformsToProtocol): New.
212 (protocol_isEqual): New.
213 (protocol_getName): New.
214 (protocol_getMethodDescription): New.
215 (protocol_copyMethodDescriptionList): New.
216 (protocol_getProperty): New.
217 (protocol_copyPropertyList): New.
218 (protocol_copyProtocolList): New.
219 * class.c (class_getName): New.
220 * selector.c (sel_isEqual): New.
222 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
224 * selector.c (sel_getName): Return "<null selector>" for a NULL
226 (sel_get_name): Return 0 for a NULL argument.
227 * objc/runtime.h (sel_getName): Updated documentation.
229 * objc-private/hash.h (class_hash_table): Unused declaration
231 (module_hash_table): Same.
232 * objc/deprecated/hash.h: Same changes.
234 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
236 * class.c (objc_getClassList): New.
237 (objc_getRequiredClass): New.
238 (objc_getMetaClass): New.
239 (objc_lookupClass): New.
240 (objc_getClass): New.
241 (__objc_get_unknown_class_handler): New.
242 (objc_setGetUnknownClassHandler): New.
243 (objc_get_class): Use __objc_get_unknown_class_handler.
244 (objc_lookup_class): Call objc_getClass.
245 * objc/objc-api.h: Updated comment and copyright notice.
246 * objc/runtime.h: Updated comments.
247 (objc_getClass): New.
248 (objc_lookupClass): New.
249 (objc_getMetaClass): New.
250 (objc_getRequiredClass): New.
251 (objc_getClassList): New.
252 (objc_setGetUnknownClassHandler): New.
253 (objc_get_unknown_class_handler): New.
254 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
255 instead of __objc_runtime_INCLUDE_GNU as include guard.
256 * objc-private/error.h (_objc_abort): Mark as noreturn.
258 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
260 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
262 * objc/objc.h: Updated comments.
263 * objc/runtime.h (object_getClass): New.
264 (object_getClassName): New.
265 (object_setClass): New.
266 (class_getInstanceVariable): New.
267 (object_getIndexedIvars): New.
268 (object_getInstanceVariable): New.
269 (object_setInstanceVariable): New.
270 (object_getIvar): New.
271 (object_setIvar): New.
273 (ivar_getOffset): New.
274 (ivar_getTypeEncoding): New.
275 * objc-private/module-abi-8.h (struct objc_class): Added.
276 * objects.c (object_getClassName): New.
277 (object_setClass): New.
279 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
281 * objc/objc.h: Updated comments.
282 * objc/objc-api.h: (object_copy): Added one argument; use a
283 #define to maintain backwards-compatibility. Moved
284 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
285 objc_get_uninstalled_dtable into
286 objc/deprecated/objc_get_uninstalled_dtable.h and
287 objc/deprecated/objc_object_alloc.h. Include these files.
288 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
289 * objc/deprecated/objc_object_alloc.h: New.
290 * objc/runtime.h (set_getName): New.
293 (sel_registerName): New.
294 (sel_registerTypedName): New.
296 (class_createInstance): New.
298 (object_dispose): New.
299 * objects.c: Do not include tconfig.h. Include gc_typed.h if
300 building the garbage collection version.
301 (__objc_object_alloc): Removed.
302 (__objc_object_copy): Removed.
303 (__objc_object_dispose): Removed.
304 (class_createInstance): New from code in class_create_instance.
305 Cast second argument of GC_malloc_explicitly_typed. Use
306 objc_calloc. Do not call _objc_object_alloc.
307 (class_create_instance): Call class_createInstance.
308 (object_copy): Added extraBytes argument. Do not call
310 (object_dispose): Do not call _objc_object_dispose.
311 * memory.c (objc_free): When using garbage collection, mark the
313 * selector.c (sel_getName): New.
314 (sel_get_name): Call sel_getName.
316 (sel_get_type): Call sel_getType.
317 (sel_registerName): New.
318 (sel_register_name): Call sel_registerName.
319 (sel_registerTypedName): New.
320 (sel_register_typed_name): Call sel_registerTypedName.
322 (sel_get_uid): Call sel_getUid.
324 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
326 * objc/objc-api.h: Define Method, Method_t, Category and
327 Category_t. Prevent including this file at the same time as
328 objc/runtime.h. Updated comments.
329 * objc/deprecated/struct_objc_method.h: Do not define Method,
331 * objc/deprecated/struct_objc_category.h: Do not define Category,
333 * objc-private/module-abi-8.h: New file containing a copy of all
334 the structure definitions. Not used yet.
335 * objc/encoding.h (objc_aligned_size): Removed duplicate
336 declaration. Updated comments.
337 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
338 Category, struct objc_method_description, _C_ID and similar,
339 _C_CONST and similar and _F_CONST and similar. Added
340 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
341 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
342 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
343 struct objc_struct_layout, objc_layout_structure,
344 objc_layout_structure_next_member, objc_layout_finish_structure,
345 objc_layout_structure_get_info. Prevent including this file at
346 the same time as objc/objc-api.h.
348 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
350 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
351 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
352 struct_objc_method_list.h, struct_objc_module.h,
353 struct_objc_protocol_list.h, struct_objc_symtab.h.
354 * objc/deprecated/struct_objc_category.h: New.
355 * objc/deprecated/struct_objc_ivar.h: New.
356 * objc/deprecated/struct_objc_ivar_list.h: New.
357 * objc/deprecated/struct_objc_method.h: New.
358 * objc/deprecated/struct_objc_method_list.h: New.
359 * objc/deprecated/struct_objc_module.h: New.
360 * objc/deprecated/struct_objc_protocol_list.h: New.
361 * objc/deprecated/struct_objc_symtab.h: New.
362 * objc/deprecated/struct_objc_static_instances.h: New.
363 * objc/objc-api.h: Definitions of deprecated structures moved into
364 the above header fragment files in objc/deprecated/. Include the
365 files instead of definition the structures here. Updated
367 * objc/runtime.h: Updated comments. Do not include objc-api.h.
368 (objc_set_enumeration_mutation_handler): Renamed to
369 objc_setEnumerationMutationHandler.
370 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
371 to objc_setEnumerationMutationHandler.
372 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
373 objc_setExceptionMatcher.
374 (objc_set_uncaught_exception_handler): Renamed to
375 objc_setUncaughtExceptionHandler.
376 * exception.c: Same changes.
378 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
380 * objc-sync.c: Include objc-private/common.h.
382 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
384 * objc-foreach.c: Include objc-private/common.h.
385 * objc/deprecated/METHOD_NULL.h: New file.
386 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
387 defining METHOD_NULL here.
388 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
389 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
391 ([-respondsTo:]): Same change.
392 * objc/objc-api.h (method_get_imp): Converted it into a normal
393 function so that we can hide the internals of struct objc_method.
394 * sendmsg.c (method_get_imp): Implemented.
396 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
398 * objc/objc-api.h (struct objc_super, Super, Super_t,
399 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
400 objc_msg_forward2): Declarations moved to objc/message.h. Include
402 * objc/message.h: Added such declarations; updated comments.
404 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
406 Implemented fast enumeration for Objective-C.
407 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
408 (OBJC_H): Added runtime.h
409 * objc-foreach.c: New file.
410 * objc/runtime.h: New file.
412 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
414 * objc/deprecated/struct_objc_class.h: Add padding
415 to avoid warning with -Wpadded.
417 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
419 * encoding.c (objc_sizeof_type): Added support for vector type and
420 for double long types.
421 (objc_alignof_type): Same change.
422 (objc_skip_typespec): Same change.
423 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
424 instead of '!' since '!' is already used for _C_VECTOR.
425 * objc/objc-api.h (_C_LNG_DBL): Added.
427 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
429 * libobjc_entry.c: File removed.
431 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
433 * sendmsg.c (objc_msg_lookup): Remove inline.
434 (objc_get_uninstalled_dtable): Likewise.
435 * encoding.c (objc_skip_type_qualifiers): Likewise.
436 (objc_skip_offset): Likewise.
437 * archive.c (__objc_write_object): Likewise
438 (__objc_write_class):
439 (__objc_write_selector):
441 (objc_read_unsigned_char):
443 (objc_read_unsigned_short):
446 (__objc_read_nbyte_uint):
447 (objc_read_unsigned_int):
448 (objc_read_unsigned_long):
449 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
450 (objc_EXPORT): Likewise.
451 * objc/message.h (objc-decls.h): Add include.
452 * objc/objc-api.h: Mark API by objc_EXPORT.
453 * libobjc.def (__objc_responds_to): Removed.
455 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
457 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
459 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
460 objc/sarray.h replaced with a placeholder including the file from
461 the deprecated/ directory.
462 * objc-private/sarray.h: New file (private copy of sarray.h).
463 * hash.c: Include <assert.h> instead of "assert.h"
464 * sarray.c: Include <assert.h> instead of "assert.h". Include
465 objc-private/sarray.h instead of objc/sarray.h.
466 * selector.c: Include objc-private/sarray.h instead of
468 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
469 instead of objc/sarray.h.
470 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
472 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
474 * objc-private/objc-list.h (list_remove_elem): Unused function
475 removed. (list_nth): Unused function removed. (list_find):
476 Unused function removed. (list_lenght): Unused function removed.
478 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
480 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
481 replaced with a placeholder including the file from the
482 deprecated/ directory.
483 * objc/objc-api.h: Updated includes.
484 * objc/typedstream.h: Updated includes.
485 * objc-private/hash.h: New file (private copy of hash.h).
486 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
487 objc/objc-list.h replaced with a placeholder including the file
488 from the deprecated/ directory.
489 * objc-private/objc-list.h: New file (private copy of objc-list.h).
490 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
491 instead of objc/hash.h and objc/objc-list.h.
492 * selector.c: Same change.
493 * class.c: Added include <string.h>, which used to be implicitly included
494 when hash.h was included.
495 * exception.c: Same change.
496 * objects.c: Same change.
497 * sarray.c: Same change.
498 * sendmsg.c: Same change.
499 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
501 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
503 Implemented objc_sync_enter() and objc_sync_exit(), which are
504 required by @synchronized() to work.
505 * objc-sync.c: New file.
506 * objc/objc-sync.h: New file.
507 * objc-private/objc-sync.h: New file.
508 * init.c (__objc_exec_class): Call __objc_sync_init() during the
509 Objective-C runtime startup.
510 * Makefile.in: Added objc-sync.c and objc-sync.h.
511 * configure.ac: Added GCC_CHECK_TLS.
512 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
513 * configure: Regenerated.
514 * config.h.in: Regenerated.
516 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
518 * Makefile.in (%_gc.lo): New pattern rules to build the
519 garbage-collected version of the library. Removed rules for
520 specific files that are no longer needed. Standardized all rules.
521 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
522 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
524 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
526 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
528 * memory.c (objc_calloc): Fixed call to GC_malloc when building
529 with Garbage Colletion.
531 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
533 * memory.c: Do not include objc-private/runtime.h.
535 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
537 * objc/deprecated/objc_malloc.h: New file.
538 * objc/deprecated/objc_valloc.h: New file.
539 * objc/objc-api.h: Include the files instead of defining
540 objc_valloc, _objc_malloc() and similar.
541 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
543 * memory.c: Removed the extra layer of indirection of _objc_malloc
545 (objc_calloc): Use GC_malloc in the garbage-collected
546 implementation as GC_malloc returns memory that is already freed.
547 (objc_valloc): Deprecated.
549 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
551 * objc/deprecated/objc_error.h: New file.
552 * objc/objc-api.h: Include deprecated/objc_error.h instead of
553 defining objc_error and related.
554 * error.c: New file. Added _objc_abort function which replaces
555 objc_error. No change in functionality as they both print an
557 * misc.c: File removed. Code moved into memory.c and error.c.
558 * memory.c: New file.
559 * objc-private/error.h: New file.
560 * archive.c: Include objc-private/error.h and use _objc_abort
561 instead of objc_error everywhere.
562 * class.c: Same change.
563 * encoding.c: Same change.
564 * init.c: Same change, and simplified init_check_module_version.
565 * memory.c: Same change.
566 * sendmsg.c: Same change.
567 * thr.c: Same change.
568 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
569 (OBJ_H): Reordered list.
570 (OBJS): Removed misc.lo, added memory.lo and error.lo.
571 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
572 (misc_gc.lo): Rule removed.
573 (error_gc.lo): Rule added.
574 (memory_gc.lo): Rule added.
576 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
578 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
579 to check the API version. Added some comments.
581 * objc-private/common.h: New file.
582 * NXConstStr.m: Include objc-private/common.h.
583 * Object.m: Same change.
584 * Protocol.m: Same change.
585 * archive.c: Same change.
586 * class.c: Same change.
587 * encoding.c: Same change.
588 * exception.c: Same change.
590 * hash.c: Same change.
591 * init.c: Same change.
592 * libobjc_entry.c: Same change.
593 * linking.m: Same change.
594 * misc.c: Same change (and added a comment).
595 * nil_method.c: Same change.
596 * objects.c: Same change.
597 * sarray.c: Same change.
598 * selector.c: Same change.
599 * sendmsg.c: Same change.
600 * thr.c: Same change.
602 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
604 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
606 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
608 * archive.c: Removed not needed includes.
609 * class.c: Same change.
610 * hash.c: Same change.
611 * misc.c: Same change.
612 * nil_method.c: Same change.
613 * objects.c: Same change.
614 * sarray.c: Same change.
615 * sendmsg.c: Same change.
616 * thr.c: Same change.
618 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
620 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
621 all the objc/*.h files.
622 * objc-private/runtime.h: New file.
623 * archive.c: Include objc-private/runtime.h (and required objc/*.h
624 files) instead of objc/runtime.h.
625 * class.c: Same change.
626 * hash.c: Same change.
627 * init.c: Same change.
628 * misc.c: Same change.
629 * nil_method.c: Same change.
630 * objects.c: Same change.
631 * sarray.c: Same change.
632 * selector.c: Same change.
633 * sendmsg.c: Same change.
634 * thr.c: Same change.
636 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
638 * objc/deprecated/struct_objc_selector.h: New file. Definition of
639 'struct objc_selector' and 'sel_eq' moved here.
640 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
641 'struct objc_procotol' moved here.
642 * objc/deprecated/struct_objc_class.h: New file. Definition of
643 'struct objc_class' moved here.
644 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
646 * objc/deprecated/STR.h: New file. Definition of STR moved here.
647 * objc/message.h: New file. Definitions for relval_t, apply_t,
648 arglist, arglist_t and objc_msg_lookup were moved here.
649 * objc/objc.h: Include the above files instead of defining the
650 corresponding structs, types and functions here. Added new opaque
651 definitions for SEL and Class. Use Class and not 'struct
652 objc_class *' in the definition of 'struct objc_object'.
653 Commented all types defined in the file. Removed special
654 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
656 * objc/deprecated/objc-unexpected-exception.h: Renamed to
657 objc_unexpected_exception.h.
658 * objc/objc-api.h: Updated include of
659 objc-unexpetected-exception.h
660 * objc/objc-exception.h: Updated comments.
661 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
662 files. Reindented list of files.
664 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
666 * objc/objc-api.h (objc_trace): Unused variable removed.
668 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
670 * objc/deprecated: New directory.
671 * objc/deprecated/README: New file.
672 * objc/README: New file.
673 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
674 objc/typedstream.h replaced with a placeholder including the file
675 from the deprecated/ directory.
676 * objc/deprecated/objc-unexpected-exception.h: New file with the
677 definition of _objc_unexpected_exception.
678 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
679 instead of defining _objc_unexpected_exception.
680 * objc/deprecated/Object.h: New file with the deprecated Object
681 methods in a 'Deprecated' category.
682 * objc/Object.h Include deprecated/Object.h instead of defining
683 the deprecated methods.
684 * Object.m: Moved deprecated methods into 'Deprecated' category.
685 * objc-private: New directory.
686 * objc-private/README: New file.
687 * Makefile.in (OBJC_DEPRECATED_H): New variable.
688 (install-headers): Create installation directory for
689 OBJC_DEPRECATED_H headers, and install them.
691 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
693 * objc/objc-exception.h: Fixed include of objc.h.
695 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
697 * objc/objc-exception.h: New file.
698 * exception.c (objc_set_uncaught_exception_handler): Implemented.
699 (objc_set_exception_matcher): Implemented.
700 (objc_exception_throw): Use the uncaught exception handler if set.
701 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
703 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
704 up. Removed segmentation fault when value is 'nil'.
705 * objc/objc-api.h (_objc_unexpected_exception): Mark as
707 * Makefile.in (exception.lo, exception_gc.lo): Use
708 -Wno-deprecated-declarations when compiling.
709 (OBJC_H): Added objc-exception.h
711 2010-09-08 Nicola Pero <nicola@nicola.brainstorm.co.uk>
713 * objc/typedstream.h: Deprecate all functions in the file. This
715 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
716 [-awake]): Documented that these methods are deprecated. Added a
717 brief description of the Object class and its relationship to the
719 * Makefile.in: Compile archive.c and Object.m with
720 -Wno-deprecated-declarations.
722 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
724 Removed obsolete intermediate threading layer.
725 * thr.c: Use __gthread_objc_xxx functions directly instead of
726 __objc_thread_xxx ones.
727 * objc/thr.h: Removed prototypes of no longer existing
728 __objc_thread_xxx functions.
729 * Makefile.in: Removed thr-objc.lo.
730 * thr-dce.c: File removed.
731 * thr-decosf1.c: File removed.
732 * thr-irix.c: File removed.
733 * thr-mach.c: File removed.
734 * thr-objc.c: File removed.
735 * thr-os2.c: File removed.
736 * thr-posix.c: File removed.
737 * thr-pthreads.c: File removed.
738 * thr-rtems.c: File removed.
739 * thr-single.c: File removed.
740 * thr-solaris.c: File removed.
741 * thr-vxworks.c: File removed.
742 * thr-win32.c: File removed.
743 * README.threads: File removed.
744 * THREADS.MACH: File removed.
747 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
749 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
751 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
753 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
754 Add a comment as to why, update FIXME comments.
756 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
758 * makefile.dos: Obsolete file removed.
760 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
762 * aclocal.m4: Regenerate.
764 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
767 * configure.ac (extra_ldflags_libobjc): Define appropriately for
768 Cygwin and MinGW hosts.
769 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
770 (libobjc.dll): Likewise.
771 * configure: Regenerate.
773 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
775 * configure: Regenerate.
777 2009-11-28 Jakub Jelinek <jakub@redhat.com>
779 * sarray.c (sarray_free): Use old_buckets variable.
780 * encoding.c (objc_layout_structure_next_member): Remove unused
781 bfld_type_size variable.
783 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
785 * configure.ac (AC_PREREQ): Bump to 2.64.
787 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
789 * aclocal.m4: Regenerate.
790 * configure: Regenerate.
791 * config.h.in: Regenerate.
793 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
795 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
797 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
799 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
801 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
803 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
805 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
807 2009-04-09 Nick Clifton <nickc@redhat.com>
809 * sendmsg.c: Change copyright header to refer to version 3 of
810 the GNU General Public License with version 3.1 of the GCC
811 Runtime Library Exception and to point readers at the COPYING3
812 and COPYING3.RUNTIME files and the FSF's license web page.
813 * NXConstStr.m: Likewise.
814 * Object.m: Likewise.
815 * Protocol.m: Likewise.
816 * archive.c: Likewise.
818 * encoding.c: Likewise.
819 * exception.c: Likewise.
823 * libobjc_entry.c: Likewise.
824 * linking.m: Likewise.
826 * nil_method.c: Likewise.
827 * objc/NXConstStr.h: Likewise.
828 * objc/Object.h: Likewise.
829 * objc/Protocol.h: Likewise.
830 * objc/encoding.h: Likewise.
831 * objc/hash.h: Likewise.
832 * objc/objc-api.h: Likewise.
833 * objc/objc-decls.h: Likewise.
834 * objc/objc-list.h: Likewise.
835 * objc/objc.h: Likewise.
836 * objc/runtime.h: Likewise.
837 * objc/sarray.h: Likewise.
838 * objc/thr.h: Likewise.
839 * objc/typedstream.h: Likewise.
840 * objects.c: Likewise.
841 * sarray.c: Likewise.
842 * selector.c: Likewise.
843 * thr-dce.c: Likewise.
844 * thr-decosf1.c: Likewise.
845 * thr-irix.c: Likewise.
846 * thr-mach.c: Likewise.
847 * thr-objc.c: Likewise.
848 * thr-os2.c: Likewise.
849 * thr-posix.c: Likewise.
850 * thr-pthreads.c: Likewise.
851 * thr-rtems.c: Likewise.
852 * thr-single.c: Likewise.
853 * thr-solaris.c: Likewise.
854 * thr-vxworks.c: Likewise.
855 * thr-win32.c: Likewise.
857 * libobjc.def: Change copyright header to refer to version 3 of
858 the GNU General Public License and to point readers at the COPYING3
859 file and the FSF's license web page.
860 * makefile.dos: Likewise.
862 2009-04-09 Jakub Jelinek <jakub@redhat.com>
864 * Makefile.in: Change copyright header to refer to version
865 3 of the GNU General Public License and to point readers at the
866 COPYING3 file and the FSF's license web page.
867 * configure.ac: Likewise.
869 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
870 David Ayers <ayers@fsfe.org>
873 * objc/objc-api.h (_objc_unexpected_exception): Declare
874 new hook. Update copyright dates.
875 * exception.c (objc_exception_throw): Use hook. Update
877 * libobjc.def (_objc_unexpected_exception): Export hook.
878 Update copyright dates.
880 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
882 * configure: Regenerate.
884 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
886 * configure: Regenerate.
888 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
890 * Object.m (errno): Replaced by errno.h include.
891 (compare): Cast self to id to prevent warning on comparison.
892 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
894 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
895 * thr-win32.c (__objc_thread_detach): Remove type warning.
896 (__objc_thread_id): Likewise.
897 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
900 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
901 Steve Ellcey <sje@cup.hp.com>
903 * configure: Regenerate for new libtool.
904 * config.h.in: Regenerate for new libtool.
906 2008-07-18 Matthias Klose <doko@ubuntu.com>
908 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
910 2008-07-18 Matthias Klose <doko@ubuntu.com>
912 * Makefile.in: Include ../boehm-gc/threads.mk.
913 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
915 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
917 * Makefile.in (install-info): New stub target.
919 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
921 * configure: Regenerate.
923 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
925 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
926 if HAVE_GETIPINFO is not defined.
928 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
930 * Object.m (compare): Add type id.
931 * objc/Object.h: Likewise.
932 * archive.c (objc_read_class): Use size_t to extend version to be
933 size of pointer scalar width.
934 * sendmsg.c (rtx): Undefine it before redefinition.
935 (__objc_print_dtable_stats): Cast arguments to long as intended.
937 2008-05-30 Julian Brown <julian@codesourcery.com>
939 * exception.c (__objc_exception_class): Initialise as constant
940 array for ARM EABI. Change macro to static const for non-ARM EABI.
941 (ObjcException): Add note about structure layout. Remove landingPad
942 and handlerSwitchValue for ARM EABI.
943 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
945 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
946 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
947 ARM EABI unwinding support.
948 (objc_exception_throw): Use memcpy to initialise exception class.
950 2008-05-25 Alan Modra <amodra@bigpond.net.au>
952 * encoding.c (strip_array_types): Rename from get_inner_array_type.
953 (rs6000_special_round_type_align): Update.
955 2008-05-09 Julian Brown <julian@codesourcery.com>
957 * Makefile.in (LTLDFLAGS): New.
958 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
960 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
963 * aclocal.m4: Regenerate.
964 * configure: Regenerate.
966 2008-01-24 David Edelsohn <edelsohn@gnu.org>
968 * configure: Regenerate.
970 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
972 * configure.ac: Don't run config-ml.in directly.
974 * configure: Regenerated.
976 2007-08-06 Andrew Pinski <pinskia@gmail.com>
979 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
980 of _Unwind_Word for variables which are used in
981 read_uleb128/read_sleb128.
982 (PERSONALITY_FUNCTION): Likewise.
984 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
986 * aclocal.m4: Regenerated.
988 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
990 * configure.ac: Fix a typo in *-*-darwin clause.
991 * configure: Regenerated.
993 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
995 * configure.ac: Fix a typo.
996 * configure: Regenerated.
998 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1000 * configure: Regenerate.
1002 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1004 * Makefile.in: Replace all uses of libext with libsuffix.
1005 * configure.ac: Likewise.
1006 * configure: Regenerate.
1009 * Makefile.in: Remove all uses of $(libext).
1011 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1013 * Makefile.in: Remove all uses of $(libext).
1015 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1017 * configure: Regenerate.
1018 * aclocal.m4: Regenerate.
1020 2007-04-21 Andrew Ruder <andy@aeruder.net>
1022 * sendmsg.c (__objc_get_forward_imp): Call
1023 __objc_msg_forward2 for real.
1025 2007-04-09 Andrew Ruder <andy@aeruder.net>
1027 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1028 external libraries to provide a function that returns the real
1029 forwarding function based on both the selector and the receiver.
1030 * objc/objc-api.h: Define __objc_msg_forward2.
1032 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1034 * Makefile.in: Add dummy install-pdf target.
1036 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1038 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1041 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1043 * encoding.c (darwin_rs6000_special_round_type_align): New.
1045 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1047 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1048 * configure.ac: Use multi.m4 from aclocal rather than custom
1049 code. Use multi_basedir instead of toplevel_srcdir.
1050 * aclocal.m4: Regenerate.
1051 * configure: Regenerate.
1053 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1055 * Makefile.in: Added empty "pdf" target.
1057 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1059 * configure: Regenerate.
1061 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1063 * Makefile.in: Add install-html target. Add install-html to .PHONY
1065 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1068 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1070 2006-01-24 David Ayers <d.ayers@inode.at>
1073 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1074 and insure the new strings are '\0' termintated.
1076 2006-01-24 David Ayers <d.ayers@inode.at>
1079 * configure.ac: Add include directives for --enable-objc-gc.
1080 * Makefile.in: Ditto.
1081 * configure: Regenerate.
1083 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1084 instead of the local pointer to them.
1086 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1089 * objc/objc-api.c (_C_COMPLEX): New define.
1090 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1091 (objc_alignof_type): Likewise.
1092 (objc_skip_typespec): Likewise.
1094 2005-12-15 David Ayers <d.ayers@inode.at>
1097 * README (+load,+initialize): Fix documentation to reflect
1098 intended and implemented semantics for +load and +initialize.
1100 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1102 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1104 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1105 (rs6000_special_round_type_align): Update for the ABI fix.
1106 (objc_layout_finish_structure): Correct the encoding which is passed to
1109 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1112 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1113 but use the struct layout functions.
1114 (objc_alignof_type): Likewise.
1115 (objc_layout_structure): Handle _C_UNION_B also.
1116 (objc_layout_structure_next_member): Likewise.
1117 (objc_layout_finish_structure): Likewise.
1119 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1122 * objc/objc-api.h (_C_BOOL): New define.
1123 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1124 (objc_alignof_type): Likewise.
1125 (objc_skip_typespec): Likewise.
1127 2005-11-20 David Ayers <d.ayers@inode.at>
1130 * objc/hash.h: Remove deprecated hash API.
1131 * hash_compat.c: Remove.
1132 * Makefile.in: Remove reference to hash_compat.c.
1134 * configure.ac (VERSION): Bump library version to 2:0:0.
1135 * configure: Regenerate.
1137 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1140 * thr-objc.c (_XOPEN_SOURCE): Define.
1142 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1145 * objc/objc-api.h (struct objc_ivar): Move definition to
1148 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1149 Rasmus Hahn <rassahah@neofonie.de>
1152 * archive.c (objc_write_type): Correct the element offset.
1153 (objc_read_type): Likewise.
1155 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1157 * All files: Update FSF address.
1159 2005-08-13 Marcin Koziej <creep@desk.pl>
1160 Andrew Pinski <pinskia@physics.uc.edu>
1163 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1165 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1167 * Makefile.in (extra_ldflags_libobjc): New.
1168 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1169 (libobjc_gc$(libext).la): Likewise.
1170 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1171 "-Wl,-single_module".
1172 * configure: Regenerate.
1173 * linking.m (_objcInit): Remove.
1175 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1178 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1180 2005-06-08 David Ayers <d.ayers@inode.at>
1182 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1183 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1184 objc/runtime.h, objc/sarray.h, objc/thr.h,
1185 objc/typedstream.h: Do not include Objective-C headers as
1188 2005-06-07 David Ayers <d.ayers@inode.at>
1190 * archive.c, init.c, selector.c: Include hash.h.
1191 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1192 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1193 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1194 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1195 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1196 Include Objective-C headers with quotes and objc/ directory
1199 2005-05-19 Richard Henderson <rth@redhat.com>
1201 * exception.c: Revert last change.
1203 2005-05-19 David Ayers <d.ayers@inode.at>
1205 * exception.c: Include tsystem.h for unwind.h.
1207 2005-05-09 Mike Stump <mrs@apple.com>
1209 * configure: Regenerate.
1211 2005-04-12 Mike Stump <mrs@apple.com>
1213 * configure: Regenerate.
1215 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1217 * Makefile.in: Set gcc_version here.
1218 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1219 in definition of toolexeclibdir so that $(gcc_version) is expanded
1221 * aclocal.m4, configure: Regenerate.
1223 2005-03-03 David Ayers <d.ayers@inode.at>
1225 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1226 version reference. Correct typo.
1228 2005-03-02 David Ayers <d.ayers@inode.at>
1231 * Makefile.in (OBJS): Add hash_compat.lo.
1232 (OBJS_GC): Add hash_compat_gc.lo.
1233 (hash_compat_gc.lo): New target and rule.
1234 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1235 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1236 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1237 with objc_. Add deprecated non prefixed inlined versions.
1238 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1240 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1241 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1243 * hash_compat.c: New file.
1244 * archive.c: Update callers.
1246 * selector.c: Likewise.
1247 * libobjc.def: Add objc_ versions of hash functions.
1249 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1252 * Makefile.in (GTHREAD_FLAGS): Remove.
1253 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1254 * thr-objc.c: Include config.h.
1255 * configure.ac: Instead of looking at GCC's makefile, figure out if
1256 GTHREAD_FLAGS should be defined by looking at the `thread model'
1258 * configure: Regenerate.
1259 * config.h.in: Regenerate.
1261 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1264 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1265 (Determine CFLAGS for gthread): Use $host_subdir.
1266 * configure: Regenerate.
1267 * Makefile.in (host_subdir): New.
1270 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1273 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1275 Include limits.h and stdlib.h.
1276 Define BITS_PER_WORD.
1278 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1280 * selector.c (__objc_init_selector_tables): Add missing void to
1283 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1285 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1286 * configure, aclocal.m4: Regenerate.
1288 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1290 * configure: Regenerate for libtool change.
1292 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1294 * configure: Regenerate for libtool reversion.
1296 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1298 * configure: Regenerate for libtool change.
1300 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1302 * aclocal.m4, config.h.in: Regenerate.
1304 2004-10-08 Mike Stump <mrs@apple.com>
1305 Andrew Pinski <pinskia@physics.uc.edu>
1307 * aclocal.m4: Rename to ...
1308 * acinclude.m4: here and also use m4_include instead of sinclude.
1309 * aclocal.m4: Regenerate.
1310 * configure: Regenerate.
1311 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1312 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1314 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1316 * archive.c: Fix all the warnings about passing unsigned char*
1317 to char* and the other way too.
1319 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1322 * exception.c: Include config.h
1323 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1325 * configure.ac: Find out what exception handling code we use.
1326 * configure: Regenerate.
1327 * config.h.in: New file, regenerate.
1329 2004-09-16 Andrew Pinski <apinski@apple.com>
1331 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1333 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1335 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1336 ACX_NONCANONICAL_TARGET.
1337 * configure: Regenerate.
1339 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1341 * objc/sarray.h: Hoist include of assert.h near the top of file,
1342 and mark the remainder of the file 'extern "C"'.
1344 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1346 * objc/Object.h: Move includes out of extern "C" blocks.
1347 * objc/encoding.h: Likewise.
1348 * objc/hash.h: Likewise.
1349 * objc/objc-api.h: Likewise.
1350 * objc/runtime.h: Likewise.
1351 * objc/sarray.h: Likewise.
1352 * objc/typedstream.h: Likewise.
1354 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1356 * objc/NXConstStr.h: Update copyright date; bracket with
1357 'extern "C"' for C++ use; make include syntax consistent
1358 by using <...> instead of "..."; hoist <objc/...> includes
1359 above the 'extern "C"' block.
1360 * objc/Object.h: Likewise.
1361 * objc/Protocol.h: Likewise.
1362 * objc/encoding.h: Likewise.
1363 * objc/hash.h: Likewise.
1364 * objc/runtime.h: Likewise.
1365 * objc/sarray.h: Likewise.
1366 * objc/thr.h: Likewise.
1367 * objc/typedstream.h: Likewise.
1368 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1369 (objc_static_instances): For C++ case, do away with
1371 (objc_method): Hoist definition to file scope.
1372 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1373 class_get_instance_method, class_create_instance,
1374 class_get_class_name, class_get_instance_size,
1375 class_get_meta_class, class_get_super_class, class_get_version,
1376 class_is_class, class_is_meta_class, class_set_version,
1377 class_get_gc_object_type, class_ivar_set_gcinvisible,
1378 get_imp): Rename 'class' parameter to '_class'.
1379 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1380 * objc/objc.h: Update copyright date.
1381 (arglist_t): Provide a union tag.
1383 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1385 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1386 but instead use the attribute noreturn.
1388 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1390 * encoding.c: Rename target_flags with a #define to avoid
1391 conflict with a prior declaration.
1393 2004-06-24 Andrew Pinski <apinski@apple.com>
1395 * objc/encoding.h: Wrap the functions with extern "C" for C++
1397 * objc/hash.h: Likewise.
1398 * objc/objc-api.h: Likewise.
1399 * objc/objc-list.h: Likewise.
1400 * objc/runtime.h: Likewise.
1401 * objc/sarray.h: Likewise.
1402 * objc/thr.h: Likewise.
1403 * objc/typedstream.h: Likewise.
1406 2004-06-21 Nick Clifton <nickc@redhat.com>
1408 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1411 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1413 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1414 (exception_gc.lo): New.
1415 (OBJS_GC): Add exception_gc.lo.
1417 2004-06-17 Richard Henderson <rth@redhat.com>
1419 * exception.c: New file.
1420 * Makefile.in (exception.lo): New.
1423 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1425 * linking.m (_objcInit): New empty function
1428 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1430 * configure.ac: Support --enable-shared=libobjc.
1431 * configure: Regenerate.
1434 * configure.ac: Do not disable shared by default.
1435 * configure: Regenerate.
1437 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1439 * Protocol.m ([-isEqual:]): Small optimizations returning
1440 immediately if the argument is equal to self, and accessing
1441 the argument's name directly if it's a protocol.
1443 2004-06-03 David Ayers <d.ayers@inode.at>
1445 * Protocol.m ([-isEqual:]): Test the class of the argument.
1447 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1449 * configure.ac (includedir): Rename to ...
1451 * Makefile.in: s/includedir/includedirname/.
1454 * configure.ac (includedir): Set to "include"
1456 (libext) Set to empty except for Darwin.
1457 * configure: Regenerate
1458 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1459 s/include/$(includedir)/g.
1461 2004-05-25 Daniel Jacobowitz <drow@false.org>
1463 * Makefile.in: Add .NOEXPORT.
1465 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1467 Merge from the libobjc-branch
1468 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1470 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1472 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1474 * Makefile.in (OBJC_H): Add objc-deps.h.
1476 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1478 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1479 ([-hash], [-isEqual:]): New methods.
1481 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1483 * sarray.c (sarray_free): Add a better comment.
1485 2004-01-27 Adam Fedor <fedor@gnu.org>
1487 * hash.c (hash_add): Cast cachep to int.
1488 * selector.c (__sel_register_typed_name): Cast
1489 soffset_decode to int.
1491 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1493 * selector.c: Rename register_selectors_from_list to
1494 __objc_register_selectors_from_list. Update caller.
1495 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1496 while registering selectors. Use __sel_register_typed_name instead
1497 of sel_register_typed_name. Check for NULL method_name:s.
1498 (pool_alloc_selector): New function.
1499 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1500 selector structures.
1501 * sendmsg.c (class_add_method_list): Use
1502 __objc_register_selectors_from_list.
1503 * objc/runtime.h: Add __objc_register_selectors_from_list.
1505 2004-01-25 Adam Fedor <fedor@gnu.org>
1506 Nicola Pero <n.pero@mi.flashnet.it>
1507 Andrew Pinski <pinskia@physics.uc.edu>
1509 * objc/objc-decls.h: New file.
1510 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1511 (_objc_load_callback): Likewise.
1512 (_objc_object_alloc): Likewise.
1513 (_objc_object_copy): Likewise.
1514 (_objc_object_dispose): Likewise.
1516 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1518 * archive.c: s/__inline__/inline
1519 * sendmsg.c: Likewise.
1521 * encoding.c: Remove FIXME about the warning
1522 about unused variable.
1523 * sendmsg.c: Add a FIXME comment saying that
1524 this should be using libffi.
1526 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1529 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1531 * archive.c (objc_read_class): Initialize class_name.
1532 (objc_read_selector): Initialize selector_name.
1534 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1536 * Makefile.in (toolexecdir): Remove trailing space.
1538 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1541 * configure.ac: De-precious CC so multilibs work.
1542 * configure: Regenerate.
1544 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1546 * configure.ac: Restore toolexecdir.
1547 * Makefile.in: Restore toolexecdir.
1548 * configure: Regenerate.
1550 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1552 * configure.ac: Remove (unused) glibcpp_prefixdir.
1553 * configure: Regenerate.
1555 * configure.in: Rename to configure.ac.
1556 * Makefile.in: Update to match.
1558 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1559 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1560 * configure.in: Remove glibcpp_toolexecdir (unused).
1561 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1562 config.h or stamp-h (unused). Move one comment to the right place.
1563 * configure: Regenerate.
1564 * config.h.in: Remove (unused).
1566 * config.h.in: Regenerate with autoheader.
1568 * Makefile.in: Remove (unused) gcc_version_trigger.
1569 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1570 gcc_version_trigger.
1571 * configure: Regenerate.
1573 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1574 Sort file into sections. Remove dnl where appropriate. Fix
1576 * configure: Regenerate.
1578 * configure.in: Replace old AC_PROG_CC hack with new one.
1579 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1580 are no subdirectory output files, so this is fine). Change prereq
1582 * aclocal.m4: Include ../config/no-executables.m4.
1583 * configure: Regenerate with autoconf 2.59.
1585 * configure.in: Improve comments on gthread_cflags. Improve m4
1586 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1587 * configure: Regenerate.
1589 * configure.in: Move PACKAGE and VERSION settings up top. Remove
1590 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
1591 redundant checks for values of RANLIB, AR, INSTALL.
1592 * configure: Regenerate.
1594 * configure.in: Clean up handling of
1595 --enable-version-specific-runtime-libs and related variables;
1596 replace 'if test' with 'case' where reasonable. Fix comments.
1597 Remove useless libstdcxx_interface.
1598 * configure: Regenerate.
1600 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
1601 Replace uses of target_alias with target_noncanonical.
1602 * aclocal.m4: Include ../config/acx.m4.
1603 * configure: Regenerate.
1604 * Makefile.in: Replace uses of target_alias with target_noncanonical.
1605 Fix copyright statement.
1607 * configure.in: Hand-inline bulky, confusing macros from
1608 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
1609 Update copyright notice. Remove stuff for automake, which isn't
1610 used in this directory. Remove emacs local variables.
1611 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
1612 * configure: Regenerate.
1614 2004-03-16 Manfred Hollstein <mh@suse.com>
1616 * Makefile.in, configure.in, configure: Update copyright years.
1618 2004-03-15 Manfred Hollstein <mh@suse.com>
1620 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
1621 definition from configure.in.
1622 * configure.in (PACKAGE): Add definition.
1623 (VERSION): Add definition; substitute it in output files.
1624 * configure: Re-generate.
1626 2004-03-05 Ziemowit Laski <zlaski@apple.com>
1628 * objc/hash.h (hash_string, compare_strings):
1629 Add type-casts to make Objective-C++ happy.
1630 * objc/typedstream.h (objc_get_stream_class_version):
1631 Rename parameter from 'class' to 'class_name' to make
1632 Objective-C++ happy.
1634 2004-03-01 Michael Matz <matz@suse.de>
1636 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
1638 2004-02-06 Ziemowit Laski <zlaski@apple.com>
1640 * objc/objc-api.h (objc_super): The 'class' field shall
1641 be named 'super_class' #ifdef __cplusplus.
1643 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
1646 * encoding.c (rs6000_special_round_type_align): Define.
1648 2004-01-14 Adam Fedor <fedor@gnu.org>
1651 * selector.c (__objc_register_instance_methods_to_class): Free
1652 new_list if not used.
1654 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
1657 * sarray.c (sarray_free): Free array->is_copy_of latter.
1659 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1662 * Protocol.m (descriptionForInstanceMethod): Don't dereference
1663 instance_methods if it's NULL.
1664 (descriptionForClassMethod): Likewise for class_methods.
1666 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1668 * Makefile.in (runtime-info.h): Remove -Wp.
1670 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1672 * Makefile.in (CC1OBJ): Remove.
1673 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
1675 Use .m extension for temporary file.
1676 Remove assembler temp file.
1678 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
1680 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
1682 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1684 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
1686 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1688 * configure: Regenerate.
1690 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
1692 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
1693 (libdir)/gcc-lib/ when installing.
1694 * configure: Regenerate.
1696 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
1699 * sendmsg.c (get_imp): Fixed rare threading problem.
1700 (__objc_responds_to): Similar fixes.
1701 (objc_msg_lookup): Similar fixes.
1702 (__objc_init_install_dtable): Lock the runtime before checking if the
1705 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
1707 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
1708 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
1709 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
1710 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
1711 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
1712 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
1713 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
1714 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
1715 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
1716 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
1717 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
1719 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
1720 Nicola Pero <n.pero@mi.flashnet.it>
1723 * init.c (class_superclass_of_class): New function.
1724 (create_tree_of_subclasses_inherited_from): Use it.
1725 (__objc_tree_insert_class): Likewise.
1726 (class_is_subclass_of_class): Likewise.
1728 2003-04-11 David Chad <davidc@freebsd.org>
1729 Loren J. Rittle <ljrittle@acm.org>
1732 * objc/hash.h (hash_string): Constify correctly.
1733 (compare_ptrs): Use direct compare.
1734 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
1735 * objc/sarray.h: Global rename index to indx to avoid shadow.
1737 2003-03-12 Andreas Schwab <schwab@suse.de>
1739 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
1740 glibcpp_toolexeclibdir.
1741 * configure: Rebuilt.
1743 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1745 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1747 * configure: Rebuilt.
1749 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1751 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
1752 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
1753 version_specific_libs is enabled.
1754 * configure: Rebuilt.
1756 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1758 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1759 (install-libs, install-headers): Prepend $(DESTDIR) to
1760 destination paths in all (un)installation commands.
1762 2002-12-02 Zack Weinberg <zack@codesourcery.com>
1764 * thr-objc.c: Include coretypes.h and tm.h.
1766 2002-12-01 Zack Weinberg <zack@codesourcery.com>
1768 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
1770 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1772 * configure.in: Remove skip-this-dir support.
1773 * configure: Regenerate.
1775 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1777 * Makefile.in (all): Fix multilib parallel build.
1779 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
1781 * sendmsg.c (nil_method): Declare not to take a variable number of
1783 (objc_msg_lookup): Cast nil_method to IMP before returning it.
1784 (objc_msg_lookup_super): The same.
1786 2002-09-10 Jan Hubicka <jh@suse.cz>
1788 * nil_method.c (nil_method): No longer defined with variable
1791 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
1793 * objc/encoding.h: Fix formatting.
1794 * objc/hash.h: Likewise.
1795 * objc/objc-api.h: Likewise.
1796 * objc/runtime.h: Likewise.
1797 * objc/thr.h: Likewise.
1798 * archive.c: Likewise.
1799 * class.c: Likewise.
1800 * encoding.c: Likewise.
1805 * nil_method.c: Likewise.
1806 * objects.c: Likewise.
1807 * sarray.c: Likewise.
1808 * selector.c: Likewise.
1809 * sendmsg.c: Likewise.
1810 * thr-mach.c: Likewise.
1813 2002-06-25 DJ Delorie <dj@redhat.com>
1815 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
1816 GLIBCPP_TOPREL_CONFIGURE.
1817 * configure.in: Call it before AC_CANONICAL_SYSTEM.
1818 * configure: Regenerate.
1820 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1822 * Object.m (forward, read, write): Fix unused parameter warnings.
1823 * encoding.c: Include <stdlib.h>.
1824 (target_flags): Mark with attribute unused.
1826 * runtime.h (__objc_selector_max_index): Change to unsigned int.
1827 (__objc_generate_gc_type_description): Prototype.
1828 * selector.c (__objc_selector_max_index): Change to unsigned int.
1830 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
1832 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
1833 we always have a return value: if __objc_msg_forward does not
1834 supply a forwarding implementation, return the default
1835 __builtin_apply based one.
1837 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1839 * Object.m: Fix signed/unsigned warning.
1840 * Protocol.m: Likewise.
1841 * archive.c: Always include stdlib.h.
1842 (objc_read_short, objc_read_unsigned_short, objc_read_int,
1843 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
1844 Fix signed/unsigned warning.
1845 (objc_write_type, objc_read_type, objc_write_types,
1846 objc_read_types): Ensure ctype 8-bit safety.
1847 (__objc_no_write, __objc_no_read): Mark unused parameters.
1848 * class.c (class_table_setup): Specify void arg.
1849 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
1850 objc_skip_typespec, objc_skip_offset,
1851 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
1852 (objc_layout_structure_next_member): Ensure variables are
1854 * gc.c (__objc_generate_gc_type_description,
1855 class_ivar_set_gcinvisible): Mark unused parameters.
1856 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
1858 (__objc_init_protocols) Fix signed/unsigned warning.
1859 * nil_method.c (nil_method): Mark unused parameters.
1860 * thr.h (objc_thread_callback): Specify void arg.
1861 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
1862 signed/unsigned warning.
1863 (sarray_free): Fix formatting.
1864 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
1865 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
1867 2002-06-09 Andreas Jaeger <aj@suse.de>
1869 * encoding.c (objc_layout_structure_next_member): Remove unused
1872 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1874 * Makefile.in (SHELL): Set to @SHELL@.
1876 (ALL_CFLAGS): Add $(WARN_CFLAGS).
1878 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1880 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
1881 * configure: Regenerate.
1883 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
1885 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1886 script entry, and set LD to it when configuring multilibs.
1887 * configure: Rebuilt.
1889 2002-04-19 David O'Brien <obrien@FreeBSD.org>
1891 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
1893 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
1896 * objc/objc-api.h (struct objc_protocol_list): Change type of
1897 member count from int to size_t.
1899 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1902 * aclocal.m4: Replace with version copied from libstdc++-v3.
1903 * configure.in: Update for changes to aclocal and Makefile.
1904 * configure: Regenerate.
1905 * Makefile.in: Correct install of multilibs and shared libs, use
1906 INSTALL_DATA for include files.
1908 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
1910 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
1911 categories - when an unclaimed category was found, the loop was
1912 doing two steps forward instead of one, so that in certain cases
1913 it was failing to properly load all the categories. (Reported
1914 with fix by Alexander Malmberg <alexander@malmberg.org>).
1916 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
1918 * encoding.c: Add target_flags.
1920 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
1922 * objc/objc-api.h (_C_VECTOR): New.
1924 * encoding.c (VECTOR_TYPE): New.
1926 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
1928 * class.c: Rewritten the class table to use optimized, lock-free
1929 lookup. This more than doubles the speed of class method
1930 invocations. (class_table_setup), (class_table_insert),
1931 (class_table_replace), (class_table_get_safe),
1932 (class_table_next), (class_table_print),
1933 (class_table_print_histogram): New functions.
1934 (__objc_init_class_tables): Use class_table_setup.
1935 (__objc_add_class_to_hash): Use class_table_get_safe and
1936 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
1937 assert the existence of the table; do not lock the runtime; use
1938 class_table_get_safe. (objc_next_class): Use class_table_next.
1939 (__objc_resolve_class_links): Use class_table_next.
1940 (class_pose_as): Use class_table_replace.
1942 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
1944 * gc.c: Removed the DEBUG declaration.
1946 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
1948 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
1949 rather than through objc_thread_id, to save a function call.
1950 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
1953 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
1955 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
1956 to cast an id to a Class, which can not be done. Make the check
1957 by using CLS_ISMETA on the class pointer instead.
1958 (object_is_meta_class): Similar fix.
1960 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1962 * configure.in (AC_EXEEXT): Work around in case it expands to
1963 nothing, as in autoconf 2.50.
1964 * acinclude.m4: Likewise.
1965 * configure: Rebuilt.
1967 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
1969 * THREADS: Explain that when we compile libobjc inside GCC, we
1970 always use thr-objc.c as a backend, which uses GCC's thread code.
1972 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
1974 * init.c (__objc_send_message_in_list): When setting a new entry
1975 in __objc_load_methods use the method IMP as key, but check to see
1976 if the method is in the hashtable by looking at the IMP also.
1977 Also ... call the method after adding it to the hashtable rather
1978 than before ... thus preventing an obscure possibility of infinite
1979 recursion if a +load method itself loads a subclass.
1981 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
1983 * init.c (__objc_send_message_in_list): When setting a new entry
1984 in __objc_load_methods use the method name as key, not the method
1985 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
1987 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
1989 * objc-features.texi: Move to ../gcc/objc.texi.
1991 * Makefile.in: Don't generate documentation from
1994 2001-05-01 Mark Mitchell <mark@codesourcery.com>
1996 * fdl.texi: New file.
1997 * objc-features.texi: Simplify.
1998 * Makefile.in: Adjust accordingly.
2000 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2002 * objc-features.texi: Use the GFDL.
2004 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2006 * encoding.c (REAL_TYPE): Define.
2008 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2010 * encoding.c (TYPE_MODE): Define.
2012 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2014 * thr.c (objc_thread_add): New function.
2015 (objc_thread_remove): Ditto.
2016 * objc/thr.h: Declare them.
2017 * libobjc.def: Mention them.
2019 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2021 * objc-features.texi: Document the @compatibility_alias compiler
2022 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2024 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2026 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2028 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2030 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2031 we're not interested in the result and they might fail.
2032 * configure: Regenerated.
2034 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2036 * objc-features.texi: Use @email.
2038 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2040 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2043 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2045 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2046 determines the value dynamically.
2048 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2050 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2051 libraries to provide a function that returns the real forwarding
2052 function. This can alleviate problems __builtin_apply() and
2053 friends have on various platforms. (Solution suggested by Helge
2056 * objc/objc-api.h: Define __objc_msg_forward.
2058 * sendmsg.c: Define gen_rtx_REG.
2060 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2062 * thr-rtems.c: New file. Stub to compile.
2064 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2066 * configure: Rebuilt with new libtool.m4.
2068 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2070 * configure.in: Create a config.h file. Check for <sched.h>.
2071 * configure: Regenerate.
2073 * config.h.in: Check for <sched.h>.
2075 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2077 * configure: Regenerate after change to ../libtool.m4.
2079 2000-08-14 Andreas Schwab <schwab@suse.de>
2081 * objc-features.texi (Top): Move @menu at end of node.
2083 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2085 * objc-features.texi: Move @node Top before @menu.
2087 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2089 * objc-features.texi: Documented the new -fconstant-string-class
2092 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2094 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2095 improve the Posix thread support for Objective-C.
2097 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2099 * aclocal.m4: Replace copy of ../libtool.m4 with
2100 sinclude(../libtool.m4).
2102 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2104 * configure.in: Added libtool support; build shared libraries
2105 if --enable-shared was passed on command line.
2106 * Makefile.in: Modified most compilation commands to use libtool.
2107 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2108 libtool distribution.
2110 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2112 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2113 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2116 2000-05-12 H.J. Lu (hjl@gnu.org)
2118 * Makefile.in (GTHREAD_FLAGS): New.
2119 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2120 (OBJC_THREAD_FILE): Changed to thr-objc.
2122 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2124 (OBJC_THREAD_FILE): Removed.
2128 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2130 * objc/hash.h: Include string.h.
2132 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2134 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2136 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2138 * Object.m (strlen): Provide prototype on all 64bit platforms,
2140 * sarray.c (memcpy): Likewise.
2141 * encoding.c (objc_layout_finish_structure): Don't use
2142 ROUND_TYPE_ALIGN on sparc.
2144 * encoding.c (objc_layout_structure_next_member): Do the whole
2145 procedure even for the first member, so that we get correct
2148 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2150 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2153 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2155 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2157 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2159 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2161 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2163 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2164 the compiler when building C code.
2166 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2168 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2169 libdir, libsubdir and tooldir.
2171 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2173 * init.c (__objc_force_linking): Make global.
2175 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2177 * configure.in (AC_EXEEXT): Remove call.
2178 (compiler_name): Explicitly check with no extension and .exe
2180 * configure: Regenerate.
2182 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2184 * Makefile.in (CC1OBJ): Define in terms of CC.
2185 (runtime-info.h): Use.
2187 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2189 * objc-features.texi: Updated the URL to Boehm's GC page.
2191 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2193 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2194 the char as being signed (patch from Daniel Jacobowitz
2197 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2199 * configure.in (AC_PREREQ): Update to 2.13.
2200 (AC_EXEEXT): Call to find possible file extension.
2201 (compiler_name): Use.
2202 * configure: Regenerate.
2204 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2206 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2208 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2210 * configure.in (thread_file): Correct and simplify code to find
2212 * configure: Rebuilt.
2214 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2216 * configure.in (compiler_name): Add check to detect if this
2217 language's compiler has been built.
2218 * configure: Regenerate.
2220 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2222 * configure.in: Use AC_PREREQ(2.12.1).
2224 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2226 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2228 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2230 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2232 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2234 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2236 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2238 * objc-features.texi (Top): Changed the email address.
2239 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2241 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2243 * encoding.c: Redefine get_inner_array_type to get the first entry
2246 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2248 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2249 (objc_get_type_qualifiers): Similarly.
2250 * objc/encoding.h (_C_BYREF): Define.
2253 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2255 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2256 works out on 64-bit systems.
2258 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2260 * Makefile.in (INCLUDES): Make it multilib-friendly.
2262 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2264 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2266 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2267 Jeffrey A Law (law@cygnus.com)
2269 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2270 (FLAGS_TO_PASS): Added.
2271 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2273 * archive.c: Change config.h to tconfig.h.
2275 * configure.in: Find gcc's object directory even for multilibs.
2277 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2279 * configure.in: Escape ^ in grep string.
2280 * configure: Rebuilt.
2282 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2284 * All .h files pushed down into the objc/ subdirectory.
2285 * Makefile.in (copy_headers): Corresponding changes.
2286 * configure.in (AC_INIT): Corresponding changes.
2287 * configure: Rebuilt.
2289 1998-09-30 Ben Elliston <bje@cygnus.com>
2290 Jeff Law <law@cygnus.com>
2292 * Makefile.in: Rewrite.
2294 * configure.in: Likewise.
2296 * configure: Regenerate.
2298 * All .c files. Remove "objc" prefix when including objc header
2299 files. Include tconfig.h, not ../tconfig.h.
2301 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2303 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2304 (get_inner_array_type): Define.
2306 1998-09-21 Ben Elliston <bje@cygnus.com>
2308 * New directory. Moved files from ../gcc/objc.