1 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
3 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
4 instead of objc/objc-api.h.
5 (objc_get_unknown_class_handler): Do not define.
6 (class_isMetaClass): New.
7 (class_getSuperclass): New.
8 (class_getVersion): New.
9 (class_setVersion): New.
10 (class_getInstanceSize): New.
11 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
12 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
14 (get_ttype_entry): Use objc_getRequiredClass instead of
16 * ivars.c (class_getClassVariable): New.
17 * objects.c: Include objc/runtime.h, objc/thr.h and
18 objc-private/module-abi-8.h instead of objc/objc-api.h
19 * objc/runtime.h (class_getClassVariable): New.
20 (class_isMetaClass): New.
21 (class_getSuperclass): New.
22 (class_getVersion): New.
23 (class_setVersion): New.
24 (class_getInstanceSize): New.
25 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
29 (__CLS_SETINFO): Same.
33 (CLS_SETRESOLV): Same.
34 (CLS_ISINITIALIZED): Same.
35 (CLS_SETINITIALIZED): Same.
36 (CLS_GETNUMBER): Same.
37 (CLS_SETNUMBER): Same.
39 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
41 * archive.c: Do not include objc/objc.h.
42 * class.c: Do not include objc/objc.h.
43 * encoding.c: Include objc/runtime.h, ctype.h and
44 objc-private/module-abi-8.h instead of objc/objc-api.h and
46 * error.c: Do not include objc/objc.h.
47 * gc.c: Include tconfig.h and objc/encoding.h only if
49 * hash.c: Include objc/runtime.h and objc/thr.h instead of
50 objc/objc-api.h. Do not include objc/objc.h.
51 * init.c: Do not include objc/objc.h.
52 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
53 objc/thr.h instead of objc/objc-api.h. Do not include
55 * linking.m: Tidied comment.
56 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
57 Do not include objc/objc.h.
58 * objects.c: Do not include objc/objc.h.
59 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
60 * protocols.c: Do not include objc/objc.h.
61 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
62 not include objc/objc.h.
63 * selector.c: Do not include objc/objc.h.
64 * sendmsg.c: Do not include objc/objc.h.
65 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
66 Do not include objc/objc.h.
67 * objc/objc-decls.h: Reindented code.
68 * objc/runtime.h Include objc-decls.h. Updated comments.
70 (objc_atomic_malloc): New.
74 * objc-private/runtime.h: Updated comments.
76 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
78 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
79 * objc-private/protocols.h: New.
81 * init.c: Include objc-private/protocols.h.
82 (__objc_exec_class): Call __objc_protocols_init on startup.
83 (__objc_init_protocols): Call __objc_protocols_add_protocol.
84 * objc-private/runtime.h: Use (struct objc_method_list *) instead
85 of MethodList_t, and (struct objc_method *) instead of Method_t.
86 * objc/deprecated/struct_objc_class.h: Define
87 __objc_STRUCT_OBJC_CLASS_defined.
88 * objc-private/module-abi-8.h (struct
89 objc_method_description_list): New.
90 (struct objc_class): Only define if
91 __objc_STRUCT_OBJC_CLASS_defined is undefined.
92 * objc/runtime.h (class_getName): New.
93 (objc_getProtocol): New.
94 (objc_copyProtocolList): New.
95 (class_addProtocol): New.
96 (class_conformsToProtocol): New.
97 (class_copyProtocolList): New.
98 (protocol_conformsToProtocol): New.
99 (protocol_isEqual): New.
100 (protocol_getName): New.
101 (protocol_getMethodDescription): New.
102 (protocol_copyMethodDescriptionList): New.
103 (protocol_getProperty): New.
104 (protocol_copyPropertyList): New.
105 (protocol_copyProtocolList): New.
106 * class.c (class_getName): New.
107 * selector.c (sel_isEqual): New.
109 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
111 * selector.c (sel_getName): Return "<null selector>" for a NULL
113 (sel_get_name): Return 0 for a NULL argument.
114 * objc/runtime.h (sel_getName): Updated documentation.
116 * objc-private/hash.h (class_hash_table): Unused declaration
118 (module_hash_table): Same.
119 * objc/deprecated/hash.h: Same changes.
121 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
123 * class.c (objc_getClassList): New.
124 (objc_getRequiredClass): New.
125 (objc_getMetaClass): New.
126 (objc_lookupClass): New.
127 (objc_getClass): New.
128 (__objc_get_unknown_class_handler): New.
129 (objc_setGetUnknownClassHandler): New.
130 (objc_get_class): Use __objc_get_unknown_class_handler.
131 (objc_lookup_class): Call objc_getClass.
132 * objc/objc-api.h: Updated comment and copyright notice.
133 * objc/runtime.h: Updated comments.
134 (objc_getClass): New.
135 (objc_lookupClass): New.
136 (objc_getMetaClass): New.
137 (objc_getRequiredClass): New.
138 (objc_getClassList): New.
139 (objc_setGetUnknownClassHandler): New.
140 (objc_get_unknown_class_handler): New.
141 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
142 instead of __objc_runtime_INCLUDE_GNU as include guard.
143 * objc-private/error.h (_objc_abort): Mark as noreturn.
145 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
147 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
149 * objc/objc.h: Updated comments.
150 * objc/runtime.h (object_getClass): New.
151 (object_getClassName): New.
152 (object_setClass): New.
153 (class_getInstanceVariable): New.
154 (object_getIndexedIvars): New.
155 (object_getInstanceVariable): New.
156 (object_setInstanceVariable): New.
157 (object_getIvar): New.
158 (object_setIvar): New.
160 (ivar_getOffset): New.
161 (ivar_getTypeEncoding): New.
162 * objc-private/module-abi-8.h (struct objc_class): Added.
163 * objects.c (object_getClassName): New.
164 (object_setClass): New.
166 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
168 * objc/objc.h: Updated comments.
169 * objc/objc-api.h: (object_copy): Added one argument; use a
170 #define to maintain backwards-compatibility. Moved
171 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
172 objc_get_uninstalled_dtable into
173 objc/deprecated/objc_get_uninstalled_dtable.h and
174 objc/deprecated/objc_object_alloc.h. Include these files.
175 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
176 * objc/deprecated/objc_object_alloc.h: New.
177 * objc/runtime.h (set_getName): New.
180 (sel_registerName): New.
181 (sel_registerTypedName): New.
183 (class_createInstance): New.
185 (object_dispose): New.
186 * objects.c: Do not include tconfig.h. Include gc_typed.h if
187 building the garbage collection version.
188 (__objc_object_alloc): Removed.
189 (__objc_object_copy): Removed.
190 (__objc_object_dispose): Removed.
191 (class_createInstance): New from code in class_create_instance.
192 Cast second argument of GC_malloc_explicitly_typed. Use
193 objc_calloc. Do not call _objc_object_alloc.
194 (class_create_instance): Call class_createInstance.
195 (object_copy): Added extraBytes argument. Do not call
197 (object_dispose): Do not call _objc_object_dispose.
198 * memory.c (objc_free): When using garbage collection, mark the
200 * selector.c (sel_getName): New.
201 (sel_get_name): Call sel_getName.
203 (sel_get_type): Call sel_getType.
204 (sel_registerName): New.
205 (sel_register_name): Call sel_registerName.
206 (sel_registerTypedName): New.
207 (sel_register_typed_name): Call sel_registerTypedName.
209 (sel_get_uid): Call sel_getUid.
211 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
213 * objc/objc-api.h: Define Method, Method_t, Category and
214 Category_t. Prevent including this file at the same time as
215 objc/runtime.h. Updated comments.
216 * objc/deprecated/struct_objc_method.h: Do not define Method,
218 * objc/deprecated/struct_objc_category.h: Do not define Category,
220 * objc-private/module-abi-8.h: New file containing a copy of all
221 the structure definitions. Not used yet.
222 * objc/encoding.h (objc_aligned_size): Removed duplicate
223 declaration. Updated comments.
224 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
225 Category, struct objc_method_description, _C_ID and similar,
226 _C_CONST and similar and _F_CONST and similar. Added
227 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
228 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
229 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
230 struct objc_struct_layout, objc_layout_structure,
231 objc_layout_structure_next_member, objc_layout_finish_structure,
232 objc_layout_structure_get_info. Prevent including this file at
233 the same time as objc/objc-api.h.
235 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
237 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
238 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
239 struct_objc_method_list.h, struct_objc_module.h,
240 struct_objc_protocol_list.h, struct_objc_symtab.h.
241 * objc/deprecated/struct_objc_category.h: New.
242 * objc/deprecated/struct_objc_ivar.h: New.
243 * objc/deprecated/struct_objc_ivar_list.h: New.
244 * objc/deprecated/struct_objc_method.h: New.
245 * objc/deprecated/struct_objc_method_list.h: New.
246 * objc/deprecated/struct_objc_module.h: New.
247 * objc/deprecated/struct_objc_protocol_list.h: New.
248 * objc/deprecated/struct_objc_symtab.h: New.
249 * objc/deprecated/struct_objc_static_instances.h: New.
250 * objc/objc-api.h: Definitions of deprecated structures moved into
251 the above header fragment files in objc/deprecated/. Include the
252 files instead of definition the structures here. Updated
254 * objc/runtime.h: Updated comments. Do not include objc-api.h.
255 (objc_set_enumeration_mutation_handler): Renamed to
256 objc_setEnumerationMutationHandler.
257 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
258 to objc_setEnumerationMutationHandler.
259 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
260 objc_setExceptionMatcher.
261 (objc_set_uncaught_exception_handler): Renamed to
262 objc_setUncaughtExceptionHandler.
263 * exception.c: Same changes.
265 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
267 * objc-sync.c: Include objc-private/common.h.
269 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
271 * objc-foreach.c: Include objc-private/common.h.
272 * objc/deprecated/METHOD_NULL.h: New file.
273 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
274 defining METHOD_NULL here.
275 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
276 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
278 ([-respondsTo:]): Same change.
279 * objc/objc-api.h (method_get_imp): Converted it into a normal
280 function so that we can hide the internals of struct objc_method.
281 * sendmsg.c (method_get_imp): Implemented.
283 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
285 * objc/objc-api.h (struct objc_super, Super, Super_t,
286 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
287 objc_msg_forward2): Declarations moved to objc/message.h. Include
289 * objc/message.h: Added such declarations; updated comments.
291 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
293 Implemented fast enumeration for Objective-C.
294 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
295 (OBJC_H): Added runtime.h
296 * objc-foreach.c: New file.
297 * objc/runtime.h: New file.
299 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
301 * objc/deprecated/struct_objc_class.h: Add padding
302 to avoid warning with -Wpadded.
304 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
306 * encoding.c (objc_sizeof_type): Added support for vector type and
307 for double long types.
308 (objc_alignof_type): Same change.
309 (objc_skip_typespec): Same change.
310 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
311 instead of '!' since '!' is already used for _C_VECTOR.
312 * objc/objc-api.h (_C_LNG_DBL): Added.
314 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
316 * libobjc_entry.c: File removed.
318 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
320 * sendmsg.c (objc_msg_lookup): Remove inline.
321 (objc_get_uninstalled_dtable): Likewise.
322 * encoding.c (objc_skip_type_qualifiers): Likewise.
323 (objc_skip_offset): Likewise.
324 * archive.c (__objc_write_object): Likewise
325 (__objc_write_class):
326 (__objc_write_selector):
328 (objc_read_unsigned_char):
330 (objc_read_unsigned_short):
333 (__objc_read_nbyte_uint):
334 (objc_read_unsigned_int):
335 (objc_read_unsigned_long):
336 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
337 (objc_EXPORT): Likewise.
338 * objc/message.h (objc-decls.h): Add include.
339 * objc/objc-api.h: Mark API by objc_EXPORT.
340 * libobjc.def (__objc_responds_to): Removed.
342 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
344 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
346 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
347 objc/sarray.h replaced with a placeholder including the file from
348 the deprecated/ directory.
349 * objc-private/sarray.h: New file (private copy of sarray.h).
350 * hash.c: Include <assert.h> instead of "assert.h"
351 * sarray.c: Include <assert.h> instead of "assert.h". Include
352 objc-private/sarray.h instead of objc/sarray.h.
353 * selector.c: Include objc-private/sarray.h instead of
355 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
356 instead of objc/sarray.h.
357 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
359 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
361 * objc-private/objc-list.h (list_remove_elem): Unused function
362 removed. (list_nth): Unused function removed. (list_find):
363 Unused function removed. (list_lenght): Unused function removed.
365 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
367 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
368 replaced with a placeholder including the file from the
369 deprecated/ directory.
370 * objc/objc-api.h: Updated includes.
371 * objc/typedstream.h: Updated includes.
372 * objc-private/hash.h: New file (private copy of hash.h).
373 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
374 objc/objc-list.h replaced with a placeholder including the file
375 from the deprecated/ directory.
376 * objc-private/objc-list.h: New file (private copy of objc-list.h).
377 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
378 instead of objc/hash.h and objc/objc-list.h.
379 * selector.c: Same change.
380 * class.c: Added include <string.h>, which used to be implicitly included
381 when hash.h was included.
382 * exception.c: Same change.
383 * objects.c: Same change.
384 * sarray.c: Same change.
385 * sendmsg.c: Same change.
386 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
388 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
390 Implemented objc_sync_enter() and objc_sync_exit(), which are
391 required by @synchronized() to work.
392 * objc-sync.c: New file.
393 * objc/objc-sync.h: New file.
394 * objc-private/objc-sync.h: New file.
395 * init.c (__objc_exec_class): Call __objc_sync_init() during the
396 Objective-C runtime startup.
397 * Makefile.in: Added objc-sync.c and objc-sync.h.
398 * configure.ac: Added GCC_CHECK_TLS.
399 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
400 * configure: Regenerated.
401 * config.h.in: Regenerated.
403 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
405 * Makefile.in (%_gc.lo): New pattern rules to build the
406 garbage-collected version of the library. Removed rules for
407 specific files that are no longer needed. Standardized all rules.
408 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
409 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
411 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
413 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
415 * memory.c (objc_calloc): Fixed call to GC_malloc when building
416 with Garbage Colletion.
418 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
420 * memory.c: Do not include objc-private/runtime.h.
422 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
424 * objc/deprecated/objc_malloc.h: New file.
425 * objc/deprecated/objc_valloc.h: New file.
426 * objc/objc-api.h: Include the files instead of defining
427 objc_valloc, _objc_malloc() and similar.
428 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
430 * memory.c: Removed the extra layer of indirection of _objc_malloc
432 (objc_calloc): Use GC_malloc in the garbage-collected
433 implementation as GC_malloc returns memory that is already freed.
434 (objc_valloc): Deprecated.
436 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
438 * objc/deprecated/objc_error.h: New file.
439 * objc/objc-api.h: Include deprecated/objc_error.h instead of
440 defining objc_error and related.
441 * error.c: New file. Added _objc_abort function which replaces
442 objc_error. No change in functionality as they both print an
444 * misc.c: File removed. Code moved into memory.c and error.c.
445 * memory.c: New file.
446 * objc-private/error.h: New file.
447 * archive.c: Include objc-private/error.h and use _objc_abort
448 instead of objc_error everywhere.
449 * class.c: Same change.
450 * encoding.c: Same change.
451 * init.c: Same change, and simplified init_check_module_version.
452 * memory.c: Same change.
453 * sendmsg.c: Same change.
454 * thr.c: Same change.
455 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
456 (OBJ_H): Reordered list.
457 (OBJS): Removed misc.lo, added memory.lo and error.lo.
458 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
459 (misc_gc.lo): Rule removed.
460 (error_gc.lo): Rule added.
461 (memory_gc.lo): Rule added.
463 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
465 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
466 to check the API version. Added some comments.
468 * objc-private/common.h: New file.
469 * NXConstStr.m: Include objc-private/common.h.
470 * Object.m: Same change.
471 * Protocol.m: Same change.
472 * archive.c: Same change.
473 * class.c: Same change.
474 * encoding.c: Same change.
475 * exception.c: Same change.
477 * hash.c: Same change.
478 * init.c: Same change.
479 * libobjc_entry.c: Same change.
480 * linking.m: Same change.
481 * misc.c: Same change (and added a comment).
482 * nil_method.c: Same change.
483 * objects.c: Same change.
484 * sarray.c: Same change.
485 * selector.c: Same change.
486 * sendmsg.c: Same change.
487 * thr.c: Same change.
489 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
491 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
493 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
495 * archive.c: Removed not needed includes.
496 * class.c: Same change.
497 * hash.c: Same change.
498 * misc.c: Same change.
499 * nil_method.c: Same change.
500 * objects.c: Same change.
501 * sarray.c: Same change.
502 * sendmsg.c: Same change.
503 * thr.c: Same change.
505 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
507 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
508 all the objc/*.h files.
509 * objc-private/runtime.h: New file.
510 * archive.c: Include objc-private/runtime.h (and required objc/*.h
511 files) instead of objc/runtime.h.
512 * class.c: Same change.
513 * hash.c: Same change.
514 * init.c: Same change.
515 * misc.c: Same change.
516 * nil_method.c: Same change.
517 * objects.c: Same change.
518 * sarray.c: Same change.
519 * selector.c: Same change.
520 * sendmsg.c: Same change.
521 * thr.c: Same change.
523 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
525 * objc/deprecated/struct_objc_selector.h: New file. Definition of
526 'struct objc_selector' and 'sel_eq' moved here.
527 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
528 'struct objc_procotol' moved here.
529 * objc/deprecated/struct_objc_class.h: New file. Definition of
530 'struct objc_class' moved here.
531 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
533 * objc/deprecated/STR.h: New file. Definition of STR moved here.
534 * objc/message.h: New file. Definitions for relval_t, apply_t,
535 arglist, arglist_t and objc_msg_lookup were moved here.
536 * objc/objc.h: Include the above files instead of defining the
537 corresponding structs, types and functions here. Added new opaque
538 definitions for SEL and Class. Use Class and not 'struct
539 objc_class *' in the definition of 'struct objc_object'.
540 Commented all types defined in the file. Removed special
541 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
543 * objc/deprecated/objc-unexpected-exception.h: Renamed to
544 objc_unexpected_exception.h.
545 * objc/objc-api.h: Updated include of
546 objc-unexpetected-exception.h
547 * objc/objc-exception.h: Updated comments.
548 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
549 files. Reindented list of files.
551 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
553 * objc/objc-api.h (objc_trace): Unused variable removed.
555 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
557 * objc/deprecated: New directory.
558 * objc/deprecated/README: New file.
559 * objc/README: New file.
560 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
561 objc/typedstream.h replaced with a placeholder including the file
562 from the deprecated/ directory.
563 * objc/deprecated/objc-unexpected-exception.h: New file with the
564 definition of _objc_unexpected_exception.
565 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
566 instead of defining _objc_unexpected_exception.
567 * objc/deprecated/Object.h: New file with the deprecated Object
568 methods in a 'Deprecated' category.
569 * objc/Object.h Include deprecated/Object.h instead of defining
570 the deprecated methods.
571 * Object.m: Moved deprecated methods into 'Deprecated' category.
572 * objc-private: New directory.
573 * objc-private/README: New file.
574 * Makefile.in (OBJC_DEPRECATED_H): New variable.
575 (install-headers): Create installation directory for
576 OBJC_DEPRECATED_H headers, and install them.
578 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
580 * objc/objc-exception.h: Fixed include of objc.h.
582 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
584 * objc/objc-exception.h: New file.
585 * exception.c (objc_set_uncaught_exception_handler): Implemented.
586 (objc_set_exception_matcher): Implemented.
587 (objc_exception_throw): Use the uncaught exception handler if set.
588 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
590 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
591 up. Removed segmentation fault when value is 'nil'.
592 * objc/objc-api.h (_objc_unexpected_exception): Mark as
594 * Makefile.in (exception.lo, exception_gc.lo): Use
595 -Wno-deprecated-declarations when compiling.
596 (OBJC_H): Added objc-exception.h
598 2010-09-08 Nicola Pero <nicola@nicola.brainstorm.co.uk>
600 * objc/typedstream.h: Deprecate all functions in the file. This
602 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
603 [-awake]): Documented that these methods are deprecated. Added a
604 brief description of the Object class and its relationship to the
606 * Makefile.in: Compile archive.c and Object.m with
607 -Wno-deprecated-declarations.
609 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
611 Removed obsolete intermediate threading layer.
612 * thr.c: Use __gthread_objc_xxx functions directly instead of
613 __objc_thread_xxx ones.
614 * objc/thr.h: Removed prototypes of no longer existing
615 __objc_thread_xxx functions.
616 * Makefile.in: Removed thr-objc.lo.
617 * thr-dce.c: File removed.
618 * thr-decosf1.c: File removed.
619 * thr-irix.c: File removed.
620 * thr-mach.c: File removed.
621 * thr-objc.c: File removed.
622 * thr-os2.c: File removed.
623 * thr-posix.c: File removed.
624 * thr-pthreads.c: File removed.
625 * thr-rtems.c: File removed.
626 * thr-single.c: File removed.
627 * thr-solaris.c: File removed.
628 * thr-vxworks.c: File removed.
629 * thr-win32.c: File removed.
630 * README.threads: File removed.
631 * THREADS.MACH: File removed.
634 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
636 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
638 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
640 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
641 Add a comment as to why, update FIXME comments.
643 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
645 * makefile.dos: Obsolete file removed.
647 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
649 * aclocal.m4: Regenerate.
651 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
654 * configure.ac (extra_ldflags_libobjc): Define appropriately for
655 Cygwin and MinGW hosts.
656 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
657 (libobjc.dll): Likewise.
658 * configure: Regenerate.
660 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
662 * configure: Regenerate.
664 2009-11-28 Jakub Jelinek <jakub@redhat.com>
666 * sarray.c (sarray_free): Use old_buckets variable.
667 * encoding.c (objc_layout_structure_next_member): Remove unused
668 bfld_type_size variable.
670 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
672 * configure.ac (AC_PREREQ): Bump to 2.64.
674 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
676 * aclocal.m4: Regenerate.
677 * configure: Regenerate.
678 * config.h.in: Regenerate.
680 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
682 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
684 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
686 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
688 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
690 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
692 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
694 2009-04-09 Nick Clifton <nickc@redhat.com>
696 * sendmsg.c: Change copyright header to refer to version 3 of
697 the GNU General Public License with version 3.1 of the GCC
698 Runtime Library Exception and to point readers at the COPYING3
699 and COPYING3.RUNTIME files and the FSF's license web page.
700 * NXConstStr.m: Likewise.
701 * Object.m: Likewise.
702 * Protocol.m: Likewise.
703 * archive.c: Likewise.
705 * encoding.c: Likewise.
706 * exception.c: Likewise.
710 * libobjc_entry.c: Likewise.
711 * linking.m: Likewise.
713 * nil_method.c: Likewise.
714 * objc/NXConstStr.h: Likewise.
715 * objc/Object.h: Likewise.
716 * objc/Protocol.h: Likewise.
717 * objc/encoding.h: Likewise.
718 * objc/hash.h: Likewise.
719 * objc/objc-api.h: Likewise.
720 * objc/objc-decls.h: Likewise.
721 * objc/objc-list.h: Likewise.
722 * objc/objc.h: Likewise.
723 * objc/runtime.h: Likewise.
724 * objc/sarray.h: Likewise.
725 * objc/thr.h: Likewise.
726 * objc/typedstream.h: Likewise.
727 * objects.c: Likewise.
728 * sarray.c: Likewise.
729 * selector.c: Likewise.
730 * thr-dce.c: Likewise.
731 * thr-decosf1.c: Likewise.
732 * thr-irix.c: Likewise.
733 * thr-mach.c: Likewise.
734 * thr-objc.c: Likewise.
735 * thr-os2.c: Likewise.
736 * thr-posix.c: Likewise.
737 * thr-pthreads.c: Likewise.
738 * thr-rtems.c: Likewise.
739 * thr-single.c: Likewise.
740 * thr-solaris.c: Likewise.
741 * thr-vxworks.c: Likewise.
742 * thr-win32.c: Likewise.
744 * libobjc.def: Change copyright header to refer to version 3 of
745 the GNU General Public License and to point readers at the COPYING3
746 file and the FSF's license web page.
747 * makefile.dos: Likewise.
749 2009-04-09 Jakub Jelinek <jakub@redhat.com>
751 * Makefile.in: Change copyright header to refer to version
752 3 of the GNU General Public License and to point readers at the
753 COPYING3 file and the FSF's license web page.
754 * configure.ac: Likewise.
756 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
757 David Ayers <ayers@fsfe.org>
760 * objc/objc-api.h (_objc_unexpected_exception): Declare
761 new hook. Update copyright dates.
762 * exception.c (objc_exception_throw): Use hook. Update
764 * libobjc.def (_objc_unexpected_exception): Export hook.
765 Update copyright dates.
767 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
769 * configure: Regenerate.
771 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
773 * configure: Regenerate.
775 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
777 * Object.m (errno): Replaced by errno.h include.
778 (compare): Cast self to id to prevent warning on comparison.
779 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
781 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
782 * thr-win32.c (__objc_thread_detach): Remove type warning.
783 (__objc_thread_id): Likewise.
784 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
787 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
788 Steve Ellcey <sje@cup.hp.com>
790 * configure: Regenerate for new libtool.
791 * config.h.in: Regenerate for new libtool.
793 2008-07-18 Matthias Klose <doko@ubuntu.com>
795 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
797 2008-07-18 Matthias Klose <doko@ubuntu.com>
799 * Makefile.in: Include ../boehm-gc/threads.mk.
800 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
802 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
804 * Makefile.in (install-info): New stub target.
806 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
808 * configure: Regenerate.
810 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
812 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
813 if HAVE_GETIPINFO is not defined.
815 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
817 * Object.m (compare): Add type id.
818 * objc/Object.h: Likewise.
819 * archive.c (objc_read_class): Use size_t to extend version to be
820 size of pointer scalar width.
821 * sendmsg.c (rtx): Undefine it before redefinition.
822 (__objc_print_dtable_stats): Cast arguments to long as intended.
824 2008-05-30 Julian Brown <julian@codesourcery.com>
826 * exception.c (__objc_exception_class): Initialise as constant
827 array for ARM EABI. Change macro to static const for non-ARM EABI.
828 (ObjcException): Add note about structure layout. Remove landingPad
829 and handlerSwitchValue for ARM EABI.
830 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
832 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
833 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
834 ARM EABI unwinding support.
835 (objc_exception_throw): Use memcpy to initialise exception class.
837 2008-05-25 Alan Modra <amodra@bigpond.net.au>
839 * encoding.c (strip_array_types): Rename from get_inner_array_type.
840 (rs6000_special_round_type_align): Update.
842 2008-05-09 Julian Brown <julian@codesourcery.com>
844 * Makefile.in (LTLDFLAGS): New.
845 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
847 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
850 * aclocal.m4: Regenerate.
851 * configure: Regenerate.
853 2008-01-24 David Edelsohn <edelsohn@gnu.org>
855 * configure: Regenerate.
857 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
859 * configure.ac: Don't run config-ml.in directly.
861 * configure: Regenerated.
863 2007-08-06 Andrew Pinski <pinskia@gmail.com>
866 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
867 of _Unwind_Word for variables which are used in
868 read_uleb128/read_sleb128.
869 (PERSONALITY_FUNCTION): Likewise.
871 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
873 * aclocal.m4: Regenerated.
875 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
877 * configure.ac: Fix a typo in *-*-darwin clause.
878 * configure: Regenerated.
880 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
882 * configure.ac: Fix a typo.
883 * configure: Regenerated.
885 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
887 * configure: Regenerate.
889 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
891 * Makefile.in: Replace all uses of libext with libsuffix.
892 * configure.ac: Likewise.
893 * configure: Regenerate.
896 * Makefile.in: Remove all uses of $(libext).
898 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
900 * Makefile.in: Remove all uses of $(libext).
902 2007-05-23 Steve Ellcey <sje@cup.hp.com>
904 * configure: Regenerate.
905 * aclocal.m4: Regenerate.
907 2007-04-21 Andrew Ruder <andy@aeruder.net>
909 * sendmsg.c (__objc_get_forward_imp): Call
910 __objc_msg_forward2 for real.
912 2007-04-09 Andrew Ruder <andy@aeruder.net>
914 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
915 external libraries to provide a function that returns the real
916 forwarding function based on both the selector and the receiver.
917 * objc/objc-api.h: Define __objc_msg_forward2.
919 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
921 * Makefile.in: Add dummy install-pdf target.
923 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
925 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
928 2006-10-31 Geoffrey Keating <geoffk@apple.com>
930 * encoding.c (darwin_rs6000_special_round_type_align): New.
932 2006-10-14 Geoffrey Keating <geoffk@apple.com>
934 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
935 * configure.ac: Use multi.m4 from aclocal rather than custom
936 code. Use multi_basedir instead of toplevel_srcdir.
937 * aclocal.m4: Regenerate.
938 * configure: Regenerate.
940 2006-10-10 Brooks Moses <bmoses@stanford.edu>
942 * Makefile.in: Added empty "pdf" target.
944 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
946 * configure: Regenerate.
948 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
950 * Makefile.in: Add install-html target. Add install-html to .PHONY
952 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
955 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
957 2006-01-24 David Ayers <d.ayers@inode.at>
960 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
961 and insure the new strings are '\0' termintated.
963 2006-01-24 David Ayers <d.ayers@inode.at>
966 * configure.ac: Add include directives for --enable-objc-gc.
967 * Makefile.in: Ditto.
968 * configure: Regenerate.
970 * gc.c (__objc_class_structure_encoding): Increment the used bytes
971 instead of the local pointer to them.
973 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
976 * objc/objc-api.c (_C_COMPLEX): New define.
977 * encoding.c (objc_sizeof_type): Handle _C_Complex.
978 (objc_alignof_type): Likewise.
979 (objc_skip_typespec): Likewise.
981 2005-12-15 David Ayers <d.ayers@inode.at>
984 * README (+load,+initialize): Fix documentation to reflect
985 intended and implemented semantics for +load and +initialize.
987 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
989 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
991 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
992 (rs6000_special_round_type_align): Update for the ABI fix.
993 (objc_layout_finish_structure): Correct the encoding which is passed to
996 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
999 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1000 but use the struct layout functions.
1001 (objc_alignof_type): Likewise.
1002 (objc_layout_structure): Handle _C_UNION_B also.
1003 (objc_layout_structure_next_member): Likewise.
1004 (objc_layout_finish_structure): Likewise.
1006 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1009 * objc/objc-api.h (_C_BOOL): New define.
1010 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1011 (objc_alignof_type): Likewise.
1012 (objc_skip_typespec): Likewise.
1014 2005-11-20 David Ayers <d.ayers@inode.at>
1017 * objc/hash.h: Remove deprecated hash API.
1018 * hash_compat.c: Remove.
1019 * Makefile.in: Remove reference to hash_compat.c.
1021 * configure.ac (VERSION): Bump library version to 2:0:0.
1022 * configure: Regenerate.
1024 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1027 * thr-objc.c (_XOPEN_SOURCE): Define.
1029 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1032 * objc/objc-api.h (struct objc_ivar): Move definition to
1035 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1036 Rasmus Hahn <rassahah@neofonie.de>
1039 * archive.c (objc_write_type): Correct the element offset.
1040 (objc_read_type): Likewise.
1042 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1044 * All files: Update FSF address.
1046 2005-08-13 Marcin Koziej <creep@desk.pl>
1047 Andrew Pinski <pinskia@physics.uc.edu>
1050 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1052 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1054 * Makefile.in (extra_ldflags_libobjc): New.
1055 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1056 (libobjc_gc$(libext).la): Likewise.
1057 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1058 "-Wl,-single_module".
1059 * configure: Regenerate.
1060 * linking.m (_objcInit): Remove.
1062 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1065 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1067 2005-06-08 David Ayers <d.ayers@inode.at>
1069 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1070 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1071 objc/runtime.h, objc/sarray.h, objc/thr.h,
1072 objc/typedstream.h: Do not include Objective-C headers as
1075 2005-06-07 David Ayers <d.ayers@inode.at>
1077 * archive.c, init.c, selector.c: Include hash.h.
1078 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1079 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1080 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1081 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1082 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1083 Include Objective-C headers with quotes and objc/ directory
1086 2005-05-19 Richard Henderson <rth@redhat.com>
1088 * exception.c: Revert last change.
1090 2005-05-19 David Ayers <d.ayers@inode.at>
1092 * exception.c: Include tsystem.h for unwind.h.
1094 2005-05-09 Mike Stump <mrs@apple.com>
1096 * configure: Regenerate.
1098 2005-04-12 Mike Stump <mrs@apple.com>
1100 * configure: Regenerate.
1102 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1104 * Makefile.in: Set gcc_version here.
1105 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1106 in definition of toolexeclibdir so that $(gcc_version) is expanded
1108 * aclocal.m4, configure: Regenerate.
1110 2005-03-03 David Ayers <d.ayers@inode.at>
1112 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1113 version reference. Correct typo.
1115 2005-03-02 David Ayers <d.ayers@inode.at>
1118 * Makefile.in (OBJS): Add hash_compat.lo.
1119 (OBJS_GC): Add hash_compat_gc.lo.
1120 (hash_compat_gc.lo): New target and rule.
1121 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1122 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1123 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1124 with objc_. Add deprecated non prefixed inlined versions.
1125 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1127 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1128 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1130 * hash_compat.c: New file.
1131 * archive.c: Update callers.
1133 * selector.c: Likewise.
1134 * libobjc.def: Add objc_ versions of hash functions.
1136 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1139 * Makefile.in (GTHREAD_FLAGS): Remove.
1140 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1141 * thr-objc.c: Include config.h.
1142 * configure.ac: Instead of looking at GCC's makefile, figure out if
1143 GTHREAD_FLAGS should be defined by looking at the `thread model'
1145 * configure: Regenerate.
1146 * config.h.in: Regenerate.
1148 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1151 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1152 (Determine CFLAGS for gthread): Use $host_subdir.
1153 * configure: Regenerate.
1154 * Makefile.in (host_subdir): New.
1157 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1160 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1162 Include limits.h and stdlib.h.
1163 Define BITS_PER_WORD.
1165 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1167 * selector.c (__objc_init_selector_tables): Add missing void to
1170 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1172 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1173 * configure, aclocal.m4: Regenerate.
1175 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1177 * configure: Regenerate for libtool change.
1179 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1181 * configure: Regenerate for libtool reversion.
1183 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1185 * configure: Regenerate for libtool change.
1187 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1189 * aclocal.m4, config.h.in: Regenerate.
1191 2004-10-08 Mike Stump <mrs@apple.com>
1192 Andrew Pinski <pinskia@physics.uc.edu>
1194 * aclocal.m4: Rename to ...
1195 * acinclude.m4: here and also use m4_include instead of sinclude.
1196 * aclocal.m4: Regenerate.
1197 * configure: Regenerate.
1198 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1199 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1201 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1203 * archive.c: Fix all the warnings about passing unsigned char*
1204 to char* and the other way too.
1206 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1209 * exception.c: Include config.h
1210 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1212 * configure.ac: Find out what exception handling code we use.
1213 * configure: Regenerate.
1214 * config.h.in: New file, regenerate.
1216 2004-09-16 Andrew Pinski <apinski@apple.com>
1218 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1220 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1222 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1223 ACX_NONCANONICAL_TARGET.
1224 * configure: Regenerate.
1226 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1228 * objc/sarray.h: Hoist include of assert.h near the top of file,
1229 and mark the remainder of the file 'extern "C"'.
1231 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1233 * objc/Object.h: Move includes out of extern "C" blocks.
1234 * objc/encoding.h: Likewise.
1235 * objc/hash.h: Likewise.
1236 * objc/objc-api.h: Likewise.
1237 * objc/runtime.h: Likewise.
1238 * objc/sarray.h: Likewise.
1239 * objc/typedstream.h: Likewise.
1241 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1243 * objc/NXConstStr.h: Update copyright date; bracket with
1244 'extern "C"' for C++ use; make include syntax consistent
1245 by using <...> instead of "..."; hoist <objc/...> includes
1246 above the 'extern "C"' block.
1247 * objc/Object.h: Likewise.
1248 * objc/Protocol.h: Likewise.
1249 * objc/encoding.h: Likewise.
1250 * objc/hash.h: Likewise.
1251 * objc/runtime.h: Likewise.
1252 * objc/sarray.h: Likewise.
1253 * objc/thr.h: Likewise.
1254 * objc/typedstream.h: Likewise.
1255 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1256 (objc_static_instances): For C++ case, do away with
1258 (objc_method): Hoist definition to file scope.
1259 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1260 class_get_instance_method, class_create_instance,
1261 class_get_class_name, class_get_instance_size,
1262 class_get_meta_class, class_get_super_class, class_get_version,
1263 class_is_class, class_is_meta_class, class_set_version,
1264 class_get_gc_object_type, class_ivar_set_gcinvisible,
1265 get_imp): Rename 'class' parameter to '_class'.
1266 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1267 * objc/objc.h: Update copyright date.
1268 (arglist_t): Provide a union tag.
1270 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1272 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1273 but instead use the attribute noreturn.
1275 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1277 * encoding.c: Rename target_flags with a #define to avoid
1278 conflict with a prior declaration.
1280 2004-06-24 Andrew Pinski <apinski@apple.com>
1282 * objc/encoding.h: Wrap the functions with extern "C" for C++
1284 * objc/hash.h: Likewise.
1285 * objc/objc-api.h: Likewise.
1286 * objc/objc-list.h: Likewise.
1287 * objc/runtime.h: Likewise.
1288 * objc/sarray.h: Likewise.
1289 * objc/thr.h: Likewise.
1290 * objc/typedstream.h: Likewise.
1293 2004-06-21 Nick Clifton <nickc@redhat.com>
1295 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1298 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1300 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1301 (exception_gc.lo): New.
1302 (OBJS_GC): Add exception_gc.lo.
1304 2004-06-17 Richard Henderson <rth@redhat.com>
1306 * exception.c: New file.
1307 * Makefile.in (exception.lo): New.
1310 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1312 * linking.m (_objcInit): New empty function
1315 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1317 * configure.ac: Support --enable-shared=libobjc.
1318 * configure: Regenerate.
1321 * configure.ac: Do not disable shared by default.
1322 * configure: Regenerate.
1324 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1326 * Protocol.m ([-isEqual:]): Small optimizations returning
1327 immediately if the argument is equal to self, and accessing
1328 the argument's name directly if it's a protocol.
1330 2004-06-03 David Ayers <d.ayers@inode.at>
1332 * Protocol.m ([-isEqual:]): Test the class of the argument.
1334 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1336 * configure.ac (includedir): Rename to ...
1338 * Makefile.in: s/includedir/includedirname/.
1341 * configure.ac (includedir): Set to "include"
1343 (libext) Set to empty except for Darwin.
1344 * configure: Regenerate
1345 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1346 s/include/$(includedir)/g.
1348 2004-05-25 Daniel Jacobowitz <drow@false.org>
1350 * Makefile.in: Add .NOEXPORT.
1352 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1354 Merge from the libobjc-branch
1355 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1357 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1359 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1361 * Makefile.in (OBJC_H): Add objc-deps.h.
1363 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1365 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1366 ([-hash], [-isEqual:]): New methods.
1368 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1370 * sarray.c (sarray_free): Add a better comment.
1372 2004-01-27 Adam Fedor <fedor@gnu.org>
1374 * hash.c (hash_add): Cast cachep to int.
1375 * selector.c (__sel_register_typed_name): Cast
1376 soffset_decode to int.
1378 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1380 * selector.c: Rename register_selectors_from_list to
1381 __objc_register_selectors_from_list. Update caller.
1382 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1383 while registering selectors. Use __sel_register_typed_name instead
1384 of sel_register_typed_name. Check for NULL method_name:s.
1385 (pool_alloc_selector): New function.
1386 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1387 selector structures.
1388 * sendmsg.c (class_add_method_list): Use
1389 __objc_register_selectors_from_list.
1390 * objc/runtime.h: Add __objc_register_selectors_from_list.
1392 2004-01-25 Adam Fedor <fedor@gnu.org>
1393 Nicola Pero <n.pero@mi.flashnet.it>
1394 Andrew Pinski <pinskia@physics.uc.edu>
1396 * objc/objc-decls.h: New file.
1397 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1398 (_objc_load_callback): Likewise.
1399 (_objc_object_alloc): Likewise.
1400 (_objc_object_copy): Likewise.
1401 (_objc_object_dispose): Likewise.
1403 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1405 * archive.c: s/__inline__/inline
1406 * sendmsg.c: Likewise.
1408 * encoding.c: Remove FIXME about the warning
1409 about unused variable.
1410 * sendmsg.c: Add a FIXME comment saying that
1411 this should be using libffi.
1413 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1416 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1418 * archive.c (objc_read_class): Initialize class_name.
1419 (objc_read_selector): Initialize selector_name.
1421 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1423 * Makefile.in (toolexecdir): Remove trailing space.
1425 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1428 * configure.ac: De-precious CC so multilibs work.
1429 * configure: Regenerate.
1431 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1433 * configure.ac: Restore toolexecdir.
1434 * Makefile.in: Restore toolexecdir.
1435 * configure: Regenerate.
1437 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1439 * configure.ac: Remove (unused) glibcpp_prefixdir.
1440 * configure: Regenerate.
1442 * configure.in: Rename to configure.ac.
1443 * Makefile.in: Update to match.
1445 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1446 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1447 * configure.in: Remove glibcpp_toolexecdir (unused).
1448 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1449 config.h or stamp-h (unused). Move one comment to the right place.
1450 * configure: Regenerate.
1451 * config.h.in: Remove (unused).
1453 * config.h.in: Regenerate with autoheader.
1455 * Makefile.in: Remove (unused) gcc_version_trigger.
1456 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1457 gcc_version_trigger.
1458 * configure: Regenerate.
1460 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1461 Sort file into sections. Remove dnl where appropriate. Fix
1463 * configure: Regenerate.
1465 * configure.in: Replace old AC_PROG_CC hack with new one.
1466 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1467 are no subdirectory output files, so this is fine). Change prereq
1469 * aclocal.m4: Include ../config/no-executables.m4.
1470 * configure: Regenerate with autoconf 2.59.
1472 * configure.in: Improve comments on gthread_cflags. Improve m4
1473 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1474 * configure: Regenerate.
1476 * configure.in: Move PACKAGE and VERSION settings up top. Remove
1477 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
1478 redundant checks for values of RANLIB, AR, INSTALL.
1479 * configure: Regenerate.
1481 * configure.in: Clean up handling of
1482 --enable-version-specific-runtime-libs and related variables;
1483 replace 'if test' with 'case' where reasonable. Fix comments.
1484 Remove useless libstdcxx_interface.
1485 * configure: Regenerate.
1487 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
1488 Replace uses of target_alias with target_noncanonical.
1489 * aclocal.m4: Include ../config/acx.m4.
1490 * configure: Regenerate.
1491 * Makefile.in: Replace uses of target_alias with target_noncanonical.
1492 Fix copyright statement.
1494 * configure.in: Hand-inline bulky, confusing macros from
1495 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
1496 Update copyright notice. Remove stuff for automake, which isn't
1497 used in this directory. Remove emacs local variables.
1498 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
1499 * configure: Regenerate.
1501 2004-03-16 Manfred Hollstein <mh@suse.com>
1503 * Makefile.in, configure.in, configure: Update copyright years.
1505 2004-03-15 Manfred Hollstein <mh@suse.com>
1507 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
1508 definition from configure.in.
1509 * configure.in (PACKAGE): Add definition.
1510 (VERSION): Add definition; substitute it in output files.
1511 * configure: Re-generate.
1513 2004-03-05 Ziemowit Laski <zlaski@apple.com>
1515 * objc/hash.h (hash_string, compare_strings):
1516 Add type-casts to make Objective-C++ happy.
1517 * objc/typedstream.h (objc_get_stream_class_version):
1518 Rename parameter from 'class' to 'class_name' to make
1519 Objective-C++ happy.
1521 2004-03-01 Michael Matz <matz@suse.de>
1523 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
1525 2004-02-06 Ziemowit Laski <zlaski@apple.com>
1527 * objc/objc-api.h (objc_super): The 'class' field shall
1528 be named 'super_class' #ifdef __cplusplus.
1530 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
1533 * encoding.c (rs6000_special_round_type_align): Define.
1535 2004-01-14 Adam Fedor <fedor@gnu.org>
1538 * selector.c (__objc_register_instance_methods_to_class): Free
1539 new_list if not used.
1541 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
1544 * sarray.c (sarray_free): Free array->is_copy_of latter.
1546 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1549 * Protocol.m (descriptionForInstanceMethod): Don't dereference
1550 instance_methods if it's NULL.
1551 (descriptionForClassMethod): Likewise for class_methods.
1553 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1555 * Makefile.in (runtime-info.h): Remove -Wp.
1557 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1559 * Makefile.in (CC1OBJ): Remove.
1560 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
1562 Use .m extension for temporary file.
1563 Remove assembler temp file.
1565 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
1567 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
1569 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1571 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
1573 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1575 * configure: Regenerate.
1577 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
1579 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
1580 (libdir)/gcc-lib/ when installing.
1581 * configure: Regenerate.
1583 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
1586 * sendmsg.c (get_imp): Fixed rare threading problem.
1587 (__objc_responds_to): Similar fixes.
1588 (objc_msg_lookup): Similar fixes.
1589 (__objc_init_install_dtable): Lock the runtime before checking if the
1592 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
1594 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
1595 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
1596 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
1597 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
1598 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
1599 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
1600 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
1601 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
1602 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
1603 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
1604 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
1606 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
1607 Nicola Pero <n.pero@mi.flashnet.it>
1610 * init.c (class_superclass_of_class): New function.
1611 (create_tree_of_subclasses_inherited_from): Use it.
1612 (__objc_tree_insert_class): Likewise.
1613 (class_is_subclass_of_class): Likewise.
1615 2003-04-11 David Chad <davidc@freebsd.org>
1616 Loren J. Rittle <ljrittle@acm.org>
1619 * objc/hash.h (hash_string): Constify correctly.
1620 (compare_ptrs): Use direct compare.
1621 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
1622 * objc/sarray.h: Global rename index to indx to avoid shadow.
1624 2003-03-12 Andreas Schwab <schwab@suse.de>
1626 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
1627 glibcpp_toolexeclibdir.
1628 * configure: Rebuilt.
1630 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1632 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1634 * configure: Rebuilt.
1636 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1638 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
1639 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
1640 version_specific_libs is enabled.
1641 * configure: Rebuilt.
1643 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1645 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1646 (install-libs, install-headers): Prepend $(DESTDIR) to
1647 destination paths in all (un)installation commands.
1649 2002-12-02 Zack Weinberg <zack@codesourcery.com>
1651 * thr-objc.c: Include coretypes.h and tm.h.
1653 2002-12-01 Zack Weinberg <zack@codesourcery.com>
1655 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
1657 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1659 * configure.in: Remove skip-this-dir support.
1660 * configure: Regenerate.
1662 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1664 * Makefile.in (all): Fix multilib parallel build.
1666 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
1668 * sendmsg.c (nil_method): Declare not to take a variable number of
1670 (objc_msg_lookup): Cast nil_method to IMP before returning it.
1671 (objc_msg_lookup_super): The same.
1673 2002-09-10 Jan Hubicka <jh@suse.cz>
1675 * nil_method.c (nil_method): No longer defined with variable
1678 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
1680 * objc/encoding.h: Fix formatting.
1681 * objc/hash.h: Likewise.
1682 * objc/objc-api.h: Likewise.
1683 * objc/runtime.h: Likewise.
1684 * objc/thr.h: Likewise.
1685 * archive.c: Likewise.
1686 * class.c: Likewise.
1687 * encoding.c: Likewise.
1692 * nil_method.c: Likewise.
1693 * objects.c: Likewise.
1694 * sarray.c: Likewise.
1695 * selector.c: Likewise.
1696 * sendmsg.c: Likewise.
1697 * thr-mach.c: Likewise.
1700 2002-06-25 DJ Delorie <dj@redhat.com>
1702 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
1703 GLIBCPP_TOPREL_CONFIGURE.
1704 * configure.in: Call it before AC_CANONICAL_SYSTEM.
1705 * configure: Regenerate.
1707 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1709 * Object.m (forward, read, write): Fix unused parameter warnings.
1710 * encoding.c: Include <stdlib.h>.
1711 (target_flags): Mark with attribute unused.
1713 * runtime.h (__objc_selector_max_index): Change to unsigned int.
1714 (__objc_generate_gc_type_description): Prototype.
1715 * selector.c (__objc_selector_max_index): Change to unsigned int.
1717 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
1719 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
1720 we always have a return value: if __objc_msg_forward does not
1721 supply a forwarding implementation, return the default
1722 __builtin_apply based one.
1724 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1726 * Object.m: Fix signed/unsigned warning.
1727 * Protocol.m: Likewise.
1728 * archive.c: Always include stdlib.h.
1729 (objc_read_short, objc_read_unsigned_short, objc_read_int,
1730 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
1731 Fix signed/unsigned warning.
1732 (objc_write_type, objc_read_type, objc_write_types,
1733 objc_read_types): Ensure ctype 8-bit safety.
1734 (__objc_no_write, __objc_no_read): Mark unused parameters.
1735 * class.c (class_table_setup): Specify void arg.
1736 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
1737 objc_skip_typespec, objc_skip_offset,
1738 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
1739 (objc_layout_structure_next_member): Ensure variables are
1741 * gc.c (__objc_generate_gc_type_description,
1742 class_ivar_set_gcinvisible): Mark unused parameters.
1743 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
1745 (__objc_init_protocols) Fix signed/unsigned warning.
1746 * nil_method.c (nil_method): Mark unused parameters.
1747 * thr.h (objc_thread_callback): Specify void arg.
1748 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
1749 signed/unsigned warning.
1750 (sarray_free): Fix formatting.
1751 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
1752 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
1754 2002-06-09 Andreas Jaeger <aj@suse.de>
1756 * encoding.c (objc_layout_structure_next_member): Remove unused
1759 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1761 * Makefile.in (SHELL): Set to @SHELL@.
1763 (ALL_CFLAGS): Add $(WARN_CFLAGS).
1765 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1767 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
1768 * configure: Regenerate.
1770 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
1772 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1773 script entry, and set LD to it when configuring multilibs.
1774 * configure: Rebuilt.
1776 2002-04-19 David O'Brien <obrien@FreeBSD.org>
1778 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
1780 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
1783 * objc/objc-api.h (struct objc_protocol_list): Change type of
1784 member count from int to size_t.
1786 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1789 * aclocal.m4: Replace with version copied from libstdc++-v3.
1790 * configure.in: Update for changes to aclocal and Makefile.
1791 * configure: Regenerate.
1792 * Makefile.in: Correct install of multilibs and shared libs, use
1793 INSTALL_DATA for include files.
1795 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
1797 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
1798 categories - when an unclaimed category was found, the loop was
1799 doing two steps forward instead of one, so that in certain cases
1800 it was failing to properly load all the categories. (Reported
1801 with fix by Alexander Malmberg <alexander@malmberg.org>).
1803 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
1805 * encoding.c: Add target_flags.
1807 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
1809 * objc/objc-api.h (_C_VECTOR): New.
1811 * encoding.c (VECTOR_TYPE): New.
1813 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
1815 * class.c: Rewritten the class table to use optimized, lock-free
1816 lookup. This more than doubles the speed of class method
1817 invocations. (class_table_setup), (class_table_insert),
1818 (class_table_replace), (class_table_get_safe),
1819 (class_table_next), (class_table_print),
1820 (class_table_print_histogram): New functions.
1821 (__objc_init_class_tables): Use class_table_setup.
1822 (__objc_add_class_to_hash): Use class_table_get_safe and
1823 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
1824 assert the existence of the table; do not lock the runtime; use
1825 class_table_get_safe. (objc_next_class): Use class_table_next.
1826 (__objc_resolve_class_links): Use class_table_next.
1827 (class_pose_as): Use class_table_replace.
1829 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
1831 * gc.c: Removed the DEBUG declaration.
1833 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
1835 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
1836 rather than through objc_thread_id, to save a function call.
1837 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
1840 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
1842 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
1843 to cast an id to a Class, which can not be done. Make the check
1844 by using CLS_ISMETA on the class pointer instead.
1845 (object_is_meta_class): Similar fix.
1847 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1849 * configure.in (AC_EXEEXT): Work around in case it expands to
1850 nothing, as in autoconf 2.50.
1851 * acinclude.m4: Likewise.
1852 * configure: Rebuilt.
1854 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
1856 * THREADS: Explain that when we compile libobjc inside GCC, we
1857 always use thr-objc.c as a backend, which uses GCC's thread code.
1859 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
1861 * init.c (__objc_send_message_in_list): When setting a new entry
1862 in __objc_load_methods use the method IMP as key, but check to see
1863 if the method is in the hashtable by looking at the IMP also.
1864 Also ... call the method after adding it to the hashtable rather
1865 than before ... thus preventing an obscure possibility of infinite
1866 recursion if a +load method itself loads a subclass.
1868 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
1870 * init.c (__objc_send_message_in_list): When setting a new entry
1871 in __objc_load_methods use the method name as key, not the method
1872 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
1874 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
1876 * objc-features.texi: Move to ../gcc/objc.texi.
1878 * Makefile.in: Don't generate documentation from
1881 2001-05-01 Mark Mitchell <mark@codesourcery.com>
1883 * fdl.texi: New file.
1884 * objc-features.texi: Simplify.
1885 * Makefile.in: Adjust accordingly.
1887 2001-04-30 Mark Mitchell <mark@codesourcery.com>
1889 * objc-features.texi: Use the GFDL.
1891 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
1893 * encoding.c (REAL_TYPE): Define.
1895 2001-03-19 David Edelsohn <edelsohn@gnu.org>
1897 * encoding.c (TYPE_MODE): Define.
1899 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
1901 * thr.c (objc_thread_add): New function.
1902 (objc_thread_remove): Ditto.
1903 * objc/thr.h: Declare them.
1904 * libobjc.def: Mention them.
1906 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
1908 * objc-features.texi: Document the @compatibility_alias compiler
1909 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
1911 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1913 * sendmsg.c (__objc_forward): Delete strlen() declaration.
1915 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1917 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
1918 we're not interested in the result and they might fail.
1919 * configure: Regenerated.
1921 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
1923 * objc-features.texi: Use @email.
1925 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
1927 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
1930 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
1932 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
1933 determines the value dynamically.
1935 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
1937 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
1938 libraries to provide a function that returns the real forwarding
1939 function. This can alleviate problems __builtin_apply() and
1940 friends have on various platforms. (Solution suggested by Helge
1943 * objc/objc-api.h: Define __objc_msg_forward.
1945 * sendmsg.c: Define gen_rtx_REG.
1947 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1949 * thr-rtems.c: New file. Stub to compile.
1951 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1953 * configure: Rebuilt with new libtool.m4.
1955 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1957 * configure.in: Create a config.h file. Check for <sched.h>.
1958 * configure: Regenerate.
1960 * config.h.in: Check for <sched.h>.
1962 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
1964 * configure: Regenerate after change to ../libtool.m4.
1966 2000-08-14 Andreas Schwab <schwab@suse.de>
1968 * objc-features.texi (Top): Move @menu at end of node.
1970 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
1972 * objc-features.texi: Move @node Top before @menu.
1974 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1976 * objc-features.texi: Documented the new -fconstant-string-class
1979 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1981 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
1982 improve the Posix thread support for Objective-C.
1984 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
1986 * aclocal.m4: Replace copy of ../libtool.m4 with
1987 sinclude(../libtool.m4).
1989 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
1991 * configure.in: Added libtool support; build shared libraries
1992 if --enable-shared was passed on command line.
1993 * Makefile.in: Modified most compilation commands to use libtool.
1994 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
1995 libtool distribution.
1997 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
1999 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2000 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2003 2000-05-12 H.J. Lu (hjl@gnu.org)
2005 * Makefile.in (GTHREAD_FLAGS): New.
2006 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2007 (OBJC_THREAD_FILE): Changed to thr-objc.
2009 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2011 (OBJC_THREAD_FILE): Removed.
2015 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2017 * objc/hash.h: Include string.h.
2019 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2021 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2023 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2025 * Object.m (strlen): Provide prototype on all 64bit platforms,
2027 * sarray.c (memcpy): Likewise.
2028 * encoding.c (objc_layout_finish_structure): Don't use
2029 ROUND_TYPE_ALIGN on sparc.
2031 * encoding.c (objc_layout_structure_next_member): Do the whole
2032 procedure even for the first member, so that we get correct
2035 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2037 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2040 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2042 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2044 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2046 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2048 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2050 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2051 the compiler when building C code.
2053 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2055 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2056 libdir, libsubdir and tooldir.
2058 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2060 * init.c (__objc_force_linking): Make global.
2062 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2064 * configure.in (AC_EXEEXT): Remove call.
2065 (compiler_name): Explicitly check with no extension and .exe
2067 * configure: Regenerate.
2069 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2071 * Makefile.in (CC1OBJ): Define in terms of CC.
2072 (runtime-info.h): Use.
2074 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2076 * objc-features.texi: Updated the URL to Boehm's GC page.
2078 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2080 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2081 the char as being signed (patch from Daniel Jacobowitz
2084 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2086 * configure.in (AC_PREREQ): Update to 2.13.
2087 (AC_EXEEXT): Call to find possible file extension.
2088 (compiler_name): Use.
2089 * configure: Regenerate.
2091 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2093 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2095 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2097 * configure.in (thread_file): Correct and simplify code to find
2099 * configure: Rebuilt.
2101 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2103 * configure.in (compiler_name): Add check to detect if this
2104 language's compiler has been built.
2105 * configure: Regenerate.
2107 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2109 * configure.in: Use AC_PREREQ(2.12.1).
2111 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2113 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2115 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2117 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2119 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2121 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2123 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2125 * objc-features.texi (Top): Changed the email address.
2126 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2128 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2130 * encoding.c: Redefine get_inner_array_type to get the first entry
2133 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2135 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2136 (objc_get_type_qualifiers): Similarly.
2137 * objc/encoding.h (_C_BYREF): Define.
2140 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2142 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2143 works out on 64-bit systems.
2145 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2147 * Makefile.in (INCLUDES): Make it multilib-friendly.
2149 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2151 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2153 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2154 Jeffrey A Law (law@cygnus.com)
2156 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2157 (FLAGS_TO_PASS): Added.
2158 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2160 * archive.c: Change config.h to tconfig.h.
2162 * configure.in: Find gcc's object directory even for multilibs.
2164 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2166 * configure.in: Escape ^ in grep string.
2167 * configure: Rebuilt.
2169 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2171 * All .h files pushed down into the objc/ subdirectory.
2172 * Makefile.in (copy_headers): Corresponding changes.
2173 * configure.in (AC_INIT): Corresponding changes.
2174 * configure: Rebuilt.
2176 1998-09-30 Ben Elliston <bje@cygnus.com>
2177 Jeff Law <law@cygnus.com>
2179 * Makefile.in: Rewrite.
2181 * configure.in: Likewise.
2183 * configure: Regenerate.
2185 * All .c files. Remove "objc" prefix when including objc header
2186 files. Include tconfig.h, not ../tconfig.h.
2188 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2190 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2191 (get_inner_array_type): Define.
2193 1998-09-21 Ben Elliston <bje@cygnus.com>
2195 * New directory. Moved files from ../gcc/objc.