]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libobjc / ChangeLog
CommitLineData
e79132c3
NP
12011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
2
3 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
4 * objc/deprecated/objc_error.h: Removed.
5 * objc/objc-api.h: Do not include deprecated/objc_error.h.
6 * libobjc.def (objc_error, objc_verror): Removed.
7 * error.c (_objc_error_handler, objc_error, objc_verror,
8 objc_set_error_handler): Removed.
9 * Object.m ([-error:], [-perform:], [-perform:with:],
10 [-perform:with:with], [-subclassResponsibility:],
11 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
12 Removed.
13 * objc/deprecated/Object.h: Removed the same methods.
14 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
15 method after trying to invoke the "doesNotRecognize:" method.
16
0dd5327a
NP
172011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
18
19 * sendmsg.c: Reindented part of the file. No non-trivial changes
20 in code.
21
1e49849c
NP
222011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
23
24 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
7f344fab 25 not objc_lookup_class.
1e49849c 26
b5a3450f
RFM
272011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
28 David Ayers <ayers@fsfe.org>
29
48126bcb 30 PR libobjc/38307
b5a3450f
RFM
31 * sendmsg.c: Include objc/hash.h.
32 (get_implementation): New function, mostly with code from get_imp
33 updated to support the new +initialize dispatch table logic.
34 (get_imp): Use get_implementation.
35 (__objc_responds_to): Updated to support the new +initialize
36 dispatch table logic.
37 (class_respondsToSelector): Likewise.
38 (objc_msg_lookup): Use get_implementation.
39 (__objc_init_install_dtable): Removed.
40 (__objc_install_methods_in_dtable): Updated arguments.
41 (__objc_install_dispatch_table_for_class): Renamed to
42 __objc_install_dtable_for_class and updated to support the new
43 +initialize dispatch table logic.
44 (__objc_update_dispatch_table_for_class): Updated to support the
45 new +initialize dispatch table logic.
46 (__objc_forward): Call get_implementation instead of get_imp.
47 (prepared_dtable_table): New.
48 (__objc_prepare_dtable_for_class): New.
49 (__objc_prepared_dtable_for_class): New.
50 (__objc_get_prepared_imp): New.
51 (__objc_install_prepared_dtable_for_class): New.
52
85fe6408
NP
532011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
54
55 PR libobjc/48177
56 * selector.c (__sel_register_typed_name): Use sel_types_match()
57 instead of strcmp() to compare selector types (Suggestion by
58 Richard Frith-Macdonald <rfm@gnu.org>).
59
b98b952f
RO
602011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61
62 PR libobjc/32037
63 * Makefile.in (OBJC_GCFLAGS): Move ...
64 * configure.ac (enable_objc_gc): ... here.
65 Add $(libsuffix) to OBJC_BOEHM_GC.
66 * configure: Regenerate.
67
68ade9e4
NP
682011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
69
70 * selector.c (sel_getTypedSelector): Return NULL if there are
71 multiple selectors with conflicting types.
72 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
73
55b21c7a
RFM
742011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
75
76 PR libobjc/47922
77 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
78 a hardcoded "!".
79
029c8f3e
RW
802011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
81
82 * configure: Regenerate.
83
fa539f51
NP
842010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
85
86 * init.c (create_tree_of_subclasses_inherited_from): Use
87 class_superclass_of_class instead of assuming a class is
88 unresolved when it could be resolved. Tidied up assignment and
89 check.
90 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
91 (objc_tree_insert_class): Tidied up loop; return immediately upon
92 inserting a class.
93 (__objc_exec_class): Do not set __objc_class_tree_list.
94
9cacfc3e
NP
952010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
96
97 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
98 argument.
99 (sel_registerTypedName): Same.
100 (sel_registerName): Same.
101 * objc/runtime.h: Updated documentation.
102
410644c4
NP
1032010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
104
105 * objc/runtime.h (class_addIvar): Updated documentation. The
106 alignment is actually the log_2 of the alignment in bytes.
107 * ivars.c (class_addIvar): Corresponding change to the
108 implementation.
109
5750872c
NP
1102010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
111
112 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
113 be consistent with method_getTypeEncoding and
114 ivar_getTypeEncoding.
115 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
116 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
117 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
118 (sel_get_type): Updated call to sel_getType.
119
877bf195
NP
1202010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
121
122 * objc/runtime.h (class_conformsToProtocol,
123 class_copyProtocolList): Updated documentation.
124
e99776d8
NP
1252010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
126
127 * init.c (create_tree_of_subclasses_inherited_from): Updated
128 DEBUG_PRINTF messages.
129 (__objc_tree_insert_class): Same.
130 (__objc_send_load_using_method_list): Same.
131 (__objc_send_load): Same.
132 (__objc_exec_class): Same. In particular, do not print the module
133 name since it is no longer used.
134 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
135 tracking +initialize calls.
136 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
137 tracking updates of dispatch tables.
138 (__objc_install_dispatch_table_for_class): Same.
139
1d439e6c
RO
1402010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141
142 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
143 (libobjc_gc$(libsuffix).la): Likewise.
144
82883986
NP
1452010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
146
147 * sendmsg.c (class_addMethod): Return NO if the method already
148 exists in the class.
149
0bfe3fa1
NP
1502010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
151
152 * init.c (duplicate_classes): New.
153 (__objc_exec_class): Initialize duplicate_classes.
154 (__objc_create_classes_tree): Ignore classes in the
155 duplicate_classes table.
156 (__objc_call_load_callback): Same.
157 (__objc_init_class): If a duplicate class is found, add it to
158 duplicate_classes instead of aborting. Return YES if the class is
159 not a duplicate, and NO if it is.
160 * objc-private/runtime.h (__objc_init_class): Updated prototype.
161
9fd553cc
NP
1622010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
163
164 * objc-private/objc-list.h: Reindented file. No code changes.
165 * objc-private/sarray.h: Same change.
166
8637d320
NP
1672010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
168
169 * objc-private/accessors.h: Removed 'extern "C"' guards. This
170 file is never compiled with C++.
171 * objc-private/hash.h: Same change.
172 * objc-private/objc-list.h: Same change.
173 * objc-private/objc-sync.h: Same change.
174 * objc-private/protocols.h: Same change.
175 * objc-private/runtime.h: Same change.
176 * objc-private/sarray.h: Same change.
177 * objc-private/selector.h: Same change.
178
1588200e
NP
1792010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
180
1575c9de
NP
181 PR libobjc/18764
182 * class.c (__objc_add_class_to_hash): Return YES if the class was
183 added, and NO if it already existed.
184 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
185 NO, then abort the program with an error message.
186 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
187 declaration.
188
1892010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
190
1588200e
NP
191 * init.c (_objc_load_callback): Initialize with 0.
192 (__objc_call_callback): Renamed to __objc_call_load_callback.
193 Check _objc_load_callback only once, and if it is not set, return
194 immediately.
195 (objc_send_load): Updated call to __objc_call_callback.
196
c07499dc
NP
1972010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
198
199 PR libobjc/16110
200 * init.c (__objc_send_message_in_list): Renamed to
201 __objc_send_load_using_method_list. Do not take an 'op' argument.
202 Register the 'load' selector if needed.
203 (__objc_send_load): Do not register the 'load' selector. Updated
204 call to __objc_send_message_in_list.
205 (__objc_create_classes_tree): Add the class of any claimed
206 category that was loaded in the module to the list of classes for
207 which we try to execute +load.
208
df0820da
NP
2092010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
210
211 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
212 Updated comments.
213 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
214 a pointer using DEBUG_PRINTF.
215
c75534d1
NP
2162010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
217
218 PR libobjc/45953
219 * selector.c (__sel_register_typed_name): When registering a new
220 selector with the same name as an existing one, reuse the existing
221 name string. Also updated types, casts and comments in the whole
222 function.
223
600cbba2
NP
2242010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
225
226 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
227 to be 'struct objc_selector *' and not 'SEL'.
228 * init.c (__objc_exec_class): Call
229 __objc_register_selectors_from_module instead of iterating over
230 each selector and calling __sel_register_typed_name for each.
231 * objc-private/selector.h: Declare
232 __objc_register_selectors_from_module instead of
233 __sel_register_typed_name.
234 * selector.c (__objc_register_selectors_from_module): New.
235 (__sel_register_typed_name): Made static.
236
bebf8772
NP
2372010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
238
239 * linking.m: Do not include objc/NXConstStr.h.
240
9c68c0e5
NP
2412010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
242
243 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
244 * objc-private/common.h (DEBUG_PRINTF): To here.
245 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
246
57d75eeb
NP
2472010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
248
249 * hash.c: Tidied up comments and indentation. No code changes.
250
ef7ed5df
NP
2512010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
252
253 PR libobjc/47012
254 * accessors.m (objc_getProperty): If not atomic, do not
522c4f1f 255 retain/autorelease the returned value.
ef7ed5df 256
f94e723b
NP
2572010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
258
259 * objc-private/runtime.h (__objc_selector_max_index,
260 __objc_init_selector_tables, __objc_register_selectors_from_class,
261 __objc_register_selectors_from_list,
262 __objc_register_selectors_from_description_list): Moved to ...
263 * objc-private/selector.h: ... here.
264
d9df3365
NP
2652010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
266
267 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
268 (__objc_print_dtable_stats): Removed.
269 (__sel_register_typed_name): Removed.
270 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
271
41720477
NP
2722010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
273
274 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
275 if appropriate, after loading the module.
276
5f38ced1
NP
2772010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
278
279 * sendmsg.c (method_setImplementation): Do not declare.
280
ecfc2705
NP
2812010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
282
283 * objc/message.h: Updated comments.
284 * objc/runtime.h: Updated comments.
285
6e45b376
NP
2862010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
287
288 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
289 * protocols.c: Updated all calls to objc_lookupClass to call
290 objc_lookUpClass instead.
291 * sendmsg.c (objc_lookupClass): Do not declare.
292 (get_imp): Update call to objc_lookupClass to call
293 objc_lookUpClass instead.
294 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
295
fea78205
NP
2962010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
297
298 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
299 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
300 define. Updated comments.
301
2899534b
NP
3022010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
303
304 * objc/encoding.h: Updated comments.
305 * objc/runtime.h: Updated comments.
306 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
307 (objc_sizeof_type): Same.
308 (objc_alignof_type): Same.
309 (objc_aligned_size): Same.
310 (objc_promoted_size): Same.
311 (objc_skip_type_qualifiers): Same.
312 (objc_skip_typespec): Same.
313 (objc_skip_offset): Same.
314 (objc_skip_argspec): Same.
315 (objc_get_type_qualifiers): Same.
316 (objc_layout_structure): Same.
317 (objc_layout_structure_next_member): Same.
318 (objc_layout_finish_structure): Same.
319 (objc_layout_structure_get_info): Same.
320
120d5f8e
NP
3212010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
322
323 * init.c: Updated comments.
324 * objc/objc-api.h: Updated comments.
325 * objc/runtime.h (_objc_load_callback): Declare.
326
c34fc988
NP
3272010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
328
329 * objc/Object.h: Include deprecated/typedstream.h and
330 deprecated/hash.h instead of typedstream.h. Updated comments.
331
5ec582f9
NP
3322010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
333
334 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
335 * objc/deprecated/objc_msg_sendv.h: New.
336 * objc/message.h: Do not define retval_t, apply_t, arglist,
337 arglist_t, objc_msg_sendv, now in
338 objc/deprecated/objc_msg_sendv.h.
339 * objc/objc.h: Do not include message.h; include
340 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
341 * sendmsg.c: Include objc/message.h.
342 * thr.c: Include objc/message.h.
343
805a07f1
NP
3442010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
345
346 * objc/objc-exception.h: Include objc-decls.h. Mark all
347 functions with objc_EXPORT.
348 * objc/objc-sync.h: Same change.
349
c06a8664
NP
3502010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
351
352 * Protocol.m: Moved all methods, with the exception of -isEqual:,
353 into the 'Deprecated' category.
354 * objc/Protocol.h: Removed all methods, moved to
355 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
356 * objc/deprecated/Protocol.h: New.
357 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
358
1af5b8f5
NP
3592010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
360
361 * init.c: Include objc-private/selector.h. Do not declare
362 __sel_register_typed_name.
363 * objc-private/selector.h (__sel_register_typed_name): Declare.
364 * selector.c: Include objc-private/selector.h.
365
575584a9
NP
3662010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
367
368 * class.c: Tidied up comments and indentation. No code changes.
369 * error.c: Same.
370 * exception.c: Same.
371 * init.c: Same.
372 * ivars.c: Same.
373 * memory.c: Same.
374 * objc-foreach.c: Same.
375 * objc-sync.c: Same.
376 * objects.c: Same.
377 * protocols.c: Same.
378 * sarray.c: Same.
379 * thr.c: Same.
380
fed2b101
NP
3812010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
382
383 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
384 instead of objc/objc-api.h.
385 (init_check_module_version): Take a 'struct objc_module *'
386 argument instead of 'Module_t'. Use 'struct objc_module *'
387 instead of 'Module_t'.
388 (__objc_created_classes_tree): Take a 'struct objc_module *'
389 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
390 of 'Symtab_t'.
391 (__objc_call_callback): Take a 'struct objc_module *' argument
392 instead of 'Module_t'; use 'struct objc_symtab *' instead of
393 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
394 (_objc_load_callback): Take a 'struct objc_category *' argument
395 instead of 'Category *'.
396 (class_superclass_of_class): Use objc_getClass() instead of
397 objc_lookup_class().
398 (create_tree_of_subclasses_inherited_from): Same change (also, use
399 an explicit 'if' instead of '?').
400 (objc_init_statics): Same change.
401 (objc_send_load): Same change.
402 (__objc_init_protocol): same change.
403 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
404 argument instead of 'MethodList_t'. Use 'struct objc_method *'
405 instead of 'Method_t'.
406 (__objc_send_load): Use 'struct objc_method_list *' instead of
407 'MethodList_t'. Use sel_registerName() instead of
408 sel_register_name().
409 (__objc_exec_class): Take a 'struct objc_module *' argument
410 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
411 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
412 Use 'struct objc_category *' instead of 'Category_t'.
413
114dae43
NP
4142010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
415
416 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
417 Include objc-private/module-abi-8.h and objc-private/selector.h
418 instead of objc/encoding.h.
419 (objc_msg_lookup_super): Use super->super_class instead of
420 super->class.
421 (method_get_first_argument, method_get_next_argument): Declare
422 locally.
423 (class_get_instance_method): Declare before using.
424 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
425 (__objc_init_dispatch_tables, __objc_send_initialize): Use
426 sel_registerName() instead of sel_register_name().
427 (__objc_forward): Use sel_getName() instead of sel_get_name().
428 (objc_get_uninstalled_dtable): Use 'void' as argument.
429 * objc-private/selector.h: New.
430
53f672ca
NP
4312010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
432
433 * objc/message.h (objc_super): When using the modern API, do not
434 define Super and Super_t, and always use 'super_class' for the
435 super class field.
436 (objc_msg_lookup_super): Updated prototype to use 'struct
437 objc_super *' instead of 'Super_t'.
438 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
439 'struct objc_super *' instead of 'Super_t'.
440
db1792ee
NP
4412010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
442
443 * objc/message.h: Update comments, reindented code and moved
444 deprecated types and functions at the end of the file. No code
445 changes.
446
3db1a28c
NP
4472010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
448
449 * ivars.c (class_addIvar): Use the 'size' argument instead of
450 trying to calculate it using objc_sizeof_type().
451 * objc/runtime.h (class_addIvar): Updated comments.
452
b427203d
NP
4532010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
454
455 * sendmsg.c: Reindented some code and tidied up comments. No
456 actual code changes.
457
002d4675
NP
4582010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
459
460 * objc/Object.h: Moved all the methods, with the exception of
461 -class and -isEqual:, into ...
462 * objc/deprecated/Object.h: here.
463 * Object.m: Moved all the methods, with the exception of -class
464 and -isEqual: into the 'Deprecated' category.
465
9ecfa8de
NP
4662010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
467
468 * objects.c (object_copy): Do not #undef as we are no longer
469 including objc/objc-api.h.
470 * selector.c: Include objc/runtime.h and
471 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
472 objc/encoding.h. Updated
473 (__objc_register_selectors_from_class): Use struct
474 objc_method_list * instead of MethodList_t.
475 (__objc_register_selectors_from_list): Use Method instead of
476 Method_t.
477 (struct objc_method_description_list): Do not define here.
478 (__objc_register_instance_methods_to_class): Use struct
479 objc_method_list * instead of MethodList_t and Method instead of
480 Method_t.
481
d4645ada
NP
4822010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
483
484 * selector.c: Reindented some code and tidied up comments. No
485 actual code changes.
486
f436d2ff
IS
4872010-12-13 Iain Sandoe <iains@gcc.gnu.org>
488
489 * encoding.c (_darwin_rs6000_special_round_type_align): New.
490 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
491
e97cfd97
NP
4922010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
493
494 * sendmsg.c (selector_resolveClassMethod): New.
495 (selector_resolveInstanceMethod): New.
496 (__objc_resolve_class_method): New.
497 (__objc_resolve_instance_method): New.
498 (get_imp): Call __objc_resolve_class_method or
499 __objc_resolve_instance_method at the appropriate time.
500 (objc_msg_lookup): Same.
501 (class_getClassMethod): Same.
502 (class_getInstanceMethod): Same.
503 (__objc_init_dispatch_tables): Initialize
504 selector_resolveClassMethod and selector_resolveInstanceMethod.
505 * objc/runtime.h: Updated documentation of class_getClassMethod,
506 class_getInstanceMethod and class_getMethodImplementation.
507
375d1239
NP
5082010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
509
510 * objc-private/module-abi-8.h (struct objc_symtab): Updated
511 description of sel_ref_cnt and refs.
512 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
513
7de6ba7a
DK
5142010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
515
516 PR target/40125
517 PR lto/46695
518 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
519 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
520 * aclocal.m4: Regenerate.
521 * configure: Regenerate.
522
196891b5
MK
5232010-12-03 Matthias Klose <doko@ubuntu.com>
524
525 * configure.ac (VERSION): Bump the version to 3:0:0.
526 * configure: Regenerate.
527
d81e30b8
RFM
5282010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
529
530 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
531 pass nil as the receiver since we don't know the receiver at this
532 point.
533
49a35931
NP
5342010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
535
536 * ivars.c: Include stdlib.h.
537 * protocols.c: Same change.
538
682e805a
NP
5392010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
540
541 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
542 * accessors.m: New.
543 * init.c: Include objc-private/accessors.h.
544 (__objc_exec_class): Call __objc_accessors_init.
545 * objc-private/accessors.h: New.
546
5b8b526e
NP
5472010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
548
549 * objc/message.h: Moved initial includes outside of extern "C".
550 * objc/runtime.h: Add extern "C" for Objective-C++.
551
1501d094
NP
5522010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
553
554 * init.c (objc_send_load): Do not wait for NXConstantString to be
555 registered before executing +load. There is no point if
556 -fconstant-string-class=xxx is used when compiling all modules,
557 as is the case for almost all users.
558 * linking.m (__objc_linking): Do not try to forcefully link in
559 NXConstantString.
5b8b526e 560
6c5c7efd
NP
5612010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
562
563 * objc/runtime.h: Updated comments.
564 (class_addMethod): New.
565 (class_addIvar): New.
566 (class_replaceMethod): New.
567 (objc_allocateClassPair): New.
568 (objc_registerClassPair): New.
569 (objc_disposeClassPair): New.
570 * class.c (objc_allocateClassPair): New.
571 (objc_registerClassPair): New.
572 (objc_disposeClassPair): New.
573 (class_getSuperclass): Return Nil if a class is in construction.
574 * init.c (__objc_exec_class): Call __objc_init_class.
575 (__objc_init_class): New.
576 * ivars.c (class_copyIvarList): Return NULL if class is in
577 construction. Do not lock the runtime mutex.
578 (class_getInstanceVariable): Return NULL if class is in
579 construction. Do not lock the runtime mutex.
580 (class_addIvar): New.
581 * sendmsg.c (class_addMethod): New.
582 (class_replaceMethod): New.
583 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
584 (_CLS_IN_CONSTRUCTION): New.
585 (CLS_IS_IN_CONSTRUCTION): New.
586 (CLS_SET_IN_CONSTRUCTION): New.
587 (CLS_SET_NOT_IN_CONSTRUCTION): New.
588 * objc-private/runtime.h (__objc_init_class): New.
589
1cde73d7
NP
5902010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
591
592 * class.c (class_getSuperclass): Call __objc_resolve_class_links
593 if the class is not resolved yet.
594 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
595
3c44c190
NP
5962010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
597
598 * objc/runtime.h (class_getIvarLayout): New.
599 (class_getWeakIvarLayout): New.
600 (class_setIvarLayout): New.
601 (class_setWeakIvarLayout): New.
602 * ivars.c (class_getIvarLayout): New.
603 (class_getWeakIvarLayout): New.
604 (class_setIvarLayout): New.
605 (class_setWeakIvarLayout): New.
606
8437e063
NP
6072010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
608
609 * objc/runtime.h (class_copyPropertyList): New.
610 (class_getProperty): New.
611 (property_getAttributes): New.
612 (property_getName): New.
613 * ivars.c (class_copyPropertyList): New.
614 (class_getProperty): New.
615 (property_getAttributes): New.
616 (property_getName): New.
617
51194e8e
NP
6182010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
619
620 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
621 * class.c (__objc_update_classes_with_methods): New.
622 (objc_getClassList): Do not lock the class lock.
623 * methods.c (method_exchangeImplementations): New.
624 (method_setImplementation): New.
625 * objc/runtime.h (method_setImplementation): New.
626 (method_exchangeImplementations): New.
627
ae422ccd
NP
6282010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
629
630 * Protocol.m: Include objc/runtime.h and
631 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
632 repeat Protocol's instance variables.
633 (struct objc_method_description_list): Do not define here.
634 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
635 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
636 selectors directly instead of getting names and then using strcmp.
637 ([descriptionForClassMethod:]): Same change.
638 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
639 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
640 to compare selectors directly instead of getting names and then
641 using strcmp.
642 * objc/Protocol.h: Updated comments.
643
97764753 6442010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
f7185d47
NP
645
646 * init.c (__objc_init_protocol): New function which fixes up a
647 protocol's class pointer, registers it with the runtime, register
648 all protocol selectors and registers associated protocols too.
649 (objc_init_statics): Detect if we are initializing protocols, and
650 if so, use __objc_init_protocol instead of only fixing up the
651 class pointer.
652 (__objc_init_protocls): Use __objc_init_protocol.
653 * objc-private/module-abi-8.h: Updated comments.
654 * objc-private/runtime.h
655 (__objc_register_selectors_from_description_list): New.
656 * selector.c (__objc_register_selectors_from_description_list):
657 New. (struct objc_method_description_list): Declare.
658 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
659 when accessing the name of a method, which is now correctly a SEL.
660 ([-descriptionForClassMethod:]): Same change.
661 * protocols.c (protocol_getMethodDescription): Same change.
662 * objc/runtime.h: Updated comments.
663 (sel_registerTypedName): Fixed typo in function name.
664
5254c66b
NP
6652010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
666
667 PR libobjc/23214
668 * init.c (objc_init_statics): Do not skip the initialization of a
669 statics list if the first object has already been initialized; in
670 the case of Protocols, while the first one may have been
671 initialized, some others may not have been initialized yet.
672
b0453850
NP
6732010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
674
675 * Makefile.in (OBJC_DEPRECATED_H): Added
676 objc_get_uninstalled_dtable, objc_object_alloc.h and
677 struct_objc_static_instances.h.
678
ad49efbd
NP
6792010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
680
681 * encoding.c (method_copyReturnType): New.
682 (method_copyArgumentType): New.
683 (method_getReturnType): New.
684 (method_getArgumentType): New.
685 * methods.c (method_getDescription): New.
686 * objc/runtime.h (method_copyReturnType): New.
687 (method_copyArgumentType): New.
688 (method_getReturnType): New.
689 (method_getArgumentType): New.
690 (method_getDescription): New.
691
c994cc85
NP
6922010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
693
694 * encoding.c: Tidied up comments.
695 (objc_skip_variable_name): New static inline function.
696 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
697 the same code over and over.
698 (objc_alignof_type): Same.
699 (objc_aligned_size): Same.
700 (objc_promoted_size): Same.
701 (objc_skip_typespec): Same.
702 (objc_layout_structure_next_member): Same.
703 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
704 historical bug where objc_skip_offset would skip one byte even if
705 there is no offset: check that the first offset digit is actually
706 a digit before skipping it.
707 (objc_skip_type_qualifiers): Mark as inline.
708 (objc_skip_typespec): Mark as inline.
709
ad9eef11
NP
7102010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
711
712 * Makefile.in (C_SOURCE_FILES): Added methods.c.
713 * encoding.c (method_getNumberOfArguments): New.
714 (method_get_number_of_arguments): Call
715 method_getNumberOfArguments.
716 * ivars.c (ivar_getName): Check for NULL variable argument.
717 (ivar_getOffset): Check for NULL variable argument.
718 (ivar_getTypeEncoding): Check for NULL variable argument.
719 (class_copyIvarList): New.
720 * methods.c: New.
721 * protocols.c (class_copyProtocolList): Check for Nil class_
722 argument.
723 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
724 'struct objc_method_list *' instead of MethodList_t.
725 (class_getMethodImplementation): New.
726 (class_respondsToSelector): New.
727 (class_getInstanceMethod): New.
728 (class_getClassMethod): New.
729 * objc/runtime.h: Updated comments.
730 (class_copyIvarList): New.
731 (class_getInstanceMethod): New.
732 (class_getClassMethod): New.
733 (class_getMethodImplementation): New.
734 (class_respondsToSelector): New.
735 (method_getName): New.
736 (method_getImplementation): New.
737 (method_getTypeEncoding): New.
738 (class_copyMethodList): New.
739 (method_getNumberOfArguments): New.
740
be05b0f5
NP
7412010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
742
743 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
744 instead of objc/objc-api.h.
745 (objc_get_unknown_class_handler): Do not define.
746 (class_isMetaClass): New.
747 (class_getSuperclass): New.
748 (class_getVersion): New.
749 (class_setVersion): New.
750 (class_getInstanceSize): New.
751 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
752 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
753 objc_get_super_class.
754 (get_ttype_entry): Use objc_getRequiredClass instead of
755 objc_get_class.
756 * ivars.c (class_getClassVariable): New.
757 * objects.c: Include objc/runtime.h, objc/thr.h and
758 objc-private/module-abi-8.h instead of objc/objc-api.h
759 * objc/runtime.h (class_getClassVariable): New.
760 (class_isMetaClass): New.
761 (class_getSuperclass): New.
762 (class_getVersion): New.
763 (class_setVersion): New.
764 (class_getInstanceSize): New.
765 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
766 objc/objc-api.h)
767 (__CLS_INFO): Same.
768 (__CLS_ISINFO): Same.
769 (__CLS_SETINFO): Same.
770 (CLS_ISMETA): Same.
771 (CLS_ISCLASS): Same.
772 (CLS_ISRESOLV): Same.
773 (CLS_SETRESOLV): Same.
774 (CLS_ISINITIALIZED): Same.
775 (CLS_SETINITIALIZED): Same.
776 (CLS_GETNUMBER): Same.
777 (CLS_SETNUMBER): Same.
778
718a8e53
NP
7792010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
780
781 * archive.c: Do not include objc/objc.h.
782 * class.c: Do not include objc/objc.h.
783 * encoding.c: Include objc/runtime.h, ctype.h and
784 objc-private/module-abi-8.h instead of objc/objc-api.h and
785 objc/encoding.h.
786 * error.c: Do not include objc/objc.h.
787 * gc.c: Include tconfig.h and objc/encoding.h only if
788 OBJC_WITH_GC.
789 * hash.c: Include objc/runtime.h and objc/thr.h instead of
790 objc/objc-api.h. Do not include objc/objc.h.
791 * init.c: Do not include objc/objc.h.
792 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
793 objc/thr.h instead of objc/objc-api.h. Do not include
794 objc/objc.h.
795 * linking.m: Tidied comment.
796 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
797 Do not include objc/objc.h.
798 * objects.c: Do not include objc/objc.h.
799 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
800 * protocols.c: Do not include objc/objc.h.
801 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
802 not include objc/objc.h.
803 * selector.c: Do not include objc/objc.h.
804 * sendmsg.c: Do not include objc/objc.h.
805 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
806 Do not include objc/objc.h.
807 * objc/objc-decls.h: Reindented code.
808 * objc/runtime.h Include objc-decls.h. Updated comments.
809 (objc_malloc): New.
810 (objc_atomic_malloc): New.
811 (objc_calloc): New.
812 (objc_realloc): New.
813 (objc_free): New.
814 * objc-private/runtime.h: Updated comments.
815
debfbfee
NP
8162010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
817
818 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
819 * objc-private/protocols.h: New.
820 * protocols.c: New.
821 * init.c: Include objc-private/protocols.h.
822 (__objc_exec_class): Call __objc_protocols_init on startup.
823 (__objc_init_protocols): Call __objc_protocols_add_protocol.
824 * objc-private/runtime.h: Use (struct objc_method_list *) instead
825 of MethodList_t, and (struct objc_method *) instead of Method_t.
826 * objc/deprecated/struct_objc_class.h: Define
827 __objc_STRUCT_OBJC_CLASS_defined.
828 * objc-private/module-abi-8.h (struct
829 objc_method_description_list): New.
830 (struct objc_class): Only define if
831 __objc_STRUCT_OBJC_CLASS_defined is undefined.
832 * objc/runtime.h (class_getName): New.
833 (objc_getProtocol): New.
834 (objc_copyProtocolList): New.
835 (class_addProtocol): New.
836 (class_conformsToProtocol): New.
837 (class_copyProtocolList): New.
838 (protocol_conformsToProtocol): New.
839 (protocol_isEqual): New.
840 (protocol_getName): New.
841 (protocol_getMethodDescription): New.
842 (protocol_copyMethodDescriptionList): New.
843 (protocol_getProperty): New.
844 (protocol_copyPropertyList): New.
845 (protocol_copyProtocolList): New.
846 * class.c (class_getName): New.
847 * selector.c (sel_isEqual): New.
848
524660d2
NP
8492010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
850
851 * selector.c (sel_getName): Return "<null selector>" for a NULL
852 argument.
853 (sel_get_name): Return 0 for a NULL argument.
854 * objc/runtime.h (sel_getName): Updated documentation.
855
856 * objc-private/hash.h (class_hash_table): Unused declaration
857 removed.
858 (module_hash_table): Same.
859 * objc/deprecated/hash.h: Same changes.
860
90a2689f
NP
8612010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
862
863 * class.c (objc_getClassList): New.
864 (objc_getRequiredClass): New.
865 (objc_getMetaClass): New.
866 (objc_lookupClass): New.
867 (objc_getClass): New.
868 (__objc_get_unknown_class_handler): New.
869 (objc_setGetUnknownClassHandler): New.
870 (objc_get_class): Use __objc_get_unknown_class_handler.
871 (objc_lookup_class): Call objc_getClass.
872 * objc/objc-api.h: Updated comment and copyright notice.
873 * objc/runtime.h: Updated comments.
874 (objc_getClass): New.
875 (objc_lookupClass): New.
876 (objc_getMetaClass): New.
877 (objc_getRequiredClass): New.
878 (objc_getClassList): New.
879 (objc_setGetUnknownClassHandler): New.
880 (objc_get_unknown_class_handler): New.
881 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
882 instead of __objc_runtime_INCLUDE_GNU as include guard.
883 * objc-private/error.h (_objc_abort): Mark as noreturn.
884
fdcbbfe7
NP
8852010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
886
887 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
888 * ivars.c: New.
889 * objc/objc.h: Updated comments.
890 * objc/runtime.h (object_getClass): New.
891 (object_getClassName): New.
892 (object_setClass): New.
893 (class_getInstanceVariable): New.
894 (object_getIndexedIvars): New.
895 (object_getInstanceVariable): New.
896 (object_setInstanceVariable): New.
897 (object_getIvar): New.
898 (object_setIvar): New.
899 (ivar_getName): New.
900 (ivar_getOffset): New.
901 (ivar_getTypeEncoding): New.
902 * objc-private/module-abi-8.h (struct objc_class): Added.
903 * objects.c (object_getClassName): New.
904 (object_setClass): New.
905
bc18535a
NP
9062010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
907
908 * objc/objc.h: Updated comments.
909 * objc/objc-api.h: (object_copy): Added one argument; use a
910 #define to maintain backwards-compatibility. Moved
911 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
912 objc_get_uninstalled_dtable into
913 objc/deprecated/objc_get_uninstalled_dtable.h and
914 objc/deprecated/objc_object_alloc.h. Include these files.
915 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
916 * objc/deprecated/objc_object_alloc.h: New.
917 * objc/runtime.h (set_getName): New.
918 (sel_getType): New.
919 (sel_getUid): New.
920 (sel_registerName): New.
921 (sel_registerTypedName): New.
922 (sel_isEqual): New.
923 (class_createInstance): New.
924 (object_copy): New.
925 (object_dispose): New.
926 * objects.c: Do not include tconfig.h. Include gc_typed.h if
927 building the garbage collection version.
928 (__objc_object_alloc): Removed.
929 (__objc_object_copy): Removed.
930 (__objc_object_dispose): Removed.
931 (class_createInstance): New from code in class_create_instance.
932 Cast second argument of GC_malloc_explicitly_typed. Use
933 objc_calloc. Do not call _objc_object_alloc.
934 (class_create_instance): Call class_createInstance.
935 (object_copy): Added extraBytes argument. Do not call
936 _objc_object_copy.
937 (object_dispose): Do not call _objc_object_dispose.
938 * memory.c (objc_free): When using garbage collection, mark the
939 argument as unused.
940 * selector.c (sel_getName): New.
941 (sel_get_name): Call sel_getName.
942 (sel_getType): New.
943 (sel_get_type): Call sel_getType.
944 (sel_registerName): New.
945 (sel_register_name): Call sel_registerName.
946 (sel_registerTypedName): New.
947 (sel_register_typed_name): Call sel_registerTypedName.
948 (sel_getUid): New.
949 (sel_get_uid): Call sel_getUid.
950
e4d50866
NP
9512010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
952
953 * objc/objc-api.h: Define Method, Method_t, Category and
954 Category_t. Prevent including this file at the same time as
955 objc/runtime.h. Updated comments.
956 * objc/deprecated/struct_objc_method.h: Do not define Method,
957 Method_t.
958 * objc/deprecated/struct_objc_category.h: Do not define Category,
959 Category_t.
960 * objc-private/module-abi-8.h: New file containing a copy of all
961 the structure definitions. Not used yet.
962 * objc/encoding.h (objc_aligned_size): Removed duplicate
963 declaration. Updated comments.
964 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
965 Category, struct objc_method_description, _C_ID and similar,
966 _C_CONST and similar and _F_CONST and similar. Added
967 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
968 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
969 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
970 struct objc_struct_layout, objc_layout_structure,
971 objc_layout_structure_next_member, objc_layout_finish_structure,
972 objc_layout_structure_get_info. Prevent including this file at
973 the same time as objc/objc-api.h.
974
2461ab4b
NP
9752010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
976
977 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
978 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
979 struct_objc_method_list.h, struct_objc_module.h,
980 struct_objc_protocol_list.h, struct_objc_symtab.h.
981 * objc/deprecated/struct_objc_category.h: New.
982 * objc/deprecated/struct_objc_ivar.h: New.
983 * objc/deprecated/struct_objc_ivar_list.h: New.
984 * objc/deprecated/struct_objc_method.h: New.
985 * objc/deprecated/struct_objc_method_list.h: New.
986 * objc/deprecated/struct_objc_module.h: New.
987 * objc/deprecated/struct_objc_protocol_list.h: New.
988 * objc/deprecated/struct_objc_symtab.h: New.
989 * objc/deprecated/struct_objc_static_instances.h: New.
990 * objc/objc-api.h: Definitions of deprecated structures moved into
991 the above header fragment files in objc/deprecated/. Include the
992 files instead of definition the structures here. Updated
993 comments.
994 * objc/runtime.h: Updated comments. Do not include objc-api.h.
995 (objc_set_enumeration_mutation_handler): Renamed to
996 objc_setEnumerationMutationHandler.
997 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
998 to objc_setEnumerationMutationHandler.
999 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1000 objc_setExceptionMatcher.
1001 (objc_set_uncaught_exception_handler): Renamed to
1002 objc_setUncaughtExceptionHandler.
1003 * exception.c: Same changes.
1004
e2633f25
NP
10052010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1006
1007 * objc-sync.c: Include objc-private/common.h.
1008
cf3822f1
NP
10092010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1010
1011 * objc-foreach.c: Include objc-private/common.h.
1012 * objc/deprecated/METHOD_NULL.h: New file.
1013 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1014 defining METHOD_NULL here.
1015 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1016 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1017 METHOD_NULL.
1018 ([-respondsTo:]): Same change.
1019 * objc/objc-api.h (method_get_imp): Converted it into a normal
1020 function so that we can hide the internals of struct objc_method.
1021 * sendmsg.c (method_get_imp): Implemented.
1022
6176c2a9
NP
10232010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1024
1025 * objc/objc-api.h (struct objc_super, Super, Super_t,
1026 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1027 objc_msg_forward2): Declarations moved to objc/message.h. Include
1028 message.h here.
1029 * objc/message.h: Added such declarations; updated comments.
1030
f05b9d93
NP
10312010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1032
1033 Implemented fast enumeration for Objective-C.
1034 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1035 (OBJC_H): Added runtime.h
1036 * objc-foreach.c: New file.
1037 * objc/runtime.h: New file.
1038
2de87f04
KT
10392010-09-30 Kai Tietz <kai.tietz@onevision.com>
1040
1041 * objc/deprecated/struct_objc_class.h: Add padding
1042 to avoid warning with -Wpadded.
1043
177b48f9
NP
10442010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1045
1046 * encoding.c (objc_sizeof_type): Added support for vector type and
1047 for double long types.
1048 (objc_alignof_type): Same change.
1049 (objc_skip_typespec): Same change.
1050 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1051 instead of '!' since '!' is already used for _C_VECTOR.
1052 * objc/objc-api.h (_C_LNG_DBL): Added.
1053
d284c684
NP
10542010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1055
1056 * libobjc_entry.c: File removed.
1057
7116b6ea
KT
10582010-09-26 Kai Tietz <kai.tietz@onevision.com>
1059
bd74d88b 1060 * sendmsg.c (objc_msg_lookup): Remove inline.
7116b6ea
KT
1061 (objc_get_uninstalled_dtable): Likewise.
1062 * encoding.c (objc_skip_type_qualifiers): Likewise.
1063 (objc_skip_offset): Likewise.
1064 * archive.c (__objc_write_object): Likewise
1065 (__objc_write_class):
1066 (__objc_write_selector):
1067 (objc_read_char):
1068 (objc_read_unsigned_char):
1069 (objc_read_short):
1070 (objc_read_unsigned_short):
1071 (objc_read_int):
1072 (objc_read_long):
1073 (__objc_read_nbyte_uint):
1074 (objc_read_unsigned_int):
1075 (objc_read_unsigned_long):
1076 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1077 (objc_EXPORT): Likewise.
1078 * objc/message.h (objc-decls.h): Add include.
1079 * objc/objc-api.h: Mark API by objc_EXPORT.
1080 * libobjc.def (__objc_responds_to): Removed.
1081
5d3b14bd
NP
10822010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1083
1084 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1085
1086 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1087 objc/sarray.h replaced with a placeholder including the file from
1088 the deprecated/ directory.
1089 * objc-private/sarray.h: New file (private copy of sarray.h).
1090 * hash.c: Include <assert.h> instead of "assert.h"
1091 * sarray.c: Include <assert.h> instead of "assert.h". Include
1092 objc-private/sarray.h instead of objc/sarray.h.
1093 * selector.c: Include objc-private/sarray.h instead of
1094 objc/sarray.h.
1095 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1096 instead of objc/sarray.h.
1097 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1098
349cfd93
NP
10992010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1100
1101 * objc-private/objc-list.h (list_remove_elem): Unused function
1102 removed. (list_nth): Unused function removed. (list_find):
1103 Unused function removed. (list_lenght): Unused function removed.
1104
5be9cdc1
NP
11052010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1106
1107 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1108 replaced with a placeholder including the file from the
1109 deprecated/ directory.
1110 * objc/objc-api.h: Updated includes.
1111 * objc/typedstream.h: Updated includes.
1112 * objc-private/hash.h: New file (private copy of hash.h).
1113 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1114 objc/objc-list.h replaced with a placeholder including the file
1115 from the deprecated/ directory.
1116 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1117 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1118 instead of objc/hash.h and objc/objc-list.h.
1119 * selector.c: Same change.
1120 * class.c: Added include <string.h>, which used to be implicitly included
1121 when hash.h was included.
1122 * exception.c: Same change.
1123 * objects.c: Same change.
1124 * sarray.c: Same change.
1125 * sendmsg.c: Same change.
1126 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
5be9cdc1 1127
fd312537
NP
11282010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1129
1130 Implemented objc_sync_enter() and objc_sync_exit(), which are
1131 required by @synchronized() to work.
1132 * objc-sync.c: New file.
1133 * objc/objc-sync.h: New file.
1134 * objc-private/objc-sync.h: New file.
1135 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1136 Objective-C runtime startup.
1137 * Makefile.in: Added objc-sync.c and objc-sync.h.
1138 * configure.ac: Added GCC_CHECK_TLS.
1139 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1140 * configure: Regenerated.
1141 * config.h.in: Regenerated.
1142
7e268280
NP
11432010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1144
1145 * Makefile.in (%_gc.lo): New pattern rules to build the
1146 garbage-collected version of the library. Removed rules for
1147 specific files that are no longer needed. Standardized all rules.
1148 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1149 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1150 OBJC_SOURCE_FILES.
1151 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1152
11532010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1154
1155 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1156 with Garbage Colletion.
1157
457e68e7
NP
11582010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1159
1160 * memory.c: Do not include objc-private/runtime.h.
1161
d1be5d82
NP
11622010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1163
1164 * objc/deprecated/objc_malloc.h: New file.
1165 * objc/deprecated/objc_valloc.h: New file.
1166 * objc/objc-api.h: Include the files instead of defining
1167 objc_valloc, _objc_malloc() and similar.
1168 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1169 objc_malloc.h.
1170 * memory.c: Removed the extra layer of indirection of _objc_malloc
1171 and similar.
1172 (objc_calloc): Use GC_malloc in the garbage-collected
1173 implementation as GC_malloc returns memory that is already freed.
1174 (objc_valloc): Deprecated.
1175
7b869986
NP
11762010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1177
1178 * objc/deprecated/objc_error.h: New file.
1179 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1180 defining objc_error and related.
1181 * error.c: New file. Added _objc_abort function which replaces
1182 objc_error. No change in functionality as they both print an
1183 error and abort.
1184 * misc.c: File removed. Code moved into memory.c and error.c.
1185 * memory.c: New file.
1186 * objc-private/error.h: New file.
1187 * archive.c: Include objc-private/error.h and use _objc_abort
1188 instead of objc_error everywhere.
1189 * class.c: Same change.
1190 * encoding.c: Same change.
1191 * init.c: Same change, and simplified init_check_module_version.
1192 * memory.c: Same change.
1193 * sendmsg.c: Same change.
1194 * thr.c: Same change.
1195 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1196 (OBJ_H): Reordered list.
1197 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1198 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1199 (misc_gc.lo): Rule removed.
1200 (error_gc.lo): Rule added.
1201 (memory_gc.lo): Rule added.
1202
6dead247
NP
12032010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1204
1205 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1206 to check the API version. Added some comments.
1207
1208 * objc-private/common.h: New file.
1209 * NXConstStr.m: Include objc-private/common.h.
1210 * Object.m: Same change.
1211 * Protocol.m: Same change.
1212 * archive.c: Same change.
1213 * class.c: Same change.
1214 * encoding.c: Same change.
1215 * exception.c: Same change.
1216 * gc.c: Same change.
1217 * hash.c: Same change.
1218 * init.c: Same change.
1219 * libobjc_entry.c: Same change.
1220 * linking.m: Same change.
1221 * misc.c: Same change (and added a comment).
1222 * nil_method.c: Same change.
1223 * objects.c: Same change.
1224 * sarray.c: Same change.
1225 * selector.c: Same change.
1226 * sendmsg.c: Same change.
1227 * thr.c: Same change.
1228
83c28dfd
NP
12292010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1230
1231 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1232
0c11b8fb
NP
12332010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1234
1235 * archive.c: Removed not needed includes.
1236 * class.c: Same change.
1237 * hash.c: Same change.
1238 * misc.c: Same change.
1239 * nil_method.c: Same change.
1240 * objects.c: Same change.
1241 * sarray.c: Same change.
1242 * sendmsg.c: Same change.
1243 * thr.c: Same change.
1244
a19fac96
NP
12452010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1246
1247 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1248 all the objc/*.h files.
1249 * objc-private/runtime.h: New file.
1250 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1251 files) instead of objc/runtime.h.
1252 * class.c: Same change.
1253 * hash.c: Same change.
1254 * init.c: Same change.
1255 * misc.c: Same change.
1256 * nil_method.c: Same change.
1257 * objects.c: Same change.
1258 * sarray.c: Same change.
1259 * selector.c: Same change.
1260 * sendmsg.c: Same change.
1261 * thr.c: Same change.
1262
3d0d8739
NP
12632010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1264
1265 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1266 'struct objc_selector' and 'sel_eq' moved here.
1267 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1268 'struct objc_procotol' moved here.
1269 * objc/deprecated/struct_objc_class.h: New file. Definition of
1270 'struct objc_class' moved here.
1271 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1272 moved here.
1273 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1274 * objc/message.h: New file. Definitions for relval_t, apply_t,
1275 arglist, arglist_t and objc_msg_lookup were moved here.
1276 * objc/objc.h: Include the above files instead of defining the
1277 corresponding structs, types and functions here. Added new opaque
1278 definitions for SEL and Class. Use Class and not 'struct
1279 objc_class *' in the definition of 'struct objc_object'.
1280 Commented all types defined in the file. Removed special
1281 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1282 there as well.
1283 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1284 objc_unexpected_exception.h.
1285 * objc/objc-api.h: Updated include of
1286 objc-unexpetected-exception.h
1287 * objc/objc-exception.h: Updated comments.
1288 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1289 files. Reindented list of files.
1290
4c26f0a5
NP
12912010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1292
1293 * objc/objc-api.h (objc_trace): Unused variable removed.
1294
e976a775
NP
12952010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1296
1297 * objc/deprecated: New directory.
1298 * objc/deprecated/README: New file.
1299 * objc/README: New file.
1300 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1301 objc/typedstream.h replaced with a placeholder including the file
1302 from the deprecated/ directory.
1303 * objc/deprecated/objc-unexpected-exception.h: New file with the
1304 definition of _objc_unexpected_exception.
1305 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1306 instead of defining _objc_unexpected_exception.
1307 * objc/deprecated/Object.h: New file with the deprecated Object
1308 methods in a 'Deprecated' category.
1309 * objc/Object.h Include deprecated/Object.h instead of defining
1310 the deprecated methods.
1311 * Object.m: Moved deprecated methods into 'Deprecated' category.
1312 * objc-private: New directory.
1313 * objc-private/README: New file.
1314 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1315 (install-headers): Create installation directory for
1316 OBJC_DEPRECATED_H headers, and install them.
1317
13182010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1319
1320 * objc/objc-exception.h: Fixed include of objc.h.
1321
e30511ed
NP
13222010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1323
1324 * objc/objc-exception.h: New file.
1325 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1326 (objc_set_exception_matcher): Implemented.
1327 (objc_exception_throw): Use the uncaught exception handler if set.
1328 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1329 hardcoded isKindOf.
1330 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1331 up. Removed segmentation fault when value is 'nil'.
1332 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1333 deprecated.
1334 * Makefile.in (exception.lo, exception_gc.lo): Use
1335 -Wno-deprecated-declarations when compiling.
1336 (OBJC_H): Added objc-exception.h
1337
d6f62ada 13382010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
4470254f
NP
1339
1340 * objc/typedstream.h: Deprecate all functions in the file. This
1341 file is obsolete.
1342 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1343 [-awake]): Documented that these methods are deprecated. Added a
1344 brief description of the Object class and its relationship to the
1345 NSObject class.
1346 * Makefile.in: Compile archive.c and Object.m with
1347 -Wno-deprecated-declarations.
1348
88a2722e
NP
13492010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1350
1351 Removed obsolete intermediate threading layer.
1352 * thr.c: Use __gthread_objc_xxx functions directly instead of
1353 __objc_thread_xxx ones.
1354 * objc/thr.h: Removed prototypes of no longer existing
1355 __objc_thread_xxx functions.
1356 * Makefile.in: Removed thr-objc.lo.
1357 * thr-dce.c: File removed.
1358 * thr-decosf1.c: File removed.
1359 * thr-irix.c: File removed.
1360 * thr-mach.c: File removed.
1361 * thr-objc.c: File removed.
1362 * thr-os2.c: File removed.
1363 * thr-posix.c: File removed.
1364 * thr-pthreads.c: File removed.
1365 * thr-rtems.c: File removed.
1366 * thr-single.c: File removed.
1367 * thr-solaris.c: File removed.
1368 * thr-vxworks.c: File removed.
1369 * thr-win32.c: File removed.
1370 * README.threads: File removed.
1371 * THREADS.MACH: File removed.
1372 * THREADS: Updated.
1373
29b71c02
NP
13742010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1375
1376 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1377
265a000d
IS
13782010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1379
1380 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1381 Add a comment as to why, update FIXME comments.
1382
7b74bb63
NP
13832010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1384
1385 * makefile.dos: Obsolete file removed.
1386
4d9e8446
RW
13872010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1388
1389 * aclocal.m4: Regenerate.
1390
19222959
DK
13912010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1392
1393 PR libobjc/30445
1394 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1395 Cygwin and MinGW hosts.
1396 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1397 (libobjc.dll): Likewise.
1398 * configure: Regenerate.
1399
43e02a8a
RW
14002009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1401
1402 * configure: Regenerate.
1403
288d6a77
JJ
14042009-11-28 Jakub Jelinek <jakub@redhat.com>
1405
1406 * sarray.c (sarray_free): Use old_buckets variable.
1407 * encoding.c (objc_layout_structure_next_member): Remove unused
1408 bfld_type_size variable.
1409
df58e648
RW
14102009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1411
1412 * configure.ac (AC_PREREQ): Bump to 2.64.
1413
5213506e
RW
14142009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1415
1416 * aclocal.m4: Regenerate.
1417 * configure: Regenerate.
1418 * config.h.in: Regenerate.
1419
84fec8a5
RW
14202009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1421
1422 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1423
6efbd53f
RW
14242009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1425
1426 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1427 New variables.
1428 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1429
1b3b24c2
RW
14302009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1431
1432 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1433
748086b7
JJ
14342009-04-09 Nick Clifton <nickc@redhat.com>
1435
1436 * sendmsg.c: Change copyright header to refer to version 3 of
1437 the GNU General Public License with version 3.1 of the GCC
1438 Runtime Library Exception and to point readers at the COPYING3
1439 and COPYING3.RUNTIME files and the FSF's license web page.
1440 * NXConstStr.m: Likewise.
1441 * Object.m: Likewise.
1442 * Protocol.m: Likewise.
1443 * archive.c: Likewise.
1444 * class.c: Likewise.
1445 * encoding.c: Likewise.
1446 * exception.c: Likewise.
1447 * gc.c: Likewise.
1448 * hash.c: Likewise.
1449 * init.c: Likewise.
1450 * libobjc_entry.c: Likewise.
1451 * linking.m: Likewise.
1452 * misc.c: Likewise.
1453 * nil_method.c: Likewise.
1454 * objc/NXConstStr.h: Likewise.
1455 * objc/Object.h: Likewise.
1456 * objc/Protocol.h: Likewise.
1457 * objc/encoding.h: Likewise.
1458 * objc/hash.h: Likewise.
1459 * objc/objc-api.h: Likewise.
1460 * objc/objc-decls.h: Likewise.
1461 * objc/objc-list.h: Likewise.
1462 * objc/objc.h: Likewise.
1463 * objc/runtime.h: Likewise.
1464 * objc/sarray.h: Likewise.
1465 * objc/thr.h: Likewise.
1466 * objc/typedstream.h: Likewise.
1467 * objects.c: Likewise.
1468 * sarray.c: Likewise.
1469 * selector.c: Likewise.
1470 * thr-dce.c: Likewise.
1471 * thr-decosf1.c: Likewise.
1472 * thr-irix.c: Likewise.
1473 * thr-mach.c: Likewise.
1474 * thr-objc.c: Likewise.
1475 * thr-os2.c: Likewise.
1476 * thr-posix.c: Likewise.
1477 * thr-pthreads.c: Likewise.
1478 * thr-rtems.c: Likewise.
1479 * thr-single.c: Likewise.
1480 * thr-solaris.c: Likewise.
1481 * thr-vxworks.c: Likewise.
1482 * thr-win32.c: Likewise.
1483 * thr.c: Likewise.
1484 * libobjc.def: Change copyright header to refer to version 3 of
1485 the GNU General Public License and to point readers at the COPYING3
1486 file and the FSF's license web page.
1487 * makefile.dos: Likewise.
1488
14892009-04-09 Jakub Jelinek <jakub@redhat.com>
1490
1491 * Makefile.in: Change copyright header to refer to version
1492 3 of the GNU General Public License and to point readers at the
1493 COPYING3 file and the FSF's license web page.
1494 * configure.ac: Likewise.
1495
faef499b
DA
14962009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1497 David Ayers <ayers@fsfe.org>
1498
1499 PR libobjc/27466
1500 * objc/objc-api.h (_objc_unexpected_exception): Declare
1501 new hook. Update copyright dates.
1502 * exception.c (objc_exception_throw): Use hook. Update
1503 copyright dates.
1504 * libobjc.def (_objc_unexpected_exception): Export hook.
1505 Update copyright dates.
1506
7a9d3fe8
RW
15072009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1508
1509 * configure: Regenerate.
1510
baafc534
RW
15112008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1512
1513 * configure: Regenerate.
1514
b15b7ef8
KT
15152008-11-21 Kai Tietz <kai.tietz@onevision.com>
1516
1517 * Object.m (errno): Replaced by errno.h include.
1518 (compare): Cast self to id to prevent warning on comparison.
1519 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1520 already there.
1521 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1522 * thr-win32.c (__objc_thread_detach): Remove type warning.
1523 (__objc_thread_id): Likewise.
1524 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1525 for noreturn.
1526
467b2e9e
PG
15272008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1528 Steve Ellcey <sje@cup.hp.com>
1529
1530 * configure: Regenerate for new libtool.
1531 * config.h.in: Regenerate for new libtool.
1532
920d063d
MK
15332008-07-18 Matthias Klose <doko@ubuntu.com>
1534
1535 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1536
785fad0a
MK
15372008-07-18 Matthias Klose <doko@ubuntu.com>
1538
1539 * Makefile.in: Include ../boehm-gc/threads.mk.
1540 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1541
a0ed5099
RW
15422008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1543
1544 * Makefile.in (install-info): New stub target.
1545
18c04407
RW
15462008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1547
1548 * configure: Regenerate.
1549
b01bd5fe
KT
15502008-06-14 Kai Tietz <kai.tietz@onevision.com>
1551
1552 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1553 if HAVE_GETIPINFO is not defined.
1554
c24aadf3
KT
15552008-06-10 Kai Tietz <kai.tietz@onevision.com>
1556
1557 * Object.m (compare): Add type id.
1558 * objc/Object.h: Likewise.
1559 * archive.c (objc_read_class): Use size_t to extend version to be
1560 size of pointer scalar width.
1561 * sendmsg.c (rtx): Undefine it before redefinition.
1562 (__objc_print_dtable_stats): Cast arguments to long as intended.
1563
3f6383d3
JB
15642008-05-30 Julian Brown <julian@codesourcery.com>
1565
1566 * exception.c (__objc_exception_class): Initialise as constant
1567 array for ARM EABI. Change macro to static const for non-ARM EABI.
1568 (ObjcException): Add note about structure layout. Remove landingPad
1569 and handlerSwitchValue for ARM EABI.
1570 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1571 of function.
1572 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1573 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1574 ARM EABI unwinding support.
1575 (objc_exception_throw): Use memcpy to initialise exception class.
1576
dd25a747
AM
15772008-05-25 Alan Modra <amodra@bigpond.net.au>
1578
1579 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1580 (rs6000_special_round_type_align): Update.
1581
7afa92c5
JB
15822008-05-09 Julian Brown <julian@codesourcery.com>
1583
1584 * Makefile.in (LTLDFLAGS): New.
1585 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1586
deb984e6
PB
15872008-04-18 Paolo Bonzini <bonzini@gnu.org>
1588
1589 PR bootstrap/35457
1590 * aclocal.m4: Regenerate.
1591 * configure: Regenerate.
1592
e7ad4ca7
DE
15932008-01-24 David Edelsohn <edelsohn@gnu.org>
1594
1595 * configure: Regenerate.
1596
2c888488
L
15972007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1598
1599 * configure.ac: Don't run config-ml.in directly.
1600 (multilib_arg): New.
1601 * configure: Regenerated.
1602
30cad60d
AP
16032007-08-06 Andrew Pinski <pinskia@gmail.com>
1604
1605 PR libobjc/30731
1606 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1607 of _Unwind_Word for variables which are used in
1608 read_uleb128/read_sleb128.
1609 (PERSONALITY_FUNCTION): Likewise.
1610
12a27363
L
16112007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1612
1613 * aclocal.m4: Regenerated.
1614
af333b9a
AP
16152007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1616
1617 * configure.ac: Fix a typo in *-*-darwin clause.
1618 * configure: Regenerated.
1619
4620d81e
L
16202007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1621
1622 * configure.ac: Fix a typo.
1623 * configure: Regenerated.
1624
82a6cadf
PB
16252007-06-02 Paolo Bonzini <bonzini@gnu.org>
1626
1627 * configure: Regenerate.
1628
45d5f86c
AP
16292007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1630
1631 * Makefile.in: Replace all uses of libext with libsuffix.
1632 * configure.ac: Likewise.
1633 * configure: Regenerate.
1634
1635 Revert:
1636 * Makefile.in: Remove all uses of $(libext).
1637
8b5dda41
AP
16382007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1639
1640 * Makefile.in: Remove all uses of $(libext).
1641
1cf3d07d
SE
16422007-05-23 Steve Ellcey <sje@cup.hp.com>
1643
1644 * configure: Regenerate.
1645 * aclocal.m4: Regenerate.
1646
8972bcd8
AR
16472007-04-21 Andrew Ruder <andy@aeruder.net>
1648
1649 * sendmsg.c (__objc_get_forward_imp): Call
1650 __objc_msg_forward2 for real.
1651
80ae8e8a
AR
16522007-04-09 Andrew Ruder <andy@aeruder.net>
1653
1654 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1655 external libraries to provide a function that returns the real
1656 forwarding function based on both the selector and the receiver.
1657 * objc/objc-api.h: Define __objc_msg_forward2.
1658
38593123
BM
16592007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1660
1661 * Makefile.in: Add dummy install-pdf target.
1662
3034b453
MLI
16632007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1664
1665 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1666 unused warning.
1667
58182de3
GK
16682006-10-31 Geoffrey Keating <geoffk@apple.com>
1669
1670 * encoding.c (darwin_rs6000_special_round_type_align): New.
1671
5b043f08
GK
16722006-10-14 Geoffrey Keating <geoffk@apple.com>
1673
1674 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1675 * configure.ac: Use multi.m4 from aclocal rather than custom
1676 code. Use multi_basedir instead of toplevel_srcdir.
1677 * aclocal.m4: Regenerate.
1678 * configure: Regenerate.
1679
b5422ad7
BM
16802006-10-10 Brooks Moses <bmoses@stanford.edu>
1681
1682 * Makefile.in: Added empty "pdf" target.
1683
57255173
PB
16842006-07-18 Paolo Bonzini <bonzini@gnu.org>
1685
91ba215a 1686 * configure: Regenerate.
57255173 1687
2788992b
CD
16882006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1689
1690 * Makefile.in: Add install-html target. Add install-html to .PHONY
1691
529490b4
RO
16922006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1693
1694 PR libobjc/26309
1695 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1696
801a91f9
DA
16972006-01-24 David Ayers <d.ayers@inode.at>
1698
1699 PR libobjc/9751
1700 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1701 and insure the new strings are '\0' termintated.
1702
8c3e5222
DA
17032006-01-24 David Ayers <d.ayers@inode.at>
1704
1705 PR libobjc/13946
1706 * configure.ac: Add include directives for --enable-objc-gc.
1707 * Makefile.in: Ditto.
1708 * configure: Regenerate.
1709
1710 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1711 instead of the local pointer to them.
1712
06b11455
AP
17132005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1714
1715 PR objc/25360
91ba215a
AP
1716 * objc/objc-api.c (_C_COMPLEX): New define.
1717 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1718 (objc_alignof_type): Likewise.
1719 (objc_skip_typespec): Likewise.
06b11455 1720
bf5b295c
DA
17212005-12-15 David Ayers <d.ayers@inode.at>
1722
1723 PR libobjc/14382
1724 * README (+load,+initialize): Fix documentation to reflect
1725 intended and implemented semantics for +load and +initialize.
1726
761c0d29
AP
17272005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1728
1729 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1730 the name.
1731 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1732 (rs6000_special_round_type_align): Update for the ABI fix.
1733 (objc_layout_finish_structure): Correct the encoding which is passed to
1734 ROUND_TYPE_ALIGN.
1735
4540a3ad
AP
17362005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1737
1738 PR libobjc/25347
1739 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1740 but use the struct layout functions.
1741 (objc_alignof_type): Likewise.
1742 (objc_layout_structure): Handle _C_UNION_B also.
1743 (objc_layout_structure_next_member): Likewise.
1744 (objc_layout_finish_structure): Likewise.
1745
153b4898
AP
17462005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1747
1748 PR libobjc/25346
1749 * objc/objc-api.h (_C_BOOL): New define.
1750 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1751 (objc_alignof_type): Likewise.
1752 (objc_skip_typespec): Likewise.
1753
84700346
DA
17542005-11-20 David Ayers <d.ayers@inode.at>
1755
1756 PR libobjc/19024
1757 * objc/hash.h: Remove deprecated hash API.
1758 * hash_compat.c: Remove.
1759 * Makefile.in: Remove reference to hash_compat.c.
1760
1761 * configure.ac (VERSION): Bump library version to 2:0:0.
1762 * configure: Regenerate.
1763
7ef67393
AO
17642005-11-09 Alexandre Oliva <aoliva@redhat.com>
1765
1766 PR other/4372
1767 * thr-objc.c (_XOPEN_SOURCE): Define.
1768
b7add506
UW
17692005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1770
1771 PR libobjc/23612
1772 * objc/objc-api.h (struct objc_ivar): Move definition to
1773 global scope.
1774
ca59f04b
AP
17752005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1776 Rasmus Hahn <rassahah@neofonie.de>
1777
1778 PR libobjc/23108
1779 * archive.c (objc_write_type): Correct the element offset.
1780 (objc_read_type): Likewise.
1781
f9d09c43
KC
17822005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1783
1784 * All files: Update FSF address.
1785
ee1658f3
MK
17862005-08-13 Marcin Koziej <creep@desk.pl>
1787 Andrew Pinski <pinskia@physics.uc.edu>
1788
1789 PR libobjc/22492
1790 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1791
a5a813f8
AP
17922005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1793
1794 * Makefile.in (extra_ldflags_libobjc): New.
1795 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1796 (libobjc_gc$(libext).la): Likewise.
1797 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1798 "-Wl,-single_module".
1799 * configure: Regenerate.
1800 * linking.m (_objcInit): Remove.
1801
84fd360d
AP
18022005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1803
1804 PR libobjc/22606
1805 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1806
cf223603
DA
18072005-06-08 David Ayers <d.ayers@inode.at>
1808
1809 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1810 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1811 objc/runtime.h, objc/sarray.h, objc/thr.h,
1812 objc/typedstream.h: Do not include Objective-C headers as
1813 system headers.
1814
348a3445
DA
18152005-06-07 David Ayers <d.ayers@inode.at>
1816
1817 * archive.c, init.c, selector.c: Include hash.h.
1818 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1819 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1820 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1821 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1822 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1823 Include Objective-C headers with quotes and objc/ directory
1824 prefix.
1825
4419e343
RH
18262005-05-19 Richard Henderson <rth@redhat.com>
1827
1828 * exception.c: Revert last change.
1829
2e8a88f0
DA
18302005-05-19 David Ayers <d.ayers@inode.at>
1831
1832 * exception.c: Include tsystem.h for unwind.h.
1833
f4c767fd
MS
18342005-05-09 Mike Stump <mrs@apple.com>
1835
1836 * configure: Regenerate.
1837
6dab073b
MS
18382005-04-12 Mike Stump <mrs@apple.com>
1839
1840 * configure: Regenerate.
1841
2b37e3d5
ZW
18422005-03-21 Zack Weinberg <zack@codesourcery.com>
1843
1844 * Makefile.in: Set gcc_version here.
1845 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1846 in definition of toolexeclibdir so that $(gcc_version) is expanded
1847 by the Makefile.
1848 * aclocal.m4, configure: Regenerate.
1849
e59ef543
DA
18502005-03-03 David Ayers <d.ayers@inode.at>
1851
1852 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1853 version reference. Correct typo.
1854
270a1283
DA
18552005-03-02 David Ayers <d.ayers@inode.at>
1856
1857 PR libobjc/19024
1858 * Makefile.in (OBJS): Add hash_compat.lo.
1859 (OBJS_GC): Add hash_compat_gc.lo.
1860 (hash_compat_gc.lo): New target and rule.
1861 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1862 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1863 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1864 with objc_. Add deprecated non prefixed inlined versions.
1865 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1866 declarations.
1867 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1868 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1869 update callers.
1870 * hash_compat.c: New file.
1871 * archive.c: Update callers.
1872 * init.c: Likewise.
1873 * selector.c: Likewise.
1874 * libobjc.def: Add objc_ versions of hash functions.
1875
6886e18e
AP
18762005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1877
1878 PR libobjc/20252
1879 * Makefile.in (GTHREAD_FLAGS): Remove.
1880 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1881 * thr-objc.c: Include config.h.
1882 * configure.ac: Instead of looking at GCC's makefile, figure out if
1883 GTHREAD_FLAGS should be defined by looking at the `thread model'
1884 of the current gcc.
1885 * configure: Regenerate.
1886 * config.h.in: Regenerate.
1887
215c351a
PB
18882005-02-28 Paolo Bonzini <bonzini@gnu.org>
1889
1890 PR bootstrap/17383
1891 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1892 (Determine CFLAGS for gthread): Use $host_subdir.
1893 * configure: Regenerate.
1894 * Makefile.in (host_subdir): New.
1895 (INCLUDES): Use it.
1896
63b6f9ea
AP
18972004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1898
1899 PR libobjc/12035
1900 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
def9360c
AP
1901 they are not used.
1902 Include limits.h and stdlib.h.
1903 Define BITS_PER_WORD.
63b6f9ea 1904
64cbe55e
AM
19052004-12-12 Alexander Malmberg <alexander@malmberg.org>
1906
1907 * selector.c (__objc_init_selector_tables): Add missing void to
1908 definition.
1909
afabd8e6
RS
19102004-12-02 Richard Sandiford <rsandifo@redhat.com>
1911
1912 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1913 * configure, aclocal.m4: Regenerate.
1914
2539bffe
KC
19152004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1916
1917 * configure: Regenerate for libtool change.
1918
767f726e
KC
19192004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1920
1921 * configure: Regenerate for libtool reversion.
1922
2c92e90f
KC
19232004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1924
1925 * configure: Regenerate for libtool change.
1926
2fc30700
KC
19272004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1928
1929 * aclocal.m4, config.h.in: Regenerate.
1930
dd365157 19312004-10-08 Mike Stump <mrs@apple.com>
2b37e3d5 1932 Andrew Pinski <pinskia@physics.uc.edu>
dd365157
MS
1933
1934 * aclocal.m4: Rename to ...
1935 * acinclude.m4: here and also use m4_include instead of sinclude.
1936 * aclocal.m4: Regenerate.
1937 * configure: Regenerate.
1938 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
5a59530d 1939 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
dd365157 1940
8d488306
AP
19412004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1942
1943 * archive.c: Fix all the warnings about passing unsigned char*
1944 to char* and the other way too.
1945
049bc404
AP
19462004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1947
1948 PR libobjc/16448
1949 * exception.c: Include config.h
1950 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1951 SJLJ_EXCEPTIONS.
1952 * configure.ac: Find out what exception handling code we use.
1953 * configure: Regenerate.
1954 * config.h.in: New file, regenerate.
1955
45f17969
AP
19562004-09-16 Andrew Pinski <apinski@apple.com>
1957
1958 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1959
1506eac1
NN
19602004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1961
1962 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1963 ACX_NONCANONICAL_TARGET.
1964 * configure: Regenerate.
1965
f13bb199
ZL
19662004-08-13 Ziemowit Laski <zlaski@apple.com>
1967
1968 * objc/sarray.h: Hoist include of assert.h near the top of file,
1969 and mark the remainder of the file 'extern "C"'.
1970
9567d415
AP
19712004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1972
1973 * objc/Object.h: Move includes out of extern "C" blocks.
1974 * objc/encoding.h: Likewise.
1975 * objc/hash.h: Likewise.
1976 * objc/objc-api.h: Likewise.
1977 * objc/runtime.h: Likewise.
1978 * objc/sarray.h: Likewise.
1979 * objc/typedstream.h: Likewise.
1980
1a6213c3
ZL
19812004-08-12 Ziemowit Laski <zlaski@apple.com>
1982
1983 * objc/NXConstStr.h: Update copyright date; bracket with
1984 'extern "C"' for C++ use; make include syntax consistent
1985 by using <...> instead of "..."; hoist <objc/...> includes
1986 above the 'extern "C"' block.
1987 * objc/Object.h: Likewise.
1988 * objc/Protocol.h: Likewise.
1989 * objc/encoding.h: Likewise.
1990 * objc/hash.h: Likewise.
1991 * objc/runtime.h: Likewise.
1992 * objc/sarray.h: Likewise.
1993 * objc/thr.h: Likewise.
1994 * objc/typedstream.h: Likewise.
1995 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1996 (objc_static_instances): For C++ case, do away with
1997 zero-sized array.
1998 (objc_method): Hoist definition to file scope.
1999 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2b37e3d5 2000 class_get_instance_method, class_create_instance,
1a6213c3
ZL
2001 class_get_class_name, class_get_instance_size,
2002 class_get_meta_class, class_get_super_class, class_get_version,
2003 class_is_class, class_is_meta_class, class_set_version,
2004 class_get_gc_object_type, class_ivar_set_gcinvisible,
2005 get_imp): Rename 'class' parameter to '_class'.
2006 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2007 * objc/objc.h: Update copyright date.
2008 (arglist_t): Provide a union tag.
2009
bc012a44
AP
20102004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2011
2012 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2013 but instead use the attribute noreturn.
2014
0cf61401
ZW
20152004-06-28 Zack Weinberg <zack@codesourcery.com>
2016
2017 * encoding.c: Rename target_flags with a #define to avoid
2018 conflict with a prior declaration.
2019
6f0aa5e1
AP
20202004-06-24 Andrew Pinski <apinski@apple.com>
2021
2022 * objc/encoding.h: Wrap the functions with extern "C" for C++
0cf61401 2023 mode.
6f0aa5e1
AP
2024 * objc/hash.h: Likewise.
2025 * objc/objc-api.h: Likewise.
2026 * objc/objc-list.h: Likewise.
2027 * objc/runtime.h: Likewise.
2028 * objc/sarray.h: Likewise.
2029 * objc/thr.h: Likewise.
2030 * objc/typedstream.h: Likewise.
2031
2032
e7ebc32a
NC
20332004-06-21 Nick Clifton <nickc@redhat.com>
2034
2035 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2036 provided.
2037
5520b936
AM
20382004-06-20 Alexander Malmberg <alexander@malmberg.org>
2039
0cf61401
ZW
2040 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2041 (exception_gc.lo): New.
2042 (OBJS_GC): Add exception_gc.lo.
2043
a776161b
RH
20442004-06-17 Richard Henderson <rth@redhat.com>
2045
2046 * exception.c: New file.
2047 * Makefile.in (exception.lo): New.
2048 (OBJS): Add it.
2049
da727eab
AP
20502004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2051
2052 * linking.m (_objcInit): New empty function
2053 for Darwin only.
2054
3f35ff6f
AP
20552004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2056
684c64bf
AP
2057 * configure.ac: Support --enable-shared=libobjc.
2058 * configure: Regenerate.
2059
3f35ff6f
AP
2060 PR libobjc/15901
2061 * configure.ac: Do not disable shared by default.
2062 * configure: Regenerate.
2063
1600b7d6
NP
20642004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2065
2066 * Protocol.m ([-isEqual:]): Small optimizations returning
2067 immediately if the argument is equal to self, and accessing
2068 the argument's name directly if it's a protocol.
2069
20702004-06-03 David Ayers <d.ayers@inode.at>
2071
2072 * Protocol.m ([-isEqual:]): Test the class of the argument.
2073
ff65de76
AP
20742004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2075
7d34a5a9
AP
2076 * configure.ac (includedir): Rename to ...
2077 (includedirname).
2078 * Makefile.in: s/includedir/includedirname/.
2079
ff65de76
AP
2080 PR target/11572
2081 * configure.ac (includedir): Set to "include"
2082 except for Darwin.
2083 (libext) Set to empty except for Darwin.
2084 * configure: Regenerate
2085 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2086 s/include/$(includedir)/g.
2087
54b2f310
DJ
20882004-05-25 Daniel Jacobowitz <drow@false.org>
2089
2090 * Makefile.in: Add .NOEXPORT.
2091
435317e2
AP
20922004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2093
2094 Merge from the libobjc-branch
2095 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 2096
435317e2 2097 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
0cf61401 2098
435317e2 2099 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 2100
435317e2 2101 * Makefile.in (OBJC_H): Add objc-deps.h.
0cf61401 2102
435317e2 2103 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
0cf61401 2104
435317e2
AP
2105 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2106 ([-hash], [-isEqual:]): New methods.
0cf61401 2107
435317e2 2108 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
0cf61401 2109
435317e2 2110 * sarray.c (sarray_free): Add a better comment.
0cf61401 2111
435317e2 2112 2004-01-27 Adam Fedor <fedor@gnu.org>
0cf61401 2113
435317e2
AP
2114 * hash.c (hash_add): Cast cachep to int.
2115 * selector.c (__sel_register_typed_name): Cast
2116 soffset_decode to int.
0cf61401 2117
435317e2 2118 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
0cf61401 2119
435317e2
AP
2120 * selector.c: Rename register_selectors_from_list to
2121 __objc_register_selectors_from_list. Update caller.
2122 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2123 while registering selectors. Use __sel_register_typed_name instead
2124 of sel_register_typed_name. Check for NULL method_name:s.
2125 (pool_alloc_selector): New function.
2126 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2127 selector structures.
2128 * sendmsg.c (class_add_method_list): Use
2129 __objc_register_selectors_from_list.
2130 * objc/runtime.h: Add __objc_register_selectors_from_list.
0cf61401 2131
435317e2 2132 2004-01-25 Adam Fedor <fedor@gnu.org>
0cf61401
ZW
2133 Nicola Pero <n.pero@mi.flashnet.it>
2134 Andrew Pinski <pinskia@physics.uc.edu>
2135
435317e2
AP
2136 * objc/objc-decls.h: New file.
2137 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2138 (_objc_load_callback): Likewise.
2139 (_objc_object_alloc): Likewise.
2140 (_objc_object_copy): Likewise.
2141 (_objc_object_dispose): Likewise.
0cf61401 2142
435317e2 2143 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 2144
435317e2 2145 * archive.c: s/__inline__/inline
0cf61401
ZW
2146 * sendmsg.c: Likewise.
2147
435317e2
AP
2148 * encoding.c: Remove FIXME about the warning
2149 about unused variable.
2150 * sendmsg.c: Add a FIXME comment saying that
2151 this should be using libffi.
0cf61401 2152
435317e2 2153 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
0cf61401 2154
435317e2 2155
755bddc8
AP
21562004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2157
2158 * archive.c (objc_read_class): Initialize class_name.
2159 (objc_read_selector): Initialize selector_name.
2160
eb01299a
RS
21612004-05-09 Richard Sandiford <rsandifo@redhat.com>
2162
2163 * Makefile.in (toolexecdir): Remove trailing space.
2164
db7f3c69
NN
21652004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2166
2167 PR libobjc/14948
2168 * configure.ac: De-precious CC so multilibs work.
2169 * configure: Regenerate.
2170
a42a57cb
NN
21712004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2172
2173 * configure.ac: Restore toolexecdir.
2174 * Makefile.in: Restore toolexecdir.
2175 * configure: Regenerate.
2176
9c01f395
NN
21772004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2178
d770b996
NN
2179 * configure.ac: Remove (unused) glibcpp_prefixdir.
2180 * configure: Regenerate.
2181
3adc31d1
NN
2182 * configure.in: Rename to configure.ac.
2183 * Makefile.in: Update to match.
2184
608e1e0c
NN
2185 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2186 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2187 * configure.in: Remove glibcpp_toolexecdir (unused).
2188 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2189 config.h or stamp-h (unused). Move one comment to the right place.
2190 * configure: Regenerate.
2191 * config.h.in: Remove (unused).
2192
88b16960
NN
2193 * config.h.in: Regenerate with autoheader.
2194
af0c82b3
NN
2195 * Makefile.in: Remove (unused) gcc_version_trigger.
2196 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2197 gcc_version_trigger.
2198 * configure: Regenerate.
2199
252dde64
NN
2200 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2201 Sort file into sections. Remove dnl where appropriate. Fix
2202 other style issues.
2203 * configure: Regenerate.
2204
88386050
NN
2205 * configure.in: Replace old AC_PROG_CC hack with new one.
2206 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2207 are no subdirectory output files, so this is fine). Change prereq
2208 to autoconf 2.59.
2209 * aclocal.m4: Include ../config/no-executables.m4.
2210 * configure: Regenerate with autoconf 2.59.
2211
b43e7294
NN
2212 * configure.in: Improve comments on gthread_cflags. Improve m4
2213 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2214 * configure: Regenerate.
2215
1fcfac98
NN
2216 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2217 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2218 redundant checks for values of RANLIB, AR, INSTALL.
2219 * configure: Regenerate.
2220
9c01f395
NN
2221 * configure.in: Clean up handling of
2222 --enable-version-specific-runtime-libs and related variables;
2223 replace 'if test' with 'case' where reasonable. Fix comments.
2224 Remove useless libstdcxx_interface.
2225 * configure: Regenerate.
2226
2227 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2228 Replace uses of target_alias with target_noncanonical.
2229 * aclocal.m4: Include ../config/acx.m4.
2230 * configure: Regenerate.
2231 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2232 Fix copyright statement.
2233
2234 * configure.in: Hand-inline bulky, confusing macros from
2235 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2236 Update copyright notice. Remove stuff for automake, which isn't
2237 used in this directory. Remove emacs local variables.
2238 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2239 * configure: Regenerate.
2240
1adc3fec
MH
22412004-03-16 Manfred Hollstein <mh@suse.com>
2242
2243 * Makefile.in, configure.in, configure: Update copyright years.
2244
68a1af87
MH
22452004-03-15 Manfred Hollstein <mh@suse.com>
2246
2247 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2248 definition from configure.in.
2249 * configure.in (PACKAGE): Add definition.
2250 (VERSION): Add definition; substitute it in output files.
2251 * configure: Re-generate.
2252
d5e63fce
ZL
22532004-03-05 Ziemowit Laski <zlaski@apple.com>
2254
2255 * objc/hash.h (hash_string, compare_strings):
2256 Add type-casts to make Objective-C++ happy.
2257 * objc/typedstream.h (objc_get_stream_class_version):
2258 Rename parameter from 'class' to 'class_name' to make
2259 Objective-C++ happy.
2260
8f8cdf33
MM
22612004-03-01 Michael Matz <matz@suse.de>
2262
2263 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2264
25fe8680
ZL
22652004-02-06 Ziemowit Laski <zlaski@apple.com>
2266
2267 * objc/objc-api.h (objc_super): The 'class' field shall
2268 be named 'super_class' #ifdef __cplusplus.
2269
95727fb8
AP
22702004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2271
2272 PR target/10781
2273 * encoding.c (rs6000_special_round_type_align): Define.
2274
5af0e6ae
AF
22752004-01-14 Adam Fedor <fedor@gnu.org>
2276
2277 PR libobjc/12155
2278 * selector.c (__objc_register_instance_methods_to_class): Free
2279 new_list if not used.
2280
b39f1868
AR
22812004-01-09 Andrew Ruder <aeruder@ksu.edu>
2282
2283 PR libobjc/11904
2284 * sarray.c (sarray_free): Free array->is_copy_of latter.
2285
75d3baee
ZW
22862003-12-01 Zack Weinberg <zack@codesourcery.com>
2287
2288 PR 11433
2289 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2290 instance_methods if it's NULL.
2291 (descriptionForClassMethod): Likewise for class_methods.
2292
7989e4dc
RO
22932003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2294
2295 * Makefile.in (runtime-info.h): Remove -Wp.
2296
54b98a47
RO
22972003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2298
2299 * Makefile.in (CC1OBJ): Remove.
2300 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2301 correctly.
2302 Use .m extension for temporary file.
2303 Remove assembler temp file.
2304
beca20d2
JM
23052003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2306
2307 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2308
05dcec66
RO
23092003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2310
2311 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2312
e517f636
AM
23132003-09-09 Alan Modra <amodra@bigpond.net.au>
2314
2315 * configure: Regenerate.
2316
45dff86e
AM
23172003-08-27 Alexander Malmberg <alexander@malmberg.org>
2318
2319 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2320 (libdir)/gcc-lib/ when installing.
2321 * configure: Regenerate.
2322
c19f8e35
NP
2323Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2324
2325 libobjc/9969
2326 * sendmsg.c (get_imp): Fixed rare threading problem.
2327 (__objc_responds_to): Similar fixes.
2328 (objc_msg_lookup): Similar fixes.
2329 (__objc_init_install_dtable): Lock the runtime before checking if the
2330 table is installed.
75d3baee 2331
6c82ad25
NN
23322003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2333
38709cad
NN
2334 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2335 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2336 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2337 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
75d3baee 2338 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
38709cad 2339 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
6c82ad25
NN
2340 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2341 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2342 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2343 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2344 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2345
e083f3f9 2346Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
75d3baee 2347 Nicola Pero <n.pero@mi.flashnet.it>
e083f3f9
RFM
2348
2349 libobjc/10742
2350 * init.c (class_superclass_of_class): New function.
2351 (create_tree_of_subclasses_inherited_from): Use it.
2352 (__objc_tree_insert_class): Likewise.
2353 (class_is_subclass_of_class): Likewise.
75d3baee 2354
0b87e18e
DC
23552003-04-11 David Chad <davidc@freebsd.org>
2356 Loren J. Rittle <ljrittle@acm.org>
2357
2358 libobjc/8562
2359 * objc/hash.h (hash_string): Constify correctly.
2360 (compare_ptrs): Use direct compare.
2361 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2362 * objc/sarray.h: Global rename index to indx to avoid shadow.
2363
ff8b9ca8
AS
23642003-03-12 Andreas Schwab <schwab@suse.de>
2365
2366 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2367 glibcpp_toolexeclibdir.
2368 * configure: Rebuilt.
2369
3343fdd2
AO
23702003-02-20 Alexandre Oliva <aoliva@redhat.com>
2371
2372 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2373 config.status.
2374 * configure: Rebuilt.
2375
c5e3e1ed
AO
23762003-01-27 Alexandre Oliva <aoliva@redhat.com>
2377
2378 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2379 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2380 version_specific_libs is enabled.
2381 * configure: Rebuilt.
2382
90e5b39f
CC
23832003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2384
2385 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2386 (install-libs, install-headers): Prepend $(DESTDIR) to
2387 destination paths in all (un)installation commands.
2388
4977bab6
ZW
23892002-12-02 Zack Weinberg <zack@codesourcery.com>
2390
2391 * thr-objc.c: Include coretypes.h and tm.h.
2392
23932002-12-01 Zack Weinberg <zack@codesourcery.com>
2394
2395 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2396
23972002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2398
2399 * configure.in: Remove skip-this-dir support.
2400 * configure: Regenerate.
2401
6c5d742e
KG
24022002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2403
2404 * Makefile.in (all): Fix multilib parallel build.
2405
c2a68741
NP
2406Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2407
2408 * sendmsg.c (nil_method): Declare not to take a variable number of
2409 args.
2410 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2411 (objc_msg_lookup_super): The same.
2412
edf4d41e
JH
24132002-09-10 Jan Hubicka <jh@suse.cz>
2414
65a8189e
AJ
2415 * nil_method.c (nil_method): No longer defined with variable
2416 arguments.
edf4d41e 2417
40165636
RB
24182002-07-02 Rodney Brown <rbrown64@csc.com.au>
2419
2420 * objc/encoding.h: Fix formatting.
2421 * objc/hash.h: Likewise.
2422 * objc/objc-api.h: Likewise.
2423 * objc/runtime.h: Likewise.
2424 * objc/thr.h: Likewise.
2425 * archive.c: Likewise.
2426 * class.c: Likewise.
2427 * encoding.c: Likewise.
2428 * gc.c: Likewise.
2429 * hash.c: Likewise.
2430 * init.c: Likewise.
2431 * misc.c: Likewise.
2432 * nil_method.c: Likewise.
2433 * objects.c: Likewise.
2434 * sarray.c: Likewise.
2435 * selector.c: Likewise.
2436 * sendmsg.c: Likewise.
2437 * thr-mach.c: Likewise.
2438 * thr.c: Likewise.
2439
aebb8c22
DD
24402002-06-25 DJ Delorie <dj@redhat.com>
2441
2442 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2443 GLIBCPP_TOPREL_CONFIGURE.
2444 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2445 * configure: Regenerate.
2446
b62cc13a
KG
24472002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2448
2449 * Object.m (forward, read, write): Fix unused parameter warnings.
2450 * encoding.c: Include <stdlib.h>.
2451 (target_flags): Mark with attribute unused.
2452 (atoi): Delete.
2453 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2454 (__objc_generate_gc_type_description): Prototype.
2455 * selector.c (__objc_selector_max_index): Change to unsigned int.
2456
10cb24df
NP
2457Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2458
2459 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2460 we always have a return value: if __objc_msg_forward does not
2461 supply a forwarding implementation, return the default
2462 __builtin_apply based one.
2463
8f8c44cb
KG
24642002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2465
2466 * Object.m: Fix signed/unsigned warning.
2467 * Protocol.m: Likewise.
2468 * archive.c: Always include stdlib.h.
2469 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2470 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2471 Fix signed/unsigned warning.
2472 (objc_write_type, objc_read_type, objc_write_types,
2473 objc_read_types): Ensure ctype 8-bit safety.
2474 (__objc_no_write, __objc_no_read): Mark unused parameters.
2475 * class.c (class_table_setup): Specify void arg.
2476 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2477 objc_skip_typespec, objc_skip_offset,
2478 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2479 (objc_layout_structure_next_member): Ensure variables are
2480 initialized.
2481 * gc.c (__objc_generate_gc_type_description,
2482 class_ivar_set_gcinvisible): Mark unused parameters.
2483 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2484 unused parameters.
2485 (__objc_init_protocols) Fix signed/unsigned warning.
2486 * nil_method.c (nil_method): Mark unused parameters.
2487 * thr.h (objc_thread_callback): Specify void arg.
2488 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2489 signed/unsigned warning.
2490 (sarray_free): Fix formatting.
2491 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2492 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2493
42bac116
AJ
24942002-06-09 Andreas Jaeger <aj@suse.de>
2495
2496 * encoding.c (objc_layout_structure_next_member): Remove unused
2497 variable.
2498
9aa338ec
KG
24992002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2500
2501 * Makefile.in (SHELL): Set to @SHELL@.
2502 (WARN_CFLAGS): New.
2503 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2504
1e6347d8
RO
25052002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2506
2507 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2508 * configure: Regenerate.
2509
6706f116
AO
25102002-05-08 Alexandre Oliva <aoliva@redhat.com>
2511
2512 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2513 script entry, and set LD to it when configuring multilibs.
2514 * configure: Rebuilt.
2515
d0d091ae
DB
25162002-04-19 David O'Brien <obrien@FreeBSD.org>
2517
2518 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2519
ed426a38 25202002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
0bd9dd55
HPN
2521
2522 PR objc/6107
2523 * objc/objc-api.h (struct objc_protocol_list): Change type of
2524 member count from int to size_t.
2525
b150efee
FS
25262002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2527
2528 PR libobjc/4039
2529 * aclocal.m4: Replace with version copied from libstdc++-v3.
2530 * configure.in: Update for changes to aclocal and Makefile.
2531 * configure: Regenerate.
2532 * Makefile.in: Correct install of multilibs and shared libs, use
2533 INSTALL_DATA for include files.
2534
e5e0f6f5
NP
2535Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2536
2537 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2538 categories - when an unclaimed category was found, the loop was
2539 doing two steps forward instead of one, so that in certain cases
2540 it was failing to properly load all the categories. (Reported
2541 with fix by Alexander Malmberg <alexander@malmberg.org>).
2542
d5114db1
AH
25432001-11-14 Aldy Hernandez <aldyh@redhat.com>
2544
4977bab6 2545 * encoding.c: Add target_flags.
d5114db1 2546
f4fdaeda
AH
25472001-11-07 Aldy Hernandez <aldyh@redhat.com>
2548
2549 * objc/objc-api.h (_C_VECTOR): New.
2550
2551 * encoding.c (VECTOR_TYPE): New.
2552
26e51caa
NP
2553Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2554
2555 * class.c: Rewritten the class table to use optimized, lock-free
4977bab6
ZW
2556 lookup. This more than doubles the speed of class method
2557 invocations. (class_table_setup), (class_table_insert),
2558 (class_table_replace), (class_table_get_safe),
2559 (class_table_next), (class_table_print),
2560 (class_table_print_histogram): New functions.
2561 (__objc_init_class_tables): Use class_table_setup.
2562 (__objc_add_class_to_hash): Use class_table_get_safe and
2563 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2564 assert the existence of the table; do not lock the runtime; use
2565 class_table_get_safe. (objc_next_class): Use class_table_next.
2566 (__objc_resolve_class_links): Use class_table_next.
2567 (class_pose_as): Use class_table_replace.
26e51caa 2568
71a18acf
OP
25692001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2570
2571 * gc.c: Removed the DEBUG declaration.
2572
5f1ecf82
NP
2573Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2574
2575 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2576 rather than through objc_thread_id, to save a function call.
2577 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2578 Ditto.
2579
42d28de5
NP
2580Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2581
2582 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2583 to cast an id to a Class, which can not be done. Make the check
2584 by using CLS_ISMETA on the class pointer instead.
2585 (object_is_meta_class): Similar fix.
2586
4173be7f
AO
25872001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2588
2589 * configure.in (AC_EXEEXT): Work around in case it expands to
2590 nothing, as in autoconf 2.50.
2591 * acinclude.m4: Likewise.
2592 * configure: Rebuilt.
2593
27132e64
NP
25942001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2595
2596 * THREADS: Explain that when we compile libobjc inside GCC, we
2597 always use thr-objc.c as a backend, which uses GCC's thread code.
2598
e6be21fe
RFM
25992001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2600
2601 * init.c (__objc_send_message_in_list): When setting a new entry
2602 in __objc_load_methods use the method IMP as key, but check to see
2603 if the method is in the hashtable by looking at the IMP also.
2604 Also ... call the method after adding it to the hashtable rather
2605 than before ... thus preventing an obscure possibility of infinite
2606 recursion if a +load method itself loads a subclass.
2607
12e01066
OP
26082001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2609
2610 * init.c (__objc_send_message_in_list): When setting a new entry
2611 in __objc_load_methods use the method name as key, not the method
2612 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2613
10c179f3
JM
26142001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2615
2616 * objc-features.texi: Move to ../gcc/objc.texi.
2617 * fdl.texi: Remove.
2618 * Makefile.in: Don't generate documentation from
2619 objc-features.texi.
2620
bcecb0b0
MM
26212001-05-01 Mark Mitchell <mark@codesourcery.com>
2622
2623 * fdl.texi: New file.
2624 * objc-features.texi: Simplify.
2625 * Makefile.in: Adjust accordingly.
2626
c3aac512
MM
26272001-04-30 Mark Mitchell <mark@codesourcery.com>
2628
2629 * objc-features.texi: Use the GFDL.
2630
49073def
JW
2631Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2632
2633 * encoding.c (REAL_TYPE): Define.
2634
120d59bf
DE
26352001-03-19 David Edelsohn <edelsohn@gnu.org>
2636
2637 * encoding.c (TYPE_MODE): Define.
2638
b894530e
NP
26392001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2640
2641 * thr.c (objc_thread_add): New function.
2642 (objc_thread_remove): Ditto.
2643 * objc/thr.h: Declare them.
2644 * libobjc.def: Mention them.
2645
11014a3b
OP
26462001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2647
2648 * objc-features.texi: Document the @compatibility_alias compiler
2649 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2650
a79ffa5a
RO
2651Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2652
2653 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2654
7c6b0e92
GK
26552001-02-08 Geoffrey Keating <geoffk@redhat.com>
2656
2657 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2658 we're not interested in the result and they might fail.
2659 * configure: Regenerated.
2660
01d9cb8b
JM
26612001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2662
2663 * objc-features.texi: Use @email.
2664
0fc39d8a
JM
26652001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2666
2667 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2668 printf.
2669
919ee051
RE
26702000-01-11 Richard Earnshaw <rearnsha@arm.com>
2671
2672 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2673 determines the value dynamically.
2674
1104c18d
OP
2675Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2676
2677 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2678 libraries to provide a function that returns the real forwarding
2679 function. This can alleviate problems __builtin_apply() and
2680 friends have on various platforms. (Solution suggested by Helge
2681 Hess.)
42bac116 2682
1104c18d
OP
2683 * objc/objc-api.h: Define __objc_msg_forward.
2684
2685 * sendmsg.c: Define gen_rtx_REG.
2686
68c9c61a
RC
26872000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2688
42bac116 2689 * thr-rtems.c: New file. Stub to compile.
68c9c61a 2690
6d93bca4
AO
26912000-09-06 Alexandre Oliva <aoliva@redhat.com>
2692
2693 * configure: Rebuilt with new libtool.m4.
2694
9d10fcf9
OP
2695Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2696
2697 * configure.in: Create a config.h file. Check for <sched.h>.
2698 * configure: Regenerate.
2699
2700 * config.h.in: Check for <sched.h>.
2701
57119aa9
ZW
27022000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2703
2704 * configure: Regenerate after change to ../libtool.m4.
2705
b310e725
AS
27062000-08-14 Andreas Schwab <schwab@suse.de>
2707
2708 * objc-features.texi (Top): Move @menu at end of node.
2709
82fbe835
MH
27102000-08-11 Manfred Hollstein <manfredh@redhat.com>
2711
2712 * objc-features.texi: Move @node Top before @menu.
2713
b3dc253f
OP
2714Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2715
2716 * objc-features.texi: Documented the new -fconstant-string-class
2717 option.
2718
9bc3876e
OP
2719Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2720
2721 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2722 improve the Posix thread support for Objective-C.
2723
8cab40f7
ZW
27242000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2725
2726 * aclocal.m4: Replace copy of ../libtool.m4 with
2727 sinclude(../libtool.m4).
2728
c161c99b
NP
2729Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2730
42bac116 2731 * configure.in: Added libtool support; build shared libraries
c161c99b
NP
2732 if --enable-shared was passed on command line.
2733 * Makefile.in: Modified most compilation commands to use libtool.
2734 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2735 libtool distribution.
2736
9c14a607
OP
2737Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2738
2739 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2740 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2741 <rdb@cup.hp.com>).
2742
15794a95
L
27432000-05-12 H.J. Lu (hjl@gnu.org)
2744
2745 * Makefile.in (GTHREAD_FLAGS): New.
2746 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2747 (OBJC_THREAD_FILE): Changed to thr-objc.
2748
2749 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2750 Makefile.
2751 (OBJC_THREAD_FILE): Removed.
2752
2753 * thr-objc.c: New.
2754
8dd8d754
KG
27552000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2756
2757 * objc/hash.h: Include string.h.
2758
39b48e02
DE
27592000-04-15 David Edelsohn <edelsohn@gnu.org>
2760
2761 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2762
bcdb1106
JJ
27632000-04-12 Jakub Jelinek <jakub@redhat.com>
2764
2765 * Object.m (strlen): Provide prototype on all 64bit platforms,
2766 not only alpha.
2767 * sarray.c (memcpy): Likewise.
2768 * encoding.c (objc_layout_finish_structure): Don't use
2769 ROUND_TYPE_ALIGN on sparc.
2770
35f10998
JJ
2771 * encoding.c (objc_layout_structure_next_member): Do the whole
2772 procedure even for the first member, so that we get correct
2773 alignment.
2774
2e3120e8
ZW
27752000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2776
2777 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2778 comments.
2779
6fc605d8
ZW
27802000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2781
2782 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2783
224a6bca
CB
2784Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2785
2786 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2787
e36e6e02
JL
2788Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2789
2790 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2791 the compiler when building C code.
42bac116 2792
76632dd0
DJ
2793Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2794
2795 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2796 libdir, libsubdir and tooldir.
2797
6000b42b
JDA
2798Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2799
2800 * init.c (__objc_force_linking): Make global.
2801
6de94858
JL
2802Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2803
2804 * configure.in (AC_EXEEXT): Remove call.
2805 (compiler_name): Explicitly check with no extension and .exe
2806 extension.
2807 * configure: Regenerate.
2808
7af06410
MK
2809Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2810
2811 * Makefile.in (CC1OBJ): Define in terms of CC.
2812 (runtime-info.h): Use.
2813
09608fa2
OP
2814Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2815
2816 * objc-features.texi: Updated the URL to Boehm's GC page.
2817
56d654e4
OP
2818Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2819
2820 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2821 the char as being signed (patch from Daniel Jacobowitz
2822 <drow@false.org>).
2823
e33abc2d
MK
2824Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2825
2826 * configure.in (AC_PREREQ): Update to 2.13.
2827 (AC_EXEEXT): Call to find possible file extension.
2828 (compiler_name): Use.
2829 * configure: Regenerate.
2830
ab87f8c8
JL
2831Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2832
2833 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2834
79014e6f
JL
2835Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2836
2837 * configure.in (thread_file): Correct and simplify code to find
2838 the thread file.
2839 * configure: Rebuilt.
2840
71205e0b
MH
28411998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2842
2843 * configure.in (compiler_name): Add check to detect if this
2844 language's compiler has been built.
2845 * configure: Regenerate.
2846
223a8848
KG
2847Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2848
2849 * configure.in: Use AC_PREREQ(2.12.1).
2850
74285159
JL
2851Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2852
2853 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2854
84beab38
KG
2855Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2856
2857 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2858
8a829fd9
KG
2859Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2860
2861 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2862
befb6d14
OP
2863Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2864
2865 * objc-features.texi (Top): Changed the email address.
2866 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2867
2868Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2869
2870 * encoding.c: Redefine get_inner_array_type to get the first entry
42bac116 2871 in the structure.
befb6d14 2872
1df287f8
RFM
2873Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2874
2875 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2876 (objc_get_type_qualifiers): Similarly.
2877 * objc/encoding.h (_C_BYREF): Define.
2878 (_F_BYREF): Define.
2879
07181a20
DM
28801998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2881
2882 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2883 works out on 64-bit systems.
2884
5e2f657b
AO
2885Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2886
ceff9b14 2887 * Makefile.in (INCLUDES): Make it multilib-friendly.
5e2f657b 2888
4afb3646
L
2889Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2890
2891 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2892
4102f627
RL
2893Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2894 Jeffrey A Law (law@cygnus.com)
2895
2896 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2897 (FLAGS_TO_PASS): Added.
2898 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2899
2900 * archive.c: Change config.h to tconfig.h.
2901
2902 * configure.in: Find gcc's object directory even for multilibs.
2903
2904Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
5ae4c799
RL
2905
2906 * configure.in: Escape ^ in grep string.
2907 * configure: Rebuilt.
2908
789eb4f5
JL
2909Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2910
2911 * All .h files pushed down into the objc/ subdirectory.
2912 * Makefile.in (copy_headers): Corresponding changes.
2913 * configure.in (AC_INIT): Corresponding changes.
2914 * configure: Rebuilt.
2915
bce1b489
BE
29161998-09-30 Ben Elliston <bje@cygnus.com>
2917 Jeff Law <law@cygnus.com>
2918
2919 * Makefile.in: Rewrite.
2920
2921 * configure.in: Likewise.
2922
2923 * configure: Regenerate.
2924
2925 * All .c files. Remove "objc" prefix when including objc header
2926 files. Include tconfig.h, not ../tconfig.h.
2927
2e5f02a3
OP
2928Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2929
2930 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2931 (get_inner_array_type): Define.
2932
88e17b57
BE
29331998-09-21 Ben Elliston <bje@cygnus.com>
2934
2935 * New directory. Moved files from ../gcc/objc.