]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/ChangeLog
gcc/
[thirdparty/gcc.git] / libobjc / ChangeLog
CommitLineData
d2dc729f 12015-11-07 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2
3 PR libobjc/24775
4 * encoding.c (_darwin_rs6000_special_round_type_align): Use
5 __CHAR_BIT__ instead of BITS_PER_UNIT.
6 (objc_sizeof_type): Likewise.
7 (objc_layout_structure): Likewise.
8 (objc_layout_structure_next_member): Likewise.
9 (objc_layout_finish_structure): Likewise.
10 (objc_layout_structure_get_info): Likewise.
11
91495f56 122015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13
14 PR libobjc/24775
15 * encoding.c (objc_layout_finish_structure): Remove usage of
16 ROUND_TYPE_SIZE.
17
bffa598c 182015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19
20 PR libobjc/24775
21 * sendmsg.c (tm.h): Remove include.
22
928b9ffe 232015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24
25 PR libobjc/24775
26 * sendmsg.c (gen_rtx): Remove macro.
27 (gen_rtx_MEM): Likewise.
28 (gen_rtx_REG): Likewise.
29 (rtx): Likewise.
30
43554d4d 312015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32
33 PR libobjc/24775
34 * sendmsg.c: Remove check of STRUCT_VALUE macro.
35
177cc56c 362015-05-13 Eric Botcazou <ebotcazou@adacore.com>
37
38 * configure.ac: Remove manual SJLJ check.
39 * config.h.in: Regenerate.
40 * configure: Likewise.
41 * exception.c: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__.
42
4b761c93 432015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
44
45 * aclocal.m4: Regenerated with automake-1.11.6.
46
690b050a 472015-05-04 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
48
49 * configure: Regenerate.
50
22e2d477 512015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
52
53 * acinclude.m4: Include bitfields.m4.
54 * config.h.in: Regenerate.
55 * configure: Likewise.
56 * configure.ac: Invoke gt_BITFIELD_TYPE_MATTERS.
57 * encoding.c: Check HAVE_BITFIELD_TYPE_MATTERS.
58
7e05d686 592015-04-29 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
60
61 * encoding.c (objc_layout_structure_next_member): Check the value of
62 PCC_BITFIELD_TYPE_MATTERS not if it is defined.
63
dc5f9397 642015-02-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
65
66 PR libobjc/63765
67 * thr.c (_XOPEN_SOURCE): Remove.
68
b50cc03a 692015-01-27 Matthias Klose <doko@ubuntu.com>
70
71 * sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp.
72
b0954f40 732015-01-09 Dimitris Papavasiliou <dpapavas@gmail.com>
74
c96abc71 75 PR libobjc/51891
b0954f40 76 * ivars.c: Add a check for classes without instance
77 variables, which have a NULL ivar list pointer.
78
d353bf18 792015-01-05 Jakub Jelinek <jakub@redhat.com>
80
81 Update copyright years.
82
4e8a08d4 832014-11-21 H.J. Lu <hongjiu.lu@intel.com>
84
85 PR bootstrap/63784
86 * configure: Regenerated.
87
7c407808 882014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
89
90 PR target/63610
91 * configure: Regenerate.
92
08344fc7 932014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
94
95 * thr.c (_XOPEN_SOURCE): Define as 600.
96
699e79f7 972014-07-27 Alan Modra <amodra@gmail.com>
98 Matthias Klose <doko@ubuntu.com>
99
100 PR libobjc/61920
101
102 * encoding.c: Define rs6000_special_adjust_field_align_p.
103
0499d147 1042014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
105
106 Update copyright years
107
9613c003 1082013-09-20 Alan Modra <amodra@gmail.com>
109
110 * configure: Regenerate.
111
dd695653 1122013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
113
114 * class.c: Fix typos.
115 * encoding.c: Likewise.
116 * init.c: Likewise.
117 * objc-private/runtime.h: Likewise.
118 * objc/runtime.h: Likewise.
119 * objc-sync.c: Likewise.
120
36d0274d 1212013-07-04 Kai Tietz <ktietz@redhat.com>
122
123 * exception.c: Add check for SjLj to SEH blocks.
124
03a3582c 1252013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
126
127 Update copyright years.
128
4df09c64 1292012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
130
131 * encoding.c (TARGET_VSX): Provide definitions based on the
132 current compilation options, and not based off the target options
133 structure.
134 (TARGET_ALTIVEC): Likewise.
135 (TARGET_64BIT): Likewise.
136
4c271360 1372012-09-14 David Edelsohn <dje.gcc@gmail.com>
138
139 * configure: Regenerated.
140
8ad0b530 1412012-07-19 Tristan Gingold <gingold@adacore.com>
142 Richard Henderson <rth@redhat.com>
143
144 * exception.c (__gnu_objc_personality_seh0): New function.
145
b4b3bbba 1462012-05-16 H.J. Lu <hongjiu.lu@intel.com>
147
148 * configure: Regenerated.
149
126b6848 1502012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
151
152 * configure.ac (enable_objc_gc): Remove alpha*-dec-osf* handling.
153 * configure: Regenerate.
154
155 * thr.c (_XOPEN_SOURCE): Define unconditionally.
156
30369aff 1572011-11-21 Andreas Tobler <andreast@fgznet.ch>
158
159 * configure: Regenerate.
160
630d52ca 1612011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
162
163 * Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
164 * configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
165 * configure: Regenerate.
166 * config.h.in: Regenerate.
167
aabf03a2 1682011-10-17 Paul Brook <paul@codesourcery.com>
169 Matthias Klose <doko@ubuntu.com>
170
171 * exception.c (parse_lsda_header): hardcode ttype_encoding for older
172 ARM EABI toolchains.
173 (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
174
7859870c 1752011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
176
177 PR libobjc/49883
178 * init.c (__objc_exec_class): Work around a bug in clang's code
179 generation. Clang sets the class->info field to values different
180 from 0x1 or 0x2 (the only allowed values in the traditional GNU
181 Objective-C runtime ABI) to store some additional information, but
182 this breaks backwards compatibility. Wipe out all the bits in the
183 fields other than the first two upon loading a class.
184
1852011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
8ad0b530 186
7859870c 187 * class.c (objc_lookup_class): Added back for compatibility with
188 clang which seems to emit calls to it.
189
4b8d9456 1902011-10-08 Richard Frith-Macdonald <rfm@gnu.org>
191 Nicola Pero <nicola.pero@meta-innovation.com>
192
193 PR libobjc/50428
194 * sendmsg.c (__objc_send_initialize): If a class does not have an
195 +initialize method, search for an +initialize method in the
196 superclass and in the ancestor classes and execute the first one
197 that is found. This makes the GNU runtime behave in the same way
198 as the Apple/NeXT runtime with respect to +initialize methods and
199 subclassing.
200
1db7b8a8 2012011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
202
203 PR libobjc/50002
204 * class.c (__objc_update_classes_with_methods): Iterate over meta
205 classes as well as normal classes when refreshing the method
206 implementations. This fixes replacing class methods.
207
2082011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
209
210 * class.c (class_getSuperclass): Fixed to work with meta classes
211 still in construction too.
212
63bb154b 2132011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
214
215 * class.c (class_getSuperclass): Fixed typo in comment.
216
5a290437 2172011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
218
219 PR libobjc/49882
220 * class.c (class_getSuperclass): Return the superclass if the
221 class is in construction.
222 * objc/runtime.h (class_getSuperclass): Updated documentation.
223
e59be7e3 2242011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
225
226 * Makefile.in (INCLUDES): Search
227 $(srcdir)/$(MULTISRCTOP)../libgcc.
228
068d3ea7 2292011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
230
231 * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
232
e258c955 2332011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
234
235 * configure.ac (VERSION): Bumped to 4:0:0.
236 * configure (VERSION): Likewise.
237
09b10428 2382011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
239
240 * objc/README: Updated.
241 * objc-private/selector.h: Updated comments.
242
83029982 2432011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
244
245 * sendmsg.c (class_get_instance_method): Removed.
246 (class_get_class_method): Removed.
247 (objc_get_uninstalled_dtable): Removed.
248
48cb6324 2492011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
250
251 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
252 * objects.c (class_create_instance): Removed.
253 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
254 * gc.c (__objc_generate_gc_type_description): Use
255 class_getInstanceSize() instead of class_get_instance_size().
256 * selector.c (sel_types_match): Made static.
257 (sel_get_typed_uid): Removed.
258 (sel_get_any_typed_uid): Removed.
259 (sel_get_name): Removed.
260 (sel_get_type): Removed.
261 (sel_register_name): Removed.
262 (sel_register_typed_name): Removed.
263 (sel_get_uid): Removed.
264
4173faf5 2652011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
266
267 * encoding.c (method_get_number_of_arguments): Removed.
268 (method_get_sizeof_arguments): Removed.
269
3930fde0 2702011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
271
272 * class.c (objc_next_class): Removed.
273 (class_pose_as): Removed.
274 (CLASSOF): Removed.
275 (class_table_replace): Removed.
276 (objc_lookup_class): Removed.
277
72c46466 2782011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
279
280 Removed the Traditional Objective-C runtime public API.
281 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
282 (install-headers): Do not create the objc/deprecated directory and
283 do not install the deprecated headers.
284 (OBJC_H): Removed encoding.h and objc-api.h.
285 * Object.m: Removed all methods with the exception of -class and
286 -isEqual:. Updated includes. ([-class]): Use Modern API.
287 * objc/Object.h: Do not include deprecated/Object.h.
288 * objc/deprecated/Object.h: Removed.
289 * linking.m (__objc_linking): Call [Object class] instead of
290 [Object name].
291 * Protocol.m: Removed all methods with the exception of -isEqual:.
292 Updated includes.
293 * objc/Protocol.h: Do not include deprecated/Protocol.h.
294 * objc/deprecated/Protocol.h: Removed.
295 * objc/deprecated/struct_objc_symtab.h: Removed.
296 * objc/deprecated/struct_objc_module.h: Removed.
297 * objc/deprecated/struct_objc_ivar.h: Removed.
298 * objc/deprecated/struct_objc_ivar_list.h: Removed.
299 * objc/deprecated/struct_objc_method.h: Removed.
300 * objc/deprecated/struct_objc_method_list.h: Removed.
301 * objc/deprecated/struct_objc_protocol_list.h: Removed.
302 * objc/deprecated/struct_objc_category.h: Removed.
303 * objc/deprecated/MetaClass.h: Removed.
304 * objc/deprecated/objc_msg_sendv.h: Removed.
305 * objc/deprecated/README: Removed.
306 * objc/deprecated/struct_objc_class.h: Removed.
307 * objc/deprecated/struct_objc_protocol.h: Removed.
308 * objc/deprecated/struct_objc_selector.h: Removed.
309 * objc/encoding.h: Removed.
310 * objc/message.h (struct objc_super): Removed the definition for
311 the Traditional Objective-C runtime API.
312 * objc/objc.h: Do not include objc/objc-decls.h.
313 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
314 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
315 and deprecated/objc_msg_sendv.h. Uncommented new definition of
316 Protocol *.
317 * objc/objc-api.h: Removed.
318 * objc/runtime.h: Updated comments. Removed check to detect
319 concurrent usage of Traditional and Modern APIs.
320 * objc-private/module-abi-8.h: Always define struct objc_class and
321 struct objc_protocol. (struct objc_protocol_list): Changed type
322 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
323 (class_get_instance_size): Added.
324 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
325 'struct objc_protocol *' as argument, not a 'Protocol *'.
326 * objc-private/runtime.h: Updated comments.
327 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
328 * class.c: Include objc-private/selector.h.
329 (objc_get_meta_class): Return a Class instead of a MetaClass.
330 * encoding.c (method_get_next_argument): Removed.
331 (method_get_first_argument): Removed.
332 (method_get_nth_argument): Removed.
333 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
334 Include objc-private/module-abi-8.h and ctype.h.
335 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
336 objc_protocl *' as argument, not a 'Protocol *'.
337 (class_addProtocol): Added casts to 'struct objc_protocol *' and
338 'Protocol *'.
339 (class_copyProtocolList): Likewise.
340 (protocol_conformsToProtocol): Likewise.
341 (protocol_copyProtocolList): Likewise.
342 * sarray.c: Include objc-private/module-abi-8.h.
343 * sendmsg.c (method_get_next_argument): Removed.
344 (method_get_first_argument): Removed.
345 (method_get_nth_argument): Removed.
346 (objc_msg_sendv): Removed.
347 (arglist_t, retval_t): New. (class_get_class_method): Take a
348 'Class', not 'MetaClass', argument.
349 * thr.c: Include module-abi-8.h.
350
30d84604 3512011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
352
353 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
354 and objc_get_uninstalled_dtable.h.
355 * objc/deprecated/struct_objc_static_instances.h: Removed.
356 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
357 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
358 and deprecated/objc_get_uninstalled_dtable.h.
359
0bc380eb 3602011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
361
362 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
363 * objc/deprecated/objc_object_alloc.h: Removed.
364 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
365 * objects.c (_objc_object_alloc, _objc_object_dispose,
366 _objc_object_copy): Removed.
367 * libobjc.def (__objc_object_alloc, __objc_object_copy,
368 __objc_object_dispose): Removed.
369
02f2bf61 3702011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
371
372 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
373 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
374 * objc/deprecated/METHOD_NULL.h: Removed.
375
c0eeb2f4 3762011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
377
378 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
379 objc_malloc.h and objc_unexpected_exception.h.
380 (exception.lo): Do not use -Wno-deprecated-declarations.
381 (exception_gc.lo): Likewise.
382 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
383 deprecated/objc_malloc.h and
384 deprecated/objc_unexpected_exception.h.
385 * objc/deprecated/objc_valloc.h: Removed.
386 * objc/deprecated/objc_malloc.h: Removed.
387 * objc/deprecated/objc_unexpected_exception.h: Removed.
388 * exception.c (_objc_unexpected_exception): Removed.
389 (objc_exception_throw): Do not check for
390 _objc_unexpected_exception.
391 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
392 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
393 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
394
3ddc2a17 3952011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
396
397 * objc/objc.h: Do not include deprecated/STR.h.
398 * objc/deprecated/STR.h: Removed.
399 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
400
0fbd2a47 4012011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
402
403 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
404 (OBJC_DEPRECATED_H): Likewise.
405 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
406 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
407 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
408 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
409 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
410 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
411 * objc/sarray.h: Removed.
412 * objc/hash.h: Removed.
413 * objc/deprecated/sarray.h: Removed.
414 * objc/deprecated/hash.h: Removed.
415 * objc/Object.h: Do not include objc/deprecated/hash.h
416 * Object.m: Include string.h.
417 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
418 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
419 Removed.
420
75ecb4c3 4212011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
422
423 * Object.m ([-forward::]): Removed.
424 * objc/deprecated/Object.h ([-forward::]): Removed.
425 * sendmsg.c (__objc_forward): Updated comments.
426
7e5e6ad2 4272011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
428
429 * Makefile.in (OBJC_H): Removed objc-list.h.
430 (OBJC_DEPRECATED_H): Removed objc-list.h.
431 * objc/objc-list.h: File removed.
432 * objc/deprecated/objc-list.h: File removed.
433
efbf3353 4342011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
435
436 * Makefile.in (OBJC_H): Removed typedstream.h.
437 (OBJC_DEPRECATED_H): Removed typedstream.h.
438 (C_SOURCE_FILES): Removed archive.c.
439 (Object.lo): Rule removed.
440 (Object_gc.lo): Likewise.
441 (archive.lo): Likewise.
442 (archive_gc.lo): Likewise.
443 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
444 [-awake]): Removed.
445 Do not include deprecated/typedstream.h.
446 * Object.m: Removed the same methods.
447 * archive.c: File removed.
448 * objc/typedstream.h: File removed.
449 * objc/deprecated/typedstream.h: File removed.
450 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
451 __objc_write_class, __objc_write_object, __objc_write_selector,
452 objc_close_typed_stream, objc_end_of_typed_stream,
453 objc_flush_typed_stream, objc_get_stream_class_version,
454 objc_open_typed_stream, objc_open_typed_stream_for_file,
455 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
456 objc_read_object, objc_read_selector, objc_read_short,
457 objc_read_string, objc_read_type, objc_read_types,
458 objc_read_unsigned_char, objc_read_unsigned_int,
459 objc_read_unsigned_long, objc_read_unsigned_short,
460 objc_write_array, objc_write_char, objc_write_int,
461 objc_write_long, objc_write_object, objc_write_object_reference,
462 objc_write_root_object, objc_write_selector, objc_write_short,
463 objc_write_string, objc_write_string_atomic, objc_write_type,
464 objc_write_types, objc_write_unsigned_char,
465 objc_write_unsigned_int, objc_write_unsigned_long,
466 objc_write_unsigned_short): Removed.
467
e5c9f585 4682011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
469
470 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
471 * objc/deprecated/objc_error.h: Removed.
472 * objc/objc-api.h: Do not include deprecated/objc_error.h.
473 * libobjc.def (objc_error, objc_verror): Removed.
474 * error.c (_objc_error_handler, objc_error, objc_verror,
475 objc_set_error_handler): Removed.
476 * Object.m ([-error:], [-perform:], [-perform:with:],
477 [-perform:with:with], [-subclassResponsibility:],
478 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
479 Removed.
480 * objc/deprecated/Object.h: Removed the same methods.
481 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
482 method after trying to invoke the "doesNotRecognize:" method.
483
0d036b64 4842011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
485
486 * sendmsg.c: Reindented part of the file. No non-trivial changes
487 in code.
488
72042d37 4892011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
490
491 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
90a407a2 492 not objc_lookup_class.
72042d37 493
96294fe7 4942011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
495 David Ayers <ayers@fsfe.org>
496
6557b8b8 497 PR libobjc/38307
96294fe7 498 * sendmsg.c: Include objc/hash.h.
499 (get_implementation): New function, mostly with code from get_imp
500 updated to support the new +initialize dispatch table logic.
501 (get_imp): Use get_implementation.
502 (__objc_responds_to): Updated to support the new +initialize
503 dispatch table logic.
504 (class_respondsToSelector): Likewise.
505 (objc_msg_lookup): Use get_implementation.
506 (__objc_init_install_dtable): Removed.
507 (__objc_install_methods_in_dtable): Updated arguments.
508 (__objc_install_dispatch_table_for_class): Renamed to
509 __objc_install_dtable_for_class and updated to support the new
510 +initialize dispatch table logic.
511 (__objc_update_dispatch_table_for_class): Updated to support the
512 new +initialize dispatch table logic.
513 (__objc_forward): Call get_implementation instead of get_imp.
514 (prepared_dtable_table): New.
515 (__objc_prepare_dtable_for_class): New.
516 (__objc_prepared_dtable_for_class): New.
517 (__objc_get_prepared_imp): New.
518 (__objc_install_prepared_dtable_for_class): New.
519
d6f9ac12 5202011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
521
522 PR libobjc/48177
523 * selector.c (__sel_register_typed_name): Use sel_types_match()
524 instead of strcmp() to compare selector types (Suggestion by
525 Richard Frith-Macdonald <rfm@gnu.org>).
526
fc367e10 5272011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
528
529 PR libobjc/32037
530 * Makefile.in (OBJC_GCFLAGS): Move ...
531 * configure.ac (enable_objc_gc): ... here.
532 Add $(libsuffix) to OBJC_BOEHM_GC.
533 * configure: Regenerate.
534
9b971ff8 5352011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
536
537 * selector.c (sel_getTypedSelector): Return NULL if there are
538 multiple selectors with conflicting types.
539 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
540
27969db4 5412011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
542
543 PR libobjc/47922
544 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
545 a hardcoded "!".
546
4b20b68c 5472011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
548
549 * configure: Regenerate.
550
6e4aa40c 5512010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
552
553 * init.c (create_tree_of_subclasses_inherited_from): Use
554 class_superclass_of_class instead of assuming a class is
555 unresolved when it could be resolved. Tidied up assignment and
556 check.
557 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
558 (objc_tree_insert_class): Tidied up loop; return immediately upon
559 inserting a class.
560 (__objc_exec_class): Do not set __objc_class_tree_list.
561
53f87f10 5622010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
563
564 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
565 argument.
566 (sel_registerTypedName): Same.
567 (sel_registerName): Same.
568 * objc/runtime.h: Updated documentation.
569
f3031d35 5702010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
571
572 * objc/runtime.h (class_addIvar): Updated documentation. The
573 alignment is actually the log_2 of the alignment in bytes.
574 * ivars.c (class_addIvar): Corresponding change to the
575 implementation.
576
2461b033 5772010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
578
579 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
580 be consistent with method_getTypeEncoding and
581 ivar_getTypeEncoding.
582 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
583 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
584 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
585 (sel_get_type): Updated call to sel_getType.
586
f2187fb0 5872010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
588
589 * objc/runtime.h (class_conformsToProtocol,
590 class_copyProtocolList): Updated documentation.
591
cf2330b9 5922010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
593
594 * init.c (create_tree_of_subclasses_inherited_from): Updated
595 DEBUG_PRINTF messages.
596 (__objc_tree_insert_class): Same.
597 (__objc_send_load_using_method_list): Same.
598 (__objc_send_load): Same.
599 (__objc_exec_class): Same. In particular, do not print the module
600 name since it is no longer used.
601 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
602 tracking +initialize calls.
603 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
604 tracking updates of dispatch tables.
605 (__objc_install_dispatch_table_for_class): Same.
606
6bd88b86 6072010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
608
609 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
610 (libobjc_gc$(libsuffix).la): Likewise.
611
d99173cc 6122010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
613
614 * sendmsg.c (class_addMethod): Return NO if the method already
615 exists in the class.
616
e6ecf5f4 6172010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
618
619 * init.c (duplicate_classes): New.
620 (__objc_exec_class): Initialize duplicate_classes.
621 (__objc_create_classes_tree): Ignore classes in the
622 duplicate_classes table.
623 (__objc_call_load_callback): Same.
624 (__objc_init_class): If a duplicate class is found, add it to
625 duplicate_classes instead of aborting. Return YES if the class is
626 not a duplicate, and NO if it is.
627 * objc-private/runtime.h (__objc_init_class): Updated prototype.
628
ec7829f5 6292010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
630
631 * objc-private/objc-list.h: Reindented file. No code changes.
632 * objc-private/sarray.h: Same change.
633
3c691bc0 6342010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
635
636 * objc-private/accessors.h: Removed 'extern "C"' guards. This
637 file is never compiled with C++.
638 * objc-private/hash.h: Same change.
639 * objc-private/objc-list.h: Same change.
640 * objc-private/objc-sync.h: Same change.
641 * objc-private/protocols.h: Same change.
642 * objc-private/runtime.h: Same change.
643 * objc-private/sarray.h: Same change.
644 * objc-private/selector.h: Same change.
645
84297d8d 6462010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
647
7d026d14 648 PR libobjc/18764
649 * class.c (__objc_add_class_to_hash): Return YES if the class was
650 added, and NO if it already existed.
651 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
652 NO, then abort the program with an error message.
653 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
654 declaration.
655
6562010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
657
84297d8d 658 * init.c (_objc_load_callback): Initialize with 0.
659 (__objc_call_callback): Renamed to __objc_call_load_callback.
660 Check _objc_load_callback only once, and if it is not set, return
661 immediately.
662 (objc_send_load): Updated call to __objc_call_callback.
663
b3e841a5 6642010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
665
666 PR libobjc/16110
667 * init.c (__objc_send_message_in_list): Renamed to
668 __objc_send_load_using_method_list. Do not take an 'op' argument.
669 Register the 'load' selector if needed.
670 (__objc_send_load): Do not register the 'load' selector. Updated
671 call to __objc_send_message_in_list.
672 (__objc_create_classes_tree): Add the class of any claimed
673 category that was loaded in the module to the list of classes for
674 which we try to execute +load.
675
e6c582ed 6762010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
677
678 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
679 Updated comments.
680 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
681 a pointer using DEBUG_PRINTF.
682
c5206242 6832010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
684
685 PR libobjc/45953
686 * selector.c (__sel_register_typed_name): When registering a new
687 selector with the same name as an existing one, reuse the existing
688 name string. Also updated types, casts and comments in the whole
689 function.
690
33f86c6f 6912010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
692
693 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
694 to be 'struct objc_selector *' and not 'SEL'.
695 * init.c (__objc_exec_class): Call
696 __objc_register_selectors_from_module instead of iterating over
697 each selector and calling __sel_register_typed_name for each.
698 * objc-private/selector.h: Declare
699 __objc_register_selectors_from_module instead of
700 __sel_register_typed_name.
701 * selector.c (__objc_register_selectors_from_module): New.
702 (__sel_register_typed_name): Made static.
703
86655cbf 7042010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
705
706 * linking.m: Do not include objc/NXConstStr.h.
707
d7195a65 7082010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
709
710 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
711 * objc-private/common.h (DEBUG_PRINTF): To here.
712 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
713
5fe0cb1f 7142010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
715
716 * hash.c: Tidied up comments and indentation. No code changes.
717
e4f8268d 7182010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
719
720 PR libobjc/47012
721 * accessors.m (objc_getProperty): If not atomic, do not
bd37b63d 722 retain/autorelease the returned value.
e4f8268d 723
4fb8ab65 7242010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
725
726 * objc-private/runtime.h (__objc_selector_max_index,
727 __objc_init_selector_tables, __objc_register_selectors_from_class,
728 __objc_register_selectors_from_list,
729 __objc_register_selectors_from_description_list): Moved to ...
730 * objc-private/selector.h: ... here.
731
a9a64eb7 7322010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
733
734 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
735 (__objc_print_dtable_stats): Removed.
736 (__sel_register_typed_name): Removed.
737 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
738
57a78cde 7392010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
740
741 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
742 if appropriate, after loading the module.
743
cda97470 7442010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
745
746 * sendmsg.c (method_setImplementation): Do not declare.
747
658baf2a 7482010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
749
750 * objc/message.h: Updated comments.
751 * objc/runtime.h: Updated comments.
752
0463af0e 7532010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
754
755 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
756 * protocols.c: Updated all calls to objc_lookupClass to call
757 objc_lookUpClass instead.
758 * sendmsg.c (objc_lookupClass): Do not declare.
759 (get_imp): Update call to objc_lookupClass to call
760 objc_lookUpClass instead.
761 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
762
dd8d3729 7632010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
764
765 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
766 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
767 define. Updated comments.
768
bb681846 7692010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
770
771 * objc/encoding.h: Updated comments.
772 * objc/runtime.h: Updated comments.
773 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
774 (objc_sizeof_type): Same.
775 (objc_alignof_type): Same.
776 (objc_aligned_size): Same.
777 (objc_promoted_size): Same.
778 (objc_skip_type_qualifiers): Same.
779 (objc_skip_typespec): Same.
780 (objc_skip_offset): Same.
781 (objc_skip_argspec): Same.
782 (objc_get_type_qualifiers): Same.
783 (objc_layout_structure): Same.
784 (objc_layout_structure_next_member): Same.
785 (objc_layout_finish_structure): Same.
786 (objc_layout_structure_get_info): Same.
787
b45af7b2 7882010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
789
790 * init.c: Updated comments.
791 * objc/objc-api.h: Updated comments.
792 * objc/runtime.h (_objc_load_callback): Declare.
793
30d9a28f 7942010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
795
796 * objc/Object.h: Include deprecated/typedstream.h and
797 deprecated/hash.h instead of typedstream.h. Updated comments.
798
69cfe70f 7992010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
800
801 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
802 * objc/deprecated/objc_msg_sendv.h: New.
803 * objc/message.h: Do not define retval_t, apply_t, arglist,
804 arglist_t, objc_msg_sendv, now in
805 objc/deprecated/objc_msg_sendv.h.
806 * objc/objc.h: Do not include message.h; include
807 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
808 * sendmsg.c: Include objc/message.h.
809 * thr.c: Include objc/message.h.
810
aad58106 8112010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
812
813 * objc/objc-exception.h: Include objc-decls.h. Mark all
814 functions with objc_EXPORT.
815 * objc/objc-sync.h: Same change.
816
a56f5e19 8172010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
818
819 * Protocol.m: Moved all methods, with the exception of -isEqual:,
820 into the 'Deprecated' category.
821 * objc/Protocol.h: Removed all methods, moved to
822 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
823 * objc/deprecated/Protocol.h: New.
824 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
825
46cb54ad 8262010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
827
828 * init.c: Include objc-private/selector.h. Do not declare
829 __sel_register_typed_name.
830 * objc-private/selector.h (__sel_register_typed_name): Declare.
831 * selector.c: Include objc-private/selector.h.
832
2f8eaca5 8332010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
834
835 * class.c: Tidied up comments and indentation. No code changes.
836 * error.c: Same.
837 * exception.c: Same.
838 * init.c: Same.
839 * ivars.c: Same.
840 * memory.c: Same.
841 * objc-foreach.c: Same.
842 * objc-sync.c: Same.
843 * objects.c: Same.
844 * protocols.c: Same.
845 * sarray.c: Same.
846 * thr.c: Same.
847
c720b61e 8482010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
849
850 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
851 instead of objc/objc-api.h.
852 (init_check_module_version): Take a 'struct objc_module *'
853 argument instead of 'Module_t'. Use 'struct objc_module *'
854 instead of 'Module_t'.
855 (__objc_created_classes_tree): Take a 'struct objc_module *'
856 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
857 of 'Symtab_t'.
858 (__objc_call_callback): Take a 'struct objc_module *' argument
859 instead of 'Module_t'; use 'struct objc_symtab *' instead of
860 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
861 (_objc_load_callback): Take a 'struct objc_category *' argument
862 instead of 'Category *'.
863 (class_superclass_of_class): Use objc_getClass() instead of
864 objc_lookup_class().
865 (create_tree_of_subclasses_inherited_from): Same change (also, use
866 an explicit 'if' instead of '?').
867 (objc_init_statics): Same change.
868 (objc_send_load): Same change.
869 (__objc_init_protocol): same change.
870 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
871 argument instead of 'MethodList_t'. Use 'struct objc_method *'
872 instead of 'Method_t'.
873 (__objc_send_load): Use 'struct objc_method_list *' instead of
874 'MethodList_t'. Use sel_registerName() instead of
875 sel_register_name().
876 (__objc_exec_class): Take a 'struct objc_module *' argument
877 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
878 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
879 Use 'struct objc_category *' instead of 'Category_t'.
880
e270313e 8812010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
882
883 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
884 Include objc-private/module-abi-8.h and objc-private/selector.h
885 instead of objc/encoding.h.
886 (objc_msg_lookup_super): Use super->super_class instead of
887 super->class.
888 (method_get_first_argument, method_get_next_argument): Declare
889 locally.
890 (class_get_instance_method): Declare before using.
891 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
892 (__objc_init_dispatch_tables, __objc_send_initialize): Use
893 sel_registerName() instead of sel_register_name().
894 (__objc_forward): Use sel_getName() instead of sel_get_name().
895 (objc_get_uninstalled_dtable): Use 'void' as argument.
896 * objc-private/selector.h: New.
897
47910304 8982010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
899
900 * objc/message.h (objc_super): When using the modern API, do not
901 define Super and Super_t, and always use 'super_class' for the
902 super class field.
903 (objc_msg_lookup_super): Updated prototype to use 'struct
904 objc_super *' instead of 'Super_t'.
905 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
906 'struct objc_super *' instead of 'Super_t'.
907
c1a81aec 9082010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
909
910 * objc/message.h: Update comments, reindented code and moved
911 deprecated types and functions at the end of the file. No code
912 changes.
913
75f3d126 9142010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
915
916 * ivars.c (class_addIvar): Use the 'size' argument instead of
917 trying to calculate it using objc_sizeof_type().
918 * objc/runtime.h (class_addIvar): Updated comments.
919
93cb5856 9202010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
921
922 * sendmsg.c: Reindented some code and tidied up comments. No
923 actual code changes.
924
b78e4074 9252010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
926
927 * objc/Object.h: Moved all the methods, with the exception of
928 -class and -isEqual:, into ...
929 * objc/deprecated/Object.h: here.
930 * Object.m: Moved all the methods, with the exception of -class
931 and -isEqual: into the 'Deprecated' category.
932
b3241216 9332010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
934
935 * objects.c (object_copy): Do not #undef as we are no longer
936 including objc/objc-api.h.
937 * selector.c: Include objc/runtime.h and
938 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
939 objc/encoding.h. Updated
940 (__objc_register_selectors_from_class): Use struct
941 objc_method_list * instead of MethodList_t.
942 (__objc_register_selectors_from_list): Use Method instead of
943 Method_t.
944 (struct objc_method_description_list): Do not define here.
945 (__objc_register_instance_methods_to_class): Use struct
946 objc_method_list * instead of MethodList_t and Method instead of
947 Method_t.
948
8079e670 9492010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
950
951 * selector.c: Reindented some code and tidied up comments. No
952 actual code changes.
953
66fc42b7 9542010-12-13 Iain Sandoe <iains@gcc.gnu.org>
955
956 * encoding.c (_darwin_rs6000_special_round_type_align): New.
957 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
958
101978ac 9592010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
960
961 * sendmsg.c (selector_resolveClassMethod): New.
962 (selector_resolveInstanceMethod): New.
963 (__objc_resolve_class_method): New.
964 (__objc_resolve_instance_method): New.
965 (get_imp): Call __objc_resolve_class_method or
966 __objc_resolve_instance_method at the appropriate time.
967 (objc_msg_lookup): Same.
968 (class_getClassMethod): Same.
969 (class_getInstanceMethod): Same.
970 (__objc_init_dispatch_tables): Initialize
971 selector_resolveClassMethod and selector_resolveInstanceMethod.
972 * objc/runtime.h: Updated documentation of class_getClassMethod,
973 class_getInstanceMethod and class_getMethodImplementation.
974
609b9937 9752010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
976
977 * objc-private/module-abi-8.h (struct objc_symtab): Updated
978 description of sel_ref_cnt and refs.
979 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
980
8c35d268 9812010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
982
983 PR target/40125
984 PR lto/46695
985 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
986 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
987 * aclocal.m4: Regenerate.
988 * configure: Regenerate.
989
5ca19477 9902010-12-03 Matthias Klose <doko@ubuntu.com>
991
992 * configure.ac (VERSION): Bump the version to 3:0:0.
993 * configure: Regenerate.
994
3a247cc4 9952010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
996
997 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
998 pass nil as the receiver since we don't know the receiver at this
999 point.
1000
07ee25f6 10012010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
1002
1003 * ivars.c: Include stdlib.h.
1004 * protocols.c: Same change.
1005
8438c249 10062010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
1007
1008 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
1009 * accessors.m: New.
1010 * init.c: Include objc-private/accessors.h.
1011 (__objc_exec_class): Call __objc_accessors_init.
1012 * objc-private/accessors.h: New.
1013
116d575b 10142010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1015
1016 * objc/message.h: Moved initial includes outside of extern "C".
1017 * objc/runtime.h: Add extern "C" for Objective-C++.
1018
8e03fb20 10192010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1020
1021 * init.c (objc_send_load): Do not wait for NXConstantString to be
1022 registered before executing +load. There is no point if
1023 -fconstant-string-class=xxx is used when compiling all modules,
1024 as is the case for almost all users.
1025 * linking.m (__objc_linking): Do not try to forcefully link in
1026 NXConstantString.
116d575b 1027
0e0a5cbd 10282010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1029
1030 * objc/runtime.h: Updated comments.
1031 (class_addMethod): New.
1032 (class_addIvar): New.
1033 (class_replaceMethod): New.
1034 (objc_allocateClassPair): New.
1035 (objc_registerClassPair): New.
1036 (objc_disposeClassPair): New.
1037 * class.c (objc_allocateClassPair): New.
1038 (objc_registerClassPair): New.
1039 (objc_disposeClassPair): New.
1040 (class_getSuperclass): Return Nil if a class is in construction.
1041 * init.c (__objc_exec_class): Call __objc_init_class.
1042 (__objc_init_class): New.
1043 * ivars.c (class_copyIvarList): Return NULL if class is in
1044 construction. Do not lock the runtime mutex.
1045 (class_getInstanceVariable): Return NULL if class is in
1046 construction. Do not lock the runtime mutex.
1047 (class_addIvar): New.
1048 * sendmsg.c (class_addMethod): New.
1049 (class_replaceMethod): New.
1050 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
1051 (_CLS_IN_CONSTRUCTION): New.
1052 (CLS_IS_IN_CONSTRUCTION): New.
1053 (CLS_SET_IN_CONSTRUCTION): New.
1054 (CLS_SET_NOT_IN_CONSTRUCTION): New.
1055 * objc-private/runtime.h (__objc_init_class): New.
1056
63edd479 10572010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1058
1059 * class.c (class_getSuperclass): Call __objc_resolve_class_links
1060 if the class is not resolved yet.
1061 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
1062
68811112 10632010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1064
1065 * objc/runtime.h (class_getIvarLayout): New.
1066 (class_getWeakIvarLayout): New.
1067 (class_setIvarLayout): New.
1068 (class_setWeakIvarLayout): New.
1069 * ivars.c (class_getIvarLayout): New.
1070 (class_getWeakIvarLayout): New.
1071 (class_setIvarLayout): New.
1072 (class_setWeakIvarLayout): New.
1073
ad337f1d 10742010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1075
1076 * objc/runtime.h (class_copyPropertyList): New.
1077 (class_getProperty): New.
1078 (property_getAttributes): New.
1079 (property_getName): New.
1080 * ivars.c (class_copyPropertyList): New.
1081 (class_getProperty): New.
1082 (property_getAttributes): New.
1083 (property_getName): New.
1084
cd9fd8f4 10852010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1086
1087 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
1088 * class.c (__objc_update_classes_with_methods): New.
1089 (objc_getClassList): Do not lock the class lock.
1090 * methods.c (method_exchangeImplementations): New.
1091 (method_setImplementation): New.
1092 * objc/runtime.h (method_setImplementation): New.
1093 (method_exchangeImplementations): New.
1094
8612dc73 10952010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1096
1097 * Protocol.m: Include objc/runtime.h and
1098 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
1099 repeat Protocol's instance variables.
1100 (struct objc_method_description_list): Do not define here.
1101 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
1102 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
1103 selectors directly instead of getting names and then using strcmp.
1104 ([descriptionForClassMethod:]): Same change.
1105 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
1106 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
1107 to compare selectors directly instead of getting names and then
1108 using strcmp.
1109 * objc/Protocol.h: Updated comments.
1110
3f47b787 11112010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1e13b876 1112
1113 * init.c (__objc_init_protocol): New function which fixes up a
1114 protocol's class pointer, registers it with the runtime, register
1115 all protocol selectors and registers associated protocols too.
1116 (objc_init_statics): Detect if we are initializing protocols, and
1117 if so, use __objc_init_protocol instead of only fixing up the
1118 class pointer.
1119 (__objc_init_protocls): Use __objc_init_protocol.
1120 * objc-private/module-abi-8.h: Updated comments.
1121 * objc-private/runtime.h
1122 (__objc_register_selectors_from_description_list): New.
1123 * selector.c (__objc_register_selectors_from_description_list):
1124 New. (struct objc_method_description_list): Declare.
1125 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
1126 when accessing the name of a method, which is now correctly a SEL.
1127 ([-descriptionForClassMethod:]): Same change.
1128 * protocols.c (protocol_getMethodDescription): Same change.
1129 * objc/runtime.h: Updated comments.
1130 (sel_registerTypedName): Fixed typo in function name.
1131
570c5a3d 11322010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1133
1134 PR libobjc/23214
1135 * init.c (objc_init_statics): Do not skip the initialization of a
1136 statics list if the first object has already been initialized; in
1137 the case of Protocols, while the first one may have been
1138 initialized, some others may not have been initialized yet.
1139
a70d256d 11402010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1141
1142 * Makefile.in (OBJC_DEPRECATED_H): Added
1143 objc_get_uninstalled_dtable, objc_object_alloc.h and
1144 struct_objc_static_instances.h.
1145
0f7745af 11462010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1147
1148 * encoding.c (method_copyReturnType): New.
1149 (method_copyArgumentType): New.
1150 (method_getReturnType): New.
1151 (method_getArgumentType): New.
1152 * methods.c (method_getDescription): New.
1153 * objc/runtime.h (method_copyReturnType): New.
1154 (method_copyArgumentType): New.
1155 (method_getReturnType): New.
1156 (method_getArgumentType): New.
1157 (method_getDescription): New.
1158
eda7c0d6 11592010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1160
1161 * encoding.c: Tidied up comments.
1162 (objc_skip_variable_name): New static inline function.
1163 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
1164 the same code over and over.
1165 (objc_alignof_type): Same.
1166 (objc_aligned_size): Same.
1167 (objc_promoted_size): Same.
1168 (objc_skip_typespec): Same.
1169 (objc_layout_structure_next_member): Same.
1170 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
1171 historical bug where objc_skip_offset would skip one byte even if
1172 there is no offset: check that the first offset digit is actually
1173 a digit before skipping it.
1174 (objc_skip_type_qualifiers): Mark as inline.
1175 (objc_skip_typespec): Mark as inline.
1176
1da9f882 11772010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1178
1179 * Makefile.in (C_SOURCE_FILES): Added methods.c.
1180 * encoding.c (method_getNumberOfArguments): New.
1181 (method_get_number_of_arguments): Call
1182 method_getNumberOfArguments.
1183 * ivars.c (ivar_getName): Check for NULL variable argument.
1184 (ivar_getOffset): Check for NULL variable argument.
1185 (ivar_getTypeEncoding): Check for NULL variable argument.
1186 (class_copyIvarList): New.
1187 * methods.c: New.
1188 * protocols.c (class_copyProtocolList): Check for Nil class_
1189 argument.
1190 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1191 'struct objc_method_list *' instead of MethodList_t.
1192 (class_getMethodImplementation): New.
1193 (class_respondsToSelector): New.
1194 (class_getInstanceMethod): New.
1195 (class_getClassMethod): New.
1196 * objc/runtime.h: Updated comments.
1197 (class_copyIvarList): New.
1198 (class_getInstanceMethod): New.
1199 (class_getClassMethod): New.
1200 (class_getMethodImplementation): New.
1201 (class_respondsToSelector): New.
1202 (method_getName): New.
1203 (method_getImplementation): New.
1204 (method_getTypeEncoding): New.
1205 (class_copyMethodList): New.
1206 (method_getNumberOfArguments): New.
1207
f75aa158 12082010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1209
1210 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1211 instead of objc/objc-api.h.
1212 (objc_get_unknown_class_handler): Do not define.
1213 (class_isMetaClass): New.
1214 (class_getSuperclass): New.
1215 (class_getVersion): New.
1216 (class_setVersion): New.
1217 (class_getInstanceSize): New.
1218 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1219 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1220 objc_get_super_class.
1221 (get_ttype_entry): Use objc_getRequiredClass instead of
1222 objc_get_class.
1223 * ivars.c (class_getClassVariable): New.
1224 * objects.c: Include objc/runtime.h, objc/thr.h and
1225 objc-private/module-abi-8.h instead of objc/objc-api.h
1226 * objc/runtime.h (class_getClassVariable): New.
1227 (class_isMetaClass): New.
1228 (class_getSuperclass): New.
1229 (class_getVersion): New.
1230 (class_setVersion): New.
1231 (class_getInstanceSize): New.
1232 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1233 objc/objc-api.h)
1234 (__CLS_INFO): Same.
1235 (__CLS_ISINFO): Same.
1236 (__CLS_SETINFO): Same.
1237 (CLS_ISMETA): Same.
1238 (CLS_ISCLASS): Same.
1239 (CLS_ISRESOLV): Same.
1240 (CLS_SETRESOLV): Same.
1241 (CLS_ISINITIALIZED): Same.
1242 (CLS_SETINITIALIZED): Same.
1243 (CLS_GETNUMBER): Same.
1244 (CLS_SETNUMBER): Same.
1245
6ee7a276 12462010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1247
1248 * archive.c: Do not include objc/objc.h.
1249 * class.c: Do not include objc/objc.h.
1250 * encoding.c: Include objc/runtime.h, ctype.h and
1251 objc-private/module-abi-8.h instead of objc/objc-api.h and
1252 objc/encoding.h.
1253 * error.c: Do not include objc/objc.h.
1254 * gc.c: Include tconfig.h and objc/encoding.h only if
1255 OBJC_WITH_GC.
1256 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1257 objc/objc-api.h. Do not include objc/objc.h.
1258 * init.c: Do not include objc/objc.h.
1259 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1260 objc/thr.h instead of objc/objc-api.h. Do not include
1261 objc/objc.h.
1262 * linking.m: Tidied comment.
1263 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1264 Do not include objc/objc.h.
1265 * objects.c: Do not include objc/objc.h.
1266 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1267 * protocols.c: Do not include objc/objc.h.
1268 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1269 not include objc/objc.h.
1270 * selector.c: Do not include objc/objc.h.
1271 * sendmsg.c: Do not include objc/objc.h.
1272 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1273 Do not include objc/objc.h.
1274 * objc/objc-decls.h: Reindented code.
1275 * objc/runtime.h Include objc-decls.h. Updated comments.
1276 (objc_malloc): New.
1277 (objc_atomic_malloc): New.
1278 (objc_calloc): New.
1279 (objc_realloc): New.
1280 (objc_free): New.
1281 * objc-private/runtime.h: Updated comments.
1282
e983fc72 12832010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1284
1285 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1286 * objc-private/protocols.h: New.
1287 * protocols.c: New.
1288 * init.c: Include objc-private/protocols.h.
1289 (__objc_exec_class): Call __objc_protocols_init on startup.
1290 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1291 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1292 of MethodList_t, and (struct objc_method *) instead of Method_t.
1293 * objc/deprecated/struct_objc_class.h: Define
1294 __objc_STRUCT_OBJC_CLASS_defined.
1295 * objc-private/module-abi-8.h (struct
1296 objc_method_description_list): New.
1297 (struct objc_class): Only define if
1298 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1299 * objc/runtime.h (class_getName): New.
1300 (objc_getProtocol): New.
1301 (objc_copyProtocolList): New.
1302 (class_addProtocol): New.
1303 (class_conformsToProtocol): New.
1304 (class_copyProtocolList): New.
1305 (protocol_conformsToProtocol): New.
1306 (protocol_isEqual): New.
1307 (protocol_getName): New.
1308 (protocol_getMethodDescription): New.
1309 (protocol_copyMethodDescriptionList): New.
1310 (protocol_getProperty): New.
1311 (protocol_copyPropertyList): New.
1312 (protocol_copyProtocolList): New.
1313 * class.c (class_getName): New.
1314 * selector.c (sel_isEqual): New.
1315
f9c4db38 13162010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1317
1318 * selector.c (sel_getName): Return "<null selector>" for a NULL
1319 argument.
1320 (sel_get_name): Return 0 for a NULL argument.
1321 * objc/runtime.h (sel_getName): Updated documentation.
1322
1323 * objc-private/hash.h (class_hash_table): Unused declaration
1324 removed.
1325 (module_hash_table): Same.
1326 * objc/deprecated/hash.h: Same changes.
1327
86bde516 13282010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1329
1330 * class.c (objc_getClassList): New.
1331 (objc_getRequiredClass): New.
1332 (objc_getMetaClass): New.
1333 (objc_lookupClass): New.
1334 (objc_getClass): New.
1335 (__objc_get_unknown_class_handler): New.
1336 (objc_setGetUnknownClassHandler): New.
1337 (objc_get_class): Use __objc_get_unknown_class_handler.
1338 (objc_lookup_class): Call objc_getClass.
1339 * objc/objc-api.h: Updated comment and copyright notice.
1340 * objc/runtime.h: Updated comments.
1341 (objc_getClass): New.
1342 (objc_lookupClass): New.
1343 (objc_getMetaClass): New.
1344 (objc_getRequiredClass): New.
1345 (objc_getClassList): New.
1346 (objc_setGetUnknownClassHandler): New.
1347 (objc_get_unknown_class_handler): New.
1348 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1349 instead of __objc_runtime_INCLUDE_GNU as include guard.
1350 * objc-private/error.h (_objc_abort): Mark as noreturn.
1351
631bc351 13522010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1353
1354 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1355 * ivars.c: New.
1356 * objc/objc.h: Updated comments.
1357 * objc/runtime.h (object_getClass): New.
1358 (object_getClassName): New.
1359 (object_setClass): New.
1360 (class_getInstanceVariable): New.
1361 (object_getIndexedIvars): New.
1362 (object_getInstanceVariable): New.
1363 (object_setInstanceVariable): New.
1364 (object_getIvar): New.
1365 (object_setIvar): New.
1366 (ivar_getName): New.
1367 (ivar_getOffset): New.
1368 (ivar_getTypeEncoding): New.
1369 * objc-private/module-abi-8.h (struct objc_class): Added.
1370 * objects.c (object_getClassName): New.
1371 (object_setClass): New.
1372
3c744362 13732010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1374
1375 * objc/objc.h: Updated comments.
1376 * objc/objc-api.h: (object_copy): Added one argument; use a
1377 #define to maintain backwards-compatibility. Moved
1378 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1379 objc_get_uninstalled_dtable into
1380 objc/deprecated/objc_get_uninstalled_dtable.h and
1381 objc/deprecated/objc_object_alloc.h. Include these files.
1382 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1383 * objc/deprecated/objc_object_alloc.h: New.
1384 * objc/runtime.h (set_getName): New.
1385 (sel_getType): New.
1386 (sel_getUid): New.
1387 (sel_registerName): New.
1388 (sel_registerTypedName): New.
1389 (sel_isEqual): New.
1390 (class_createInstance): New.
1391 (object_copy): New.
1392 (object_dispose): New.
1393 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1394 building the garbage collection version.
1395 (__objc_object_alloc): Removed.
1396 (__objc_object_copy): Removed.
1397 (__objc_object_dispose): Removed.
1398 (class_createInstance): New from code in class_create_instance.
1399 Cast second argument of GC_malloc_explicitly_typed. Use
1400 objc_calloc. Do not call _objc_object_alloc.
1401 (class_create_instance): Call class_createInstance.
1402 (object_copy): Added extraBytes argument. Do not call
1403 _objc_object_copy.
1404 (object_dispose): Do not call _objc_object_dispose.
1405 * memory.c (objc_free): When using garbage collection, mark the
1406 argument as unused.
1407 * selector.c (sel_getName): New.
1408 (sel_get_name): Call sel_getName.
1409 (sel_getType): New.
1410 (sel_get_type): Call sel_getType.
1411 (sel_registerName): New.
1412 (sel_register_name): Call sel_registerName.
1413 (sel_registerTypedName): New.
1414 (sel_register_typed_name): Call sel_registerTypedName.
1415 (sel_getUid): New.
1416 (sel_get_uid): Call sel_getUid.
1417
ae8c76bf 14182010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1419
1420 * objc/objc-api.h: Define Method, Method_t, Category and
1421 Category_t. Prevent including this file at the same time as
1422 objc/runtime.h. Updated comments.
1423 * objc/deprecated/struct_objc_method.h: Do not define Method,
1424 Method_t.
1425 * objc/deprecated/struct_objc_category.h: Do not define Category,
1426 Category_t.
1427 * objc-private/module-abi-8.h: New file containing a copy of all
1428 the structure definitions. Not used yet.
1429 * objc/encoding.h (objc_aligned_size): Removed duplicate
1430 declaration. Updated comments.
1431 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1432 Category, struct objc_method_description, _C_ID and similar,
1433 _C_CONST and similar and _F_CONST and similar. Added
1434 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1435 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1436 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1437 struct objc_struct_layout, objc_layout_structure,
1438 objc_layout_structure_next_member, objc_layout_finish_structure,
1439 objc_layout_structure_get_info. Prevent including this file at
1440 the same time as objc/objc-api.h.
1441
011c3116 14422010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1443
1444 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1445 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1446 struct_objc_method_list.h, struct_objc_module.h,
1447 struct_objc_protocol_list.h, struct_objc_symtab.h.
1448 * objc/deprecated/struct_objc_category.h: New.
1449 * objc/deprecated/struct_objc_ivar.h: New.
1450 * objc/deprecated/struct_objc_ivar_list.h: New.
1451 * objc/deprecated/struct_objc_method.h: New.
1452 * objc/deprecated/struct_objc_method_list.h: New.
1453 * objc/deprecated/struct_objc_module.h: New.
1454 * objc/deprecated/struct_objc_protocol_list.h: New.
1455 * objc/deprecated/struct_objc_symtab.h: New.
1456 * objc/deprecated/struct_objc_static_instances.h: New.
1457 * objc/objc-api.h: Definitions of deprecated structures moved into
1458 the above header fragment files in objc/deprecated/. Include the
1459 files instead of definition the structures here. Updated
1460 comments.
1461 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1462 (objc_set_enumeration_mutation_handler): Renamed to
1463 objc_setEnumerationMutationHandler.
1464 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1465 to objc_setEnumerationMutationHandler.
1466 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1467 objc_setExceptionMatcher.
1468 (objc_set_uncaught_exception_handler): Renamed to
1469 objc_setUncaughtExceptionHandler.
1470 * exception.c: Same changes.
1471
1ccdc1e5 14722010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1473
1474 * objc-sync.c: Include objc-private/common.h.
1475
83b8166b 14762010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1477
1478 * objc-foreach.c: Include objc-private/common.h.
1479 * objc/deprecated/METHOD_NULL.h: New file.
1480 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1481 defining METHOD_NULL here.
1482 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1483 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1484 METHOD_NULL.
1485 ([-respondsTo:]): Same change.
1486 * objc/objc-api.h (method_get_imp): Converted it into a normal
1487 function so that we can hide the internals of struct objc_method.
1488 * sendmsg.c (method_get_imp): Implemented.
1489
8dedc4ce 14902010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1491
1492 * objc/objc-api.h (struct objc_super, Super, Super_t,
1493 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1494 objc_msg_forward2): Declarations moved to objc/message.h. Include
1495 message.h here.
1496 * objc/message.h: Added such declarations; updated comments.
1497
0a65c3bb 14982010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1499
1500 Implemented fast enumeration for Objective-C.
1501 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1502 (OBJC_H): Added runtime.h
1503 * objc-foreach.c: New file.
1504 * objc/runtime.h: New file.
1505
45cbadf0 15062010-09-30 Kai Tietz <kai.tietz@onevision.com>
1507
1508 * objc/deprecated/struct_objc_class.h: Add padding
1509 to avoid warning with -Wpadded.
1510
f8ee0563 15112010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1512
1513 * encoding.c (objc_sizeof_type): Added support for vector type and
1514 for double long types.
1515 (objc_alignof_type): Same change.
1516 (objc_skip_typespec): Same change.
1517 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1518 instead of '!' since '!' is already used for _C_VECTOR.
1519 * objc/objc-api.h (_C_LNG_DBL): Added.
1520
3adf81d8 15212010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1522
1523 * libobjc_entry.c: File removed.
1524
14df393a 15252010-09-26 Kai Tietz <kai.tietz@onevision.com>
1526
e573db50 1527 * sendmsg.c (objc_msg_lookup): Remove inline.
14df393a 1528 (objc_get_uninstalled_dtable): Likewise.
1529 * encoding.c (objc_skip_type_qualifiers): Likewise.
1530 (objc_skip_offset): Likewise.
1531 * archive.c (__objc_write_object): Likewise
1532 (__objc_write_class):
1533 (__objc_write_selector):
1534 (objc_read_char):
1535 (objc_read_unsigned_char):
1536 (objc_read_short):
1537 (objc_read_unsigned_short):
1538 (objc_read_int):
1539 (objc_read_long):
1540 (__objc_read_nbyte_uint):
1541 (objc_read_unsigned_int):
1542 (objc_read_unsigned_long):
1543 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1544 (objc_EXPORT): Likewise.
1545 * objc/message.h (objc-decls.h): Add include.
1546 * objc/objc-api.h: Mark API by objc_EXPORT.
1547 * libobjc.def (__objc_responds_to): Removed.
1548
54d533d3 15492010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1550
1551 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1552
1553 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1554 objc/sarray.h replaced with a placeholder including the file from
1555 the deprecated/ directory.
1556 * objc-private/sarray.h: New file (private copy of sarray.h).
1557 * hash.c: Include <assert.h> instead of "assert.h"
1558 * sarray.c: Include <assert.h> instead of "assert.h". Include
1559 objc-private/sarray.h instead of objc/sarray.h.
1560 * selector.c: Include objc-private/sarray.h instead of
1561 objc/sarray.h.
1562 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1563 instead of objc/sarray.h.
1564 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1565
41c3fcad 15662010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1567
1568 * objc-private/objc-list.h (list_remove_elem): Unused function
1569 removed. (list_nth): Unused function removed. (list_find):
1570 Unused function removed. (list_lenght): Unused function removed.
1571
1a46e3f1 15722010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1573
1574 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1575 replaced with a placeholder including the file from the
1576 deprecated/ directory.
1577 * objc/objc-api.h: Updated includes.
1578 * objc/typedstream.h: Updated includes.
1579 * objc-private/hash.h: New file (private copy of hash.h).
1580 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1581 objc/objc-list.h replaced with a placeholder including the file
1582 from the deprecated/ directory.
1583 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1584 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1585 instead of objc/hash.h and objc/objc-list.h.
1586 * selector.c: Same change.
1587 * class.c: Added include <string.h>, which used to be implicitly included
1588 when hash.h was included.
1589 * exception.c: Same change.
1590 * objects.c: Same change.
1591 * sarray.c: Same change.
1592 * sendmsg.c: Same change.
1593 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
1a46e3f1 1594
a2a8dcb1 15952010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1596
1597 Implemented objc_sync_enter() and objc_sync_exit(), which are
1598 required by @synchronized() to work.
1599 * objc-sync.c: New file.
1600 * objc/objc-sync.h: New file.
1601 * objc-private/objc-sync.h: New file.
1602 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1603 Objective-C runtime startup.
1604 * Makefile.in: Added objc-sync.c and objc-sync.h.
1605 * configure.ac: Added GCC_CHECK_TLS.
1606 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1607 * configure: Regenerated.
1608 * config.h.in: Regenerated.
1609
db7e3326 16102010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1611
1612 * Makefile.in (%_gc.lo): New pattern rules to build the
1613 garbage-collected version of the library. Removed rules for
1614 specific files that are no longer needed. Standardized all rules.
1615 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1616 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1617 OBJC_SOURCE_FILES.
1618 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1619
16202010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1621
1622 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1623 with Garbage Colletion.
1624
564846ac 16252010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1626
1627 * memory.c: Do not include objc-private/runtime.h.
1628
bb882a43 16292010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1630
1631 * objc/deprecated/objc_malloc.h: New file.
1632 * objc/deprecated/objc_valloc.h: New file.
1633 * objc/objc-api.h: Include the files instead of defining
1634 objc_valloc, _objc_malloc() and similar.
1635 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1636 objc_malloc.h.
1637 * memory.c: Removed the extra layer of indirection of _objc_malloc
1638 and similar.
1639 (objc_calloc): Use GC_malloc in the garbage-collected
1640 implementation as GC_malloc returns memory that is already freed.
1641 (objc_valloc): Deprecated.
1642
c3a945cd 16432010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1644
1645 * objc/deprecated/objc_error.h: New file.
1646 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1647 defining objc_error and related.
1648 * error.c: New file. Added _objc_abort function which replaces
1649 objc_error. No change in functionality as they both print an
1650 error and abort.
1651 * misc.c: File removed. Code moved into memory.c and error.c.
1652 * memory.c: New file.
1653 * objc-private/error.h: New file.
1654 * archive.c: Include objc-private/error.h and use _objc_abort
1655 instead of objc_error everywhere.
1656 * class.c: Same change.
1657 * encoding.c: Same change.
1658 * init.c: Same change, and simplified init_check_module_version.
1659 * memory.c: Same change.
1660 * sendmsg.c: Same change.
1661 * thr.c: Same change.
1662 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1663 (OBJ_H): Reordered list.
1664 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1665 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1666 (misc_gc.lo): Rule removed.
1667 (error_gc.lo): Rule added.
1668 (memory_gc.lo): Rule added.
1669
e58aa1bc 16702010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1671
1672 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1673 to check the API version. Added some comments.
1674
1675 * objc-private/common.h: New file.
1676 * NXConstStr.m: Include objc-private/common.h.
1677 * Object.m: Same change.
1678 * Protocol.m: Same change.
1679 * archive.c: Same change.
1680 * class.c: Same change.
1681 * encoding.c: Same change.
1682 * exception.c: Same change.
1683 * gc.c: Same change.
1684 * hash.c: Same change.
1685 * init.c: Same change.
1686 * libobjc_entry.c: Same change.
1687 * linking.m: Same change.
1688 * misc.c: Same change (and added a comment).
1689 * nil_method.c: Same change.
1690 * objects.c: Same change.
1691 * sarray.c: Same change.
1692 * selector.c: Same change.
1693 * sendmsg.c: Same change.
1694 * thr.c: Same change.
1695
0c528ee0 16962010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1697
1698 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1699
13085e2a 17002010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1701
1702 * archive.c: Removed not needed includes.
1703 * class.c: Same change.
1704 * hash.c: Same change.
1705 * misc.c: Same change.
1706 * nil_method.c: Same change.
1707 * objects.c: Same change.
1708 * sarray.c: Same change.
1709 * sendmsg.c: Same change.
1710 * thr.c: Same change.
1711
88457013 17122010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1713
1714 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1715 all the objc/*.h files.
1716 * objc-private/runtime.h: New file.
1717 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1718 files) instead of objc/runtime.h.
1719 * class.c: Same change.
1720 * hash.c: Same change.
1721 * init.c: Same change.
1722 * misc.c: Same change.
1723 * nil_method.c: Same change.
1724 * objects.c: Same change.
1725 * sarray.c: Same change.
1726 * selector.c: Same change.
1727 * sendmsg.c: Same change.
1728 * thr.c: Same change.
1729
344bfd09 17302010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1731
1732 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1733 'struct objc_selector' and 'sel_eq' moved here.
1734 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1735 'struct objc_procotol' moved here.
1736 * objc/deprecated/struct_objc_class.h: New file. Definition of
1737 'struct objc_class' moved here.
1738 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1739 moved here.
1740 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1741 * objc/message.h: New file. Definitions for relval_t, apply_t,
1742 arglist, arglist_t and objc_msg_lookup were moved here.
1743 * objc/objc.h: Include the above files instead of defining the
1744 corresponding structs, types and functions here. Added new opaque
1745 definitions for SEL and Class. Use Class and not 'struct
1746 objc_class *' in the definition of 'struct objc_object'.
1747 Commented all types defined in the file. Removed special
1748 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1749 there as well.
1750 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1751 objc_unexpected_exception.h.
1752 * objc/objc-api.h: Updated include of
1753 objc-unexpetected-exception.h
1754 * objc/objc-exception.h: Updated comments.
1755 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1756 files. Reindented list of files.
1757
f99f2daf 17582010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1759
1760 * objc/objc-api.h (objc_trace): Unused variable removed.
1761
01eb761e 17622010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1763
1764 * objc/deprecated: New directory.
1765 * objc/deprecated/README: New file.
1766 * objc/README: New file.
1767 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1768 objc/typedstream.h replaced with a placeholder including the file
1769 from the deprecated/ directory.
1770 * objc/deprecated/objc-unexpected-exception.h: New file with the
1771 definition of _objc_unexpected_exception.
1772 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1773 instead of defining _objc_unexpected_exception.
1774 * objc/deprecated/Object.h: New file with the deprecated Object
1775 methods in a 'Deprecated' category.
1776 * objc/Object.h Include deprecated/Object.h instead of defining
1777 the deprecated methods.
1778 * Object.m: Moved deprecated methods into 'Deprecated' category.
1779 * objc-private: New directory.
1780 * objc-private/README: New file.
1781 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1782 (install-headers): Create installation directory for
1783 OBJC_DEPRECATED_H headers, and install them.
1784
17852010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1786
1787 * objc/objc-exception.h: Fixed include of objc.h.
1788
a5974a58 17892010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1790
1791 * objc/objc-exception.h: New file.
1792 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1793 (objc_set_exception_matcher): Implemented.
1794 (objc_exception_throw): Use the uncaught exception handler if set.
1795 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1796 hardcoded isKindOf.
1797 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1798 up. Removed segmentation fault when value is 'nil'.
1799 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1800 deprecated.
1801 * Makefile.in (exception.lo, exception_gc.lo): Use
1802 -Wno-deprecated-declarations when compiling.
1803 (OBJC_H): Added objc-exception.h
1804
9bc9b0a9 18052010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
aaba593f 1806
1807 * objc/typedstream.h: Deprecate all functions in the file. This
1808 file is obsolete.
1809 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1810 [-awake]): Documented that these methods are deprecated. Added a
1811 brief description of the Object class and its relationship to the
1812 NSObject class.
1813 * Makefile.in: Compile archive.c and Object.m with
1814 -Wno-deprecated-declarations.
1815
6ceebb84 18162010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1817
1818 Removed obsolete intermediate threading layer.
1819 * thr.c: Use __gthread_objc_xxx functions directly instead of
1820 __objc_thread_xxx ones.
1821 * objc/thr.h: Removed prototypes of no longer existing
1822 __objc_thread_xxx functions.
1823 * Makefile.in: Removed thr-objc.lo.
1824 * thr-dce.c: File removed.
1825 * thr-decosf1.c: File removed.
1826 * thr-irix.c: File removed.
1827 * thr-mach.c: File removed.
1828 * thr-objc.c: File removed.
1829 * thr-os2.c: File removed.
1830 * thr-posix.c: File removed.
1831 * thr-pthreads.c: File removed.
1832 * thr-rtems.c: File removed.
1833 * thr-single.c: File removed.
1834 * thr-solaris.c: File removed.
1835 * thr-vxworks.c: File removed.
1836 * thr-win32.c: File removed.
1837 * README.threads: File removed.
1838 * THREADS.MACH: File removed.
1839 * THREADS: Updated.
1840
ec1aa67d 18412010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1842
1843 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1844
f55308a5 18452010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1846
1847 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1848 Add a comment as to why, update FIXME comments.
1849
9ebbbe7f 18502010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1851
1852 * makefile.dos: Obsolete file removed.
1853
e0934084 18542010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1855
1856 * aclocal.m4: Regenerate.
1857
41f83444 18582010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1859
1860 PR libobjc/30445
1861 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1862 Cygwin and MinGW hosts.
1863 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1864 (libobjc.dll): Likewise.
1865 * configure: Regenerate.
1866
e6408286 18672009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1868
1869 * configure: Regenerate.
1870
f8061704 18712009-11-28 Jakub Jelinek <jakub@redhat.com>
1872
1873 * sarray.c (sarray_free): Use old_buckets variable.
1874 * encoding.c (objc_layout_structure_next_member): Remove unused
1875 bfld_type_size variable.
1876
81a71e2b 18772009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1878
1879 * configure.ac (AC_PREREQ): Bump to 2.64.
1880
cd9a469c 18812009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1882
1883 * aclocal.m4: Regenerate.
1884 * configure: Regenerate.
1885 * config.h.in: Regenerate.
1886
60598a3a 18872009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1888
1889 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1890
a2655af1 18912009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1892
1893 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1894 New variables.
1895 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1896
9abe4a66 18972009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1898
1899 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1900
6bc9506f 19012009-04-09 Nick Clifton <nickc@redhat.com>
1902
1903 * sendmsg.c: Change copyright header to refer to version 3 of
1904 the GNU General Public License with version 3.1 of the GCC
1905 Runtime Library Exception and to point readers at the COPYING3
1906 and COPYING3.RUNTIME files and the FSF's license web page.
1907 * NXConstStr.m: Likewise.
1908 * Object.m: Likewise.
1909 * Protocol.m: Likewise.
1910 * archive.c: Likewise.
1911 * class.c: Likewise.
1912 * encoding.c: Likewise.
1913 * exception.c: Likewise.
1914 * gc.c: Likewise.
1915 * hash.c: Likewise.
1916 * init.c: Likewise.
1917 * libobjc_entry.c: Likewise.
1918 * linking.m: Likewise.
1919 * misc.c: Likewise.
1920 * nil_method.c: Likewise.
1921 * objc/NXConstStr.h: Likewise.
1922 * objc/Object.h: Likewise.
1923 * objc/Protocol.h: Likewise.
1924 * objc/encoding.h: Likewise.
1925 * objc/hash.h: Likewise.
1926 * objc/objc-api.h: Likewise.
1927 * objc/objc-decls.h: Likewise.
1928 * objc/objc-list.h: Likewise.
1929 * objc/objc.h: Likewise.
1930 * objc/runtime.h: Likewise.
1931 * objc/sarray.h: Likewise.
1932 * objc/thr.h: Likewise.
1933 * objc/typedstream.h: Likewise.
1934 * objects.c: Likewise.
1935 * sarray.c: Likewise.
1936 * selector.c: Likewise.
1937 * thr-dce.c: Likewise.
1938 * thr-decosf1.c: Likewise.
1939 * thr-irix.c: Likewise.
1940 * thr-mach.c: Likewise.
1941 * thr-objc.c: Likewise.
1942 * thr-os2.c: Likewise.
1943 * thr-posix.c: Likewise.
1944 * thr-pthreads.c: Likewise.
1945 * thr-rtems.c: Likewise.
1946 * thr-single.c: Likewise.
1947 * thr-solaris.c: Likewise.
1948 * thr-vxworks.c: Likewise.
1949 * thr-win32.c: Likewise.
1950 * thr.c: Likewise.
1951 * libobjc.def: Change copyright header to refer to version 3 of
1952 the GNU General Public License and to point readers at the COPYING3
1953 file and the FSF's license web page.
1954 * makefile.dos: Likewise.
1955
19562009-04-09 Jakub Jelinek <jakub@redhat.com>
1957
1958 * Makefile.in: Change copyright header to refer to version
1959 3 of the GNU General Public License and to point readers at the
1960 COPYING3 file and the FSF's license web page.
1961 * configure.ac: Likewise.
1962
5d727e51 19632009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1964 David Ayers <ayers@fsfe.org>
1965
1966 PR libobjc/27466
1967 * objc/objc-api.h (_objc_unexpected_exception): Declare
1968 new hook. Update copyright dates.
1969 * exception.c (objc_exception_throw): Use hook. Update
1970 copyright dates.
1971 * libobjc.def (_objc_unexpected_exception): Export hook.
1972 Update copyright dates.
1973
9af964d4 19742009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1975
1976 * configure: Regenerate.
1977
9e6fd619 19782008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1979
1980 * configure: Regenerate.
1981
a5095f65 19822008-11-21 Kai Tietz <kai.tietz@onevision.com>
1983
1984 * Object.m (errno): Replaced by errno.h include.
1985 (compare): Cast self to id to prevent warning on comparison.
1986 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1987 already there.
1988 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1989 * thr-win32.c (__objc_thread_detach): Remove type warning.
1990 (__objc_thread_id): Likewise.
1991 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1992 for noreturn.
1993
3f666fac 19942008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1995 Steve Ellcey <sje@cup.hp.com>
1996
1997 * configure: Regenerate for new libtool.
1998 * config.h.in: Regenerate for new libtool.
1999
cec41e68 20002008-07-18 Matthias Klose <doko@ubuntu.com>
2001
2002 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
2003
7170e5e2 20042008-07-18 Matthias Klose <doko@ubuntu.com>
2005
2006 * Makefile.in: Include ../boehm-gc/threads.mk.
2007 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
2008
e0f44d87 20092008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010
2011 * Makefile.in (install-info): New stub target.
2012
5b2c7553 20132008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2014
2015 * configure: Regenerate.
2016
108cde79 20172008-06-14 Kai Tietz <kai.tietz@onevision.com>
2018
2019 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
2020 if HAVE_GETIPINFO is not defined.
2021
61b5267d 20222008-06-10 Kai Tietz <kai.tietz@onevision.com>
2023
2024 * Object.m (compare): Add type id.
2025 * objc/Object.h: Likewise.
2026 * archive.c (objc_read_class): Use size_t to extend version to be
2027 size of pointer scalar width.
2028 * sendmsg.c (rtx): Undefine it before redefinition.
2029 (__objc_print_dtable_stats): Cast arguments to long as intended.
2030
ab2a1d30 20312008-05-30 Julian Brown <julian@codesourcery.com>
2032
2033 * exception.c (__objc_exception_class): Initialise as constant
2034 array for ARM EABI. Change macro to static const for non-ARM EABI.
2035 (ObjcException): Add note about structure layout. Remove landingPad
2036 and handlerSwitchValue for ARM EABI.
2037 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
2038 of function.
2039 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
2040 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
2041 ARM EABI unwinding support.
2042 (objc_exception_throw): Use memcpy to initialise exception class.
2043
eec9c06d 20442008-05-25 Alan Modra <amodra@bigpond.net.au>
2045
2046 * encoding.c (strip_array_types): Rename from get_inner_array_type.
2047 (rs6000_special_round_type_align): Update.
2048
ac051731 20492008-05-09 Julian Brown <julian@codesourcery.com>
2050
2051 * Makefile.in (LTLDFLAGS): New.
2052 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
2053
6a88da51 20542008-04-18 Paolo Bonzini <bonzini@gnu.org>
2055
2056 PR bootstrap/35457
2057 * aclocal.m4: Regenerate.
2058 * configure: Regenerate.
2059
c20cb8bb 20602008-01-24 David Edelsohn <edelsohn@gnu.org>
2061
2062 * configure: Regenerate.
2063
daf4a08b 20642007-10-14 H.J. Lu <hongjiu.lu@intel.com>
2065
2066 * configure.ac: Don't run config-ml.in directly.
2067 (multilib_arg): New.
2068 * configure: Regenerated.
2069
75f132d4 20702007-08-06 Andrew Pinski <pinskia@gmail.com>
2071
2072 PR libobjc/30731
2073 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
2074 of _Unwind_Word for variables which are used in
2075 read_uleb128/read_sleb128.
2076 (PERSONALITY_FUNCTION): Likewise.
2077
cecc75a9 20782007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2079
2080 * aclocal.m4: Regenerated.
2081
6d7301dc 20822007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2083
2084 * configure.ac: Fix a typo in *-*-darwin clause.
2085 * configure: Regenerated.
2086
1e0545b2 20872007-06-02 H.J. Lu <hongjiu.lu@intel.com>
2088
2089 * configure.ac: Fix a typo.
2090 * configure: Regenerated.
2091
07c46636 20922007-06-02 Paolo Bonzini <bonzini@gnu.org>
2093
2094 * configure: Regenerate.
2095
f90c9f0e 20962007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
2097
2098 * Makefile.in: Replace all uses of libext with libsuffix.
2099 * configure.ac: Likewise.
2100 * configure: Regenerate.
2101
2102 Revert:
2103 * Makefile.in: Remove all uses of $(libext).
2104
79511dd7 21052007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
2106
2107 * Makefile.in: Remove all uses of $(libext).
2108
542f9784 21092007-05-23 Steve Ellcey <sje@cup.hp.com>
2110
2111 * configure: Regenerate.
2112 * aclocal.m4: Regenerate.
2113
4f80b75a 21142007-04-21 Andrew Ruder <andy@aeruder.net>
2115
2116 * sendmsg.c (__objc_get_forward_imp): Call
2117 __objc_msg_forward2 for real.
2118
1ec32795 21192007-04-09 Andrew Ruder <andy@aeruder.net>
2120
2121 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
2122 external libraries to provide a function that returns the real
2123 forwarding function based on both the selector and the receiver.
2124 * objc/objc-api.h: Define __objc_msg_forward2.
2125
cbb90fc8 21262007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2127
2128 * Makefile.in: Add dummy install-pdf target.
2129
91bf330a 21302007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2131
2132 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
2133 unused warning.
2134
c8dfb8ef 21352006-10-31 Geoffrey Keating <geoffk@apple.com>
2136
2137 * encoding.c (darwin_rs6000_special_round_type_align): New.
2138
ff434425 21392006-10-14 Geoffrey Keating <geoffk@apple.com>
2140
2141 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
2142 * configure.ac: Use multi.m4 from aclocal rather than custom
2143 code. Use multi_basedir instead of toplevel_srcdir.
2144 * aclocal.m4: Regenerate.
2145 * configure: Regenerate.
2146
51f93521 21472006-10-10 Brooks Moses <bmoses@stanford.edu>
2148
2149 * Makefile.in: Added empty "pdf" target.
2150
3e427a9c 21512006-07-18 Paolo Bonzini <bonzini@gnu.org>
2152
1abbe012 2153 * configure: Regenerate.
3e427a9c 2154
ba0c10ab 21552006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2156
2157 * Makefile.in: Add install-html target. Add install-html to .PHONY
2158
03f0fdd8 21592006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2160
2161 PR libobjc/26309
2162 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2163
0f151698 21642006-01-24 David Ayers <d.ayers@inode.at>
2165
2166 PR libobjc/9751
2167 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2168 and insure the new strings are '\0' termintated.
2169
e23e7a91 21702006-01-24 David Ayers <d.ayers@inode.at>
2171
2172 PR libobjc/13946
2173 * configure.ac: Add include directives for --enable-objc-gc.
2174 * Makefile.in: Ditto.
2175 * configure: Regenerate.
2176
2177 * gc.c (__objc_class_structure_encoding): Increment the used bytes
2178 instead of the local pointer to them.
2179
0ee579cd 21802005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2181
2182 PR objc/25360
1abbe012 2183 * objc/objc-api.c (_C_COMPLEX): New define.
2184 * encoding.c (objc_sizeof_type): Handle _C_Complex.
2185 (objc_alignof_type): Likewise.
2186 (objc_skip_typespec): Likewise.
0ee579cd 2187
680ee79d 21882005-12-15 David Ayers <d.ayers@inode.at>
2189
2190 PR libobjc/14382
2191 * README (+load,+initialize): Fix documentation to reflect
2192 intended and implemented semantics for +load and +initialize.
2193
2be744b2 21942005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2195
2196 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2197 the name.
2198 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2199 (rs6000_special_round_type_align): Update for the ABI fix.
2200 (objc_layout_finish_structure): Correct the encoding which is passed to
2201 ROUND_TYPE_ALIGN.
2202
39be2506 22032005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2204
2205 PR libobjc/25347
2206 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2207 but use the struct layout functions.
2208 (objc_alignof_type): Likewise.
2209 (objc_layout_structure): Handle _C_UNION_B also.
2210 (objc_layout_structure_next_member): Likewise.
2211 (objc_layout_finish_structure): Likewise.
2212
f0727156 22132005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2214
2215 PR libobjc/25346
2216 * objc/objc-api.h (_C_BOOL): New define.
2217 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2218 (objc_alignof_type): Likewise.
2219 (objc_skip_typespec): Likewise.
2220
ce92776b 22212005-11-20 David Ayers <d.ayers@inode.at>
2222
2223 PR libobjc/19024
2224 * objc/hash.h: Remove deprecated hash API.
2225 * hash_compat.c: Remove.
2226 * Makefile.in: Remove reference to hash_compat.c.
2227
2228 * configure.ac (VERSION): Bump library version to 2:0:0.
2229 * configure: Regenerate.
2230
6251c8ef 22312005-11-09 Alexandre Oliva <aoliva@redhat.com>
2232
2233 PR other/4372
2234 * thr-objc.c (_XOPEN_SOURCE): Define.
2235
64c7c50c 22362005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
2237
2238 PR libobjc/23612
2239 * objc/objc-api.h (struct objc_ivar): Move definition to
2240 global scope.
2241
4a00db2f 22422005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
2243 Rasmus Hahn <rassahah@neofonie.de>
2244
2245 PR libobjc/23108
2246 * archive.c (objc_write_type): Correct the element offset.
2247 (objc_read_type): Likewise.
2248
b1df5b26 22492005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2250
2251 * All files: Update FSF address.
2252
34dcb2fb 22532005-08-13 Marcin Koziej <creep@desk.pl>
2254 Andrew Pinski <pinskia@physics.uc.edu>
2255
2256 PR libobjc/22492
2257 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2258
a16ff609 22592005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2260
2261 * Makefile.in (extra_ldflags_libobjc): New.
2262 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2263 (libobjc_gc$(libext).la): Likewise.
2264 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2265 "-Wl,-single_module".
2266 * configure: Regenerate.
2267 * linking.m (_objcInit): Remove.
2268
7f0dae42 22692005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2270
2271 PR libobjc/22606
2272 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2273
bafbe935 22742005-06-08 David Ayers <d.ayers@inode.at>
2275
2276 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2277 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2278 objc/runtime.h, objc/sarray.h, objc/thr.h,
2279 objc/typedstream.h: Do not include Objective-C headers as
2280 system headers.
2281
2386cda7 22822005-06-07 David Ayers <d.ayers@inode.at>
2283
2284 * archive.c, init.c, selector.c: Include hash.h.
2285 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2286 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2287 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2288 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2289 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2290 Include Objective-C headers with quotes and objc/ directory
2291 prefix.
2292
d65ede2b 22932005-05-19 Richard Henderson <rth@redhat.com>
2294
2295 * exception.c: Revert last change.
2296
5cbe495f 22972005-05-19 David Ayers <d.ayers@inode.at>
2298
2299 * exception.c: Include tsystem.h for unwind.h.
2300
5f0a087e 23012005-05-09 Mike Stump <mrs@apple.com>
2302
2303 * configure: Regenerate.
2304
3bcf2cd5 23052005-04-12 Mike Stump <mrs@apple.com>
2306
2307 * configure: Regenerate.
2308
32ee7eb8 23092005-03-21 Zack Weinberg <zack@codesourcery.com>
2310
2311 * Makefile.in: Set gcc_version here.
2312 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2313 in definition of toolexeclibdir so that $(gcc_version) is expanded
2314 by the Makefile.
2315 * aclocal.m4, configure: Regenerate.
2316
92effd87 23172005-03-03 David Ayers <d.ayers@inode.at>
2318
2319 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2320 version reference. Correct typo.
2321
18e20a6b 23222005-03-02 David Ayers <d.ayers@inode.at>
2323
2324 PR libobjc/19024
2325 * Makefile.in (OBJS): Add hash_compat.lo.
2326 (OBJS_GC): Add hash_compat_gc.lo.
2327 (hash_compat_gc.lo): New target and rule.
2328 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2329 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2330 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2331 with objc_. Add deprecated non prefixed inlined versions.
2332 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2333 declarations.
2334 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2335 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2336 update callers.
2337 * hash_compat.c: New file.
2338 * archive.c: Update callers.
2339 * init.c: Likewise.
2340 * selector.c: Likewise.
2341 * libobjc.def: Add objc_ versions of hash functions.
2342
576007bc 23432005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2344
2345 PR libobjc/20252
2346 * Makefile.in (GTHREAD_FLAGS): Remove.
2347 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2348 * thr-objc.c: Include config.h.
2349 * configure.ac: Instead of looking at GCC's makefile, figure out if
2350 GTHREAD_FLAGS should be defined by looking at the `thread model'
2351 of the current gcc.
2352 * configure: Regenerate.
2353 * config.h.in: Regenerate.
2354
c1eb9e31 23552005-02-28 Paolo Bonzini <bonzini@gnu.org>
2356
2357 PR bootstrap/17383
2358 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2359 (Determine CFLAGS for gthread): Use $host_subdir.
2360 * configure: Regenerate.
2361 * Makefile.in (host_subdir): New.
2362 (INCLUDES): Use it.
2363
ee258b7c 23642004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2365
2366 PR libobjc/12035
2367 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
c5703f4d 2368 they are not used.
2369 Include limits.h and stdlib.h.
2370 Define BITS_PER_WORD.
ee258b7c 2371
57490718 23722004-12-12 Alexander Malmberg <alexander@malmberg.org>
2373
2374 * selector.c (__objc_init_selector_tables): Add missing void to
2375 definition.
2376
14ac9144 23772004-12-02 Richard Sandiford <rsandifo@redhat.com>
2378
2379 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2380 * configure, aclocal.m4: Regenerate.
2381
d081dd29 23822004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2383
2384 * configure: Regenerate for libtool change.
2385
a234d196 23862004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2387
2388 * configure: Regenerate for libtool reversion.
2389
7f93fe7a 23902004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2391
2392 * configure: Regenerate for libtool change.
2393
2ce59e1b 23942004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2395
2396 * aclocal.m4, config.h.in: Regenerate.
2397
3c72aa9c 23982004-10-08 Mike Stump <mrs@apple.com>
32ee7eb8 2399 Andrew Pinski <pinskia@physics.uc.edu>
3c72aa9c 2400
2401 * aclocal.m4: Rename to ...
2402 * acinclude.m4: here and also use m4_include instead of sinclude.
2403 * aclocal.m4: Regenerate.
2404 * configure: Regenerate.
2405 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
9d1e93a5 2406 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
3c72aa9c 2407
1ff2b664 24082004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2409
2410 * archive.c: Fix all the warnings about passing unsigned char*
2411 to char* and the other way too.
2412
e7d4d902 24132004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2414
2415 PR libobjc/16448
2416 * exception.c: Include config.h
2417 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2418 SJLJ_EXCEPTIONS.
2419 * configure.ac: Find out what exception handling code we use.
2420 * configure: Regenerate.
2421 * config.h.in: New file, regenerate.
2422
e5333be7 24232004-09-16 Andrew Pinski <apinski@apple.com>
2424
2425 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2426
f251b3df 24272004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2428
2429 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2430 ACX_NONCANONICAL_TARGET.
2431 * configure: Regenerate.
2432
7cde5855 24332004-08-13 Ziemowit Laski <zlaski@apple.com>
2434
2435 * objc/sarray.h: Hoist include of assert.h near the top of file,
2436 and mark the remainder of the file 'extern "C"'.
2437
35072fc1 24382004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2439
2440 * objc/Object.h: Move includes out of extern "C" blocks.
2441 * objc/encoding.h: Likewise.
2442 * objc/hash.h: Likewise.
2443 * objc/objc-api.h: Likewise.
2444 * objc/runtime.h: Likewise.
2445 * objc/sarray.h: Likewise.
2446 * objc/typedstream.h: Likewise.
2447
b51dff7b 24482004-08-12 Ziemowit Laski <zlaski@apple.com>
2449
2450 * objc/NXConstStr.h: Update copyright date; bracket with
2451 'extern "C"' for C++ use; make include syntax consistent
2452 by using <...> instead of "..."; hoist <objc/...> includes
2453 above the 'extern "C"' block.
2454 * objc/Object.h: Likewise.
2455 * objc/Protocol.h: Likewise.
2456 * objc/encoding.h: Likewise.
2457 * objc/hash.h: Likewise.
2458 * objc/runtime.h: Likewise.
2459 * objc/sarray.h: Likewise.
2460 * objc/thr.h: Likewise.
2461 * objc/typedstream.h: Likewise.
2462 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2463 (objc_static_instances): For C++ case, do away with
2464 zero-sized array.
2465 (objc_method): Hoist definition to file scope.
2466 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
32ee7eb8 2467 class_get_instance_method, class_create_instance,
b51dff7b 2468 class_get_class_name, class_get_instance_size,
2469 class_get_meta_class, class_get_super_class, class_get_version,
2470 class_is_class, class_is_meta_class, class_set_version,
2471 class_get_gc_object_type, class_ivar_set_gcinvisible,
2472 get_imp): Rename 'class' parameter to '_class'.
2473 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2474 * objc/objc.h: Update copyright date.
2475 (arglist_t): Provide a union tag.
2476
c1d30c57 24772004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2478
2479 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2480 but instead use the attribute noreturn.
2481
78f7fe68 24822004-06-28 Zack Weinberg <zack@codesourcery.com>
2483
2484 * encoding.c: Rename target_flags with a #define to avoid
2485 conflict with a prior declaration.
2486
c2740ba8 24872004-06-24 Andrew Pinski <apinski@apple.com>
2488
2489 * objc/encoding.h: Wrap the functions with extern "C" for C++
78f7fe68 2490 mode.
c2740ba8 2491 * objc/hash.h: Likewise.
2492 * objc/objc-api.h: Likewise.
2493 * objc/objc-list.h: Likewise.
2494 * objc/runtime.h: Likewise.
2495 * objc/sarray.h: Likewise.
2496 * objc/thr.h: Likewise.
2497 * objc/typedstream.h: Likewise.
2498
2499
371d0c11 25002004-06-21 Nick Clifton <nickc@redhat.com>
2501
2502 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2503 provided.
2504
98fde024 25052004-06-20 Alexander Malmberg <alexander@malmberg.org>
2506
78f7fe68 2507 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2508 (exception_gc.lo): New.
2509 (OBJS_GC): Add exception_gc.lo.
2510
2c5cfd29 25112004-06-17 Richard Henderson <rth@redhat.com>
2512
2513 * exception.c: New file.
2514 * Makefile.in (exception.lo): New.
2515 (OBJS): Add it.
2516
f793c280 25172004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2518
2519 * linking.m (_objcInit): New empty function
2520 for Darwin only.
2521
08a135f0 25222004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2523
a4761b96 2524 * configure.ac: Support --enable-shared=libobjc.
2525 * configure: Regenerate.
2526
08a135f0 2527 PR libobjc/15901
2528 * configure.ac: Do not disable shared by default.
2529 * configure: Regenerate.
2530
ff2b971f 25312004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2532
2533 * Protocol.m ([-isEqual:]): Small optimizations returning
2534 immediately if the argument is equal to self, and accessing
2535 the argument's name directly if it's a protocol.
2536
25372004-06-03 David Ayers <d.ayers@inode.at>
2538
2539 * Protocol.m ([-isEqual:]): Test the class of the argument.
2540
166e6519 25412004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2542
ce716239 2543 * configure.ac (includedir): Rename to ...
2544 (includedirname).
2545 * Makefile.in: s/includedir/includedirname/.
2546
166e6519 2547 PR target/11572
2548 * configure.ac (includedir): Set to "include"
2549 except for Darwin.
2550 (libext) Set to empty except for Darwin.
2551 * configure: Regenerate
2552 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2553 s/include/$(includedir)/g.
2554
428b4753 25552004-05-25 Daniel Jacobowitz <drow@false.org>
2556
2557 * Makefile.in: Add .NOEXPORT.
2558
dd86e3be 25592004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2560
2561 Merge from the libobjc-branch
2562 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
78f7fe68 2563
dd86e3be 2564 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
78f7fe68 2565
dd86e3be 2566 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
78f7fe68 2567
dd86e3be 2568 * Makefile.in (OBJC_H): Add objc-deps.h.
78f7fe68 2569
dd86e3be 2570 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
78f7fe68 2571
dd86e3be 2572 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2573 ([-hash], [-isEqual:]): New methods.
78f7fe68 2574
dd86e3be 2575 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
78f7fe68 2576
dd86e3be 2577 * sarray.c (sarray_free): Add a better comment.
78f7fe68 2578
dd86e3be 2579 2004-01-27 Adam Fedor <fedor@gnu.org>
78f7fe68 2580
dd86e3be 2581 * hash.c (hash_add): Cast cachep to int.
2582 * selector.c (__sel_register_typed_name): Cast
2583 soffset_decode to int.
78f7fe68 2584
dd86e3be 2585 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
78f7fe68 2586
dd86e3be 2587 * selector.c: Rename register_selectors_from_list to
2588 __objc_register_selectors_from_list. Update caller.
2589 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2590 while registering selectors. Use __sel_register_typed_name instead
2591 of sel_register_typed_name. Check for NULL method_name:s.
2592 (pool_alloc_selector): New function.
2593 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2594 selector structures.
2595 * sendmsg.c (class_add_method_list): Use
2596 __objc_register_selectors_from_list.
2597 * objc/runtime.h: Add __objc_register_selectors_from_list.
78f7fe68 2598
dd86e3be 2599 2004-01-25 Adam Fedor <fedor@gnu.org>
78f7fe68 2600 Nicola Pero <n.pero@mi.flashnet.it>
2601 Andrew Pinski <pinskia@physics.uc.edu>
2602
dd86e3be 2603 * objc/objc-decls.h: New file.
2604 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2605 (_objc_load_callback): Likewise.
2606 (_objc_object_alloc): Likewise.
2607 (_objc_object_copy): Likewise.
2608 (_objc_object_dispose): Likewise.
78f7fe68 2609
dd86e3be 2610 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
78f7fe68 2611
dd86e3be 2612 * archive.c: s/__inline__/inline
78f7fe68 2613 * sendmsg.c: Likewise.
2614
dd86e3be 2615 * encoding.c: Remove FIXME about the warning
2616 about unused variable.
2617 * sendmsg.c: Add a FIXME comment saying that
2618 this should be using libffi.
78f7fe68 2619
dd86e3be 2620 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
78f7fe68 2621
dd86e3be 2622
051078cb 26232004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2624
2625 * archive.c (objc_read_class): Initialize class_name.
2626 (objc_read_selector): Initialize selector_name.
2627
57a4c641 26282004-05-09 Richard Sandiford <rsandifo@redhat.com>
2629
2630 * Makefile.in (toolexecdir): Remove trailing space.
2631
b5bed5a5 26322004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2633
2634 PR libobjc/14948
2635 * configure.ac: De-precious CC so multilibs work.
2636 * configure: Regenerate.
2637
85fe910a 26382004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2639
2640 * configure.ac: Restore toolexecdir.
2641 * Makefile.in: Restore toolexecdir.
2642 * configure: Regenerate.
2643
9c4e05bc 26442004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2645
5c89e003 2646 * configure.ac: Remove (unused) glibcpp_prefixdir.
2647 * configure: Regenerate.
2648
4330fb65 2649 * configure.in: Rename to configure.ac.
2650 * Makefile.in: Update to match.
2651
7fc7cb73 2652 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2653 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2654 * configure.in: Remove glibcpp_toolexecdir (unused).
2655 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2656 config.h or stamp-h (unused). Move one comment to the right place.
2657 * configure: Regenerate.
2658 * config.h.in: Remove (unused).
2659
db33ae15 2660 * config.h.in: Regenerate with autoheader.
2661
5af8565b 2662 * Makefile.in: Remove (unused) gcc_version_trigger.
2663 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2664 gcc_version_trigger.
2665 * configure: Regenerate.
2666
0404be24 2667 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2668 Sort file into sections. Remove dnl where appropriate. Fix
2669 other style issues.
2670 * configure: Regenerate.
2671
109c3844 2672 * configure.in: Replace old AC_PROG_CC hack with new one.
2673 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2674 are no subdirectory output files, so this is fine). Change prereq
2675 to autoconf 2.59.
2676 * aclocal.m4: Include ../config/no-executables.m4.
2677 * configure: Regenerate with autoconf 2.59.
2678
aaa34aa0 2679 * configure.in: Improve comments on gthread_cflags. Improve m4
2680 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2681 * configure: Regenerate.
2682
62fa4357 2683 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2684 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2685 redundant checks for values of RANLIB, AR, INSTALL.
2686 * configure: Regenerate.
2687
9c4e05bc 2688 * configure.in: Clean up handling of
2689 --enable-version-specific-runtime-libs and related variables;
2690 replace 'if test' with 'case' where reasonable. Fix comments.
2691 Remove useless libstdcxx_interface.
2692 * configure: Regenerate.
2693
2694 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2695 Replace uses of target_alias with target_noncanonical.
2696 * aclocal.m4: Include ../config/acx.m4.
2697 * configure: Regenerate.
2698 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2699 Fix copyright statement.
2700
2701 * configure.in: Hand-inline bulky, confusing macros from
2702 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2703 Update copyright notice. Remove stuff for automake, which isn't
2704 used in this directory. Remove emacs local variables.
2705 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2706 * configure: Regenerate.
2707
57517ed7 27082004-03-16 Manfred Hollstein <mh@suse.com>
2709
2710 * Makefile.in, configure.in, configure: Update copyright years.
2711
f01fd551 27122004-03-15 Manfred Hollstein <mh@suse.com>
2713
2714 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2715 definition from configure.in.
2716 * configure.in (PACKAGE): Add definition.
2717 (VERSION): Add definition; substitute it in output files.
2718 * configure: Re-generate.
2719
85a9f75f 27202004-03-05 Ziemowit Laski <zlaski@apple.com>
2721
2722 * objc/hash.h (hash_string, compare_strings):
2723 Add type-casts to make Objective-C++ happy.
2724 * objc/typedstream.h (objc_get_stream_class_version):
2725 Rename parameter from 'class' to 'class_name' to make
2726 Objective-C++ happy.
2727
e611f5ed 27282004-03-01 Michael Matz <matz@suse.de>
2729
2730 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2731
7e200d93 27322004-02-06 Ziemowit Laski <zlaski@apple.com>
2733
2734 * objc/objc-api.h (objc_super): The 'class' field shall
2735 be named 'super_class' #ifdef __cplusplus.
2736
d84c6db8 27372004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2738
2739 PR target/10781
2740 * encoding.c (rs6000_special_round_type_align): Define.
2741
7ac2c97c 27422004-01-14 Adam Fedor <fedor@gnu.org>
2743
2744 PR libobjc/12155
2745 * selector.c (__objc_register_instance_methods_to_class): Free
2746 new_list if not used.
2747
4e2e0242 27482004-01-09 Andrew Ruder <aeruder@ksu.edu>
2749
2750 PR libobjc/11904
2751 * sarray.c (sarray_free): Free array->is_copy_of latter.
2752
c34d298c 27532003-12-01 Zack Weinberg <zack@codesourcery.com>
2754
2755 PR 11433
2756 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2757 instance_methods if it's NULL.
2758 (descriptionForClassMethod): Likewise for class_methods.
2759
5148359d 27602003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2761
2762 * Makefile.in (runtime-info.h): Remove -Wp.
2763
ad911efc 27642003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2765
2766 * Makefile.in (CC1OBJ): Remove.
2767 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2768 correctly.
2769 Use .m extension for temporary file.
2770 Remove assembler temp file.
2771
6f579207 27722003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2773
2774 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2775
61a0eea4 27762003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2777
2778 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2779
9165b0af 27802003-09-09 Alan Modra <amodra@bigpond.net.au>
2781
2782 * configure: Regenerate.
2783
fcf30240 27842003-08-27 Alexander Malmberg <alexander@malmberg.org>
2785
2786 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2787 (libdir)/gcc-lib/ when installing.
2788 * configure: Regenerate.
2789
c3176bc8 2790Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2791
2792 libobjc/9969
2793 * sendmsg.c (get_imp): Fixed rare threading problem.
2794 (__objc_responds_to): Similar fixes.
2795 (objc_msg_lookup): Similar fixes.
2796 (__objc_init_install_dtable): Lock the runtime before checking if the
2797 table is installed.
c34d298c 2798
893d9197 27992003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2800
a622d84f 2801 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2802 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2803 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2804 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
c34d298c 2805 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
a622d84f 2806 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
893d9197 2807 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2808 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2809 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2810 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2811 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2812
83e8faaa 2813Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
c34d298c 2814 Nicola Pero <n.pero@mi.flashnet.it>
83e8faaa 2815
2816 libobjc/10742
2817 * init.c (class_superclass_of_class): New function.
2818 (create_tree_of_subclasses_inherited_from): Use it.
2819 (__objc_tree_insert_class): Likewise.
2820 (class_is_subclass_of_class): Likewise.
c34d298c 2821
c5c4daed 28222003-04-11 David Chad <davidc@freebsd.org>
2823 Loren J. Rittle <ljrittle@acm.org>
2824
2825 libobjc/8562
2826 * objc/hash.h (hash_string): Constify correctly.
2827 (compare_ptrs): Use direct compare.
2828 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2829 * objc/sarray.h: Global rename index to indx to avoid shadow.
2830
777bb3dc 28312003-03-12 Andreas Schwab <schwab@suse.de>
2832
2833 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2834 glibcpp_toolexeclibdir.
2835 * configure: Rebuilt.
2836
e4e6363f 28372003-02-20 Alexandre Oliva <aoliva@redhat.com>
2838
2839 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2840 config.status.
2841 * configure: Rebuilt.
2842
534a4c5a 28432003-01-27 Alexandre Oliva <aoliva@redhat.com>
2844
2845 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2846 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2847 version_specific_libs is enabled.
2848 * configure: Rebuilt.
2849
71aad3b8 28502003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2851
2852 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2853 (install-libs, install-headers): Prepend $(DESTDIR) to
2854 destination paths in all (un)installation commands.
2855
805e22b2 28562002-12-02 Zack Weinberg <zack@codesourcery.com>
2857
2858 * thr-objc.c: Include coretypes.h and tm.h.
2859
28602002-12-01 Zack Weinberg <zack@codesourcery.com>
2861
2862 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2863
28642002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2865
2866 * configure.in: Remove skip-this-dir support.
2867 * configure: Regenerate.
2868
5f7912d8 28692002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2870
2871 * Makefile.in (all): Fix multilib parallel build.
2872
fb776f7c 2873Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2874
2875 * sendmsg.c (nil_method): Declare not to take a variable number of
2876 args.
2877 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2878 (objc_msg_lookup_super): The same.
2879
d652db17 28802002-09-10 Jan Hubicka <jh@suse.cz>
2881
4774037d 2882 * nil_method.c (nil_method): No longer defined with variable
2883 arguments.
d652db17 2884
61776355 28852002-07-02 Rodney Brown <rbrown64@csc.com.au>
2886
2887 * objc/encoding.h: Fix formatting.
2888 * objc/hash.h: Likewise.
2889 * objc/objc-api.h: Likewise.
2890 * objc/runtime.h: Likewise.
2891 * objc/thr.h: Likewise.
2892 * archive.c: Likewise.
2893 * class.c: Likewise.
2894 * encoding.c: Likewise.
2895 * gc.c: Likewise.
2896 * hash.c: Likewise.
2897 * init.c: Likewise.
2898 * misc.c: Likewise.
2899 * nil_method.c: Likewise.
2900 * objects.c: Likewise.
2901 * sarray.c: Likewise.
2902 * selector.c: Likewise.
2903 * sendmsg.c: Likewise.
2904 * thr-mach.c: Likewise.
2905 * thr.c: Likewise.
2906
8400ab1c 29072002-06-25 DJ Delorie <dj@redhat.com>
2908
2909 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2910 GLIBCPP_TOPREL_CONFIGURE.
2911 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2912 * configure: Regenerate.
2913
94627e4f 29142002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2915
2916 * Object.m (forward, read, write): Fix unused parameter warnings.
2917 * encoding.c: Include <stdlib.h>.
2918 (target_flags): Mark with attribute unused.
2919 (atoi): Delete.
2920 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2921 (__objc_generate_gc_type_description): Prototype.
2922 * selector.c (__objc_selector_max_index): Change to unsigned int.
2923
ce04f8fd 2924Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2925
2926 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2927 we always have a return value: if __objc_msg_forward does not
2928 supply a forwarding implementation, return the default
2929 __builtin_apply based one.
2930
adff42e6 29312002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2932
2933 * Object.m: Fix signed/unsigned warning.
2934 * Protocol.m: Likewise.
2935 * archive.c: Always include stdlib.h.
2936 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2937 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2938 Fix signed/unsigned warning.
2939 (objc_write_type, objc_read_type, objc_write_types,
2940 objc_read_types): Ensure ctype 8-bit safety.
2941 (__objc_no_write, __objc_no_read): Mark unused parameters.
2942 * class.c (class_table_setup): Specify void arg.
2943 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2944 objc_skip_typespec, objc_skip_offset,
2945 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2946 (objc_layout_structure_next_member): Ensure variables are
2947 initialized.
2948 * gc.c (__objc_generate_gc_type_description,
2949 class_ivar_set_gcinvisible): Mark unused parameters.
2950 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2951 unused parameters.
2952 (__objc_init_protocols) Fix signed/unsigned warning.
2953 * nil_method.c (nil_method): Mark unused parameters.
2954 * thr.h (objc_thread_callback): Specify void arg.
2955 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2956 signed/unsigned warning.
2957 (sarray_free): Fix formatting.
2958 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2959 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2960
5564b88a 29612002-06-09 Andreas Jaeger <aj@suse.de>
2962
2963 * encoding.c (objc_layout_structure_next_member): Remove unused
2964 variable.
2965
c86bfe45 29662002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2967
2968 * Makefile.in (SHELL): Set to @SHELL@.
2969 (WARN_CFLAGS): New.
2970 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2971
3354d061 29722002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2973
2974 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2975 * configure: Regenerate.
2976
0b045cf7 29772002-05-08 Alexandre Oliva <aoliva@redhat.com>
2978
2979 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2980 script entry, and set LD to it when configuring multilibs.
2981 * configure: Rebuilt.
2982
8c864ef7 29832002-04-19 David O'Brien <obrien@FreeBSD.org>
2984
2985 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2986
7729d43d 29872002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
6dd85fea 2988
2989 PR objc/6107
2990 * objc/objc-api.h (struct objc_protocol_list): Change type of
2991 member count from int to size_t.
2992
6ed57656 29932002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2994
2995 PR libobjc/4039
2996 * aclocal.m4: Replace with version copied from libstdc++-v3.
2997 * configure.in: Update for changes to aclocal and Makefile.
2998 * configure: Regenerate.
2999 * Makefile.in: Correct install of multilibs and shared libs, use
3000 INSTALL_DATA for include files.
3001
0ddb9c76 3002Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
3003
3004 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
3005 categories - when an unclaimed category was found, the loop was
3006 doing two steps forward instead of one, so that in certain cases
3007 it was failing to properly load all the categories. (Reported
3008 with fix by Alexander Malmberg <alexander@malmberg.org>).
3009
5047c11e 30102001-11-14 Aldy Hernandez <aldyh@redhat.com>
3011
805e22b2 3012 * encoding.c: Add target_flags.
5047c11e 3013
cd0e3261 30142001-11-07 Aldy Hernandez <aldyh@redhat.com>
3015
3016 * objc/objc-api.h (_C_VECTOR): New.
3017
3018 * encoding.c (VECTOR_TYPE): New.
3019
349400a7 3020Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
3021
3022 * class.c: Rewritten the class table to use optimized, lock-free
805e22b2 3023 lookup. This more than doubles the speed of class method
3024 invocations. (class_table_setup), (class_table_insert),
3025 (class_table_replace), (class_table_get_safe),
3026 (class_table_next), (class_table_print),
3027 (class_table_print_histogram): New functions.
3028 (__objc_init_class_tables): Use class_table_setup.
3029 (__objc_add_class_to_hash): Use class_table_get_safe and
3030 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
3031 assert the existence of the table; do not lock the runtime; use
3032 class_table_get_safe. (objc_next_class): Use class_table_next.
3033 (__objc_resolve_class_links): Use class_table_next.
3034 (class_pose_as): Use class_table_replace.
349400a7 3035
b4b9ecee 30362001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
3037
3038 * gc.c: Removed the DEBUG declaration.
3039
8bae5b95 3040Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
3041
3042 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
3043 rather than through objc_thread_id, to save a function call.
3044 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
3045 Ditto.
3046
af5fe68c 3047Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
3048
3049 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
3050 to cast an id to a Class, which can not be done. Make the check
3051 by using CLS_ISMETA on the class pointer instead.
3052 (object_is_meta_class): Similar fix.
3053
2f39b190 30542001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
3055
3056 * configure.in (AC_EXEEXT): Work around in case it expands to
3057 nothing, as in autoconf 2.50.
3058 * acinclude.m4: Likewise.
3059 * configure: Rebuilt.
3060
43d18c77 30612001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
3062
3063 * THREADS: Explain that when we compile libobjc inside GCC, we
3064 always use thr-objc.c as a backend, which uses GCC's thread code.
3065
cd7d360c 30662001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
3067
3068 * init.c (__objc_send_message_in_list): When setting a new entry
3069 in __objc_load_methods use the method IMP as key, but check to see
3070 if the method is in the hashtable by looking at the IMP also.
3071 Also ... call the method after adding it to the hashtable rather
3072 than before ... thus preventing an obscure possibility of infinite
3073 recursion if a +load method itself loads a subclass.
3074
b10e57a2 30752001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
3076
3077 * init.c (__objc_send_message_in_list): When setting a new entry
3078 in __objc_load_methods use the method name as key, not the method
3079 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
3080
6b515411 30812001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
3082
3083 * objc-features.texi: Move to ../gcc/objc.texi.
3084 * fdl.texi: Remove.
3085 * Makefile.in: Don't generate documentation from
3086 objc-features.texi.
3087
fa3ae5be 30882001-05-01 Mark Mitchell <mark@codesourcery.com>
3089
3090 * fdl.texi: New file.
3091 * objc-features.texi: Simplify.
3092 * Makefile.in: Adjust accordingly.
3093
79485864 30942001-04-30 Mark Mitchell <mark@codesourcery.com>
3095
3096 * objc-features.texi: Use the GFDL.
3097
ae878573 3098Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
3099
3100 * encoding.c (REAL_TYPE): Define.
3101
5c1ebe4d 31022001-03-19 David Edelsohn <edelsohn@gnu.org>
3103
3104 * encoding.c (TYPE_MODE): Define.
3105
ad5a392a 31062001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
3107
3108 * thr.c (objc_thread_add): New function.
3109 (objc_thread_remove): Ditto.
3110 * objc/thr.h: Declare them.
3111 * libobjc.def: Mention them.
3112
d36fe200 31132001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
3114
3115 * objc-features.texi: Document the @compatibility_alias compiler
3116 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
3117
899d0712 3118Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3119
3120 * sendmsg.c (__objc_forward): Delete strlen() declaration.
3121
ce7c4a11 31222001-02-08 Geoffrey Keating <geoffk@redhat.com>
3123
3124 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
3125 we're not interested in the result and they might fail.
3126 * configure: Regenerated.
3127
1aef4dfb 31282001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3129
3130 * objc-features.texi: Use @email.
3131
5f9d2886 31322001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3133
3134 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
3135 printf.
3136
496fac8b 31372000-01-11 Richard Earnshaw <rearnsha@arm.com>
3138
3139 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
3140 determines the value dynamically.
3141
f847de15 3142Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
3143
3144 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
3145 libraries to provide a function that returns the real forwarding
3146 function. This can alleviate problems __builtin_apply() and
3147 friends have on various platforms. (Solution suggested by Helge
3148 Hess.)
5564b88a 3149
f847de15 3150 * objc/objc-api.h: Define __objc_msg_forward.
3151
3152 * sendmsg.c: Define gen_rtx_REG.
3153
a6c846da 31542000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3155
5564b88a 3156 * thr-rtems.c: New file. Stub to compile.
a6c846da 3157
1f59acbe 31582000-09-06 Alexandre Oliva <aoliva@redhat.com>
3159
3160 * configure: Rebuilt with new libtool.m4.
3161
0d79105f 3162Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3163
3164 * configure.in: Create a config.h file. Check for <sched.h>.
3165 * configure: Regenerate.
3166
3167 * config.h.in: Check for <sched.h>.
3168
e800dd2f 31692000-08-14 Zack Weinberg <zack@wolery.cumb.org>
3170
3171 * configure: Regenerate after change to ../libtool.m4.
3172
8692c712 31732000-08-14 Andreas Schwab <schwab@suse.de>
3174
3175 * objc-features.texi (Top): Move @menu at end of node.
3176
13cc7b4d 31772000-08-11 Manfred Hollstein <manfredh@redhat.com>
3178
3179 * objc-features.texi: Move @node Top before @menu.
3180
657b083d 3181Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3182
3183 * objc-features.texi: Documented the new -fconstant-string-class
3184 option.
3185
6e6b1a8a 3186Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3187
3188 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3189 improve the Posix thread support for Objective-C.
3190
6d6a89c5 31912000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3192
3193 * aclocal.m4: Replace copy of ../libtool.m4 with
3194 sinclude(../libtool.m4).
3195
0f72a548 3196Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
3197
5564b88a 3198 * configure.in: Added libtool support; build shared libraries
0f72a548 3199 if --enable-shared was passed on command line.
3200 * Makefile.in: Modified most compilation commands to use libtool.
3201 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3202 libtool distribution.
3203
6d09d1f2 3204Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3205
3206 * sarray.c, Object.m: Removed the explicit prototypes for strlen
3207 and memcpy on 64-bit platforms (Suggested by Rodney Brown
3208 <rdb@cup.hp.com>).
3209
6319d58e 32102000-05-12 H.J. Lu (hjl@gnu.org)
3211
3212 * Makefile.in (GTHREAD_FLAGS): New.
3213 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3214 (OBJC_THREAD_FILE): Changed to thr-objc.
3215
3216 * configure.in (GTHREAD_FLAGS): New, check and replace it for
3217 Makefile.
3218 (OBJC_THREAD_FILE): Removed.
3219
3220 * thr-objc.c: New.
3221
e6f6a036 32222000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3223
3224 * objc/hash.h: Include string.h.
3225
b53b6b48 32262000-04-15 David Edelsohn <edelsohn@gnu.org>
3227
3228 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3229
3c2f1b06 32302000-04-12 Jakub Jelinek <jakub@redhat.com>
3231
3232 * Object.m (strlen): Provide prototype on all 64bit platforms,
3233 not only alpha.
3234 * sarray.c (memcpy): Likewise.
3235 * encoding.c (objc_layout_finish_structure): Don't use
3236 ROUND_TYPE_ALIGN on sparc.
3237
c2e46ff4 3238 * encoding.c (objc_layout_structure_next_member): Do the whole
3239 procedure even for the first member, so that we get correct
3240 alignment.
3241
4876fb4e 32422000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3243
3244 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3245 comments.
3246
040f791a 32472000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3248
3249 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3250
792564c1 3251Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3252
3253 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3254
2402e02a 3255Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3256
3257 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3258 the compiler when building C code.
5564b88a 3259
f92ff492 3260Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3261
3262 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3263 libdir, libsubdir and tooldir.
3264
3dc3ad44 3265Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3266
3267 * init.c (__objc_force_linking): Make global.
3268
d77c0735 3269Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3270
3271 * configure.in (AC_EXEEXT): Remove call.
3272 (compiler_name): Explicitly check with no extension and .exe
3273 extension.
3274 * configure: Regenerate.
3275
fa757077 3276Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3277
3278 * Makefile.in (CC1OBJ): Define in terms of CC.
3279 (runtime-info.h): Use.
3280
dff75b13 3281Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3282
3283 * objc-features.texi: Updated the URL to Boehm's GC page.
3284
70565d41 3285Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3286
3287 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3288 the char as being signed (patch from Daniel Jacobowitz
3289 <drow@false.org>).
3290
ff9549e0 3291Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3292
3293 * configure.in (AC_PREREQ): Update to 2.13.
3294 (AC_EXEEXT): Call to find possible file extension.
3295 (compiler_name): Use.
3296 * configure: Regenerate.
3297
be2828ce 3298Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3299
3300 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3301
5ed09c3b 3302Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3303
3304 * configure.in (thread_file): Correct and simplify code to find
3305 the thread file.
3306 * configure: Rebuilt.
3307
76103b2c 33081998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3309
3310 * configure.in (compiler_name): Add check to detect if this
3311 language's compiler has been built.
3312 * configure: Regenerate.
3313
5170365c 3314Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3315
3316 * configure.in: Use AC_PREREQ(2.12.1).
3317
526e84e1 3318Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3319
3320 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3321
dbe0221c 3322Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3323
3324 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3325
27de689d 3326Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3327
3328 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3329
fbe09d4b 3330Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3331
3332 * objc-features.texi (Top): Changed the email address.
3333 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3334
3335Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3336
3337 * encoding.c: Redefine get_inner_array_type to get the first entry
5564b88a 3338 in the structure.
fbe09d4b 3339
0dff7c81 3340Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3341
3342 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3343 (objc_get_type_qualifiers): Similarly.
3344 * objc/encoding.h (_C_BYREF): Define.
3345 (_F_BYREF): Define.
3346
e0392629 33471998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3348
3349 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3350 works out on 64-bit systems.
3351
09fa2580 3352Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3353
ea0cacfb 3354 * Makefile.in (INCLUDES): Make it multilib-friendly.
09fa2580 3355
28f03bef 3356Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3357
3358 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3359
7ca6de5f 3360Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3361 Jeffrey A Law (law@cygnus.com)
3362
3363 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3364 (FLAGS_TO_PASS): Added.
3365 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3366
3367 * archive.c: Change config.h to tconfig.h.
3368
3369 * configure.in: Find gcc's object directory even for multilibs.
3370
3371Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
2e6e4a81 3372
3373 * configure.in: Escape ^ in grep string.
3374 * configure: Rebuilt.
3375
3c3646e7 3376Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3377
3378 * All .h files pushed down into the objc/ subdirectory.
3379 * Makefile.in (copy_headers): Corresponding changes.
3380 * configure.in (AC_INIT): Corresponding changes.
3381 * configure: Rebuilt.
3382
265ab036 33831998-09-30 Ben Elliston <bje@cygnus.com>
3384 Jeff Law <law@cygnus.com>
3385
3386 * Makefile.in: Rewrite.
3387
3388 * configure.in: Likewise.
3389
3390 * configure: Regenerate.
3391
3392 * All .c files. Remove "objc" prefix when including objc header
3393 files. Include tconfig.h, not ../tconfig.h.
3394
2263844a 3395Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3396
3397 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3398 (get_inner_array_type): Define.
3399
8a7d0ecc 34001998-09-21 Ben Elliston <bje@cygnus.com>
3401
3402 * New directory. Moved files from ../gcc/objc.