]> git.ipfire.org Git - thirdparty/gcc.git/blob - libobjc/ChangeLog
793b002c4cf85b37bb8f64007f97d2e089016ab2
[thirdparty/gcc.git] / libobjc / ChangeLog
1 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2
3 * class.c: Tidied up comments and indentation. No code changes.
4 * error.c: Same.
5 * exception.c: Same.
6 * init.c: Same.
7 * ivars.c: Same.
8 * memory.c: Same.
9 * objc-foreach.c: Same.
10 * objc-sync.c: Same.
11 * objects.c: Same.
12 * protocols.c: Same.
13 * sarray.c: Same.
14 * thr.c: Same.
15
16 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
17
18 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
19 instead of objc/objc-api.h.
20 (init_check_module_version): Take a 'struct objc_module *'
21 argument instead of 'Module_t'. Use 'struct objc_module *'
22 instead of 'Module_t'.
23 (__objc_created_classes_tree): Take a 'struct objc_module *'
24 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
25 of 'Symtab_t'.
26 (__objc_call_callback): Take a 'struct objc_module *' argument
27 instead of 'Module_t'; use 'struct objc_symtab *' instead of
28 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
29 (_objc_load_callback): Take a 'struct objc_category *' argument
30 instead of 'Category *'.
31 (class_superclass_of_class): Use objc_getClass() instead of
32 objc_lookup_class().
33 (create_tree_of_subclasses_inherited_from): Same change (also, use
34 an explicit 'if' instead of '?').
35 (objc_init_statics): Same change.
36 (objc_send_load): Same change.
37 (__objc_init_protocol): same change.
38 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
39 argument instead of 'MethodList_t'. Use 'struct objc_method *'
40 instead of 'Method_t'.
41 (__objc_send_load): Use 'struct objc_method_list *' instead of
42 'MethodList_t'. Use sel_registerName() instead of
43 sel_register_name().
44 (__objc_exec_class): Take a 'struct objc_module *' argument
45 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
46 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
47 Use 'struct objc_category *' instead of 'Category_t'.
48
49 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
50
51 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
52 Include objc-private/module-abi-8.h and objc-private/selector.h
53 instead of objc/encoding.h.
54 (objc_msg_lookup_super): Use super->super_class instead of
55 super->class.
56 (method_get_first_argument, method_get_next_argument): Declare
57 locally.
58 (class_get_instance_method): Declare before using.
59 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
60 (__objc_init_dispatch_tables, __objc_send_initialize): Use
61 sel_registerName() instead of sel_register_name().
62 (__objc_forward): Use sel_getName() instead of sel_get_name().
63 (objc_get_uninstalled_dtable): Use 'void' as argument.
64 * objc-private/selector.h: New.
65
66 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
67
68 * objc/message.h (objc_super): When using the modern API, do not
69 define Super and Super_t, and always use 'super_class' for the
70 super class field.
71 (objc_msg_lookup_super): Updated prototype to use 'struct
72 objc_super *' instead of 'Super_t'.
73 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
74 'struct objc_super *' instead of 'Super_t'.
75
76 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
77
78 * objc/message.h: Update comments, reindented code and moved
79 deprecated types and functions at the end of the file. No code
80 changes.
81
82 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
83
84 * ivars.c (class_addIvar): Use the 'size' argument instead of
85 trying to calculate it using objc_sizeof_type().
86 * objc/runtime.h (class_addIvar): Updated comments.
87
88 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
89
90 * sendmsg.c: Reindented some code and tidied up comments. No
91 actual code changes.
92
93 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
94
95 * objc/Object.h: Moved all the methods, with the exception of
96 -class and -isEqual:, into ...
97 * objc/deprecated/Object.h: here.
98 * Object.m: Moved all the methods, with the exception of -class
99 and -isEqual: into the 'Deprecated' category.
100
101 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
102
103 * objects.c (object_copy): Do not #undef as we are no longer
104 including objc/objc-api.h.
105 * selector.c: Include objc/runtime.h and
106 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
107 objc/encoding.h. Updated
108 (__objc_register_selectors_from_class): Use struct
109 objc_method_list * instead of MethodList_t.
110 (__objc_register_selectors_from_list): Use Method instead of
111 Method_t.
112 (struct objc_method_description_list): Do not define here.
113 (__objc_register_instance_methods_to_class): Use struct
114 objc_method_list * instead of MethodList_t and Method instead of
115 Method_t.
116
117 2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
118
119 * selector.c: Reindented some code and tidied up comments. No
120 actual code changes.
121
122 2010-12-13 Iain Sandoe <iains@gcc.gnu.org>
123
124 * encoding.c (_darwin_rs6000_special_round_type_align): New.
125 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
126
127 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
128
129 * sendmsg.c (selector_resolveClassMethod): New.
130 (selector_resolveInstanceMethod): New.
131 (__objc_resolve_class_method): New.
132 (__objc_resolve_instance_method): New.
133 (get_imp): Call __objc_resolve_class_method or
134 __objc_resolve_instance_method at the appropriate time.
135 (objc_msg_lookup): Same.
136 (class_getClassMethod): Same.
137 (class_getInstanceMethod): Same.
138 (__objc_init_dispatch_tables): Initialize
139 selector_resolveClassMethod and selector_resolveInstanceMethod.
140 * objc/runtime.h: Updated documentation of class_getClassMethod,
141 class_getInstanceMethod and class_getMethodImplementation.
142
143 2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
144
145 * objc-private/module-abi-8.h (struct objc_symtab): Updated
146 description of sel_ref_cnt and refs.
147 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
148
149 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
150
151 PR target/40125
152 PR lto/46695
153 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
154 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
155 * aclocal.m4: Regenerate.
156 * configure: Regenerate.
157
158 2010-12-03 Matthias Klose <doko@ubuntu.com>
159
160 * configure.ac (VERSION): Bump the version to 3:0:0.
161 * configure: Regenerate.
162
163 2010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
164
165 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
166 pass nil as the receiver since we don't know the receiver at this
167 point.
168
169 2010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
170
171 * ivars.c: Include stdlib.h.
172 * protocols.c: Same change.
173
174 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
175
176 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
177 * accessors.m: New.
178 * init.c: Include objc-private/accessors.h.
179 (__objc_exec_class): Call __objc_accessors_init.
180 * objc-private/accessors.h: New.
181
182 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
183
184 * objc/message.h: Moved initial includes outside of extern "C".
185 * objc/runtime.h: Add extern "C" for Objective-C++.
186
187 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
188
189 * init.c (objc_send_load): Do not wait for NXConstantString to be
190 registered before executing +load. There is no point if
191 -fconstant-string-class=xxx is used when compiling all modules,
192 as is the case for almost all users.
193 * linking.m (__objc_linking): Do not try to forcefully link in
194 NXConstantString.
195
196 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
197
198 * objc/runtime.h: Updated comments.
199 (class_addMethod): New.
200 (class_addIvar): New.
201 (class_replaceMethod): New.
202 (objc_allocateClassPair): New.
203 (objc_registerClassPair): New.
204 (objc_disposeClassPair): New.
205 * class.c (objc_allocateClassPair): New.
206 (objc_registerClassPair): New.
207 (objc_disposeClassPair): New.
208 (class_getSuperclass): Return Nil if a class is in construction.
209 * init.c (__objc_exec_class): Call __objc_init_class.
210 (__objc_init_class): New.
211 * ivars.c (class_copyIvarList): Return NULL if class is in
212 construction. Do not lock the runtime mutex.
213 (class_getInstanceVariable): Return NULL if class is in
214 construction. Do not lock the runtime mutex.
215 (class_addIvar): New.
216 * sendmsg.c (class_addMethod): New.
217 (class_replaceMethod): New.
218 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
219 (_CLS_IN_CONSTRUCTION): New.
220 (CLS_IS_IN_CONSTRUCTION): New.
221 (CLS_SET_IN_CONSTRUCTION): New.
222 (CLS_SET_NOT_IN_CONSTRUCTION): New.
223 * objc-private/runtime.h (__objc_init_class): New.
224
225 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
226
227 * class.c (class_getSuperclass): Call __objc_resolve_class_links
228 if the class is not resolved yet.
229 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
230
231 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
232
233 * objc/runtime.h (class_getIvarLayout): New.
234 (class_getWeakIvarLayout): New.
235 (class_setIvarLayout): New.
236 (class_setWeakIvarLayout): New.
237 * ivars.c (class_getIvarLayout): New.
238 (class_getWeakIvarLayout): New.
239 (class_setIvarLayout): New.
240 (class_setWeakIvarLayout): New.
241
242 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
243
244 * objc/runtime.h (class_copyPropertyList): New.
245 (class_getProperty): New.
246 (property_getAttributes): New.
247 (property_getName): New.
248 * ivars.c (class_copyPropertyList): New.
249 (class_getProperty): New.
250 (property_getAttributes): New.
251 (property_getName): New.
252
253 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
254
255 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
256 * class.c (__objc_update_classes_with_methods): New.
257 (objc_getClassList): Do not lock the class lock.
258 * methods.c (method_exchangeImplementations): New.
259 (method_setImplementation): New.
260 * objc/runtime.h (method_setImplementation): New.
261 (method_exchangeImplementations): New.
262
263 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
264
265 * Protocol.m: Include objc/runtime.h and
266 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
267 repeat Protocol's instance variables.
268 (struct objc_method_description_list): Do not define here.
269 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
270 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
271 selectors directly instead of getting names and then using strcmp.
272 ([descriptionForClassMethod:]): Same change.
273 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
274 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
275 to compare selectors directly instead of getting names and then
276 using strcmp.
277 * objc/Protocol.h: Updated comments.
278
279 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
280
281 * init.c (__objc_init_protocol): New function which fixes up a
282 protocol's class pointer, registers it with the runtime, register
283 all protocol selectors and registers associated protocols too.
284 (objc_init_statics): Detect if we are initializing protocols, and
285 if so, use __objc_init_protocol instead of only fixing up the
286 class pointer.
287 (__objc_init_protocls): Use __objc_init_protocol.
288 * objc-private/module-abi-8.h: Updated comments.
289 * objc-private/runtime.h
290 (__objc_register_selectors_from_description_list): New.
291 * selector.c (__objc_register_selectors_from_description_list):
292 New. (struct objc_method_description_list): Declare.
293 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
294 when accessing the name of a method, which is now correctly a SEL.
295 ([-descriptionForClassMethod:]): Same change.
296 * protocols.c (protocol_getMethodDescription): Same change.
297 * objc/runtime.h: Updated comments.
298 (sel_registerTypedName): Fixed typo in function name.
299
300 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
301
302 PR libobjc/23214
303 * init.c (objc_init_statics): Do not skip the initialization of a
304 statics list if the first object has already been initialized; in
305 the case of Protocols, while the first one may have been
306 initialized, some others may not have been initialized yet.
307
308 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
309
310 * Makefile.in (OBJC_DEPRECATED_H): Added
311 objc_get_uninstalled_dtable, objc_object_alloc.h and
312 struct_objc_static_instances.h.
313
314 2010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
315
316 * encoding.c (method_copyReturnType): New.
317 (method_copyArgumentType): New.
318 (method_getReturnType): New.
319 (method_getArgumentType): New.
320 * methods.c (method_getDescription): New.
321 * objc/runtime.h (method_copyReturnType): New.
322 (method_copyArgumentType): New.
323 (method_getReturnType): New.
324 (method_getArgumentType): New.
325 (method_getDescription): New.
326
327 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
328
329 * encoding.c: Tidied up comments.
330 (objc_skip_variable_name): New static inline function.
331 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
332 the same code over and over.
333 (objc_alignof_type): Same.
334 (objc_aligned_size): Same.
335 (objc_promoted_size): Same.
336 (objc_skip_typespec): Same.
337 (objc_layout_structure_next_member): Same.
338 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
339 historical bug where objc_skip_offset would skip one byte even if
340 there is no offset: check that the first offset digit is actually
341 a digit before skipping it.
342 (objc_skip_type_qualifiers): Mark as inline.
343 (objc_skip_typespec): Mark as inline.
344
345 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
346
347 * Makefile.in (C_SOURCE_FILES): Added methods.c.
348 * encoding.c (method_getNumberOfArguments): New.
349 (method_get_number_of_arguments): Call
350 method_getNumberOfArguments.
351 * ivars.c (ivar_getName): Check for NULL variable argument.
352 (ivar_getOffset): Check for NULL variable argument.
353 (ivar_getTypeEncoding): Check for NULL variable argument.
354 (class_copyIvarList): New.
355 * methods.c: New.
356 * protocols.c (class_copyProtocolList): Check for Nil class_
357 argument.
358 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
359 'struct objc_method_list *' instead of MethodList_t.
360 (class_getMethodImplementation): New.
361 (class_respondsToSelector): New.
362 (class_getInstanceMethod): New.
363 (class_getClassMethod): New.
364 * objc/runtime.h: Updated comments.
365 (class_copyIvarList): New.
366 (class_getInstanceMethod): New.
367 (class_getClassMethod): New.
368 (class_getMethodImplementation): New.
369 (class_respondsToSelector): New.
370 (method_getName): New.
371 (method_getImplementation): New.
372 (method_getTypeEncoding): New.
373 (class_copyMethodList): New.
374 (method_getNumberOfArguments): New.
375
376 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
377
378 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
379 instead of objc/objc-api.h.
380 (objc_get_unknown_class_handler): Do not define.
381 (class_isMetaClass): New.
382 (class_getSuperclass): New.
383 (class_getVersion): New.
384 (class_setVersion): New.
385 (class_getInstanceSize): New.
386 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
387 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
388 objc_get_super_class.
389 (get_ttype_entry): Use objc_getRequiredClass instead of
390 objc_get_class.
391 * ivars.c (class_getClassVariable): New.
392 * objects.c: Include objc/runtime.h, objc/thr.h and
393 objc-private/module-abi-8.h instead of objc/objc-api.h
394 * objc/runtime.h (class_getClassVariable): New.
395 (class_isMetaClass): New.
396 (class_getSuperclass): New.
397 (class_getVersion): New.
398 (class_setVersion): New.
399 (class_getInstanceSize): New.
400 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
401 objc/objc-api.h)
402 (__CLS_INFO): Same.
403 (__CLS_ISINFO): Same.
404 (__CLS_SETINFO): Same.
405 (CLS_ISMETA): Same.
406 (CLS_ISCLASS): Same.
407 (CLS_ISRESOLV): Same.
408 (CLS_SETRESOLV): Same.
409 (CLS_ISINITIALIZED): Same.
410 (CLS_SETINITIALIZED): Same.
411 (CLS_GETNUMBER): Same.
412 (CLS_SETNUMBER): Same.
413
414 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
415
416 * archive.c: Do not include objc/objc.h.
417 * class.c: Do not include objc/objc.h.
418 * encoding.c: Include objc/runtime.h, ctype.h and
419 objc-private/module-abi-8.h instead of objc/objc-api.h and
420 objc/encoding.h.
421 * error.c: Do not include objc/objc.h.
422 * gc.c: Include tconfig.h and objc/encoding.h only if
423 OBJC_WITH_GC.
424 * hash.c: Include objc/runtime.h and objc/thr.h instead of
425 objc/objc-api.h. Do not include objc/objc.h.
426 * init.c: Do not include objc/objc.h.
427 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
428 objc/thr.h instead of objc/objc-api.h. Do not include
429 objc/objc.h.
430 * linking.m: Tidied comment.
431 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
432 Do not include objc/objc.h.
433 * objects.c: Do not include objc/objc.h.
434 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
435 * protocols.c: Do not include objc/objc.h.
436 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
437 not include objc/objc.h.
438 * selector.c: Do not include objc/objc.h.
439 * sendmsg.c: Do not include objc/objc.h.
440 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
441 Do not include objc/objc.h.
442 * objc/objc-decls.h: Reindented code.
443 * objc/runtime.h Include objc-decls.h. Updated comments.
444 (objc_malloc): New.
445 (objc_atomic_malloc): New.
446 (objc_calloc): New.
447 (objc_realloc): New.
448 (objc_free): New.
449 * objc-private/runtime.h: Updated comments.
450
451 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
452
453 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
454 * objc-private/protocols.h: New.
455 * protocols.c: New.
456 * init.c: Include objc-private/protocols.h.
457 (__objc_exec_class): Call __objc_protocols_init on startup.
458 (__objc_init_protocols): Call __objc_protocols_add_protocol.
459 * objc-private/runtime.h: Use (struct objc_method_list *) instead
460 of MethodList_t, and (struct objc_method *) instead of Method_t.
461 * objc/deprecated/struct_objc_class.h: Define
462 __objc_STRUCT_OBJC_CLASS_defined.
463 * objc-private/module-abi-8.h (struct
464 objc_method_description_list): New.
465 (struct objc_class): Only define if
466 __objc_STRUCT_OBJC_CLASS_defined is undefined.
467 * objc/runtime.h (class_getName): New.
468 (objc_getProtocol): New.
469 (objc_copyProtocolList): New.
470 (class_addProtocol): New.
471 (class_conformsToProtocol): New.
472 (class_copyProtocolList): New.
473 (protocol_conformsToProtocol): New.
474 (protocol_isEqual): New.
475 (protocol_getName): New.
476 (protocol_getMethodDescription): New.
477 (protocol_copyMethodDescriptionList): New.
478 (protocol_getProperty): New.
479 (protocol_copyPropertyList): New.
480 (protocol_copyProtocolList): New.
481 * class.c (class_getName): New.
482 * selector.c (sel_isEqual): New.
483
484 2010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
485
486 * selector.c (sel_getName): Return "<null selector>" for a NULL
487 argument.
488 (sel_get_name): Return 0 for a NULL argument.
489 * objc/runtime.h (sel_getName): Updated documentation.
490
491 * objc-private/hash.h (class_hash_table): Unused declaration
492 removed.
493 (module_hash_table): Same.
494 * objc/deprecated/hash.h: Same changes.
495
496 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
497
498 * class.c (objc_getClassList): New.
499 (objc_getRequiredClass): New.
500 (objc_getMetaClass): New.
501 (objc_lookupClass): New.
502 (objc_getClass): New.
503 (__objc_get_unknown_class_handler): New.
504 (objc_setGetUnknownClassHandler): New.
505 (objc_get_class): Use __objc_get_unknown_class_handler.
506 (objc_lookup_class): Call objc_getClass.
507 * objc/objc-api.h: Updated comment and copyright notice.
508 * objc/runtime.h: Updated comments.
509 (objc_getClass): New.
510 (objc_lookupClass): New.
511 (objc_getMetaClass): New.
512 (objc_getRequiredClass): New.
513 (objc_getClassList): New.
514 (objc_setGetUnknownClassHandler): New.
515 (objc_get_unknown_class_handler): New.
516 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
517 instead of __objc_runtime_INCLUDE_GNU as include guard.
518 * objc-private/error.h (_objc_abort): Mark as noreturn.
519
520 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
521
522 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
523 * ivars.c: New.
524 * objc/objc.h: Updated comments.
525 * objc/runtime.h (object_getClass): New.
526 (object_getClassName): New.
527 (object_setClass): New.
528 (class_getInstanceVariable): New.
529 (object_getIndexedIvars): New.
530 (object_getInstanceVariable): New.
531 (object_setInstanceVariable): New.
532 (object_getIvar): New.
533 (object_setIvar): New.
534 (ivar_getName): New.
535 (ivar_getOffset): New.
536 (ivar_getTypeEncoding): New.
537 * objc-private/module-abi-8.h (struct objc_class): Added.
538 * objects.c (object_getClassName): New.
539 (object_setClass): New.
540
541 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
542
543 * objc/objc.h: Updated comments.
544 * objc/objc-api.h: (object_copy): Added one argument; use a
545 #define to maintain backwards-compatibility. Moved
546 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
547 objc_get_uninstalled_dtable into
548 objc/deprecated/objc_get_uninstalled_dtable.h and
549 objc/deprecated/objc_object_alloc.h. Include these files.
550 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
551 * objc/deprecated/objc_object_alloc.h: New.
552 * objc/runtime.h (set_getName): New.
553 (sel_getType): New.
554 (sel_getUid): New.
555 (sel_registerName): New.
556 (sel_registerTypedName): New.
557 (sel_isEqual): New.
558 (class_createInstance): New.
559 (object_copy): New.
560 (object_dispose): New.
561 * objects.c: Do not include tconfig.h. Include gc_typed.h if
562 building the garbage collection version.
563 (__objc_object_alloc): Removed.
564 (__objc_object_copy): Removed.
565 (__objc_object_dispose): Removed.
566 (class_createInstance): New from code in class_create_instance.
567 Cast second argument of GC_malloc_explicitly_typed. Use
568 objc_calloc. Do not call _objc_object_alloc.
569 (class_create_instance): Call class_createInstance.
570 (object_copy): Added extraBytes argument. Do not call
571 _objc_object_copy.
572 (object_dispose): Do not call _objc_object_dispose.
573 * memory.c (objc_free): When using garbage collection, mark the
574 argument as unused.
575 * selector.c (sel_getName): New.
576 (sel_get_name): Call sel_getName.
577 (sel_getType): New.
578 (sel_get_type): Call sel_getType.
579 (sel_registerName): New.
580 (sel_register_name): Call sel_registerName.
581 (sel_registerTypedName): New.
582 (sel_register_typed_name): Call sel_registerTypedName.
583 (sel_getUid): New.
584 (sel_get_uid): Call sel_getUid.
585
586 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
587
588 * objc/objc-api.h: Define Method, Method_t, Category and
589 Category_t. Prevent including this file at the same time as
590 objc/runtime.h. Updated comments.
591 * objc/deprecated/struct_objc_method.h: Do not define Method,
592 Method_t.
593 * objc/deprecated/struct_objc_category.h: Do not define Category,
594 Category_t.
595 * objc-private/module-abi-8.h: New file containing a copy of all
596 the structure definitions. Not used yet.
597 * objc/encoding.h (objc_aligned_size): Removed duplicate
598 declaration. Updated comments.
599 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
600 Category, struct objc_method_description, _C_ID and similar,
601 _C_CONST and similar and _F_CONST and similar. Added
602 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
603 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
604 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
605 struct objc_struct_layout, objc_layout_structure,
606 objc_layout_structure_next_member, objc_layout_finish_structure,
607 objc_layout_structure_get_info. Prevent including this file at
608 the same time as objc/objc-api.h.
609
610 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
611
612 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
613 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
614 struct_objc_method_list.h, struct_objc_module.h,
615 struct_objc_protocol_list.h, struct_objc_symtab.h.
616 * objc/deprecated/struct_objc_category.h: New.
617 * objc/deprecated/struct_objc_ivar.h: New.
618 * objc/deprecated/struct_objc_ivar_list.h: New.
619 * objc/deprecated/struct_objc_method.h: New.
620 * objc/deprecated/struct_objc_method_list.h: New.
621 * objc/deprecated/struct_objc_module.h: New.
622 * objc/deprecated/struct_objc_protocol_list.h: New.
623 * objc/deprecated/struct_objc_symtab.h: New.
624 * objc/deprecated/struct_objc_static_instances.h: New.
625 * objc/objc-api.h: Definitions of deprecated structures moved into
626 the above header fragment files in objc/deprecated/. Include the
627 files instead of definition the structures here. Updated
628 comments.
629 * objc/runtime.h: Updated comments. Do not include objc-api.h.
630 (objc_set_enumeration_mutation_handler): Renamed to
631 objc_setEnumerationMutationHandler.
632 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
633 to objc_setEnumerationMutationHandler.
634 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
635 objc_setExceptionMatcher.
636 (objc_set_uncaught_exception_handler): Renamed to
637 objc_setUncaughtExceptionHandler.
638 * exception.c: Same changes.
639
640 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
641
642 * objc-sync.c: Include objc-private/common.h.
643
644 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
645
646 * objc-foreach.c: Include objc-private/common.h.
647 * objc/deprecated/METHOD_NULL.h: New file.
648 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
649 defining METHOD_NULL here.
650 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
651 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
652 METHOD_NULL.
653 ([-respondsTo:]): Same change.
654 * objc/objc-api.h (method_get_imp): Converted it into a normal
655 function so that we can hide the internals of struct objc_method.
656 * sendmsg.c (method_get_imp): Implemented.
657
658 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
659
660 * objc/objc-api.h (struct objc_super, Super, Super_t,
661 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
662 objc_msg_forward2): Declarations moved to objc/message.h. Include
663 message.h here.
664 * objc/message.h: Added such declarations; updated comments.
665
666 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
667
668 Implemented fast enumeration for Objective-C.
669 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
670 (OBJC_H): Added runtime.h
671 * objc-foreach.c: New file.
672 * objc/runtime.h: New file.
673
674 2010-09-30 Kai Tietz <kai.tietz@onevision.com>
675
676 * objc/deprecated/struct_objc_class.h: Add padding
677 to avoid warning with -Wpadded.
678
679 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
680
681 * encoding.c (objc_sizeof_type): Added support for vector type and
682 for double long types.
683 (objc_alignof_type): Same change.
684 (objc_skip_typespec): Same change.
685 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
686 instead of '!' since '!' is already used for _C_VECTOR.
687 * objc/objc-api.h (_C_LNG_DBL): Added.
688
689 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
690
691 * libobjc_entry.c: File removed.
692
693 2010-09-26 Kai Tietz <kai.tietz@onevision.com>
694
695 * sendmsg.c (objc_msg_lookup): Remove inline.
696 (objc_get_uninstalled_dtable): Likewise.
697 * encoding.c (objc_skip_type_qualifiers): Likewise.
698 (objc_skip_offset): Likewise.
699 * archive.c (__objc_write_object): Likewise
700 (__objc_write_class):
701 (__objc_write_selector):
702 (objc_read_char):
703 (objc_read_unsigned_char):
704 (objc_read_short):
705 (objc_read_unsigned_short):
706 (objc_read_int):
707 (objc_read_long):
708 (__objc_read_nbyte_uint):
709 (objc_read_unsigned_int):
710 (objc_read_unsigned_long):
711 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
712 (objc_EXPORT): Likewise.
713 * objc/message.h (objc-decls.h): Add include.
714 * objc/objc-api.h: Mark API by objc_EXPORT.
715 * libobjc.def (__objc_responds_to): Removed.
716
717 2010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
718
719 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
720
721 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
722 objc/sarray.h replaced with a placeholder including the file from
723 the deprecated/ directory.
724 * objc-private/sarray.h: New file (private copy of sarray.h).
725 * hash.c: Include <assert.h> instead of "assert.h"
726 * sarray.c: Include <assert.h> instead of "assert.h". Include
727 objc-private/sarray.h instead of objc/sarray.h.
728 * selector.c: Include objc-private/sarray.h instead of
729 objc/sarray.h.
730 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
731 instead of objc/sarray.h.
732 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
733
734 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
735
736 * objc-private/objc-list.h (list_remove_elem): Unused function
737 removed. (list_nth): Unused function removed. (list_find):
738 Unused function removed. (list_lenght): Unused function removed.
739
740 2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
741
742 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
743 replaced with a placeholder including the file from the
744 deprecated/ directory.
745 * objc/objc-api.h: Updated includes.
746 * objc/typedstream.h: Updated includes.
747 * objc-private/hash.h: New file (private copy of hash.h).
748 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
749 objc/objc-list.h replaced with a placeholder including the file
750 from the deprecated/ directory.
751 * objc-private/objc-list.h: New file (private copy of objc-list.h).
752 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
753 instead of objc/hash.h and objc/objc-list.h.
754 * selector.c: Same change.
755 * class.c: Added include <string.h>, which used to be implicitly included
756 when hash.h was included.
757 * exception.c: Same change.
758 * objects.c: Same change.
759 * sarray.c: Same change.
760 * sendmsg.c: Same change.
761 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
762
763 2010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
764
765 Implemented objc_sync_enter() and objc_sync_exit(), which are
766 required by @synchronized() to work.
767 * objc-sync.c: New file.
768 * objc/objc-sync.h: New file.
769 * objc-private/objc-sync.h: New file.
770 * init.c (__objc_exec_class): Call __objc_sync_init() during the
771 Objective-C runtime startup.
772 * Makefile.in: Added objc-sync.c and objc-sync.h.
773 * configure.ac: Added GCC_CHECK_TLS.
774 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
775 * configure: Regenerated.
776 * config.h.in: Regenerated.
777
778 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
779
780 * Makefile.in (%_gc.lo): New pattern rules to build the
781 garbage-collected version of the library. Removed rules for
782 specific files that are no longer needed. Standardized all rules.
783 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
784 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
785 OBJC_SOURCE_FILES.
786 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
787
788 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
789
790 * memory.c (objc_calloc): Fixed call to GC_malloc when building
791 with Garbage Colletion.
792
793 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
794
795 * memory.c: Do not include objc-private/runtime.h.
796
797 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
798
799 * objc/deprecated/objc_malloc.h: New file.
800 * objc/deprecated/objc_valloc.h: New file.
801 * objc/objc-api.h: Include the files instead of defining
802 objc_valloc, _objc_malloc() and similar.
803 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
804 objc_malloc.h.
805 * memory.c: Removed the extra layer of indirection of _objc_malloc
806 and similar.
807 (objc_calloc): Use GC_malloc in the garbage-collected
808 implementation as GC_malloc returns memory that is already freed.
809 (objc_valloc): Deprecated.
810
811 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
812
813 * objc/deprecated/objc_error.h: New file.
814 * objc/objc-api.h: Include deprecated/objc_error.h instead of
815 defining objc_error and related.
816 * error.c: New file. Added _objc_abort function which replaces
817 objc_error. No change in functionality as they both print an
818 error and abort.
819 * misc.c: File removed. Code moved into memory.c and error.c.
820 * memory.c: New file.
821 * objc-private/error.h: New file.
822 * archive.c: Include objc-private/error.h and use _objc_abort
823 instead of objc_error everywhere.
824 * class.c: Same change.
825 * encoding.c: Same change.
826 * init.c: Same change, and simplified init_check_module_version.
827 * memory.c: Same change.
828 * sendmsg.c: Same change.
829 * thr.c: Same change.
830 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
831 (OBJ_H): Reordered list.
832 (OBJS): Removed misc.lo, added memory.lo and error.lo.
833 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
834 (misc_gc.lo): Rule removed.
835 (error_gc.lo): Rule added.
836 (memory_gc.lo): Rule added.
837
838 2010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
839
840 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
841 to check the API version. Added some comments.
842
843 * objc-private/common.h: New file.
844 * NXConstStr.m: Include objc-private/common.h.
845 * Object.m: Same change.
846 * Protocol.m: Same change.
847 * archive.c: Same change.
848 * class.c: Same change.
849 * encoding.c: Same change.
850 * exception.c: Same change.
851 * gc.c: Same change.
852 * hash.c: Same change.
853 * init.c: Same change.
854 * libobjc_entry.c: Same change.
855 * linking.m: Same change.
856 * misc.c: Same change (and added a comment).
857 * nil_method.c: Same change.
858 * objects.c: Same change.
859 * sarray.c: Same change.
860 * selector.c: Same change.
861 * sendmsg.c: Same change.
862 * thr.c: Same change.
863
864 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
865
866 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
867
868 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
869
870 * archive.c: Removed not needed includes.
871 * class.c: Same change.
872 * hash.c: Same change.
873 * misc.c: Same change.
874 * nil_method.c: Same change.
875 * objects.c: Same change.
876 * sarray.c: Same change.
877 * sendmsg.c: Same change.
878 * thr.c: Same change.
879
880 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
881
882 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
883 all the objc/*.h files.
884 * objc-private/runtime.h: New file.
885 * archive.c: Include objc-private/runtime.h (and required objc/*.h
886 files) instead of objc/runtime.h.
887 * class.c: Same change.
888 * hash.c: Same change.
889 * init.c: Same change.
890 * misc.c: Same change.
891 * nil_method.c: Same change.
892 * objects.c: Same change.
893 * sarray.c: Same change.
894 * selector.c: Same change.
895 * sendmsg.c: Same change.
896 * thr.c: Same change.
897
898 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
899
900 * objc/deprecated/struct_objc_selector.h: New file. Definition of
901 'struct objc_selector' and 'sel_eq' moved here.
902 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
903 'struct objc_procotol' moved here.
904 * objc/deprecated/struct_objc_class.h: New file. Definition of
905 'struct objc_class' moved here.
906 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
907 moved here.
908 * objc/deprecated/STR.h: New file. Definition of STR moved here.
909 * objc/message.h: New file. Definitions for relval_t, apply_t,
910 arglist, arglist_t and objc_msg_lookup were moved here.
911 * objc/objc.h: Include the above files instead of defining the
912 corresponding structs, types and functions here. Added new opaque
913 definitions for SEL and Class. Use Class and not 'struct
914 objc_class *' in the definition of 'struct objc_object'.
915 Commented all types defined in the file. Removed special
916 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
917 there as well.
918 * objc/deprecated/objc-unexpected-exception.h: Renamed to
919 objc_unexpected_exception.h.
920 * objc/objc-api.h: Updated include of
921 objc-unexpetected-exception.h
922 * objc/objc-exception.h: Updated comments.
923 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
924 files. Reindented list of files.
925
926 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
927
928 * objc/objc-api.h (objc_trace): Unused variable removed.
929
930 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
931
932 * objc/deprecated: New directory.
933 * objc/deprecated/README: New file.
934 * objc/README: New file.
935 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
936 objc/typedstream.h replaced with a placeholder including the file
937 from the deprecated/ directory.
938 * objc/deprecated/objc-unexpected-exception.h: New file with the
939 definition of _objc_unexpected_exception.
940 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
941 instead of defining _objc_unexpected_exception.
942 * objc/deprecated/Object.h: New file with the deprecated Object
943 methods in a 'Deprecated' category.
944 * objc/Object.h Include deprecated/Object.h instead of defining
945 the deprecated methods.
946 * Object.m: Moved deprecated methods into 'Deprecated' category.
947 * objc-private: New directory.
948 * objc-private/README: New file.
949 * Makefile.in (OBJC_DEPRECATED_H): New variable.
950 (install-headers): Create installation directory for
951 OBJC_DEPRECATED_H headers, and install them.
952
953 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
954
955 * objc/objc-exception.h: Fixed include of objc.h.
956
957 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
958
959 * objc/objc-exception.h: New file.
960 * exception.c (objc_set_uncaught_exception_handler): Implemented.
961 (objc_set_exception_matcher): Implemented.
962 (objc_exception_throw): Use the uncaught exception handler if set.
963 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
964 hardcoded isKindOf.
965 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
966 up. Removed segmentation fault when value is 'nil'.
967 * objc/objc-api.h (_objc_unexpected_exception): Mark as
968 deprecated.
969 * Makefile.in (exception.lo, exception_gc.lo): Use
970 -Wno-deprecated-declarations when compiling.
971 (OBJC_H): Added objc-exception.h
972
973 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
974
975 * objc/typedstream.h: Deprecate all functions in the file. This
976 file is obsolete.
977 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
978 [-awake]): Documented that these methods are deprecated. Added a
979 brief description of the Object class and its relationship to the
980 NSObject class.
981 * Makefile.in: Compile archive.c and Object.m with
982 -Wno-deprecated-declarations.
983
984 2010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
985
986 Removed obsolete intermediate threading layer.
987 * thr.c: Use __gthread_objc_xxx functions directly instead of
988 __objc_thread_xxx ones.
989 * objc/thr.h: Removed prototypes of no longer existing
990 __objc_thread_xxx functions.
991 * Makefile.in: Removed thr-objc.lo.
992 * thr-dce.c: File removed.
993 * thr-decosf1.c: File removed.
994 * thr-irix.c: File removed.
995 * thr-mach.c: File removed.
996 * thr-objc.c: File removed.
997 * thr-os2.c: File removed.
998 * thr-posix.c: File removed.
999 * thr-pthreads.c: File removed.
1000 * thr-rtems.c: File removed.
1001 * thr-single.c: File removed.
1002 * thr-solaris.c: File removed.
1003 * thr-vxworks.c: File removed.
1004 * thr-win32.c: File removed.
1005 * README.threads: File removed.
1006 * THREADS.MACH: File removed.
1007 * THREADS: Updated.
1008
1009 2010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1010
1011 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1012
1013 2010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1014
1015 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1016 Add a comment as to why, update FIXME comments.
1017
1018 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1019
1020 * makefile.dos: Obsolete file removed.
1021
1022 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1023
1024 * aclocal.m4: Regenerate.
1025
1026 2010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1027
1028 PR libobjc/30445
1029 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1030 Cygwin and MinGW hosts.
1031 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1032 (libobjc.dll): Likewise.
1033 * configure: Regenerate.
1034
1035 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1036
1037 * configure: Regenerate.
1038
1039 2009-11-28 Jakub Jelinek <jakub@redhat.com>
1040
1041 * sarray.c (sarray_free): Use old_buckets variable.
1042 * encoding.c (objc_layout_structure_next_member): Remove unused
1043 bfld_type_size variable.
1044
1045 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1046
1047 * configure.ac (AC_PREREQ): Bump to 2.64.
1048
1049 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1050
1051 * aclocal.m4: Regenerate.
1052 * configure: Regenerate.
1053 * config.h.in: Regenerate.
1054
1055 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1056
1057 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1058
1059 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1060
1061 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1062 New variables.
1063 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1064
1065 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1066
1067 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1068
1069 2009-04-09 Nick Clifton <nickc@redhat.com>
1070
1071 * sendmsg.c: Change copyright header to refer to version 3 of
1072 the GNU General Public License with version 3.1 of the GCC
1073 Runtime Library Exception and to point readers at the COPYING3
1074 and COPYING3.RUNTIME files and the FSF's license web page.
1075 * NXConstStr.m: Likewise.
1076 * Object.m: Likewise.
1077 * Protocol.m: Likewise.
1078 * archive.c: Likewise.
1079 * class.c: Likewise.
1080 * encoding.c: Likewise.
1081 * exception.c: Likewise.
1082 * gc.c: Likewise.
1083 * hash.c: Likewise.
1084 * init.c: Likewise.
1085 * libobjc_entry.c: Likewise.
1086 * linking.m: Likewise.
1087 * misc.c: Likewise.
1088 * nil_method.c: Likewise.
1089 * objc/NXConstStr.h: Likewise.
1090 * objc/Object.h: Likewise.
1091 * objc/Protocol.h: Likewise.
1092 * objc/encoding.h: Likewise.
1093 * objc/hash.h: Likewise.
1094 * objc/objc-api.h: Likewise.
1095 * objc/objc-decls.h: Likewise.
1096 * objc/objc-list.h: Likewise.
1097 * objc/objc.h: Likewise.
1098 * objc/runtime.h: Likewise.
1099 * objc/sarray.h: Likewise.
1100 * objc/thr.h: Likewise.
1101 * objc/typedstream.h: Likewise.
1102 * objects.c: Likewise.
1103 * sarray.c: Likewise.
1104 * selector.c: Likewise.
1105 * thr-dce.c: Likewise.
1106 * thr-decosf1.c: Likewise.
1107 * thr-irix.c: Likewise.
1108 * thr-mach.c: Likewise.
1109 * thr-objc.c: Likewise.
1110 * thr-os2.c: Likewise.
1111 * thr-posix.c: Likewise.
1112 * thr-pthreads.c: Likewise.
1113 * thr-rtems.c: Likewise.
1114 * thr-single.c: Likewise.
1115 * thr-solaris.c: Likewise.
1116 * thr-vxworks.c: Likewise.
1117 * thr-win32.c: Likewise.
1118 * thr.c: Likewise.
1119 * libobjc.def: Change copyright header to refer to version 3 of
1120 the GNU General Public License and to point readers at the COPYING3
1121 file and the FSF's license web page.
1122 * makefile.dos: Likewise.
1123
1124 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1125
1126 * Makefile.in: Change copyright header to refer to version
1127 3 of the GNU General Public License and to point readers at the
1128 COPYING3 file and the FSF's license web page.
1129 * configure.ac: Likewise.
1130
1131 2009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1132 David Ayers <ayers@fsfe.org>
1133
1134 PR libobjc/27466
1135 * objc/objc-api.h (_objc_unexpected_exception): Declare
1136 new hook. Update copyright dates.
1137 * exception.c (objc_exception_throw): Use hook. Update
1138 copyright dates.
1139 * libobjc.def (_objc_unexpected_exception): Export hook.
1140 Update copyright dates.
1141
1142 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1143
1144 * configure: Regenerate.
1145
1146 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1147
1148 * configure: Regenerate.
1149
1150 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
1151
1152 * Object.m (errno): Replaced by errno.h include.
1153 (compare): Cast self to id to prevent warning on comparison.
1154 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1155 already there.
1156 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1157 * thr-win32.c (__objc_thread_detach): Remove type warning.
1158 (__objc_thread_id): Likewise.
1159 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1160 for noreturn.
1161
1162 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1163 Steve Ellcey <sje@cup.hp.com>
1164
1165 * configure: Regenerate for new libtool.
1166 * config.h.in: Regenerate for new libtool.
1167
1168 2008-07-18 Matthias Klose <doko@ubuntu.com>
1169
1170 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1171
1172 2008-07-18 Matthias Klose <doko@ubuntu.com>
1173
1174 * Makefile.in: Include ../boehm-gc/threads.mk.
1175 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1176
1177 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1178
1179 * Makefile.in (install-info): New stub target.
1180
1181 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1182
1183 * configure: Regenerate.
1184
1185 2008-06-14 Kai Tietz <kai.tietz@onevision.com>
1186
1187 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1188 if HAVE_GETIPINFO is not defined.
1189
1190 2008-06-10 Kai Tietz <kai.tietz@onevision.com>
1191
1192 * Object.m (compare): Add type id.
1193 * objc/Object.h: Likewise.
1194 * archive.c (objc_read_class): Use size_t to extend version to be
1195 size of pointer scalar width.
1196 * sendmsg.c (rtx): Undefine it before redefinition.
1197 (__objc_print_dtable_stats): Cast arguments to long as intended.
1198
1199 2008-05-30 Julian Brown <julian@codesourcery.com>
1200
1201 * exception.c (__objc_exception_class): Initialise as constant
1202 array for ARM EABI. Change macro to static const for non-ARM EABI.
1203 (ObjcException): Add note about structure layout. Remove landingPad
1204 and handlerSwitchValue for ARM EABI.
1205 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1206 of function.
1207 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1208 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1209 ARM EABI unwinding support.
1210 (objc_exception_throw): Use memcpy to initialise exception class.
1211
1212 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1213
1214 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1215 (rs6000_special_round_type_align): Update.
1216
1217 2008-05-09 Julian Brown <julian@codesourcery.com>
1218
1219 * Makefile.in (LTLDFLAGS): New.
1220 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1221
1222 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1223
1224 PR bootstrap/35457
1225 * aclocal.m4: Regenerate.
1226 * configure: Regenerate.
1227
1228 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1229
1230 * configure: Regenerate.
1231
1232 2007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1233
1234 * configure.ac: Don't run config-ml.in directly.
1235 (multilib_arg): New.
1236 * configure: Regenerated.
1237
1238 2007-08-06 Andrew Pinski <pinskia@gmail.com>
1239
1240 PR libobjc/30731
1241 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1242 of _Unwind_Word for variables which are used in
1243 read_uleb128/read_sleb128.
1244 (PERSONALITY_FUNCTION): Likewise.
1245
1246 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1247
1248 * aclocal.m4: Regenerated.
1249
1250 2007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1251
1252 * configure.ac: Fix a typo in *-*-darwin clause.
1253 * configure: Regenerated.
1254
1255 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1256
1257 * configure.ac: Fix a typo.
1258 * configure: Regenerated.
1259
1260 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1261
1262 * configure: Regenerate.
1263
1264 2007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1265
1266 * Makefile.in: Replace all uses of libext with libsuffix.
1267 * configure.ac: Likewise.
1268 * configure: Regenerate.
1269
1270 Revert:
1271 * Makefile.in: Remove all uses of $(libext).
1272
1273 2007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1274
1275 * Makefile.in: Remove all uses of $(libext).
1276
1277 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1278
1279 * configure: Regenerate.
1280 * aclocal.m4: Regenerate.
1281
1282 2007-04-21 Andrew Ruder <andy@aeruder.net>
1283
1284 * sendmsg.c (__objc_get_forward_imp): Call
1285 __objc_msg_forward2 for real.
1286
1287 2007-04-09 Andrew Ruder <andy@aeruder.net>
1288
1289 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1290 external libraries to provide a function that returns the real
1291 forwarding function based on both the selector and the receiver.
1292 * objc/objc-api.h: Define __objc_msg_forward2.
1293
1294 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1295
1296 * Makefile.in: Add dummy install-pdf target.
1297
1298 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1299
1300 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1301 unused warning.
1302
1303 2006-10-31 Geoffrey Keating <geoffk@apple.com>
1304
1305 * encoding.c (darwin_rs6000_special_round_type_align): New.
1306
1307 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1308
1309 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1310 * configure.ac: Use multi.m4 from aclocal rather than custom
1311 code. Use multi_basedir instead of toplevel_srcdir.
1312 * aclocal.m4: Regenerate.
1313 * configure: Regenerate.
1314
1315 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1316
1317 * Makefile.in: Added empty "pdf" target.
1318
1319 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1320
1321 * configure: Regenerate.
1322
1323 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1324
1325 * Makefile.in: Add install-html target. Add install-html to .PHONY
1326
1327 2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1328
1329 PR libobjc/26309
1330 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1331
1332 2006-01-24 David Ayers <d.ayers@inode.at>
1333
1334 PR libobjc/9751
1335 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1336 and insure the new strings are '\0' termintated.
1337
1338 2006-01-24 David Ayers <d.ayers@inode.at>
1339
1340 PR libobjc/13946
1341 * configure.ac: Add include directives for --enable-objc-gc.
1342 * Makefile.in: Ditto.
1343 * configure: Regenerate.
1344
1345 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1346 instead of the local pointer to them.
1347
1348 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1349
1350 PR objc/25360
1351 * objc/objc-api.c (_C_COMPLEX): New define.
1352 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1353 (objc_alignof_type): Likewise.
1354 (objc_skip_typespec): Likewise.
1355
1356 2005-12-15 David Ayers <d.ayers@inode.at>
1357
1358 PR libobjc/14382
1359 * README (+load,+initialize): Fix documentation to reflect
1360 intended and implemented semantics for +load and +initialize.
1361
1362 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1363
1364 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1365 the name.
1366 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1367 (rs6000_special_round_type_align): Update for the ABI fix.
1368 (objc_layout_finish_structure): Correct the encoding which is passed to
1369 ROUND_TYPE_ALIGN.
1370
1371 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1372
1373 PR libobjc/25347
1374 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1375 but use the struct layout functions.
1376 (objc_alignof_type): Likewise.
1377 (objc_layout_structure): Handle _C_UNION_B also.
1378 (objc_layout_structure_next_member): Likewise.
1379 (objc_layout_finish_structure): Likewise.
1380
1381 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1382
1383 PR libobjc/25346
1384 * objc/objc-api.h (_C_BOOL): New define.
1385 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1386 (objc_alignof_type): Likewise.
1387 (objc_skip_typespec): Likewise.
1388
1389 2005-11-20 David Ayers <d.ayers@inode.at>
1390
1391 PR libobjc/19024
1392 * objc/hash.h: Remove deprecated hash API.
1393 * hash_compat.c: Remove.
1394 * Makefile.in: Remove reference to hash_compat.c.
1395
1396 * configure.ac (VERSION): Bump library version to 2:0:0.
1397 * configure: Regenerate.
1398
1399 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
1400
1401 PR other/4372
1402 * thr-objc.c (_XOPEN_SOURCE): Define.
1403
1404 2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1405
1406 PR libobjc/23612
1407 * objc/objc-api.h (struct objc_ivar): Move definition to
1408 global scope.
1409
1410 2005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1411 Rasmus Hahn <rassahah@neofonie.de>
1412
1413 PR libobjc/23108
1414 * archive.c (objc_write_type): Correct the element offset.
1415 (objc_read_type): Likewise.
1416
1417 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1418
1419 * All files: Update FSF address.
1420
1421 2005-08-13 Marcin Koziej <creep@desk.pl>
1422 Andrew Pinski <pinskia@physics.uc.edu>
1423
1424 PR libobjc/22492
1425 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1426
1427 2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1428
1429 * Makefile.in (extra_ldflags_libobjc): New.
1430 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1431 (libobjc_gc$(libext).la): Likewise.
1432 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1433 "-Wl,-single_module".
1434 * configure: Regenerate.
1435 * linking.m (_objcInit): Remove.
1436
1437 2005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1438
1439 PR libobjc/22606
1440 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1441
1442 2005-06-08 David Ayers <d.ayers@inode.at>
1443
1444 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1445 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1446 objc/runtime.h, objc/sarray.h, objc/thr.h,
1447 objc/typedstream.h: Do not include Objective-C headers as
1448 system headers.
1449
1450 2005-06-07 David Ayers <d.ayers@inode.at>
1451
1452 * archive.c, init.c, selector.c: Include hash.h.
1453 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1454 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1455 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1456 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1457 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1458 Include Objective-C headers with quotes and objc/ directory
1459 prefix.
1460
1461 2005-05-19 Richard Henderson <rth@redhat.com>
1462
1463 * exception.c: Revert last change.
1464
1465 2005-05-19 David Ayers <d.ayers@inode.at>
1466
1467 * exception.c: Include tsystem.h for unwind.h.
1468
1469 2005-05-09 Mike Stump <mrs@apple.com>
1470
1471 * configure: Regenerate.
1472
1473 2005-04-12 Mike Stump <mrs@apple.com>
1474
1475 * configure: Regenerate.
1476
1477 2005-03-21 Zack Weinberg <zack@codesourcery.com>
1478
1479 * Makefile.in: Set gcc_version here.
1480 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1481 in definition of toolexeclibdir so that $(gcc_version) is expanded
1482 by the Makefile.
1483 * aclocal.m4, configure: Regenerate.
1484
1485 2005-03-03 David Ayers <d.ayers@inode.at>
1486
1487 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1488 version reference. Correct typo.
1489
1490 2005-03-02 David Ayers <d.ayers@inode.at>
1491
1492 PR libobjc/19024
1493 * Makefile.in (OBJS): Add hash_compat.lo.
1494 (OBJS_GC): Add hash_compat_gc.lo.
1495 (hash_compat_gc.lo): New target and rule.
1496 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1497 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1498 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1499 with objc_. Add deprecated non prefixed inlined versions.
1500 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1501 declarations.
1502 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1503 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1504 update callers.
1505 * hash_compat.c: New file.
1506 * archive.c: Update callers.
1507 * init.c: Likewise.
1508 * selector.c: Likewise.
1509 * libobjc.def: Add objc_ versions of hash functions.
1510
1511 2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1512
1513 PR libobjc/20252
1514 * Makefile.in (GTHREAD_FLAGS): Remove.
1515 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1516 * thr-objc.c: Include config.h.
1517 * configure.ac: Instead of looking at GCC's makefile, figure out if
1518 GTHREAD_FLAGS should be defined by looking at the `thread model'
1519 of the current gcc.
1520 * configure: Regenerate.
1521 * config.h.in: Regenerate.
1522
1523 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
1524
1525 PR bootstrap/17383
1526 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1527 (Determine CFLAGS for gthread): Use $host_subdir.
1528 * configure: Regenerate.
1529 * Makefile.in (host_subdir): New.
1530 (INCLUDES): Use it.
1531
1532 2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1533
1534 PR libobjc/12035
1535 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
1536 they are not used.
1537 Include limits.h and stdlib.h.
1538 Define BITS_PER_WORD.
1539
1540 2004-12-12 Alexander Malmberg <alexander@malmberg.org>
1541
1542 * selector.c (__objc_init_selector_tables): Add missing void to
1543 definition.
1544
1545 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1546
1547 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1548 * configure, aclocal.m4: Regenerate.
1549
1550 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1551
1552 * configure: Regenerate for libtool change.
1553
1554 2004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1555
1556 * configure: Regenerate for libtool reversion.
1557
1558 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1559
1560 * configure: Regenerate for libtool change.
1561
1562 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1563
1564 * aclocal.m4, config.h.in: Regenerate.
1565
1566 2004-10-08 Mike Stump <mrs@apple.com>
1567 Andrew Pinski <pinskia@physics.uc.edu>
1568
1569 * aclocal.m4: Rename to ...
1570 * acinclude.m4: here and also use m4_include instead of sinclude.
1571 * aclocal.m4: Regenerate.
1572 * configure: Regenerate.
1573 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
1574 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
1575
1576 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1577
1578 * archive.c: Fix all the warnings about passing unsigned char*
1579 to char* and the other way too.
1580
1581 2004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1582
1583 PR libobjc/16448
1584 * exception.c: Include config.h
1585 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1586 SJLJ_EXCEPTIONS.
1587 * configure.ac: Find out what exception handling code we use.
1588 * configure: Regenerate.
1589 * config.h.in: New file, regenerate.
1590
1591 2004-09-16 Andrew Pinski <apinski@apple.com>
1592
1593 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1594
1595 2004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1596
1597 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1598 ACX_NONCANONICAL_TARGET.
1599 * configure: Regenerate.
1600
1601 2004-08-13 Ziemowit Laski <zlaski@apple.com>
1602
1603 * objc/sarray.h: Hoist include of assert.h near the top of file,
1604 and mark the remainder of the file 'extern "C"'.
1605
1606 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1607
1608 * objc/Object.h: Move includes out of extern "C" blocks.
1609 * objc/encoding.h: Likewise.
1610 * objc/hash.h: Likewise.
1611 * objc/objc-api.h: Likewise.
1612 * objc/runtime.h: Likewise.
1613 * objc/sarray.h: Likewise.
1614 * objc/typedstream.h: Likewise.
1615
1616 2004-08-12 Ziemowit Laski <zlaski@apple.com>
1617
1618 * objc/NXConstStr.h: Update copyright date; bracket with
1619 'extern "C"' for C++ use; make include syntax consistent
1620 by using <...> instead of "..."; hoist <objc/...> includes
1621 above the 'extern "C"' block.
1622 * objc/Object.h: Likewise.
1623 * objc/Protocol.h: Likewise.
1624 * objc/encoding.h: Likewise.
1625 * objc/hash.h: Likewise.
1626 * objc/runtime.h: Likewise.
1627 * objc/sarray.h: Likewise.
1628 * objc/thr.h: Likewise.
1629 * objc/typedstream.h: Likewise.
1630 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1631 (objc_static_instances): For C++ case, do away with
1632 zero-sized array.
1633 (objc_method): Hoist definition to file scope.
1634 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
1635 class_get_instance_method, class_create_instance,
1636 class_get_class_name, class_get_instance_size,
1637 class_get_meta_class, class_get_super_class, class_get_version,
1638 class_is_class, class_is_meta_class, class_set_version,
1639 class_get_gc_object_type, class_ivar_set_gcinvisible,
1640 get_imp): Rename 'class' parameter to '_class'.
1641 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1642 * objc/objc.h: Update copyright date.
1643 (arglist_t): Provide a union tag.
1644
1645 2004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1646
1647 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1648 but instead use the attribute noreturn.
1649
1650 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1651
1652 * encoding.c: Rename target_flags with a #define to avoid
1653 conflict with a prior declaration.
1654
1655 2004-06-24 Andrew Pinski <apinski@apple.com>
1656
1657 * objc/encoding.h: Wrap the functions with extern "C" for C++
1658 mode.
1659 * objc/hash.h: Likewise.
1660 * objc/objc-api.h: Likewise.
1661 * objc/objc-list.h: Likewise.
1662 * objc/runtime.h: Likewise.
1663 * objc/sarray.h: Likewise.
1664 * objc/thr.h: Likewise.
1665 * objc/typedstream.h: Likewise.
1666
1667
1668 2004-06-21 Nick Clifton <nickc@redhat.com>
1669
1670 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1671 provided.
1672
1673 2004-06-20 Alexander Malmberg <alexander@malmberg.org>
1674
1675 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1676 (exception_gc.lo): New.
1677 (OBJS_GC): Add exception_gc.lo.
1678
1679 2004-06-17 Richard Henderson <rth@redhat.com>
1680
1681 * exception.c: New file.
1682 * Makefile.in (exception.lo): New.
1683 (OBJS): Add it.
1684
1685 2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1686
1687 * linking.m (_objcInit): New empty function
1688 for Darwin only.
1689
1690 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1691
1692 * configure.ac: Support --enable-shared=libobjc.
1693 * configure: Regenerate.
1694
1695 PR libobjc/15901
1696 * configure.ac: Do not disable shared by default.
1697 * configure: Regenerate.
1698
1699 2004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1700
1701 * Protocol.m ([-isEqual:]): Small optimizations returning
1702 immediately if the argument is equal to self, and accessing
1703 the argument's name directly if it's a protocol.
1704
1705 2004-06-03 David Ayers <d.ayers@inode.at>
1706
1707 * Protocol.m ([-isEqual:]): Test the class of the argument.
1708
1709 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1710
1711 * configure.ac (includedir): Rename to ...
1712 (includedirname).
1713 * Makefile.in: s/includedir/includedirname/.
1714
1715 PR target/11572
1716 * configure.ac (includedir): Set to "include"
1717 except for Darwin.
1718 (libext) Set to empty except for Darwin.
1719 * configure: Regenerate
1720 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1721 s/include/$(includedir)/g.
1722
1723 2004-05-25 Daniel Jacobowitz <drow@false.org>
1724
1725 * Makefile.in: Add .NOEXPORT.
1726
1727 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1728
1729 Merge from the libobjc-branch
1730 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
1731
1732 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
1733
1734 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
1735
1736 * Makefile.in (OBJC_H): Add objc-deps.h.
1737
1738 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
1739
1740 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1741 ([-hash], [-isEqual:]): New methods.
1742
1743 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
1744
1745 * sarray.c (sarray_free): Add a better comment.
1746
1747 2004-01-27 Adam Fedor <fedor@gnu.org>
1748
1749 * hash.c (hash_add): Cast cachep to int.
1750 * selector.c (__sel_register_typed_name): Cast
1751 soffset_decode to int.
1752
1753 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
1754
1755 * selector.c: Rename register_selectors_from_list to
1756 __objc_register_selectors_from_list. Update caller.
1757 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1758 while registering selectors. Use __sel_register_typed_name instead
1759 of sel_register_typed_name. Check for NULL method_name:s.
1760 (pool_alloc_selector): New function.
1761 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1762 selector structures.
1763 * sendmsg.c (class_add_method_list): Use
1764 __objc_register_selectors_from_list.
1765 * objc/runtime.h: Add __objc_register_selectors_from_list.
1766
1767 2004-01-25 Adam Fedor <fedor@gnu.org>
1768 Nicola Pero <n.pero@mi.flashnet.it>
1769 Andrew Pinski <pinskia@physics.uc.edu>
1770
1771 * objc/objc-decls.h: New file.
1772 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1773 (_objc_load_callback): Likewise.
1774 (_objc_object_alloc): Likewise.
1775 (_objc_object_copy): Likewise.
1776 (_objc_object_dispose): Likewise.
1777
1778 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1779
1780 * archive.c: s/__inline__/inline
1781 * sendmsg.c: Likewise.
1782
1783 * encoding.c: Remove FIXME about the warning
1784 about unused variable.
1785 * sendmsg.c: Add a FIXME comment saying that
1786 this should be using libffi.
1787
1788 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
1789
1790
1791 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1792
1793 * archive.c (objc_read_class): Initialize class_name.
1794 (objc_read_selector): Initialize selector_name.
1795
1796 2004-05-09 Richard Sandiford <rsandifo@redhat.com>
1797
1798 * Makefile.in (toolexecdir): Remove trailing space.
1799
1800 2004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1801
1802 PR libobjc/14948
1803 * configure.ac: De-precious CC so multilibs work.
1804 * configure: Regenerate.
1805
1806 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1807
1808 * configure.ac: Restore toolexecdir.
1809 * Makefile.in: Restore toolexecdir.
1810 * configure: Regenerate.
1811
1812 2004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
1813
1814 * configure.ac: Remove (unused) glibcpp_prefixdir.
1815 * configure: Regenerate.
1816
1817 * configure.in: Rename to configure.ac.
1818 * Makefile.in: Update to match.
1819
1820 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
1821 Replace glibcpp_toolexeclibdir with toolexeclibdir.
1822 * configure.in: Remove glibcpp_toolexecdir (unused).
1823 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
1824 config.h or stamp-h (unused). Move one comment to the right place.
1825 * configure: Regenerate.
1826 * config.h.in: Remove (unused).
1827
1828 * config.h.in: Regenerate with autoheader.
1829
1830 * Makefile.in: Remove (unused) gcc_version_trigger.
1831 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
1832 gcc_version_trigger.
1833 * configure: Regenerate.
1834
1835 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
1836 Sort file into sections. Remove dnl where appropriate. Fix
1837 other style issues.
1838 * configure: Regenerate.
1839
1840 * configure.in: Replace old AC_PROG_CC hack with new one.
1841 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
1842 are no subdirectory output files, so this is fine). Change prereq
1843 to autoconf 2.59.
1844 * aclocal.m4: Include ../config/no-executables.m4.
1845 * configure: Regenerate with autoconf 2.59.
1846
1847 * configure.in: Improve comments on gthread_cflags. Improve m4
1848 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
1849 * configure: Regenerate.
1850
1851 * configure.in: Move PACKAGE and VERSION settings up top. Remove
1852 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
1853 redundant checks for values of RANLIB, AR, INSTALL.
1854 * configure: Regenerate.
1855
1856 * configure.in: Clean up handling of
1857 --enable-version-specific-runtime-libs and related variables;
1858 replace 'if test' with 'case' where reasonable. Fix comments.
1859 Remove useless libstdcxx_interface.
1860 * configure: Regenerate.
1861
1862 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
1863 Replace uses of target_alias with target_noncanonical.
1864 * aclocal.m4: Include ../config/acx.m4.
1865 * configure: Regenerate.
1866 * Makefile.in: Replace uses of target_alias with target_noncanonical.
1867 Fix copyright statement.
1868
1869 * configure.in: Hand-inline bulky, confusing macros from
1870 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
1871 Update copyright notice. Remove stuff for automake, which isn't
1872 used in this directory. Remove emacs local variables.
1873 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
1874 * configure: Regenerate.
1875
1876 2004-03-16 Manfred Hollstein <mh@suse.com>
1877
1878 * Makefile.in, configure.in, configure: Update copyright years.
1879
1880 2004-03-15 Manfred Hollstein <mh@suse.com>
1881
1882 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
1883 definition from configure.in.
1884 * configure.in (PACKAGE): Add definition.
1885 (VERSION): Add definition; substitute it in output files.
1886 * configure: Re-generate.
1887
1888 2004-03-05 Ziemowit Laski <zlaski@apple.com>
1889
1890 * objc/hash.h (hash_string, compare_strings):
1891 Add type-casts to make Objective-C++ happy.
1892 * objc/typedstream.h (objc_get_stream_class_version):
1893 Rename parameter from 'class' to 'class_name' to make
1894 Objective-C++ happy.
1895
1896 2004-03-01 Michael Matz <matz@suse.de>
1897
1898 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
1899
1900 2004-02-06 Ziemowit Laski <zlaski@apple.com>
1901
1902 * objc/objc-api.h (objc_super): The 'class' field shall
1903 be named 'super_class' #ifdef __cplusplus.
1904
1905 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
1906
1907 PR target/10781
1908 * encoding.c (rs6000_special_round_type_align): Define.
1909
1910 2004-01-14 Adam Fedor <fedor@gnu.org>
1911
1912 PR libobjc/12155
1913 * selector.c (__objc_register_instance_methods_to_class): Free
1914 new_list if not used.
1915
1916 2004-01-09 Andrew Ruder <aeruder@ksu.edu>
1917
1918 PR libobjc/11904
1919 * sarray.c (sarray_free): Free array->is_copy_of latter.
1920
1921 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1922
1923 PR 11433
1924 * Protocol.m (descriptionForInstanceMethod): Don't dereference
1925 instance_methods if it's NULL.
1926 (descriptionForClassMethod): Likewise for class_methods.
1927
1928 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1929
1930 * Makefile.in (runtime-info.h): Remove -Wp.
1931
1932 2003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1933
1934 * Makefile.in (CC1OBJ): Remove.
1935 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
1936 correctly.
1937 Use .m extension for temporary file.
1938 Remove assembler temp file.
1939
1940 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
1941
1942 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
1943
1944 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1945
1946 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
1947
1948 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1949
1950 * configure: Regenerate.
1951
1952 2003-08-27 Alexander Malmberg <alexander@malmberg.org>
1953
1954 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
1955 (libdir)/gcc-lib/ when installing.
1956 * configure: Regenerate.
1957
1958 Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
1959
1960 libobjc/9969
1961 * sendmsg.c (get_imp): Fixed rare threading problem.
1962 (__objc_responds_to): Similar fixes.
1963 (objc_msg_lookup): Similar fixes.
1964 (__objc_init_install_dtable): Lock the runtime before checking if the
1965 table is installed.
1966
1967 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
1968
1969 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
1970 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
1971 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
1972 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
1973 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
1974 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
1975 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
1976 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
1977 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
1978 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
1979 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
1980
1981 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
1982 Nicola Pero <n.pero@mi.flashnet.it>
1983
1984 libobjc/10742
1985 * init.c (class_superclass_of_class): New function.
1986 (create_tree_of_subclasses_inherited_from): Use it.
1987 (__objc_tree_insert_class): Likewise.
1988 (class_is_subclass_of_class): Likewise.
1989
1990 2003-04-11 David Chad <davidc@freebsd.org>
1991 Loren J. Rittle <ljrittle@acm.org>
1992
1993 libobjc/8562
1994 * objc/hash.h (hash_string): Constify correctly.
1995 (compare_ptrs): Use direct compare.
1996 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
1997 * objc/sarray.h: Global rename index to indx to avoid shadow.
1998
1999 2003-03-12 Andreas Schwab <schwab@suse.de>
2000
2001 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2002 glibcpp_toolexeclibdir.
2003 * configure: Rebuilt.
2004
2005 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2006
2007 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2008 config.status.
2009 * configure: Rebuilt.
2010
2011 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2012
2013 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2014 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2015 version_specific_libs is enabled.
2016 * configure: Rebuilt.
2017
2018 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2019
2020 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2021 (install-libs, install-headers): Prepend $(DESTDIR) to
2022 destination paths in all (un)installation commands.
2023
2024 2002-12-02 Zack Weinberg <zack@codesourcery.com>
2025
2026 * thr-objc.c: Include coretypes.h and tm.h.
2027
2028 2002-12-01 Zack Weinberg <zack@codesourcery.com>
2029
2030 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2031
2032 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2033
2034 * configure.in: Remove skip-this-dir support.
2035 * configure: Regenerate.
2036
2037 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2038
2039 * Makefile.in (all): Fix multilib parallel build.
2040
2041 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2042
2043 * sendmsg.c (nil_method): Declare not to take a variable number of
2044 args.
2045 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2046 (objc_msg_lookup_super): The same.
2047
2048 2002-09-10 Jan Hubicka <jh@suse.cz>
2049
2050 * nil_method.c (nil_method): No longer defined with variable
2051 arguments.
2052
2053 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
2054
2055 * objc/encoding.h: Fix formatting.
2056 * objc/hash.h: Likewise.
2057 * objc/objc-api.h: Likewise.
2058 * objc/runtime.h: Likewise.
2059 * objc/thr.h: Likewise.
2060 * archive.c: Likewise.
2061 * class.c: Likewise.
2062 * encoding.c: Likewise.
2063 * gc.c: Likewise.
2064 * hash.c: Likewise.
2065 * init.c: Likewise.
2066 * misc.c: Likewise.
2067 * nil_method.c: Likewise.
2068 * objects.c: Likewise.
2069 * sarray.c: Likewise.
2070 * selector.c: Likewise.
2071 * sendmsg.c: Likewise.
2072 * thr-mach.c: Likewise.
2073 * thr.c: Likewise.
2074
2075 2002-06-25 DJ Delorie <dj@redhat.com>
2076
2077 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2078 GLIBCPP_TOPREL_CONFIGURE.
2079 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2080 * configure: Regenerate.
2081
2082 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2083
2084 * Object.m (forward, read, write): Fix unused parameter warnings.
2085 * encoding.c: Include <stdlib.h>.
2086 (target_flags): Mark with attribute unused.
2087 (atoi): Delete.
2088 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2089 (__objc_generate_gc_type_description): Prototype.
2090 * selector.c (__objc_selector_max_index): Change to unsigned int.
2091
2092 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2093
2094 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2095 we always have a return value: if __objc_msg_forward does not
2096 supply a forwarding implementation, return the default
2097 __builtin_apply based one.
2098
2099 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2100
2101 * Object.m: Fix signed/unsigned warning.
2102 * Protocol.m: Likewise.
2103 * archive.c: Always include stdlib.h.
2104 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2105 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2106 Fix signed/unsigned warning.
2107 (objc_write_type, objc_read_type, objc_write_types,
2108 objc_read_types): Ensure ctype 8-bit safety.
2109 (__objc_no_write, __objc_no_read): Mark unused parameters.
2110 * class.c (class_table_setup): Specify void arg.
2111 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2112 objc_skip_typespec, objc_skip_offset,
2113 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2114 (objc_layout_structure_next_member): Ensure variables are
2115 initialized.
2116 * gc.c (__objc_generate_gc_type_description,
2117 class_ivar_set_gcinvisible): Mark unused parameters.
2118 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2119 unused parameters.
2120 (__objc_init_protocols) Fix signed/unsigned warning.
2121 * nil_method.c (nil_method): Mark unused parameters.
2122 * thr.h (objc_thread_callback): Specify void arg.
2123 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2124 signed/unsigned warning.
2125 (sarray_free): Fix formatting.
2126 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2127 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2128
2129 2002-06-09 Andreas Jaeger <aj@suse.de>
2130
2131 * encoding.c (objc_layout_structure_next_member): Remove unused
2132 variable.
2133
2134 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2135
2136 * Makefile.in (SHELL): Set to @SHELL@.
2137 (WARN_CFLAGS): New.
2138 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2139
2140 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2141
2142 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2143 * configure: Regenerate.
2144
2145 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2146
2147 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2148 script entry, and set LD to it when configuring multilibs.
2149 * configure: Rebuilt.
2150
2151 2002-04-19 David O'Brien <obrien@FreeBSD.org>
2152
2153 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2154
2155 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
2156
2157 PR objc/6107
2158 * objc/objc-api.h (struct objc_protocol_list): Change type of
2159 member count from int to size_t.
2160
2161 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2162
2163 PR libobjc/4039
2164 * aclocal.m4: Replace with version copied from libstdc++-v3.
2165 * configure.in: Update for changes to aclocal and Makefile.
2166 * configure: Regenerate.
2167 * Makefile.in: Correct install of multilibs and shared libs, use
2168 INSTALL_DATA for include files.
2169
2170 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2171
2172 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2173 categories - when an unclaimed category was found, the loop was
2174 doing two steps forward instead of one, so that in certain cases
2175 it was failing to properly load all the categories. (Reported
2176 with fix by Alexander Malmberg <alexander@malmberg.org>).
2177
2178 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
2179
2180 * encoding.c: Add target_flags.
2181
2182 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2183
2184 * objc/objc-api.h (_C_VECTOR): New.
2185
2186 * encoding.c (VECTOR_TYPE): New.
2187
2188 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2189
2190 * class.c: Rewritten the class table to use optimized, lock-free
2191 lookup. This more than doubles the speed of class method
2192 invocations. (class_table_setup), (class_table_insert),
2193 (class_table_replace), (class_table_get_safe),
2194 (class_table_next), (class_table_print),
2195 (class_table_print_histogram): New functions.
2196 (__objc_init_class_tables): Use class_table_setup.
2197 (__objc_add_class_to_hash): Use class_table_get_safe and
2198 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2199 assert the existence of the table; do not lock the runtime; use
2200 class_table_get_safe. (objc_next_class): Use class_table_next.
2201 (__objc_resolve_class_links): Use class_table_next.
2202 (class_pose_as): Use class_table_replace.
2203
2204 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2205
2206 * gc.c: Removed the DEBUG declaration.
2207
2208 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2209
2210 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2211 rather than through objc_thread_id, to save a function call.
2212 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2213 Ditto.
2214
2215 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2216
2217 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2218 to cast an id to a Class, which can not be done. Make the check
2219 by using CLS_ISMETA on the class pointer instead.
2220 (object_is_meta_class): Similar fix.
2221
2222 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2223
2224 * configure.in (AC_EXEEXT): Work around in case it expands to
2225 nothing, as in autoconf 2.50.
2226 * acinclude.m4: Likewise.
2227 * configure: Rebuilt.
2228
2229 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2230
2231 * THREADS: Explain that when we compile libobjc inside GCC, we
2232 always use thr-objc.c as a backend, which uses GCC's thread code.
2233
2234 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2235
2236 * init.c (__objc_send_message_in_list): When setting a new entry
2237 in __objc_load_methods use the method IMP as key, but check to see
2238 if the method is in the hashtable by looking at the IMP also.
2239 Also ... call the method after adding it to the hashtable rather
2240 than before ... thus preventing an obscure possibility of infinite
2241 recursion if a +load method itself loads a subclass.
2242
2243 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2244
2245 * init.c (__objc_send_message_in_list): When setting a new entry
2246 in __objc_load_methods use the method name as key, not the method
2247 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2248
2249 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2250
2251 * objc-features.texi: Move to ../gcc/objc.texi.
2252 * fdl.texi: Remove.
2253 * Makefile.in: Don't generate documentation from
2254 objc-features.texi.
2255
2256 2001-05-01 Mark Mitchell <mark@codesourcery.com>
2257
2258 * fdl.texi: New file.
2259 * objc-features.texi: Simplify.
2260 * Makefile.in: Adjust accordingly.
2261
2262 2001-04-30 Mark Mitchell <mark@codesourcery.com>
2263
2264 * objc-features.texi: Use the GFDL.
2265
2266 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2267
2268 * encoding.c (REAL_TYPE): Define.
2269
2270 2001-03-19 David Edelsohn <edelsohn@gnu.org>
2271
2272 * encoding.c (TYPE_MODE): Define.
2273
2274 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2275
2276 * thr.c (objc_thread_add): New function.
2277 (objc_thread_remove): Ditto.
2278 * objc/thr.h: Declare them.
2279 * libobjc.def: Mention them.
2280
2281 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2282
2283 * objc-features.texi: Document the @compatibility_alias compiler
2284 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2285
2286 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2287
2288 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2289
2290 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2291
2292 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2293 we're not interested in the result and they might fail.
2294 * configure: Regenerated.
2295
2296 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2297
2298 * objc-features.texi: Use @email.
2299
2300 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2301
2302 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2303 printf.
2304
2305 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
2306
2307 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2308 determines the value dynamically.
2309
2310 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2311
2312 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2313 libraries to provide a function that returns the real forwarding
2314 function. This can alleviate problems __builtin_apply() and
2315 friends have on various platforms. (Solution suggested by Helge
2316 Hess.)
2317
2318 * objc/objc-api.h: Define __objc_msg_forward.
2319
2320 * sendmsg.c: Define gen_rtx_REG.
2321
2322 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2323
2324 * thr-rtems.c: New file. Stub to compile.
2325
2326 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2327
2328 * configure: Rebuilt with new libtool.m4.
2329
2330 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2331
2332 * configure.in: Create a config.h file. Check for <sched.h>.
2333 * configure: Regenerate.
2334
2335 * config.h.in: Check for <sched.h>.
2336
2337 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2338
2339 * configure: Regenerate after change to ../libtool.m4.
2340
2341 2000-08-14 Andreas Schwab <schwab@suse.de>
2342
2343 * objc-features.texi (Top): Move @menu at end of node.
2344
2345 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
2346
2347 * objc-features.texi: Move @node Top before @menu.
2348
2349 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2350
2351 * objc-features.texi: Documented the new -fconstant-string-class
2352 option.
2353
2354 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2355
2356 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2357 improve the Posix thread support for Objective-C.
2358
2359 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2360
2361 * aclocal.m4: Replace copy of ../libtool.m4 with
2362 sinclude(../libtool.m4).
2363
2364 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2365
2366 * configure.in: Added libtool support; build shared libraries
2367 if --enable-shared was passed on command line.
2368 * Makefile.in: Modified most compilation commands to use libtool.
2369 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2370 libtool distribution.
2371
2372 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2373
2374 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2375 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2376 <rdb@cup.hp.com>).
2377
2378 2000-05-12 H.J. Lu (hjl@gnu.org)
2379
2380 * Makefile.in (GTHREAD_FLAGS): New.
2381 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2382 (OBJC_THREAD_FILE): Changed to thr-objc.
2383
2384 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2385 Makefile.
2386 (OBJC_THREAD_FILE): Removed.
2387
2388 * thr-objc.c: New.
2389
2390 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2391
2392 * objc/hash.h: Include string.h.
2393
2394 2000-04-15 David Edelsohn <edelsohn@gnu.org>
2395
2396 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2397
2398 2000-04-12 Jakub Jelinek <jakub@redhat.com>
2399
2400 * Object.m (strlen): Provide prototype on all 64bit platforms,
2401 not only alpha.
2402 * sarray.c (memcpy): Likewise.
2403 * encoding.c (objc_layout_finish_structure): Don't use
2404 ROUND_TYPE_ALIGN on sparc.
2405
2406 * encoding.c (objc_layout_structure_next_member): Do the whole
2407 procedure even for the first member, so that we get correct
2408 alignment.
2409
2410 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2411
2412 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2413 comments.
2414
2415 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2416
2417 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2418
2419 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2420
2421 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2422
2423 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2424
2425 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2426 the compiler when building C code.
2427
2428 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2429
2430 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2431 libdir, libsubdir and tooldir.
2432
2433 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2434
2435 * init.c (__objc_force_linking): Make global.
2436
2437 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2438
2439 * configure.in (AC_EXEEXT): Remove call.
2440 (compiler_name): Explicitly check with no extension and .exe
2441 extension.
2442 * configure: Regenerate.
2443
2444 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2445
2446 * Makefile.in (CC1OBJ): Define in terms of CC.
2447 (runtime-info.h): Use.
2448
2449 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2450
2451 * objc-features.texi: Updated the URL to Boehm's GC page.
2452
2453 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2454
2455 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2456 the char as being signed (patch from Daniel Jacobowitz
2457 <drow@false.org>).
2458
2459 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2460
2461 * configure.in (AC_PREREQ): Update to 2.13.
2462 (AC_EXEEXT): Call to find possible file extension.
2463 (compiler_name): Use.
2464 * configure: Regenerate.
2465
2466 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2467
2468 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2469
2470 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2471
2472 * configure.in (thread_file): Correct and simplify code to find
2473 the thread file.
2474 * configure: Rebuilt.
2475
2476 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2477
2478 * configure.in (compiler_name): Add check to detect if this
2479 language's compiler has been built.
2480 * configure: Regenerate.
2481
2482 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2483
2484 * configure.in: Use AC_PREREQ(2.12.1).
2485
2486 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2487
2488 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2489
2490 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2491
2492 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2493
2494 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2495
2496 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2497
2498 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2499
2500 * objc-features.texi (Top): Changed the email address.
2501 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2502
2503 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2504
2505 * encoding.c: Redefine get_inner_array_type to get the first entry
2506 in the structure.
2507
2508 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2509
2510 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2511 (objc_get_type_qualifiers): Similarly.
2512 * objc/encoding.h (_C_BYREF): Define.
2513 (_F_BYREF): Define.
2514
2515 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2516
2517 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2518 works out on 64-bit systems.
2519
2520 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2521
2522 * Makefile.in (INCLUDES): Make it multilib-friendly.
2523
2524 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2525
2526 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2527
2528 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2529 Jeffrey A Law (law@cygnus.com)
2530
2531 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2532 (FLAGS_TO_PASS): Added.
2533 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2534
2535 * archive.c: Change config.h to tconfig.h.
2536
2537 * configure.in: Find gcc's object directory even for multilibs.
2538
2539 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2540
2541 * configure.in: Escape ^ in grep string.
2542 * configure: Rebuilt.
2543
2544 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2545
2546 * All .h files pushed down into the objc/ subdirectory.
2547 * Makefile.in (copy_headers): Corresponding changes.
2548 * configure.in (AC_INIT): Corresponding changes.
2549 * configure: Rebuilt.
2550
2551 1998-09-30 Ben Elliston <bje@cygnus.com>
2552 Jeff Law <law@cygnus.com>
2553
2554 * Makefile.in: Rewrite.
2555
2556 * configure.in: Likewise.
2557
2558 * configure: Regenerate.
2559
2560 * All .c files. Remove "objc" prefix when including objc header
2561 files. Include tconfig.h, not ../tconfig.h.
2562
2563 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2564
2565 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2566 (get_inner_array_type): Define.
2567
2568 1998-09-21 Ben Elliston <bje@cygnus.com>
2569
2570 * New directory. Moved files from ../gcc/objc.