]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/ChangeLog
re PR c++/80290 (g++ uses unreasonable amount of memory compiling nested string maps)
[thirdparty/gcc.git] / libobjc / ChangeLog
CommitLineData
001ddaa8
DM
12018-04-18 David Malcolm <dmalcolm@redhat.com>
2
3 PR jit/85384
4 * configure: Regenerate.
5
14e335ed
IT
62018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7
8 PR target/84148
9 * configure: Regenerate.
10
85ec4feb
JJ
112018-01-03 Jakub Jelinek <jakub@redhat.com>
12
13 Update copyright years.
14
7f339ecb
TV
152017-11-23 Tom de Vries <tom@codesourcery.com>
16
17 * class.c (CLASS_TABLE_HASH): Wrap in "do {} while (0)".
18
7b7168cf
IT
192017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
20
21 * Makefile.in: Regenerate.
22 * aclocal.m4: Likeiwse.
23 * configure: Likewise.
24 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
25
4e10a5a7
RS
262017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
27 Alan Hayward <alan.hayward@arm.com>
28 David Sherwood <david.sherwood@arm.com>
29
30 * encoding.c (_darwin_rs6000_special_round_type_align): Prefix mode
31 names with E_ in case statements.
32
a4cf4b64
RB
332017-02-07 Richard Biener <rguenther@suse.de>
34
35 PR tree-optimization/79256
36 PR middle-end/79278
37 * encoding.c (objc_layout_structure_next_member): Adjust
38 ADJUST_FIELD_ALIGN usage.
39
8465132c
MK
402017-01-18 Matthias Klose <doko@ubuntu.com>
41
42 PR libobjc/78697
43 * configure.ac: Allow default for --with-target-bdw-gc-include.
44 * configure: Regenerate.
45
46 PR libobjc/78698
47 * configure.ac: Use the libgc.la file when available.
48 * configure: Regenerate.
49
3c36aa6b
JJ
502017-01-17 Jakub Jelinek <jakub@redhat.com>
51
52 PR other/79046
53 * configure: Regenerated.
54 * configure.ac: Add GCC_BASE_VER.
55 * Makefile.in (gcc_version): Use @get_gcc_base_ver@ instead of cat to
56 get version from BASE-VER file.
57 * configure: Regenerated.
58
cbe34bb5
JJ
592017-01-01 Jakub Jelinek <jakub@redhat.com>
60
61 Update copyright years.
62
825fba52
MK
632016-12-01 Matthias Klose <doko@ubuntu.com>
64
65 * configure.ac: Don't use pkg-config to check for bdw-gc.
66 * configure: Regenerate.
67
de683d58
MK
682016-11-30 Matthias Klose <doko@ubuntu.com>
69
70 * configure.ac: Set BDW_GC_CFLAGS and BDW_GC_LIBS after checking
71 for the existence of the pkg-config modules.
72 * Regenerate.
73
ac02e9a8
JJ
742016-11-30 Jakub Jelinek <jakub@redhat.com>
75
76 * configure.ac (--enable-objc-gc): If not given, default to
77 enable_objc_gc=no.
78 * configure: Regenerated.
79
114bf3f1
MK
802016-11-30 Matthias Klose <doko@ubuntu.com>
81
82 * configure.ac (--enable-objc-gc): Allow to configure with a
83 system provided boehm-gc.
84 * configure: Regenerate.
85 * Makefile.in (OBJC_BOEHM_GC_LIBS): Get value from configure.
86 * gc.c: Include system bdw-gc headers.
ac02e9a8
JJ
87 * memory.c: Likewise.
88 * objects.c: Likewise.
114bf3f1 89
84c1b9d3
MK
902016-11-15 Matthias Klose <doko@ubuntu.com>
91
92 * aclocal.m4: Regenerate.
93 * configure: Likewise.
94
818ab71a
JJ
952016-01-04 Jakub Jelinek <jakub@redhat.com>
96
97 Update copyright years.
98
a153644f
TS
992015-11-07 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
100
101 PR libobjc/24775
102 * encoding.c (_darwin_rs6000_special_round_type_align): Use
103 __CHAR_BIT__ instead of BITS_PER_UNIT.
104 (objc_sizeof_type): Likewise.
105 (objc_layout_structure): Likewise.
106 (objc_layout_structure_next_member): Likewise.
107 (objc_layout_finish_structure): Likewise.
108 (objc_layout_structure_get_info): Likewise.
109
4ee6515e
TS
1102015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
111
112 PR libobjc/24775
113 * encoding.c (objc_layout_finish_structure): Remove usage of
114 ROUND_TYPE_SIZE.
115
df6c48ba
TS
1162015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
117
118 PR libobjc/24775
119 * sendmsg.c (tm.h): Remove include.
120
5625cfc4
TS
1212015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
122
123 PR libobjc/24775
124 * sendmsg.c (gen_rtx): Remove macro.
125 (gen_rtx_MEM): Likewise.
126 (gen_rtx_REG): Likewise.
127 (rtx): Likewise.
128
2f0c2a0c
TS
1292015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
130
131 PR libobjc/24775
132 * sendmsg.c: Remove check of STRUCT_VALUE macro.
133
9b92a9f3
EB
1342015-05-13 Eric Botcazou <ebotcazou@adacore.com>
135
136 * configure.ac: Remove manual SJLJ check.
137 * config.h.in: Regenerate.
138 * configure: Likewise.
139 * exception.c: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__.
140
2394528d
MH
1412015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
142
143 * aclocal.m4: Regenerated with automake-1.11.6.
144
d6ed95fc
TS
1452015-05-04 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
146
147 * configure: Regenerate.
148
4afeb6fc
TS
1492015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
150
151 * acinclude.m4: Include bitfields.m4.
152 * config.h.in: Regenerate.
153 * configure: Likewise.
154 * configure.ac: Invoke gt_BITFIELD_TYPE_MATTERS.
155 * encoding.c: Check HAVE_BITFIELD_TYPE_MATTERS.
156
e022edaf
TS
1572015-04-29 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
158
159 * encoding.c (objc_layout_structure_next_member): Check the value of
160 PCC_BITFIELD_TYPE_MATTERS not if it is defined.
161
6c6e94b9
RO
1622015-02-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
163
164 PR libobjc/63765
165 * thr.c (_XOPEN_SOURCE): Remove.
166
67caf538
MK
1672015-01-27 Matthias Klose <doko@ubuntu.com>
168
169 * sendmsg.c: Add prototypes for __objc_get_forward_imp and get_imp.
170
100bfe4a
DP
1712015-01-09 Dimitris Papavasiliou <dpapavas@gmail.com>
172
a5dbcace 173 PR libobjc/51891
100bfe4a
DP
174 * ivars.c: Add a check for classes without instance
175 variables, which have a NULL ivar list pointer.
176
5624e564
JJ
1772015-01-05 Jakub Jelinek <jakub@redhat.com>
178
179 Update copyright years.
180
a699d672
L
1812014-11-21 H.J. Lu <hongjiu.lu@intel.com>
182
183 PR bootstrap/63784
184 * configure: Regenerated.
185
ebf6d33b
FXC
1862014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
187
188 PR target/63610
189 * configure: Regenerate.
190
8c768629
RO
1912014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
192
193 * thr.c (_XOPEN_SOURCE): Define as 600.
194
98b383e4
AM
1952014-07-27 Alan Modra <amodra@gmail.com>
196 Matthias Klose <doko@ubuntu.com>
197
198 PR libobjc/61920
199
200 * encoding.c: Define rs6000_special_adjust_field_align_p.
201
f82356d2
RS
2022014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
203
204 Update copyright years
205
3cbe17f7
AM
2062013-09-20 Alan Modra <amodra@gmail.com>
207
208 * configure: Regenerate.
209
cad10e05
OB
2102013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
211
212 * class.c: Fix typos.
213 * encoding.c: Likewise.
214 * init.c: Likewise.
215 * objc-private/runtime.h: Likewise.
216 * objc/runtime.h: Likewise.
217 * objc-sync.c: Likewise.
218
3e676928
KT
2192013-07-04 Kai Tietz <ktietz@redhat.com>
220
221 * exception.c: Add check for SjLj to SEH blocks.
222
ad2466ae
RS
2232013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
224
225 Update copyright years.
226
ad1a0853
MM
2272012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
228
229 * encoding.c (TARGET_VSX): Provide definitions based on the
230 current compilation options, and not based off the target options
231 structure.
232 (TARGET_ALTIVEC): Likewise.
233 (TARGET_64BIT): Likewise.
234
a3476c48
DE
2352012-09-14 David Edelsohn <dje.gcc@gmail.com>
236
237 * configure: Regenerated.
238
bf1431e3
TG
2392012-07-19 Tristan Gingold <gingold@adacore.com>
240 Richard Henderson <rth@redhat.com>
241
242 * exception.c (__gnu_objc_personality_seh0): New function.
243
e6d5f8c9
L
2442012-05-16 H.J. Lu <hongjiu.lu@intel.com>
245
246 * configure: Regenerated.
247
5c30094f
RO
2482012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
249
250 * configure.ac (enable_objc_gc): Remove alpha*-dec-osf* handling.
251 * configure: Regenerate.
252
253 * thr.c (_XOPEN_SOURCE): Define unconditionally.
254
c6084f68
AT
2552011-11-21 Andreas Tobler <andreast@fgznet.ch>
256
257 * configure: Regenerate.
258
5d1c8e77
RO
2592011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
260
261 * Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
262 * configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
263 * configure: Regenerate.
264 * config.h.in: Regenerate.
265
eb405c46
PB
2662011-10-17 Paul Brook <paul@codesourcery.com>
267 Matthias Klose <doko@ubuntu.com>
268
269 * exception.c (parse_lsda_header): hardcode ttype_encoding for older
270 ARM EABI toolchains.
271 (get_ttype_entry) Remove __ARM_EABI_UNWINDER__ variant.
272
b4a50e43
NP
2732011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
274
275 PR libobjc/49883
276 * init.c (__objc_exec_class): Work around a bug in clang's code
277 generation. Clang sets the class->info field to values different
278 from 0x1 or 0x2 (the only allowed values in the traditional GNU
279 Objective-C runtime ABI) to store some additional information, but
280 this breaks backwards compatibility. Wipe out all the bits in the
281 fields other than the first two upon loading a class.
282
2832011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
bf1431e3 284
b4a50e43
NP
285 * class.c (objc_lookup_class): Added back for compatibility with
286 clang which seems to emit calls to it.
287
0ea39696
NP
2882011-10-08 Richard Frith-Macdonald <rfm@gnu.org>
289 Nicola Pero <nicola.pero@meta-innovation.com>
290
291 PR libobjc/50428
292 * sendmsg.c (__objc_send_initialize): If a class does not have an
293 +initialize method, search for an +initialize method in the
294 superclass and in the ancestor classes and execute the first one
295 that is found. This makes the GNU runtime behave in the same way
296 as the Apple/NeXT runtime with respect to +initialize methods and
297 subclassing.
298
0e0677a2
NP
2992011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
300
301 PR libobjc/50002
302 * class.c (__objc_update_classes_with_methods): Iterate over meta
303 classes as well as normal classes when refreshing the method
304 implementations. This fixes replacing class methods.
305
3062011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
307
308 * class.c (class_getSuperclass): Fixed to work with meta classes
309 still in construction too.
310
e2852612
NP
3112011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
312
313 * class.c (class_getSuperclass): Fixed typo in comment.
314
3f542037
NP
3152011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
316
317 PR libobjc/49882
318 * class.c (class_getSuperclass): Return the superclass if the
319 class is in construction.
320 * objc/runtime.h (class_getSuperclass): Updated documentation.
321
201cdb74
RO
3222011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323
324 * Makefile.in (INCLUDES): Search
325 $(srcdir)/$(MULTISRCTOP)../libgcc.
326
4fbff2d2
NP
3272011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
328
329 * objc/objc.h (__GNU_LIBOBJC__): Bumped to 20110608.
330
c7907a55
NP
3312011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
332
333 * configure.ac (VERSION): Bumped to 4:0:0.
334 * configure (VERSION): Likewise.
335
7c172073
NP
3362011-06-08 Nicola Pero <nicola.pero@meta-innovation.com>
337
338 * objc/README: Updated.
339 * objc-private/selector.h: Updated comments.
340
d05809af
NP
3412011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
342
343 * sendmsg.c (class_get_instance_method): Removed.
344 (class_get_class_method): Removed.
345 (objc_get_uninstalled_dtable): Removed.
346
0b0b41a8
NP
3472011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
348
349 * objc-private/module-abi-8.h (class_get_instance_size): Removed.
350 * objects.c (class_create_instance): Removed.
351 * error.c (__USE_FIXED_PROTOTYPES__): Removed.
352 * gc.c (__objc_generate_gc_type_description): Use
353 class_getInstanceSize() instead of class_get_instance_size().
354 * selector.c (sel_types_match): Made static.
355 (sel_get_typed_uid): Removed.
356 (sel_get_any_typed_uid): Removed.
357 (sel_get_name): Removed.
358 (sel_get_type): Removed.
359 (sel_register_name): Removed.
360 (sel_register_typed_name): Removed.
361 (sel_get_uid): Removed.
362
338efe0d
NP
3632011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
364
365 * encoding.c (method_get_number_of_arguments): Removed.
366 (method_get_sizeof_arguments): Removed.
367
69c32980
NP
3682011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
369
370 * class.c (objc_next_class): Removed.
371 (class_pose_as): Removed.
372 (CLASSOF): Removed.
373 (class_table_replace): Removed.
374 (objc_lookup_class): Removed.
375
80e4b9e5
NP
3762011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
377
378 Removed the Traditional Objective-C runtime public API.
379 * Makefile.in (OBJC_DEPRECATED_H): Variable removed.
380 (install-headers): Do not create the objc/deprecated directory and
381 do not install the deprecated headers.
382 (OBJC_H): Removed encoding.h and objc-api.h.
383 * Object.m: Removed all methods with the exception of -class and
384 -isEqual:. Updated includes. ([-class]): Use Modern API.
385 * objc/Object.h: Do not include deprecated/Object.h.
386 * objc/deprecated/Object.h: Removed.
387 * linking.m (__objc_linking): Call [Object class] instead of
388 [Object name].
389 * Protocol.m: Removed all methods with the exception of -isEqual:.
390 Updated includes.
391 * objc/Protocol.h: Do not include deprecated/Protocol.h.
392 * objc/deprecated/Protocol.h: Removed.
393 * objc/deprecated/struct_objc_symtab.h: Removed.
394 * objc/deprecated/struct_objc_module.h: Removed.
395 * objc/deprecated/struct_objc_ivar.h: Removed.
396 * objc/deprecated/struct_objc_ivar_list.h: Removed.
397 * objc/deprecated/struct_objc_method.h: Removed.
398 * objc/deprecated/struct_objc_method_list.h: Removed.
399 * objc/deprecated/struct_objc_protocol_list.h: Removed.
400 * objc/deprecated/struct_objc_category.h: Removed.
401 * objc/deprecated/MetaClass.h: Removed.
402 * objc/deprecated/objc_msg_sendv.h: Removed.
403 * objc/deprecated/README: Removed.
404 * objc/deprecated/struct_objc_class.h: Removed.
405 * objc/deprecated/struct_objc_protocol.h: Removed.
406 * objc/deprecated/struct_objc_selector.h: Removed.
407 * objc/encoding.h: Removed.
408 * objc/message.h (struct objc_super): Removed the definition for
409 the Traditional Objective-C runtime API.
410 * objc/objc.h: Do not include objc/objc-decls.h.
411 deprecated/struct_objc_selector.h, deprecated/MetaClass.h,
412 deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h
413 and deprecated/objc_msg_sendv.h. Uncommented new definition of
414 Protocol *.
415 * objc/objc-api.h: Removed.
416 * objc/runtime.h: Updated comments. Removed check to detect
417 concurrent usage of Traditional and Modern APIs.
418 * objc-private/module-abi-8.h: Always define struct objc_class and
419 struct objc_protocol. (struct objc_protocol_list): Changed type
420 of 'list' argument from 'Protocol *' to 'struct objc_protocol *'.
421 (class_get_instance_size): Added.
422 * objc-private/protocols.h (__objc_protocols_add_protocol): Take a
423 'struct objc_protocol *' as argument, not a 'Protocol *'.
424 * objc-private/runtime.h: Updated comments.
425 * objc-private/selector.h (struct objc_selector, sel_eq): Added.
426 * class.c: Include objc-private/selector.h.
427 (objc_get_meta_class): Return a Class instead of a MetaClass.
428 * encoding.c (method_get_next_argument): Removed.
429 (method_get_first_argument): Removed.
430 (method_get_nth_argument): Removed.
431 * gc.c: Include objc/runtime.h instead of objc/encoding.h.
432 Include objc-private/module-abi-8.h and ctype.h.
433 * protocols.c (__objc_protocols_add_protocol): Take a 'struct
434 objc_protocl *' as argument, not a 'Protocol *'.
435 (class_addProtocol): Added casts to 'struct objc_protocol *' and
436 'Protocol *'.
437 (class_copyProtocolList): Likewise.
438 (protocol_conformsToProtocol): Likewise.
439 (protocol_copyProtocolList): Likewise.
440 * sarray.c: Include objc-private/module-abi-8.h.
441 * sendmsg.c (method_get_next_argument): Removed.
442 (method_get_first_argument): Removed.
443 (method_get_nth_argument): Removed.
444 (objc_msg_sendv): Removed.
445 (arglist_t, retval_t): New. (class_get_class_method): Take a
446 'Class', not 'MetaClass', argument.
447 * thr.c: Include module-abi-8.h.
448
543ad675
NP
4492011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
450
451 * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h
452 and objc_get_uninstalled_dtable.h.
453 * objc/deprecated/struct_objc_static_instances.h: Removed.
454 * objc/deprecated/objc_get_uninstalled_dtable.h: Removed.
455 * objc/objc-api.h: Do not include deprecated/objc_static_instances.h
456 and deprecated/objc_get_uninstalled_dtable.h.
457
815d63dd
NP
4582011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
459
460 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
461 * objc/deprecated/objc_object_alloc.h: Removed.
462 * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
463 * objects.c (_objc_object_alloc, _objc_object_dispose,
464 _objc_object_copy): Removed.
465 * libobjc.def (__objc_object_alloc, __objc_object_copy,
466 __objc_object_dispose): Removed.
467
d2a1962d
NP
4682011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
469
470 * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
471 * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
472 * objc/deprecated/METHOD_NULL.h: Removed.
473
309ce401
NP
4742011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
475
476 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h,
477 objc_malloc.h and objc_unexpected_exception.h.
478 (exception.lo): Do not use -Wno-deprecated-declarations.
479 (exception_gc.lo): Likewise.
480 * objc/objc-api.h: Do not include deprecated/objc_valloc.h,
481 deprecated/objc_malloc.h and
482 deprecated/objc_unexpected_exception.h.
483 * objc/deprecated/objc_valloc.h: Removed.
484 * objc/deprecated/objc_malloc.h: Removed.
485 * objc/deprecated/objc_unexpected_exception.h: Removed.
486 * exception.c (_objc_unexpected_exception): Removed.
487 (objc_exception_throw): Do not check for
488 _objc_unexpected_exception.
489 * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc,
490 _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed.
491 * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed.
492
4f570b66
NP
4932011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
494
495 * objc/objc.h: Do not include deprecated/STR.h.
496 * objc/deprecated/STR.h: Removed.
497 * Makefile.in (OBJC_DEPRECATED_H): removed STR.h.
498
dd3dba52
NP
4992011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
500
501 * Makefile.in (OBJC_H): Removed hash.h and sarray.h.
502 (OBJC_DEPRECATED_H): Likewise.
503 * libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
504 objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
505 objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
506 hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
507 sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
508 sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
509 * objc/sarray.h: Removed.
510 * objc/hash.h: Removed.
511 * objc/deprecated/sarray.h: Removed.
512 * objc/deprecated/hash.h: Removed.
513 * objc/Object.h: Do not include objc/deprecated/hash.h
514 * Object.m: Include string.h.
515 * objc/objc-api.h: Do not include objc/deprecated/hash.h.
516 * objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
517 Removed.
518
4236b2e5
NP
5192011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
520
521 * Object.m ([-forward::]): Removed.
522 * objc/deprecated/Object.h ([-forward::]): Removed.
523 * sendmsg.c (__objc_forward): Updated comments.
524
7a724978
NP
5252011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
526
527 * Makefile.in (OBJC_H): Removed objc-list.h.
528 (OBJC_DEPRECATED_H): Removed objc-list.h.
529 * objc/objc-list.h: File removed.
530 * objc/deprecated/objc-list.h: File removed.
531
efad6bee
NP
5322011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
533
534 * Makefile.in (OBJC_H): Removed typedstream.h.
535 (OBJC_DEPRECATED_H): Removed typedstream.h.
536 (C_SOURCE_FILES): Removed archive.c.
537 (Object.lo): Rule removed.
538 (Object_gc.lo): Likewise.
539 (archive.lo): Likewise.
540 (archive_gc.lo): Likewise.
541 * objc/deprecated/Object.h ([+streamVersion:], [-read], [-write],
542 [-awake]): Removed.
543 Do not include deprecated/typedstream.h.
544 * Object.m: Removed the same methods.
545 * archive.c: File removed.
546 * objc/typedstream.h: File removed.
547 * objc/deprecated/typedstream.h: File removed.
548 * libobjc.def (__objc_read_nbyte_uint, __objc_read_nbyte_ulong,
549 __objc_write_class, __objc_write_object, __objc_write_selector,
550 objc_close_typed_stream, objc_end_of_typed_stream,
551 objc_flush_typed_stream, objc_get_stream_class_version,
552 objc_open_typed_stream, objc_open_typed_stream_for_file,
553 objc_read_array, objc_read_char, objc_read_int, objc_read_long,
554 objc_read_object, objc_read_selector, objc_read_short,
555 objc_read_string, objc_read_type, objc_read_types,
556 objc_read_unsigned_char, objc_read_unsigned_int,
557 objc_read_unsigned_long, objc_read_unsigned_short,
558 objc_write_array, objc_write_char, objc_write_int,
559 objc_write_long, objc_write_object, objc_write_object_reference,
560 objc_write_root_object, objc_write_selector, objc_write_short,
561 objc_write_string, objc_write_string_atomic, objc_write_type,
562 objc_write_types, objc_write_unsigned_char,
563 objc_write_unsigned_int, objc_write_unsigned_long,
564 objc_write_unsigned_short): Removed.
565
e79132c3
NP
5662011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
567
568 * Makefile.in (OBJC_DEPRECATED_H): Removed objc_error.h.
569 * objc/deprecated/objc_error.h: Removed.
570 * objc/objc-api.h: Do not include deprecated/objc_error.h.
571 * libobjc.def (objc_error, objc_verror): Removed.
572 * error.c (_objc_error_handler, objc_error, objc_verror,
573 objc_set_error_handler): Removed.
574 * Object.m ([-error:], [-perform:], [-perform:with:],
575 [-perform:with:with], [-subclassResponsibility:],
576 [-notImplemented:], [-shouldNotImplement:], [-doesNotRecognize:]):
577 Removed.
578 * objc/deprecated/Object.h: Removed the same methods.
579 * sendmsg.c (__objc_forward): Do not try to invoke the "error:"
580 method after trying to invoke the "doesNotRecognize:" method.
581
0dd5327a
NP
5822011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
583
584 * sendmsg.c: Reindented part of the file. No non-trivial changes
585 in code.
586
1e49849c
NP
5872011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
588
589 * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
7f344fab 590 not objc_lookup_class.
1e49849c 591
b5a3450f
RFM
5922011-05-25 Richard Frith-Macdonald <rfm@gnu.org>
593 David Ayers <ayers@fsfe.org>
594
48126bcb 595 PR libobjc/38307
b5a3450f
RFM
596 * sendmsg.c: Include objc/hash.h.
597 (get_implementation): New function, mostly with code from get_imp
598 updated to support the new +initialize dispatch table logic.
599 (get_imp): Use get_implementation.
600 (__objc_responds_to): Updated to support the new +initialize
601 dispatch table logic.
602 (class_respondsToSelector): Likewise.
603 (objc_msg_lookup): Use get_implementation.
604 (__objc_init_install_dtable): Removed.
605 (__objc_install_methods_in_dtable): Updated arguments.
606 (__objc_install_dispatch_table_for_class): Renamed to
607 __objc_install_dtable_for_class and updated to support the new
608 +initialize dispatch table logic.
609 (__objc_update_dispatch_table_for_class): Updated to support the
610 new +initialize dispatch table logic.
611 (__objc_forward): Call get_implementation instead of get_imp.
612 (prepared_dtable_table): New.
613 (__objc_prepare_dtable_for_class): New.
614 (__objc_prepared_dtable_for_class): New.
615 (__objc_get_prepared_imp): New.
616 (__objc_install_prepared_dtable_for_class): New.
617
85fe6408
NP
6182011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
619
620 PR libobjc/48177
621 * selector.c (__sel_register_typed_name): Use sel_types_match()
622 instead of strcmp() to compare selector types (Suggestion by
623 Richard Frith-Macdonald <rfm@gnu.org>).
624
b98b952f
RO
6252011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
626
627 PR libobjc/32037
628 * Makefile.in (OBJC_GCFLAGS): Move ...
629 * configure.ac (enable_objc_gc): ... here.
630 Add $(libsuffix) to OBJC_BOEHM_GC.
631 * configure: Regenerate.
632
68ade9e4
NP
6332011-02-28 Nicola Pero <nicola.pero@meta-innovation.com>
634
635 * selector.c (sel_getTypedSelector): Return NULL if there are
636 multiple selectors with conflicting types.
637 * objc/runtime.h (sel_getTypedSelector): Updated documentation.
638
55b21c7a
RFM
6392011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
640
641 PR libobjc/47922
642 * gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
643 a hardcoded "!".
644
029c8f3e
RW
6452011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
646
647 * configure: Regenerate.
648
fa539f51
NP
6492010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
650
651 * init.c (create_tree_of_subclasses_inherited_from): Use
652 class_superclass_of_class instead of assuming a class is
653 unresolved when it could be resolved. Tidied up assignment and
654 check.
655 (__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
656 (objc_tree_insert_class): Tidied up loop; return immediately upon
657 inserting a class.
658 (__objc_exec_class): Do not set __objc_class_tree_list.
659
9cacfc3e
NP
6602010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
661
662 * selector.c (sel_getTypedSelector): Return NULL if given a NULL
663 argument.
664 (sel_registerTypedName): Same.
665 (sel_registerName): Same.
666 * objc/runtime.h: Updated documentation.
667
410644c4
NP
6682010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
669
670 * objc/runtime.h (class_addIvar): Updated documentation. The
671 alignment is actually the log_2 of the alignment in bytes.
672 * ivars.c (class_addIvar): Corresponding change to the
673 implementation.
674
5750872c
NP
6752010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
676
677 * objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
678 be consistent with method_getTypeEncoding and
679 ivar_getTypeEncoding.
680 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
681 * selector.c (sel_getType): Renamed to sel_getTypeEncoding.
682 (sel_copyTypedSelectorList, sel_getTypedSelector): New.
683 (sel_get_type): Updated call to sel_getType.
684
877bf195
NP
6852010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
686
687 * objc/runtime.h (class_conformsToProtocol,
688 class_copyProtocolList): Updated documentation.
689
e99776d8
NP
6902010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
691
692 * init.c (create_tree_of_subclasses_inherited_from): Updated
693 DEBUG_PRINTF messages.
694 (__objc_tree_insert_class): Same.
695 (__objc_send_load_using_method_list): Same.
696 (__objc_send_load): Same.
697 (__objc_exec_class): Same. In particular, do not print the module
698 name since it is no longer used.
699 * sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
700 tracking +initialize calls.
701 (__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
702 tracking updates of dispatch tables.
703 (__objc_install_dispatch_table_for_class): Same.
704
1d439e6c
RO
7052010-12-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
706
707 * Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
708 (libobjc_gc$(libsuffix).la): Likewise.
709
82883986
NP
7102010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
711
712 * sendmsg.c (class_addMethod): Return NO if the method already
713 exists in the class.
714
0bfe3fa1
NP
7152010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
716
717 * init.c (duplicate_classes): New.
718 (__objc_exec_class): Initialize duplicate_classes.
719 (__objc_create_classes_tree): Ignore classes in the
720 duplicate_classes table.
721 (__objc_call_load_callback): Same.
722 (__objc_init_class): If a duplicate class is found, add it to
723 duplicate_classes instead of aborting. Return YES if the class is
724 not a duplicate, and NO if it is.
725 * objc-private/runtime.h (__objc_init_class): Updated prototype.
726
9fd553cc
NP
7272010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
728
729 * objc-private/objc-list.h: Reindented file. No code changes.
730 * objc-private/sarray.h: Same change.
731
8637d320
NP
7322010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
733
734 * objc-private/accessors.h: Removed 'extern "C"' guards. This
735 file is never compiled with C++.
736 * objc-private/hash.h: Same change.
737 * objc-private/objc-list.h: Same change.
738 * objc-private/objc-sync.h: Same change.
739 * objc-private/protocols.h: Same change.
740 * objc-private/runtime.h: Same change.
741 * objc-private/sarray.h: Same change.
742 * objc-private/selector.h: Same change.
743
1588200e
NP
7442010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
745
1575c9de
NP
746 PR libobjc/18764
747 * class.c (__objc_add_class_to_hash): Return YES if the class was
748 added, and NO if it already existed.
749 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
750 NO, then abort the program with an error message.
751 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
752 declaration.
753
7542010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
755
1588200e
NP
756 * init.c (_objc_load_callback): Initialize with 0.
757 (__objc_call_callback): Renamed to __objc_call_load_callback.
758 Check _objc_load_callback only once, and if it is not set, return
759 immediately.
760 (objc_send_load): Updated call to __objc_call_callback.
761
c07499dc
NP
7622010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
763
764 PR libobjc/16110
765 * init.c (__objc_send_message_in_list): Renamed to
766 __objc_send_load_using_method_list. Do not take an 'op' argument.
767 Register the 'load' selector if needed.
768 (__objc_send_load): Do not register the 'load' selector. Updated
769 call to __objc_send_message_in_list.
770 (__objc_create_classes_tree): Add the class of any claimed
771 category that was loaded in the module to the list of classes for
772 which we try to execute +load.
773
df0820da
NP
7742010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
775
776 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
777 Updated comments.
778 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
779 a pointer using DEBUG_PRINTF.
780
c75534d1
NP
7812010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
782
783 PR libobjc/45953
784 * selector.c (__sel_register_typed_name): When registering a new
785 selector with the same name as an existing one, reuse the existing
786 name string. Also updated types, casts and comments in the whole
787 function.
788
600cbba2
NP
7892010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
790
791 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
792 to be 'struct objc_selector *' and not 'SEL'.
793 * init.c (__objc_exec_class): Call
794 __objc_register_selectors_from_module instead of iterating over
795 each selector and calling __sel_register_typed_name for each.
796 * objc-private/selector.h: Declare
797 __objc_register_selectors_from_module instead of
798 __sel_register_typed_name.
799 * selector.c (__objc_register_selectors_from_module): New.
800 (__sel_register_typed_name): Made static.
801
bebf8772
NP
8022010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
803
804 * linking.m: Do not include objc/NXConstStr.h.
805
9c68c0e5
NP
8062010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
807
808 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
809 * objc-private/common.h (DEBUG_PRINTF): To here.
810 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
811
57d75eeb
NP
8122010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
813
814 * hash.c: Tidied up comments and indentation. No code changes.
815
ef7ed5df
NP
8162010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
817
818 PR libobjc/47012
819 * accessors.m (objc_getProperty): If not atomic, do not
522c4f1f 820 retain/autorelease the returned value.
ef7ed5df 821
f94e723b
NP
8222010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
823
824 * objc-private/runtime.h (__objc_selector_max_index,
825 __objc_init_selector_tables, __objc_register_selectors_from_class,
826 __objc_register_selectors_from_list,
827 __objc_register_selectors_from_description_list): Moved to ...
828 * objc-private/selector.h: ... here.
829
d9df3365
NP
8302010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
831
832 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
833 (__objc_print_dtable_stats): Removed.
834 (__sel_register_typed_name): Removed.
835 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
836
41720477
NP
8372010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
838
839 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
840 if appropriate, after loading the module.
841
5f38ced1
NP
8422010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
843
844 * sendmsg.c (method_setImplementation): Do not declare.
845
ecfc2705
NP
8462010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
847
848 * objc/message.h: Updated comments.
849 * objc/runtime.h: Updated comments.
850
6e45b376
NP
8512010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
852
853 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
854 * protocols.c: Updated all calls to objc_lookupClass to call
855 objc_lookUpClass instead.
856 * sendmsg.c (objc_lookupClass): Do not declare.
857 (get_imp): Update call to objc_lookupClass to call
858 objc_lookUpClass instead.
859 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
860
fea78205
NP
8612010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
862
863 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
864 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
865 define. Updated comments.
866
2899534b
NP
8672010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
868
869 * objc/encoding.h: Updated comments.
870 * objc/runtime.h: Updated comments.
871 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
872 (objc_sizeof_type): Same.
873 (objc_alignof_type): Same.
874 (objc_aligned_size): Same.
875 (objc_promoted_size): Same.
876 (objc_skip_type_qualifiers): Same.
877 (objc_skip_typespec): Same.
878 (objc_skip_offset): Same.
879 (objc_skip_argspec): Same.
880 (objc_get_type_qualifiers): Same.
881 (objc_layout_structure): Same.
882 (objc_layout_structure_next_member): Same.
883 (objc_layout_finish_structure): Same.
884 (objc_layout_structure_get_info): Same.
885
120d5f8e
NP
8862010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
887
888 * init.c: Updated comments.
889 * objc/objc-api.h: Updated comments.
890 * objc/runtime.h (_objc_load_callback): Declare.
891
c34fc988
NP
8922010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
893
894 * objc/Object.h: Include deprecated/typedstream.h and
895 deprecated/hash.h instead of typedstream.h. Updated comments.
896
5ec582f9
NP
8972010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
898
899 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
900 * objc/deprecated/objc_msg_sendv.h: New.
901 * objc/message.h: Do not define retval_t, apply_t, arglist,
902 arglist_t, objc_msg_sendv, now in
903 objc/deprecated/objc_msg_sendv.h.
904 * objc/objc.h: Do not include message.h; include
905 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
906 * sendmsg.c: Include objc/message.h.
907 * thr.c: Include objc/message.h.
908
805a07f1
NP
9092010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
910
911 * objc/objc-exception.h: Include objc-decls.h. Mark all
912 functions with objc_EXPORT.
913 * objc/objc-sync.h: Same change.
914
c06a8664
NP
9152010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
916
917 * Protocol.m: Moved all methods, with the exception of -isEqual:,
918 into the 'Deprecated' category.
919 * objc/Protocol.h: Removed all methods, moved to
920 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
921 * objc/deprecated/Protocol.h: New.
922 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
923
1af5b8f5
NP
9242010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
925
926 * init.c: Include objc-private/selector.h. Do not declare
927 __sel_register_typed_name.
928 * objc-private/selector.h (__sel_register_typed_name): Declare.
929 * selector.c: Include objc-private/selector.h.
930
575584a9
NP
9312010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
932
933 * class.c: Tidied up comments and indentation. No code changes.
934 * error.c: Same.
935 * exception.c: Same.
936 * init.c: Same.
937 * ivars.c: Same.
938 * memory.c: Same.
939 * objc-foreach.c: Same.
940 * objc-sync.c: Same.
941 * objects.c: Same.
942 * protocols.c: Same.
943 * sarray.c: Same.
944 * thr.c: Same.
945
fed2b101
NP
9462010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
947
948 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
949 instead of objc/objc-api.h.
950 (init_check_module_version): Take a 'struct objc_module *'
951 argument instead of 'Module_t'. Use 'struct objc_module *'
952 instead of 'Module_t'.
953 (__objc_created_classes_tree): Take a 'struct objc_module *'
954 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
955 of 'Symtab_t'.
956 (__objc_call_callback): Take a 'struct objc_module *' argument
957 instead of 'Module_t'; use 'struct objc_symtab *' instead of
958 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
959 (_objc_load_callback): Take a 'struct objc_category *' argument
960 instead of 'Category *'.
961 (class_superclass_of_class): Use objc_getClass() instead of
962 objc_lookup_class().
963 (create_tree_of_subclasses_inherited_from): Same change (also, use
964 an explicit 'if' instead of '?').
965 (objc_init_statics): Same change.
966 (objc_send_load): Same change.
967 (__objc_init_protocol): same change.
968 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
969 argument instead of 'MethodList_t'. Use 'struct objc_method *'
970 instead of 'Method_t'.
971 (__objc_send_load): Use 'struct objc_method_list *' instead of
972 'MethodList_t'. Use sel_registerName() instead of
973 sel_register_name().
974 (__objc_exec_class): Take a 'struct objc_module *' argument
975 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
976 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
977 Use 'struct objc_category *' instead of 'Category_t'.
978
114dae43
NP
9792010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
980
981 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
982 Include objc-private/module-abi-8.h and objc-private/selector.h
983 instead of objc/encoding.h.
984 (objc_msg_lookup_super): Use super->super_class instead of
985 super->class.
986 (method_get_first_argument, method_get_next_argument): Declare
987 locally.
988 (class_get_instance_method): Declare before using.
989 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
990 (__objc_init_dispatch_tables, __objc_send_initialize): Use
991 sel_registerName() instead of sel_register_name().
992 (__objc_forward): Use sel_getName() instead of sel_get_name().
993 (objc_get_uninstalled_dtable): Use 'void' as argument.
994 * objc-private/selector.h: New.
995
53f672ca
NP
9962010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
997
998 * objc/message.h (objc_super): When using the modern API, do not
999 define Super and Super_t, and always use 'super_class' for the
1000 super class field.
1001 (objc_msg_lookup_super): Updated prototype to use 'struct
1002 objc_super *' instead of 'Super_t'.
1003 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
1004 'struct objc_super *' instead of 'Super_t'.
1005
db1792ee
NP
10062010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
1007
1008 * objc/message.h: Update comments, reindented code and moved
1009 deprecated types and functions at the end of the file. No code
1010 changes.
1011
3db1a28c
NP
10122010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
1013
1014 * ivars.c (class_addIvar): Use the 'size' argument instead of
1015 trying to calculate it using objc_sizeof_type().
1016 * objc/runtime.h (class_addIvar): Updated comments.
1017
b427203d
NP
10182010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
1019
1020 * sendmsg.c: Reindented some code and tidied up comments. No
1021 actual code changes.
1022
002d4675
NP
10232010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
1024
1025 * objc/Object.h: Moved all the methods, with the exception of
1026 -class and -isEqual:, into ...
1027 * objc/deprecated/Object.h: here.
1028 * Object.m: Moved all the methods, with the exception of -class
1029 and -isEqual: into the 'Deprecated' category.
1030
9ecfa8de
NP
10312010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
1032
1033 * objects.c (object_copy): Do not #undef as we are no longer
1034 including objc/objc-api.h.
1035 * selector.c: Include objc/runtime.h and
1036 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
1037 objc/encoding.h. Updated
1038 (__objc_register_selectors_from_class): Use struct
1039 objc_method_list * instead of MethodList_t.
1040 (__objc_register_selectors_from_list): Use Method instead of
1041 Method_t.
1042 (struct objc_method_description_list): Do not define here.
1043 (__objc_register_instance_methods_to_class): Use struct
1044 objc_method_list * instead of MethodList_t and Method instead of
1045 Method_t.
1046
d4645ada
NP
10472010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
1048
1049 * selector.c: Reindented some code and tidied up comments. No
1050 actual code changes.
1051
f436d2ff
IS
10522010-12-13 Iain Sandoe <iains@gcc.gnu.org>
1053
1054 * encoding.c (_darwin_rs6000_special_round_type_align): New.
1055 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
1056
e97cfd97
NP
10572010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
1058
1059 * sendmsg.c (selector_resolveClassMethod): New.
1060 (selector_resolveInstanceMethod): New.
1061 (__objc_resolve_class_method): New.
1062 (__objc_resolve_instance_method): New.
1063 (get_imp): Call __objc_resolve_class_method or
1064 __objc_resolve_instance_method at the appropriate time.
1065 (objc_msg_lookup): Same.
1066 (class_getClassMethod): Same.
1067 (class_getInstanceMethod): Same.
1068 (__objc_init_dispatch_tables): Initialize
1069 selector_resolveClassMethod and selector_resolveInstanceMethod.
1070 * objc/runtime.h: Updated documentation of class_getClassMethod,
1071 class_getInstanceMethod and class_getMethodImplementation.
1072
375d1239
NP
10732010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
1074
1075 * objc-private/module-abi-8.h (struct objc_symtab): Updated
1076 description of sel_ref_cnt and refs.
1077 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
1078
7de6ba7a
DK
10792010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1080
1081 PR target/40125
1082 PR lto/46695
1083 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
1084 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
1085 * aclocal.m4: Regenerate.
1086 * configure: Regenerate.
1087
196891b5
MK
10882010-12-03 Matthias Klose <doko@ubuntu.com>
1089
1090 * configure.ac (VERSION): Bump the version to 3:0:0.
1091 * configure: Regenerate.
1092
d81e30b8
RFM
10932010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
1094
1095 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
1096 pass nil as the receiver since we don't know the receiver at this
1097 point.
1098
49a35931
NP
10992010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
1100
1101 * ivars.c: Include stdlib.h.
1102 * protocols.c: Same change.
1103
682e805a
NP
11042010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
1105
1106 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
1107 * accessors.m: New.
1108 * init.c: Include objc-private/accessors.h.
1109 (__objc_exec_class): Call __objc_accessors_init.
1110 * objc-private/accessors.h: New.
1111
5b8b526e
NP
11122010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1113
1114 * objc/message.h: Moved initial includes outside of extern "C".
1115 * objc/runtime.h: Add extern "C" for Objective-C++.
1116
1501d094
NP
11172010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1118
1119 * init.c (objc_send_load): Do not wait for NXConstantString to be
1120 registered before executing +load. There is no point if
1121 -fconstant-string-class=xxx is used when compiling all modules,
1122 as is the case for almost all users.
1123 * linking.m (__objc_linking): Do not try to forcefully link in
1124 NXConstantString.
5b8b526e 1125
6c5c7efd
NP
11262010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1127
1128 * objc/runtime.h: Updated comments.
1129 (class_addMethod): New.
1130 (class_addIvar): New.
1131 (class_replaceMethod): New.
1132 (objc_allocateClassPair): New.
1133 (objc_registerClassPair): New.
1134 (objc_disposeClassPair): New.
1135 * class.c (objc_allocateClassPair): New.
1136 (objc_registerClassPair): New.
1137 (objc_disposeClassPair): New.
1138 (class_getSuperclass): Return Nil if a class is in construction.
1139 * init.c (__objc_exec_class): Call __objc_init_class.
1140 (__objc_init_class): New.
1141 * ivars.c (class_copyIvarList): Return NULL if class is in
1142 construction. Do not lock the runtime mutex.
1143 (class_getInstanceVariable): Return NULL if class is in
1144 construction. Do not lock the runtime mutex.
1145 (class_addIvar): New.
1146 * sendmsg.c (class_addMethod): New.
1147 (class_replaceMethod): New.
1148 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
1149 (_CLS_IN_CONSTRUCTION): New.
1150 (CLS_IS_IN_CONSTRUCTION): New.
1151 (CLS_SET_IN_CONSTRUCTION): New.
1152 (CLS_SET_NOT_IN_CONSTRUCTION): New.
1153 * objc-private/runtime.h (__objc_init_class): New.
1154
1cde73d7
NP
11552010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1156
1157 * class.c (class_getSuperclass): Call __objc_resolve_class_links
1158 if the class is not resolved yet.
1159 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
1160
3c44c190
NP
11612010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
1162
1163 * objc/runtime.h (class_getIvarLayout): New.
1164 (class_getWeakIvarLayout): New.
1165 (class_setIvarLayout): New.
1166 (class_setWeakIvarLayout): New.
1167 * ivars.c (class_getIvarLayout): New.
1168 (class_getWeakIvarLayout): New.
1169 (class_setIvarLayout): New.
1170 (class_setWeakIvarLayout): New.
1171
8437e063
NP
11722010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1173
1174 * objc/runtime.h (class_copyPropertyList): New.
1175 (class_getProperty): New.
1176 (property_getAttributes): New.
1177 (property_getName): New.
1178 * ivars.c (class_copyPropertyList): New.
1179 (class_getProperty): New.
1180 (property_getAttributes): New.
1181 (property_getName): New.
1182
51194e8e
NP
11832010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1184
1185 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
1186 * class.c (__objc_update_classes_with_methods): New.
1187 (objc_getClassList): Do not lock the class lock.
1188 * methods.c (method_exchangeImplementations): New.
1189 (method_setImplementation): New.
1190 * objc/runtime.h (method_setImplementation): New.
1191 (method_exchangeImplementations): New.
1192
ae422ccd
NP
11932010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
1194
1195 * Protocol.m: Include objc/runtime.h and
1196 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
1197 repeat Protocol's instance variables.
1198 (struct objc_method_description_list): Do not define here.
1199 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
1200 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
1201 selectors directly instead of getting names and then using strcmp.
1202 ([descriptionForClassMethod:]): Same change.
1203 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
1204 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
1205 to compare selectors directly instead of getting names and then
1206 using strcmp.
1207 * objc/Protocol.h: Updated comments.
1208
97764753 12092010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
f7185d47
NP
1210
1211 * init.c (__objc_init_protocol): New function which fixes up a
1212 protocol's class pointer, registers it with the runtime, register
1213 all protocol selectors and registers associated protocols too.
1214 (objc_init_statics): Detect if we are initializing protocols, and
1215 if so, use __objc_init_protocol instead of only fixing up the
1216 class pointer.
1217 (__objc_init_protocls): Use __objc_init_protocol.
1218 * objc-private/module-abi-8.h: Updated comments.
1219 * objc-private/runtime.h
1220 (__objc_register_selectors_from_description_list): New.
1221 * selector.c (__objc_register_selectors_from_description_list):
1222 New. (struct objc_method_description_list): Declare.
1223 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
1224 when accessing the name of a method, which is now correctly a SEL.
1225 ([-descriptionForClassMethod:]): Same change.
1226 * protocols.c (protocol_getMethodDescription): Same change.
1227 * objc/runtime.h: Updated comments.
1228 (sel_registerTypedName): Fixed typo in function name.
1229
5254c66b
NP
12302010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1231
1232 PR libobjc/23214
1233 * init.c (objc_init_statics): Do not skip the initialization of a
1234 statics list if the first object has already been initialized; in
1235 the case of Protocols, while the first one may have been
1236 initialized, some others may not have been initialized yet.
1237
b0453850
NP
12382010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1239
1240 * Makefile.in (OBJC_DEPRECATED_H): Added
1241 objc_get_uninstalled_dtable, objc_object_alloc.h and
1242 struct_objc_static_instances.h.
1243
ad49efbd
NP
12442010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
1245
1246 * encoding.c (method_copyReturnType): New.
1247 (method_copyArgumentType): New.
1248 (method_getReturnType): New.
1249 (method_getArgumentType): New.
1250 * methods.c (method_getDescription): New.
1251 * objc/runtime.h (method_copyReturnType): New.
1252 (method_copyArgumentType): New.
1253 (method_getReturnType): New.
1254 (method_getArgumentType): New.
1255 (method_getDescription): New.
1256
c994cc85
NP
12572010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1258
1259 * encoding.c: Tidied up comments.
1260 (objc_skip_variable_name): New static inline function.
1261 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
1262 the same code over and over.
1263 (objc_alignof_type): Same.
1264 (objc_aligned_size): Same.
1265 (objc_promoted_size): Same.
1266 (objc_skip_typespec): Same.
1267 (objc_layout_structure_next_member): Same.
1268 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
1269 historical bug where objc_skip_offset would skip one byte even if
1270 there is no offset: check that the first offset digit is actually
1271 a digit before skipping it.
1272 (objc_skip_type_qualifiers): Mark as inline.
1273 (objc_skip_typespec): Mark as inline.
1274
ad9eef11
NP
12752010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1276
1277 * Makefile.in (C_SOURCE_FILES): Added methods.c.
1278 * encoding.c (method_getNumberOfArguments): New.
1279 (method_get_number_of_arguments): Call
1280 method_getNumberOfArguments.
1281 * ivars.c (ivar_getName): Check for NULL variable argument.
1282 (ivar_getOffset): Check for NULL variable argument.
1283 (ivar_getTypeEncoding): Check for NULL variable argument.
1284 (class_copyIvarList): New.
1285 * methods.c: New.
1286 * protocols.c (class_copyProtocolList): Check for Nil class_
1287 argument.
1288 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
1289 'struct objc_method_list *' instead of MethodList_t.
1290 (class_getMethodImplementation): New.
1291 (class_respondsToSelector): New.
1292 (class_getInstanceMethod): New.
1293 (class_getClassMethod): New.
1294 * objc/runtime.h: Updated comments.
1295 (class_copyIvarList): New.
1296 (class_getInstanceMethod): New.
1297 (class_getClassMethod): New.
1298 (class_getMethodImplementation): New.
1299 (class_respondsToSelector): New.
1300 (method_getName): New.
1301 (method_getImplementation): New.
1302 (method_getTypeEncoding): New.
1303 (class_copyMethodList): New.
1304 (method_getNumberOfArguments): New.
1305
be05b0f5
NP
13062010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1307
1308 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
1309 instead of objc/objc-api.h.
1310 (objc_get_unknown_class_handler): Do not define.
1311 (class_isMetaClass): New.
1312 (class_getSuperclass): New.
1313 (class_getVersion): New.
1314 (class_setVersion): New.
1315 (class_getInstanceSize): New.
1316 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
1317 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
1318 objc_get_super_class.
1319 (get_ttype_entry): Use objc_getRequiredClass instead of
1320 objc_get_class.
1321 * ivars.c (class_getClassVariable): New.
1322 * objects.c: Include objc/runtime.h, objc/thr.h and
1323 objc-private/module-abi-8.h instead of objc/objc-api.h
1324 * objc/runtime.h (class_getClassVariable): New.
1325 (class_isMetaClass): New.
1326 (class_getSuperclass): New.
1327 (class_getVersion): New.
1328 (class_setVersion): New.
1329 (class_getInstanceSize): New.
1330 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
1331 objc/objc-api.h)
1332 (__CLS_INFO): Same.
1333 (__CLS_ISINFO): Same.
1334 (__CLS_SETINFO): Same.
1335 (CLS_ISMETA): Same.
1336 (CLS_ISCLASS): Same.
1337 (CLS_ISRESOLV): Same.
1338 (CLS_SETRESOLV): Same.
1339 (CLS_ISINITIALIZED): Same.
1340 (CLS_SETINITIALIZED): Same.
1341 (CLS_GETNUMBER): Same.
1342 (CLS_SETNUMBER): Same.
1343
718a8e53
NP
13442010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1345
1346 * archive.c: Do not include objc/objc.h.
1347 * class.c: Do not include objc/objc.h.
1348 * encoding.c: Include objc/runtime.h, ctype.h and
1349 objc-private/module-abi-8.h instead of objc/objc-api.h and
1350 objc/encoding.h.
1351 * error.c: Do not include objc/objc.h.
1352 * gc.c: Include tconfig.h and objc/encoding.h only if
1353 OBJC_WITH_GC.
1354 * hash.c: Include objc/runtime.h and objc/thr.h instead of
1355 objc/objc-api.h. Do not include objc/objc.h.
1356 * init.c: Do not include objc/objc.h.
1357 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
1358 objc/thr.h instead of objc/objc-api.h. Do not include
1359 objc/objc.h.
1360 * linking.m: Tidied comment.
1361 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
1362 Do not include objc/objc.h.
1363 * objects.c: Do not include objc/objc.h.
1364 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
1365 * protocols.c: Do not include objc/objc.h.
1366 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
1367 not include objc/objc.h.
1368 * selector.c: Do not include objc/objc.h.
1369 * sendmsg.c: Do not include objc/objc.h.
1370 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
1371 Do not include objc/objc.h.
1372 * objc/objc-decls.h: Reindented code.
1373 * objc/runtime.h Include objc-decls.h. Updated comments.
1374 (objc_malloc): New.
1375 (objc_atomic_malloc): New.
1376 (objc_calloc): New.
1377 (objc_realloc): New.
1378 (objc_free): New.
1379 * objc-private/runtime.h: Updated comments.
1380
debfbfee
NP
13812010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1382
1383 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
1384 * objc-private/protocols.h: New.
1385 * protocols.c: New.
1386 * init.c: Include objc-private/protocols.h.
1387 (__objc_exec_class): Call __objc_protocols_init on startup.
1388 (__objc_init_protocols): Call __objc_protocols_add_protocol.
1389 * objc-private/runtime.h: Use (struct objc_method_list *) instead
1390 of MethodList_t, and (struct objc_method *) instead of Method_t.
1391 * objc/deprecated/struct_objc_class.h: Define
1392 __objc_STRUCT_OBJC_CLASS_defined.
1393 * objc-private/module-abi-8.h (struct
1394 objc_method_description_list): New.
1395 (struct objc_class): Only define if
1396 __objc_STRUCT_OBJC_CLASS_defined is undefined.
1397 * objc/runtime.h (class_getName): New.
1398 (objc_getProtocol): New.
1399 (objc_copyProtocolList): New.
1400 (class_addProtocol): New.
1401 (class_conformsToProtocol): New.
1402 (class_copyProtocolList): New.
1403 (protocol_conformsToProtocol): New.
1404 (protocol_isEqual): New.
1405 (protocol_getName): New.
1406 (protocol_getMethodDescription): New.
1407 (protocol_copyMethodDescriptionList): New.
1408 (protocol_getProperty): New.
1409 (protocol_copyPropertyList): New.
1410 (protocol_copyProtocolList): New.
1411 * class.c (class_getName): New.
1412 * selector.c (sel_isEqual): New.
1413
524660d2
NP
14142010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
1415
1416 * selector.c (sel_getName): Return "<null selector>" for a NULL
1417 argument.
1418 (sel_get_name): Return 0 for a NULL argument.
1419 * objc/runtime.h (sel_getName): Updated documentation.
1420
1421 * objc-private/hash.h (class_hash_table): Unused declaration
1422 removed.
1423 (module_hash_table): Same.
1424 * objc/deprecated/hash.h: Same changes.
1425
90a2689f
NP
14262010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1427
1428 * class.c (objc_getClassList): New.
1429 (objc_getRequiredClass): New.
1430 (objc_getMetaClass): New.
1431 (objc_lookupClass): New.
1432 (objc_getClass): New.
1433 (__objc_get_unknown_class_handler): New.
1434 (objc_setGetUnknownClassHandler): New.
1435 (objc_get_class): Use __objc_get_unknown_class_handler.
1436 (objc_lookup_class): Call objc_getClass.
1437 * objc/objc-api.h: Updated comment and copyright notice.
1438 * objc/runtime.h: Updated comments.
1439 (objc_getClass): New.
1440 (objc_lookupClass): New.
1441 (objc_getMetaClass): New.
1442 (objc_getRequiredClass): New.
1443 (objc_getClassList): New.
1444 (objc_setGetUnknownClassHandler): New.
1445 (objc_get_unknown_class_handler): New.
1446 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
1447 instead of __objc_runtime_INCLUDE_GNU as include guard.
1448 * objc-private/error.h (_objc_abort): Mark as noreturn.
1449
fdcbbfe7
NP
14502010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1451
1452 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
1453 * ivars.c: New.
1454 * objc/objc.h: Updated comments.
1455 * objc/runtime.h (object_getClass): New.
1456 (object_getClassName): New.
1457 (object_setClass): New.
1458 (class_getInstanceVariable): New.
1459 (object_getIndexedIvars): New.
1460 (object_getInstanceVariable): New.
1461 (object_setInstanceVariable): New.
1462 (object_getIvar): New.
1463 (object_setIvar): New.
1464 (ivar_getName): New.
1465 (ivar_getOffset): New.
1466 (ivar_getTypeEncoding): New.
1467 * objc-private/module-abi-8.h (struct objc_class): Added.
1468 * objects.c (object_getClassName): New.
1469 (object_setClass): New.
1470
bc18535a
NP
14712010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
1472
1473 * objc/objc.h: Updated comments.
1474 * objc/objc-api.h: (object_copy): Added one argument; use a
1475 #define to maintain backwards-compatibility. Moved
1476 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
1477 objc_get_uninstalled_dtable into
1478 objc/deprecated/objc_get_uninstalled_dtable.h and
1479 objc/deprecated/objc_object_alloc.h. Include these files.
1480 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
1481 * objc/deprecated/objc_object_alloc.h: New.
1482 * objc/runtime.h (set_getName): New.
1483 (sel_getType): New.
1484 (sel_getUid): New.
1485 (sel_registerName): New.
1486 (sel_registerTypedName): New.
1487 (sel_isEqual): New.
1488 (class_createInstance): New.
1489 (object_copy): New.
1490 (object_dispose): New.
1491 * objects.c: Do not include tconfig.h. Include gc_typed.h if
1492 building the garbage collection version.
1493 (__objc_object_alloc): Removed.
1494 (__objc_object_copy): Removed.
1495 (__objc_object_dispose): Removed.
1496 (class_createInstance): New from code in class_create_instance.
1497 Cast second argument of GC_malloc_explicitly_typed. Use
1498 objc_calloc. Do not call _objc_object_alloc.
1499 (class_create_instance): Call class_createInstance.
1500 (object_copy): Added extraBytes argument. Do not call
1501 _objc_object_copy.
1502 (object_dispose): Do not call _objc_object_dispose.
1503 * memory.c (objc_free): When using garbage collection, mark the
1504 argument as unused.
1505 * selector.c (sel_getName): New.
1506 (sel_get_name): Call sel_getName.
1507 (sel_getType): New.
1508 (sel_get_type): Call sel_getType.
1509 (sel_registerName): New.
1510 (sel_register_name): Call sel_registerName.
1511 (sel_registerTypedName): New.
1512 (sel_register_typed_name): Call sel_registerTypedName.
1513 (sel_getUid): New.
1514 (sel_get_uid): Call sel_getUid.
1515
e4d50866
NP
15162010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1517
1518 * objc/objc-api.h: Define Method, Method_t, Category and
1519 Category_t. Prevent including this file at the same time as
1520 objc/runtime.h. Updated comments.
1521 * objc/deprecated/struct_objc_method.h: Do not define Method,
1522 Method_t.
1523 * objc/deprecated/struct_objc_category.h: Do not define Category,
1524 Category_t.
1525 * objc-private/module-abi-8.h: New file containing a copy of all
1526 the structure definitions. Not used yet.
1527 * objc/encoding.h (objc_aligned_size): Removed duplicate
1528 declaration. Updated comments.
1529 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
1530 Category, struct objc_method_description, _C_ID and similar,
1531 _C_CONST and similar and _F_CONST and similar. Added
1532 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
1533 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
1534 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
1535 struct objc_struct_layout, objc_layout_structure,
1536 objc_layout_structure_next_member, objc_layout_finish_structure,
1537 objc_layout_structure_get_info. Prevent including this file at
1538 the same time as objc/objc-api.h.
1539
2461ab4b
NP
15402010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1541
1542 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
1543 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
1544 struct_objc_method_list.h, struct_objc_module.h,
1545 struct_objc_protocol_list.h, struct_objc_symtab.h.
1546 * objc/deprecated/struct_objc_category.h: New.
1547 * objc/deprecated/struct_objc_ivar.h: New.
1548 * objc/deprecated/struct_objc_ivar_list.h: New.
1549 * objc/deprecated/struct_objc_method.h: New.
1550 * objc/deprecated/struct_objc_method_list.h: New.
1551 * objc/deprecated/struct_objc_module.h: New.
1552 * objc/deprecated/struct_objc_protocol_list.h: New.
1553 * objc/deprecated/struct_objc_symtab.h: New.
1554 * objc/deprecated/struct_objc_static_instances.h: New.
1555 * objc/objc-api.h: Definitions of deprecated structures moved into
1556 the above header fragment files in objc/deprecated/. Include the
1557 files instead of definition the structures here. Updated
1558 comments.
1559 * objc/runtime.h: Updated comments. Do not include objc-api.h.
1560 (objc_set_enumeration_mutation_handler): Renamed to
1561 objc_setEnumerationMutationHandler.
1562 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
1563 to objc_setEnumerationMutationHandler.
1564 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
1565 objc_setExceptionMatcher.
1566 (objc_set_uncaught_exception_handler): Renamed to
1567 objc_setUncaughtExceptionHandler.
1568 * exception.c: Same changes.
1569
e2633f25
NP
15702010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1571
1572 * objc-sync.c: Include objc-private/common.h.
1573
cf3822f1
NP
15742010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
1575
1576 * objc-foreach.c: Include objc-private/common.h.
1577 * objc/deprecated/METHOD_NULL.h: New file.
1578 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
1579 defining METHOD_NULL here.
1580 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
1581 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
1582 METHOD_NULL.
1583 ([-respondsTo:]): Same change.
1584 * objc/objc-api.h (method_get_imp): Converted it into a normal
1585 function so that we can hide the internals of struct objc_method.
1586 * sendmsg.c (method_get_imp): Implemented.
1587
6176c2a9
NP
15882010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
1589
1590 * objc/objc-api.h (struct objc_super, Super, Super_t,
1591 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
1592 objc_msg_forward2): Declarations moved to objc/message.h. Include
1593 message.h here.
1594 * objc/message.h: Added such declarations; updated comments.
1595
f05b9d93
NP
15962010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1597
1598 Implemented fast enumeration for Objective-C.
1599 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
1600 (OBJC_H): Added runtime.h
1601 * objc-foreach.c: New file.
1602 * objc/runtime.h: New file.
1603
2de87f04
KT
16042010-09-30 Kai Tietz <kai.tietz@onevision.com>
1605
1606 * objc/deprecated/struct_objc_class.h: Add padding
1607 to avoid warning with -Wpadded.
1608
177b48f9
NP
16092010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1610
1611 * encoding.c (objc_sizeof_type): Added support for vector type and
1612 for double long types.
1613 (objc_alignof_type): Same change.
1614 (objc_skip_typespec): Same change.
1615 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
1616 instead of '!' since '!' is already used for _C_VECTOR.
1617 * objc/objc-api.h (_C_LNG_DBL): Added.
1618
d284c684
NP
16192010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
1620
1621 * libobjc_entry.c: File removed.
1622
7116b6ea
KT
16232010-09-26 Kai Tietz <kai.tietz@onevision.com>
1624
bd74d88b 1625 * sendmsg.c (objc_msg_lookup): Remove inline.
7116b6ea
KT
1626 (objc_get_uninstalled_dtable): Likewise.
1627 * encoding.c (objc_skip_type_qualifiers): Likewise.
1628 (objc_skip_offset): Likewise.
1629 * archive.c (__objc_write_object): Likewise
1630 (__objc_write_class):
1631 (__objc_write_selector):
1632 (objc_read_char):
1633 (objc_read_unsigned_char):
1634 (objc_read_short):
1635 (objc_read_unsigned_short):
1636 (objc_read_int):
1637 (objc_read_long):
1638 (__objc_read_nbyte_uint):
1639 (objc_read_unsigned_int):
1640 (objc_read_unsigned_long):
1641 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
1642 (objc_EXPORT): Likewise.
1643 * objc/message.h (objc-decls.h): Add include.
1644 * objc/objc-api.h: Mark API by objc_EXPORT.
1645 * libobjc.def (__objc_responds_to): Removed.
1646
5d3b14bd
NP
16472010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
1648
1649 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
1650
1651 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
1652 objc/sarray.h replaced with a placeholder including the file from
1653 the deprecated/ directory.
1654 * objc-private/sarray.h: New file (private copy of sarray.h).
1655 * hash.c: Include <assert.h> instead of "assert.h"
1656 * sarray.c: Include <assert.h> instead of "assert.h". Include
1657 objc-private/sarray.h instead of objc/sarray.h.
1658 * selector.c: Include objc-private/sarray.h instead of
1659 objc/sarray.h.
1660 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
1661 instead of objc/sarray.h.
1662 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
1663
349cfd93
NP
16642010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1665
1666 * objc-private/objc-list.h (list_remove_elem): Unused function
1667 removed. (list_nth): Unused function removed. (list_find):
1668 Unused function removed. (list_lenght): Unused function removed.
1669
5be9cdc1
NP
16702010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
1671
1672 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
1673 replaced with a placeholder including the file from the
1674 deprecated/ directory.
1675 * objc/objc-api.h: Updated includes.
1676 * objc/typedstream.h: Updated includes.
1677 * objc-private/hash.h: New file (private copy of hash.h).
1678 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
1679 objc/objc-list.h replaced with a placeholder including the file
1680 from the deprecated/ directory.
1681 * objc-private/objc-list.h: New file (private copy of objc-list.h).
1682 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
1683 instead of objc/hash.h and objc/objc-list.h.
1684 * selector.c: Same change.
1685 * class.c: Added include <string.h>, which used to be implicitly included
1686 when hash.h was included.
1687 * exception.c: Same change.
1688 * objects.c: Same change.
1689 * sarray.c: Same change.
1690 * sendmsg.c: Same change.
1691 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
5be9cdc1 1692
fd312537
NP
16932010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
1694
1695 Implemented objc_sync_enter() and objc_sync_exit(), which are
1696 required by @synchronized() to work.
1697 * objc-sync.c: New file.
1698 * objc/objc-sync.h: New file.
1699 * objc-private/objc-sync.h: New file.
1700 * init.c (__objc_exec_class): Call __objc_sync_init() during the
1701 Objective-C runtime startup.
1702 * Makefile.in: Added objc-sync.c and objc-sync.h.
1703 * configure.ac: Added GCC_CHECK_TLS.
1704 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
1705 * configure: Regenerated.
1706 * config.h.in: Regenerated.
1707
7e268280
NP
17082010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1709
1710 * Makefile.in (%_gc.lo): New pattern rules to build the
1711 garbage-collected version of the library. Removed rules for
1712 specific files that are no longer needed. Standardized all rules.
1713 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
1714 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
1715 OBJC_SOURCE_FILES.
1716 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
1717
17182010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1719
1720 * memory.c (objc_calloc): Fixed call to GC_malloc when building
1721 with Garbage Colletion.
1722
457e68e7
NP
17232010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1724
1725 * memory.c: Do not include objc-private/runtime.h.
1726
d1be5d82
NP
17272010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1728
1729 * objc/deprecated/objc_malloc.h: New file.
1730 * objc/deprecated/objc_valloc.h: New file.
1731 * objc/objc-api.h: Include the files instead of defining
1732 objc_valloc, _objc_malloc() and similar.
1733 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
1734 objc_malloc.h.
1735 * memory.c: Removed the extra layer of indirection of _objc_malloc
1736 and similar.
1737 (objc_calloc): Use GC_malloc in the garbage-collected
1738 implementation as GC_malloc returns memory that is already freed.
1739 (objc_valloc): Deprecated.
1740
7b869986
NP
17412010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1742
1743 * objc/deprecated/objc_error.h: New file.
1744 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1745 defining objc_error and related.
1746 * error.c: New file. Added _objc_abort function which replaces
1747 objc_error. No change in functionality as they both print an
1748 error and abort.
1749 * misc.c: File removed. Code moved into memory.c and error.c.
1750 * memory.c: New file.
1751 * objc-private/error.h: New file.
1752 * archive.c: Include objc-private/error.h and use _objc_abort
1753 instead of objc_error everywhere.
1754 * class.c: Same change.
1755 * encoding.c: Same change.
1756 * init.c: Same change, and simplified init_check_module_version.
1757 * memory.c: Same change.
1758 * sendmsg.c: Same change.
1759 * thr.c: Same change.
1760 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1761 (OBJ_H): Reordered list.
1762 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1763 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1764 (misc_gc.lo): Rule removed.
1765 (error_gc.lo): Rule added.
1766 (memory_gc.lo): Rule added.
1767
6dead247
NP
17682010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1769
1770 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1771 to check the API version. Added some comments.
1772
1773 * objc-private/common.h: New file.
1774 * NXConstStr.m: Include objc-private/common.h.
1775 * Object.m: Same change.
1776 * Protocol.m: Same change.
1777 * archive.c: Same change.
1778 * class.c: Same change.
1779 * encoding.c: Same change.
1780 * exception.c: Same change.
1781 * gc.c: Same change.
1782 * hash.c: Same change.
1783 * init.c: Same change.
1784 * libobjc_entry.c: Same change.
1785 * linking.m: Same change.
1786 * misc.c: Same change (and added a comment).
1787 * nil_method.c: Same change.
1788 * objects.c: Same change.
1789 * sarray.c: Same change.
1790 * selector.c: Same change.
1791 * sendmsg.c: Same change.
1792 * thr.c: Same change.
1793
83c28dfd
NP
17942010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1795
1796 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1797
0c11b8fb
NP
17982010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1799
1800 * archive.c: Removed not needed includes.
1801 * class.c: Same change.
1802 * hash.c: Same change.
1803 * misc.c: Same change.
1804 * nil_method.c: Same change.
1805 * objects.c: Same change.
1806 * sarray.c: Same change.
1807 * sendmsg.c: Same change.
1808 * thr.c: Same change.
1809
a19fac96
NP
18102010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1811
1812 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1813 all the objc/*.h files.
1814 * objc-private/runtime.h: New file.
1815 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1816 files) instead of objc/runtime.h.
1817 * class.c: Same change.
1818 * hash.c: Same change.
1819 * init.c: Same change.
1820 * misc.c: Same change.
1821 * nil_method.c: Same change.
1822 * objects.c: Same change.
1823 * sarray.c: Same change.
1824 * selector.c: Same change.
1825 * sendmsg.c: Same change.
1826 * thr.c: Same change.
1827
3d0d8739
NP
18282010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1829
1830 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1831 'struct objc_selector' and 'sel_eq' moved here.
1832 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1833 'struct objc_procotol' moved here.
1834 * objc/deprecated/struct_objc_class.h: New file. Definition of
1835 'struct objc_class' moved here.
1836 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1837 moved here.
1838 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1839 * objc/message.h: New file. Definitions for relval_t, apply_t,
1840 arglist, arglist_t and objc_msg_lookup were moved here.
1841 * objc/objc.h: Include the above files instead of defining the
1842 corresponding structs, types and functions here. Added new opaque
1843 definitions for SEL and Class. Use Class and not 'struct
1844 objc_class *' in the definition of 'struct objc_object'.
1845 Commented all types defined in the file. Removed special
1846 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1847 there as well.
1848 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1849 objc_unexpected_exception.h.
1850 * objc/objc-api.h: Updated include of
1851 objc-unexpetected-exception.h
1852 * objc/objc-exception.h: Updated comments.
1853 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1854 files. Reindented list of files.
1855
4c26f0a5
NP
18562010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1857
1858 * objc/objc-api.h (objc_trace): Unused variable removed.
1859
e976a775
NP
18602010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1861
1862 * objc/deprecated: New directory.
1863 * objc/deprecated/README: New file.
1864 * objc/README: New file.
1865 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1866 objc/typedstream.h replaced with a placeholder including the file
1867 from the deprecated/ directory.
1868 * objc/deprecated/objc-unexpected-exception.h: New file with the
1869 definition of _objc_unexpected_exception.
1870 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1871 instead of defining _objc_unexpected_exception.
1872 * objc/deprecated/Object.h: New file with the deprecated Object
1873 methods in a 'Deprecated' category.
1874 * objc/Object.h Include deprecated/Object.h instead of defining
1875 the deprecated methods.
1876 * Object.m: Moved deprecated methods into 'Deprecated' category.
1877 * objc-private: New directory.
1878 * objc-private/README: New file.
1879 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1880 (install-headers): Create installation directory for
1881 OBJC_DEPRECATED_H headers, and install them.
1882
18832010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1884
1885 * objc/objc-exception.h: Fixed include of objc.h.
1886
e30511ed
NP
18872010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1888
1889 * objc/objc-exception.h: New file.
1890 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1891 (objc_set_exception_matcher): Implemented.
1892 (objc_exception_throw): Use the uncaught exception handler if set.
1893 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1894 hardcoded isKindOf.
1895 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1896 up. Removed segmentation fault when value is 'nil'.
1897 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1898 deprecated.
1899 * Makefile.in (exception.lo, exception_gc.lo): Use
1900 -Wno-deprecated-declarations when compiling.
1901 (OBJC_H): Added objc-exception.h
1902
d6f62ada 19032010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
4470254f
NP
1904
1905 * objc/typedstream.h: Deprecate all functions in the file. This
1906 file is obsolete.
1907 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1908 [-awake]): Documented that these methods are deprecated. Added a
1909 brief description of the Object class and its relationship to the
1910 NSObject class.
1911 * Makefile.in: Compile archive.c and Object.m with
1912 -Wno-deprecated-declarations.
1913
88a2722e
NP
19142010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1915
1916 Removed obsolete intermediate threading layer.
1917 * thr.c: Use __gthread_objc_xxx functions directly instead of
1918 __objc_thread_xxx ones.
1919 * objc/thr.h: Removed prototypes of no longer existing
1920 __objc_thread_xxx functions.
1921 * Makefile.in: Removed thr-objc.lo.
1922 * thr-dce.c: File removed.
1923 * thr-decosf1.c: File removed.
1924 * thr-irix.c: File removed.
1925 * thr-mach.c: File removed.
1926 * thr-objc.c: File removed.
1927 * thr-os2.c: File removed.
1928 * thr-posix.c: File removed.
1929 * thr-pthreads.c: File removed.
1930 * thr-rtems.c: File removed.
1931 * thr-single.c: File removed.
1932 * thr-solaris.c: File removed.
1933 * thr-vxworks.c: File removed.
1934 * thr-win32.c: File removed.
1935 * README.threads: File removed.
1936 * THREADS.MACH: File removed.
1937 * THREADS: Updated.
1938
29b71c02
NP
19392010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1940
1941 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1942
265a000d
IS
19432010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1944
1945 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1946 Add a comment as to why, update FIXME comments.
1947
7b74bb63
NP
19482010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1949
1950 * makefile.dos: Obsolete file removed.
1951
4d9e8446
RW
19522010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1953
1954 * aclocal.m4: Regenerate.
1955
19222959
DK
19562010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1957
1958 PR libobjc/30445
1959 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1960 Cygwin and MinGW hosts.
1961 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1962 (libobjc.dll): Likewise.
1963 * configure: Regenerate.
1964
43e02a8a
RW
19652009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1966
1967 * configure: Regenerate.
1968
288d6a77
JJ
19692009-11-28 Jakub Jelinek <jakub@redhat.com>
1970
1971 * sarray.c (sarray_free): Use old_buckets variable.
1972 * encoding.c (objc_layout_structure_next_member): Remove unused
1973 bfld_type_size variable.
1974
df58e648
RW
19752009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1976
1977 * configure.ac (AC_PREREQ): Bump to 2.64.
1978
5213506e
RW
19792009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1980
1981 * aclocal.m4: Regenerate.
1982 * configure: Regenerate.
1983 * config.h.in: Regenerate.
1984
84fec8a5
RW
19852009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1986
1987 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1988
6efbd53f
RW
19892009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1990
1991 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1992 New variables.
1993 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1994
1b3b24c2
RW
19952009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1996
1997 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1998
748086b7
JJ
19992009-04-09 Nick Clifton <nickc@redhat.com>
2000
2001 * sendmsg.c: Change copyright header to refer to version 3 of
2002 the GNU General Public License with version 3.1 of the GCC
2003 Runtime Library Exception and to point readers at the COPYING3
2004 and COPYING3.RUNTIME files and the FSF's license web page.
2005 * NXConstStr.m: Likewise.
2006 * Object.m: Likewise.
2007 * Protocol.m: Likewise.
2008 * archive.c: Likewise.
2009 * class.c: Likewise.
2010 * encoding.c: Likewise.
2011 * exception.c: Likewise.
2012 * gc.c: Likewise.
2013 * hash.c: Likewise.
2014 * init.c: Likewise.
2015 * libobjc_entry.c: Likewise.
2016 * linking.m: Likewise.
2017 * misc.c: Likewise.
2018 * nil_method.c: Likewise.
2019 * objc/NXConstStr.h: Likewise.
2020 * objc/Object.h: Likewise.
2021 * objc/Protocol.h: Likewise.
2022 * objc/encoding.h: Likewise.
2023 * objc/hash.h: Likewise.
2024 * objc/objc-api.h: Likewise.
2025 * objc/objc-decls.h: Likewise.
2026 * objc/objc-list.h: Likewise.
2027 * objc/objc.h: Likewise.
2028 * objc/runtime.h: Likewise.
2029 * objc/sarray.h: Likewise.
2030 * objc/thr.h: Likewise.
2031 * objc/typedstream.h: Likewise.
2032 * objects.c: Likewise.
2033 * sarray.c: Likewise.
2034 * selector.c: Likewise.
2035 * thr-dce.c: Likewise.
2036 * thr-decosf1.c: Likewise.
2037 * thr-irix.c: Likewise.
2038 * thr-mach.c: Likewise.
2039 * thr-objc.c: Likewise.
2040 * thr-os2.c: Likewise.
2041 * thr-posix.c: Likewise.
2042 * thr-pthreads.c: Likewise.
2043 * thr-rtems.c: Likewise.
2044 * thr-single.c: Likewise.
2045 * thr-solaris.c: Likewise.
2046 * thr-vxworks.c: Likewise.
2047 * thr-win32.c: Likewise.
2048 * thr.c: Likewise.
2049 * libobjc.def: Change copyright header to refer to version 3 of
2050 the GNU General Public License and to point readers at the COPYING3
2051 file and the FSF's license web page.
2052 * makefile.dos: Likewise.
2053
20542009-04-09 Jakub Jelinek <jakub@redhat.com>
2055
2056 * Makefile.in: Change copyright header to refer to version
2057 3 of the GNU General Public License and to point readers at the
2058 COPYING3 file and the FSF's license web page.
2059 * configure.ac: Likewise.
2060
faef499b
DA
20612009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
2062 David Ayers <ayers@fsfe.org>
2063
2064 PR libobjc/27466
2065 * objc/objc-api.h (_objc_unexpected_exception): Declare
2066 new hook. Update copyright dates.
2067 * exception.c (objc_exception_throw): Use hook. Update
2068 copyright dates.
2069 * libobjc.def (_objc_unexpected_exception): Export hook.
2070 Update copyright dates.
2071
7a9d3fe8
RW
20722009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2073
2074 * configure: Regenerate.
2075
baafc534
RW
20762008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2077
2078 * configure: Regenerate.
2079
b15b7ef8
KT
20802008-11-21 Kai Tietz <kai.tietz@onevision.com>
2081
2082 * Object.m (errno): Replaced by errno.h include.
2083 (compare): Cast self to id to prevent warning on comparison.
2084 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
2085 already there.
2086 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
2087 * thr-win32.c (__objc_thread_detach): Remove type warning.
2088 (__objc_thread_id): Likewise.
2089 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
2090 for noreturn.
2091
467b2e9e
PG
20922008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2093 Steve Ellcey <sje@cup.hp.com>
2094
2095 * configure: Regenerate for new libtool.
2096 * config.h.in: Regenerate for new libtool.
2097
920d063d
MK
20982008-07-18 Matthias Klose <doko@ubuntu.com>
2099
2100 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
2101
785fad0a
MK
21022008-07-18 Matthias Klose <doko@ubuntu.com>
2103
2104 * Makefile.in: Include ../boehm-gc/threads.mk.
2105 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
2106
a0ed5099
RW
21072008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2108
2109 * Makefile.in (install-info): New stub target.
2110
18c04407
RW
21112008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2112
2113 * configure: Regenerate.
2114
b01bd5fe
KT
21152008-06-14 Kai Tietz <kai.tietz@onevision.com>
2116
2117 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
2118 if HAVE_GETIPINFO is not defined.
2119
c24aadf3
KT
21202008-06-10 Kai Tietz <kai.tietz@onevision.com>
2121
2122 * Object.m (compare): Add type id.
2123 * objc/Object.h: Likewise.
2124 * archive.c (objc_read_class): Use size_t to extend version to be
2125 size of pointer scalar width.
2126 * sendmsg.c (rtx): Undefine it before redefinition.
2127 (__objc_print_dtable_stats): Cast arguments to long as intended.
2128
3f6383d3
JB
21292008-05-30 Julian Brown <julian@codesourcery.com>
2130
2131 * exception.c (__objc_exception_class): Initialise as constant
2132 array for ARM EABI. Change macro to static const for non-ARM EABI.
2133 (ObjcException): Add note about structure layout. Remove landingPad
2134 and handlerSwitchValue for ARM EABI.
2135 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
2136 of function.
2137 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
2138 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
2139 ARM EABI unwinding support.
2140 (objc_exception_throw): Use memcpy to initialise exception class.
2141
dd25a747
AM
21422008-05-25 Alan Modra <amodra@bigpond.net.au>
2143
2144 * encoding.c (strip_array_types): Rename from get_inner_array_type.
2145 (rs6000_special_round_type_align): Update.
2146
7afa92c5
JB
21472008-05-09 Julian Brown <julian@codesourcery.com>
2148
2149 * Makefile.in (LTLDFLAGS): New.
2150 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
2151
deb984e6
PB
21522008-04-18 Paolo Bonzini <bonzini@gnu.org>
2153
2154 PR bootstrap/35457
2155 * aclocal.m4: Regenerate.
2156 * configure: Regenerate.
2157
e7ad4ca7
DE
21582008-01-24 David Edelsohn <edelsohn@gnu.org>
2159
2160 * configure: Regenerate.
2161
2c888488
L
21622007-10-14 H.J. Lu <hongjiu.lu@intel.com>
2163
2164 * configure.ac: Don't run config-ml.in directly.
2165 (multilib_arg): New.
2166 * configure: Regenerated.
2167
30cad60d
AP
21682007-08-06 Andrew Pinski <pinskia@gmail.com>
2169
2170 PR libobjc/30731
2171 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
2172 of _Unwind_Word for variables which are used in
2173 read_uleb128/read_sleb128.
2174 (PERSONALITY_FUNCTION): Likewise.
2175
12a27363
L
21762007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2177
2178 * aclocal.m4: Regenerated.
2179
af333b9a
AP
21802007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2181
2182 * configure.ac: Fix a typo in *-*-darwin clause.
2183 * configure: Regenerated.
2184
4620d81e
L
21852007-06-02 H.J. Lu <hongjiu.lu@intel.com>
2186
2187 * configure.ac: Fix a typo.
2188 * configure: Regenerated.
2189
82a6cadf
PB
21902007-06-02 Paolo Bonzini <bonzini@gnu.org>
2191
2192 * configure: Regenerate.
2193
45d5f86c
AP
21942007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
2195
2196 * Makefile.in: Replace all uses of libext with libsuffix.
2197 * configure.ac: Likewise.
2198 * configure: Regenerate.
2199
2200 Revert:
2201 * Makefile.in: Remove all uses of $(libext).
2202
8b5dda41
AP
22032007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
2204
2205 * Makefile.in: Remove all uses of $(libext).
2206
1cf3d07d
SE
22072007-05-23 Steve Ellcey <sje@cup.hp.com>
2208
2209 * configure: Regenerate.
2210 * aclocal.m4: Regenerate.
2211
8972bcd8
AR
22122007-04-21 Andrew Ruder <andy@aeruder.net>
2213
2214 * sendmsg.c (__objc_get_forward_imp): Call
2215 __objc_msg_forward2 for real.
2216
80ae8e8a
AR
22172007-04-09 Andrew Ruder <andy@aeruder.net>
2218
2219 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
2220 external libraries to provide a function that returns the real
2221 forwarding function based on both the selector and the receiver.
2222 * objc/objc-api.h: Define __objc_msg_forward2.
2223
38593123
BM
22242007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2225
2226 * Makefile.in: Add dummy install-pdf target.
2227
3034b453
MLI
22282007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2229
2230 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
2231 unused warning.
2232
58182de3
GK
22332006-10-31 Geoffrey Keating <geoffk@apple.com>
2234
2235 * encoding.c (darwin_rs6000_special_round_type_align): New.
2236
5b043f08
GK
22372006-10-14 Geoffrey Keating <geoffk@apple.com>
2238
2239 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
2240 * configure.ac: Use multi.m4 from aclocal rather than custom
2241 code. Use multi_basedir instead of toplevel_srcdir.
2242 * aclocal.m4: Regenerate.
2243 * configure: Regenerate.
2244
b5422ad7
BM
22452006-10-10 Brooks Moses <bmoses@stanford.edu>
2246
2247 * Makefile.in: Added empty "pdf" target.
2248
57255173
PB
22492006-07-18 Paolo Bonzini <bonzini@gnu.org>
2250
91ba215a 2251 * configure: Regenerate.
57255173 2252
2788992b
CD
22532006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2254
2255 * Makefile.in: Add install-html target. Add install-html to .PHONY
2256
529490b4
RO
22572006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2258
2259 PR libobjc/26309
2260 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2261
801a91f9
DA
22622006-01-24 David Ayers <d.ayers@inode.at>
2263
2264 PR libobjc/9751
2265 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
2266 and insure the new strings are '\0' termintated.
2267
8c3e5222
DA
22682006-01-24 David Ayers <d.ayers@inode.at>
2269
2270 PR libobjc/13946
2271 * configure.ac: Add include directives for --enable-objc-gc.
2272 * Makefile.in: Ditto.
2273 * configure: Regenerate.
2274
2275 * gc.c (__objc_class_structure_encoding): Increment the used bytes
2276 instead of the local pointer to them.
2277
06b11455
AP
22782005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2279
2280 PR objc/25360
91ba215a
AP
2281 * objc/objc-api.c (_C_COMPLEX): New define.
2282 * encoding.c (objc_sizeof_type): Handle _C_Complex.
2283 (objc_alignof_type): Likewise.
2284 (objc_skip_typespec): Likewise.
06b11455 2285
bf5b295c
DA
22862005-12-15 David Ayers <d.ayers@inode.at>
2287
2288 PR libobjc/14382
2289 * README (+load,+initialize): Fix documentation to reflect
2290 intended and implemented semantics for +load and +initialize.
2291
761c0d29
AP
22922005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2293
2294 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
2295 the name.
2296 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
2297 (rs6000_special_round_type_align): Update for the ABI fix.
2298 (objc_layout_finish_structure): Correct the encoding which is passed to
2299 ROUND_TYPE_ALIGN.
2300
4540a3ad
AP
23012005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2302
2303 PR libobjc/25347
2304 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
2305 but use the struct layout functions.
2306 (objc_alignof_type): Likewise.
2307 (objc_layout_structure): Handle _C_UNION_B also.
2308 (objc_layout_structure_next_member): Likewise.
2309 (objc_layout_finish_structure): Likewise.
2310
153b4898
AP
23112005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
2312
2313 PR libobjc/25346
2314 * objc/objc-api.h (_C_BOOL): New define.
2315 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
2316 (objc_alignof_type): Likewise.
2317 (objc_skip_typespec): Likewise.
2318
84700346
DA
23192005-11-20 David Ayers <d.ayers@inode.at>
2320
2321 PR libobjc/19024
2322 * objc/hash.h: Remove deprecated hash API.
2323 * hash_compat.c: Remove.
2324 * Makefile.in: Remove reference to hash_compat.c.
2325
2326 * configure.ac (VERSION): Bump library version to 2:0:0.
2327 * configure: Regenerate.
2328
7ef67393
AO
23292005-11-09 Alexandre Oliva <aoliva@redhat.com>
2330
2331 PR other/4372
2332 * thr-objc.c (_XOPEN_SOURCE): Define.
2333
b7add506
UW
23342005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
2335
2336 PR libobjc/23612
2337 * objc/objc-api.h (struct objc_ivar): Move definition to
2338 global scope.
2339
ca59f04b
AP
23402005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
2341 Rasmus Hahn <rassahah@neofonie.de>
2342
2343 PR libobjc/23108
2344 * archive.c (objc_write_type): Correct the element offset.
2345 (objc_read_type): Likewise.
2346
f9d09c43
KC
23472005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2348
2349 * All files: Update FSF address.
2350
ee1658f3
MK
23512005-08-13 Marcin Koziej <creep@desk.pl>
2352 Andrew Pinski <pinskia@physics.uc.edu>
2353
2354 PR libobjc/22492
2355 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
2356
a5a813f8
AP
23572005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2358
2359 * Makefile.in (extra_ldflags_libobjc): New.
2360 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
2361 (libobjc_gc$(libext).la): Likewise.
2362 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2363 "-Wl,-single_module".
2364 * configure: Regenerate.
2365 * linking.m (_objcInit): Remove.
2366
84fd360d
AP
23672005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
2368
2369 PR libobjc/22606
2370 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
2371
cf223603
DA
23722005-06-08 David Ayers <d.ayers@inode.at>
2373
2374 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
2375 objc/encoding.h, objc/hash.h, objc/objc-api.h,
2376 objc/runtime.h, objc/sarray.h, objc/thr.h,
2377 objc/typedstream.h: Do not include Objective-C headers as
2378 system headers.
2379
348a3445
DA
23802005-06-07 David Ayers <d.ayers@inode.at>
2381
2382 * archive.c, init.c, selector.c: Include hash.h.
2383 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
2384 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
2385 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
2386 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
2387 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
2388 Include Objective-C headers with quotes and objc/ directory
2389 prefix.
2390
4419e343
RH
23912005-05-19 Richard Henderson <rth@redhat.com>
2392
2393 * exception.c: Revert last change.
2394
2e8a88f0
DA
23952005-05-19 David Ayers <d.ayers@inode.at>
2396
2397 * exception.c: Include tsystem.h for unwind.h.
2398
f4c767fd
MS
23992005-05-09 Mike Stump <mrs@apple.com>
2400
2401 * configure: Regenerate.
2402
6dab073b
MS
24032005-04-12 Mike Stump <mrs@apple.com>
2404
2405 * configure: Regenerate.
2406
2b37e3d5
ZW
24072005-03-21 Zack Weinberg <zack@codesourcery.com>
2408
2409 * Makefile.in: Set gcc_version here.
2410 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
2411 in definition of toolexeclibdir so that $(gcc_version) is expanded
2412 by the Makefile.
2413 * aclocal.m4, configure: Regenerate.
2414
e59ef543
DA
24152005-03-03 David Ayers <d.ayers@inode.at>
2416
2417 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
2418 version reference. Correct typo.
2419
270a1283
DA
24202005-03-02 David Ayers <d.ayers@inode.at>
2421
2422 PR libobjc/19024
2423 * Makefile.in (OBJS): Add hash_compat.lo.
2424 (OBJS_GC): Add hash_compat_gc.lo.
2425 (hash_compat_gc.lo): New target and rule.
2426 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
2427 (hash_next, hash_value_for_key, hash_is_key_in_hash)
2428 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
2429 with objc_. Add deprecated non prefixed inlined versions.
2430 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
2431 declarations.
2432 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
2433 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
2434 update callers.
2435 * hash_compat.c: New file.
2436 * archive.c: Update callers.
2437 * init.c: Likewise.
2438 * selector.c: Likewise.
2439 * libobjc.def: Add objc_ versions of hash functions.
2440
6886e18e
AP
24412005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2442
2443 PR libobjc/20252
2444 * Makefile.in (GTHREAD_FLAGS): Remove.
2445 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
2446 * thr-objc.c: Include config.h.
2447 * configure.ac: Instead of looking at GCC's makefile, figure out if
2448 GTHREAD_FLAGS should be defined by looking at the `thread model'
2449 of the current gcc.
2450 * configure: Regenerate.
2451 * config.h.in: Regenerate.
2452
215c351a
PB
24532005-02-28 Paolo Bonzini <bonzini@gnu.org>
2454
2455 PR bootstrap/17383
2456 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
2457 (Determine CFLAGS for gthread): Use $host_subdir.
2458 * configure: Regenerate.
2459 * Makefile.in (host_subdir): New.
2460 (INCLUDES): Use it.
2461
63b6f9ea
AP
24622004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
2463
2464 PR libobjc/12035
2465 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
def9360c
AP
2466 they are not used.
2467 Include limits.h and stdlib.h.
2468 Define BITS_PER_WORD.
63b6f9ea 2469
64cbe55e
AM
24702004-12-12 Alexander Malmberg <alexander@malmberg.org>
2471
2472 * selector.c (__objc_init_selector_tables): Add missing void to
2473 definition.
2474
afabd8e6
RS
24752004-12-02 Richard Sandiford <rsandifo@redhat.com>
2476
2477 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2478 * configure, aclocal.m4: Regenerate.
2479
2539bffe
KC
24802004-11-29 Kelley Cook <kcook@gcc.gnu.org>
2481
2482 * configure: Regenerate for libtool change.
2483
767f726e
KC
24842004-11-25 Kelley Cook <kcook@gcc.gnu.org>
2485
2486 * configure: Regenerate for libtool reversion.
2487
2c92e90f
KC
24882004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2489
2490 * configure: Regenerate for libtool change.
2491
2fc30700
KC
24922004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2493
2494 * aclocal.m4, config.h.in: Regenerate.
2495
dd365157 24962004-10-08 Mike Stump <mrs@apple.com>
2b37e3d5 2497 Andrew Pinski <pinskia@physics.uc.edu>
dd365157
MS
2498
2499 * aclocal.m4: Rename to ...
2500 * acinclude.m4: here and also use m4_include instead of sinclude.
2501 * aclocal.m4: Regenerate.
2502 * configure: Regenerate.
2503 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
5a59530d 2504 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
dd365157 2505
8d488306
AP
25062004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2507
2508 * archive.c: Fix all the warnings about passing unsigned char*
2509 to char* and the other way too.
2510
049bc404
AP
25112004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
2512
2513 PR libobjc/16448
2514 * exception.c: Include config.h
2515 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
2516 SJLJ_EXCEPTIONS.
2517 * configure.ac: Find out what exception handling code we use.
2518 * configure: Regenerate.
2519 * config.h.in: New file, regenerate.
2520
45f17969
AP
25212004-09-16 Andrew Pinski <apinski@apple.com>
2522
2523 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
2524
1506eac1
NN
25252004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2526
2527 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
2528 ACX_NONCANONICAL_TARGET.
2529 * configure: Regenerate.
2530
f13bb199
ZL
25312004-08-13 Ziemowit Laski <zlaski@apple.com>
2532
2533 * objc/sarray.h: Hoist include of assert.h near the top of file,
2534 and mark the remainder of the file 'extern "C"'.
2535
9567d415
AP
25362004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
2537
2538 * objc/Object.h: Move includes out of extern "C" blocks.
2539 * objc/encoding.h: Likewise.
2540 * objc/hash.h: Likewise.
2541 * objc/objc-api.h: Likewise.
2542 * objc/runtime.h: Likewise.
2543 * objc/sarray.h: Likewise.
2544 * objc/typedstream.h: Likewise.
2545
1a6213c3
ZL
25462004-08-12 Ziemowit Laski <zlaski@apple.com>
2547
2548 * objc/NXConstStr.h: Update copyright date; bracket with
2549 'extern "C"' for C++ use; make include syntax consistent
2550 by using <...> instead of "..."; hoist <objc/...> includes
2551 above the 'extern "C"' block.
2552 * objc/Object.h: Likewise.
2553 * objc/Protocol.h: Likewise.
2554 * objc/encoding.h: Likewise.
2555 * objc/hash.h: Likewise.
2556 * objc/runtime.h: Likewise.
2557 * objc/sarray.h: Likewise.
2558 * objc/thr.h: Likewise.
2559 * objc/typedstream.h: Likewise.
2560 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
2561 (objc_static_instances): For C++ case, do away with
2562 zero-sized array.
2563 (objc_method): Hoist definition to file scope.
2564 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2b37e3d5 2565 class_get_instance_method, class_create_instance,
1a6213c3
ZL
2566 class_get_class_name, class_get_instance_size,
2567 class_get_meta_class, class_get_super_class, class_get_version,
2568 class_is_class, class_is_meta_class, class_set_version,
2569 class_get_gc_object_type, class_ivar_set_gcinvisible,
2570 get_imp): Rename 'class' parameter to '_class'.
2571 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
2572 * objc/objc.h: Update copyright date.
2573 (arglist_t): Provide a union tag.
2574
bc012a44
AP
25752004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
2576
2577 * thr.c (__objc_thread_detach_function): Do not mark as volatile
2578 but instead use the attribute noreturn.
2579
0cf61401
ZW
25802004-06-28 Zack Weinberg <zack@codesourcery.com>
2581
2582 * encoding.c: Rename target_flags with a #define to avoid
2583 conflict with a prior declaration.
2584
6f0aa5e1
AP
25852004-06-24 Andrew Pinski <apinski@apple.com>
2586
2587 * objc/encoding.h: Wrap the functions with extern "C" for C++
0cf61401 2588 mode.
6f0aa5e1
AP
2589 * objc/hash.h: Likewise.
2590 * objc/objc-api.h: Likewise.
2591 * objc/objc-list.h: Likewise.
2592 * objc/runtime.h: Likewise.
2593 * objc/sarray.h: Likewise.
2594 * objc/thr.h: Likewise.
2595 * objc/typedstream.h: Likewise.
2596
2597
e7ebc32a
NC
25982004-06-21 Nick Clifton <nickc@redhat.com>
2599
2600 * encoding.c (BITS_PER_UNIT): Define if a definition is not
2601 provided.
2602
5520b936
AM
26032004-06-20 Alexander Malmberg <alexander@malmberg.org>
2604
0cf61401
ZW
2605 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
2606 (exception_gc.lo): New.
2607 (OBJS_GC): Add exception_gc.lo.
2608
a776161b
RH
26092004-06-17 Richard Henderson <rth@redhat.com>
2610
2611 * exception.c: New file.
2612 * Makefile.in (exception.lo): New.
2613 (OBJS): Add it.
2614
da727eab
AP
26152004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
2616
2617 * linking.m (_objcInit): New empty function
2618 for Darwin only.
2619
3f35ff6f
AP
26202004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2621
684c64bf
AP
2622 * configure.ac: Support --enable-shared=libobjc.
2623 * configure: Regenerate.
2624
3f35ff6f
AP
2625 PR libobjc/15901
2626 * configure.ac: Do not disable shared by default.
2627 * configure: Regenerate.
2628
1600b7d6
NP
26292004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
2630
2631 * Protocol.m ([-isEqual:]): Small optimizations returning
2632 immediately if the argument is equal to self, and accessing
2633 the argument's name directly if it's a protocol.
2634
26352004-06-03 David Ayers <d.ayers@inode.at>
2636
2637 * Protocol.m ([-isEqual:]): Test the class of the argument.
2638
ff65de76
AP
26392004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2640
7d34a5a9
AP
2641 * configure.ac (includedir): Rename to ...
2642 (includedirname).
2643 * Makefile.in: s/includedir/includedirname/.
2644
ff65de76
AP
2645 PR target/11572
2646 * configure.ac (includedir): Set to "include"
2647 except for Darwin.
2648 (libext) Set to empty except for Darwin.
2649 * configure: Regenerate
2650 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
2651 s/include/$(includedir)/g.
2652
54b2f310
DJ
26532004-05-25 Daniel Jacobowitz <drow@false.org>
2654
2655 * Makefile.in: Add .NOEXPORT.
2656
435317e2
AP
26572004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2658
2659 Merge from the libobjc-branch
2660 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 2661
435317e2 2662 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
0cf61401 2663
435317e2 2664 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 2665
435317e2 2666 * Makefile.in (OBJC_H): Add objc-deps.h.
0cf61401 2667
435317e2 2668 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
0cf61401 2669
435317e2
AP
2670 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
2671 ([-hash], [-isEqual:]): New methods.
0cf61401 2672
435317e2 2673 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
0cf61401 2674
435317e2 2675 * sarray.c (sarray_free): Add a better comment.
0cf61401 2676
435317e2 2677 2004-01-27 Adam Fedor <fedor@gnu.org>
0cf61401 2678
435317e2
AP
2679 * hash.c (hash_add): Cast cachep to int.
2680 * selector.c (__sel_register_typed_name): Cast
2681 soffset_decode to int.
0cf61401 2682
435317e2 2683 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
0cf61401 2684
435317e2
AP
2685 * selector.c: Rename register_selectors_from_list to
2686 __objc_register_selectors_from_list. Update caller.
2687 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
2688 while registering selectors. Use __sel_register_typed_name instead
2689 of sel_register_typed_name. Check for NULL method_name:s.
2690 (pool_alloc_selector): New function.
2691 (__sel_register_typed_name): Use pool_alloc_selector to allocate
2692 selector structures.
2693 * sendmsg.c (class_add_method_list): Use
2694 __objc_register_selectors_from_list.
2695 * objc/runtime.h: Add __objc_register_selectors_from_list.
0cf61401 2696
435317e2 2697 2004-01-25 Adam Fedor <fedor@gnu.org>
0cf61401
ZW
2698 Nicola Pero <n.pero@mi.flashnet.it>
2699 Andrew Pinski <pinskia@physics.uc.edu>
2700
435317e2
AP
2701 * objc/objc-decls.h: New file.
2702 * objc/objc-api.h (_objc_lookup_class): Mark as export.
2703 (_objc_load_callback): Likewise.
2704 (_objc_object_alloc): Likewise.
2705 (_objc_object_copy): Likewise.
2706 (_objc_object_dispose): Likewise.
0cf61401 2707
435317e2 2708 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 2709
435317e2 2710 * archive.c: s/__inline__/inline
0cf61401
ZW
2711 * sendmsg.c: Likewise.
2712
435317e2
AP
2713 * encoding.c: Remove FIXME about the warning
2714 about unused variable.
2715 * sendmsg.c: Add a FIXME comment saying that
2716 this should be using libffi.
0cf61401 2717
435317e2 2718 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
0cf61401 2719
435317e2 2720
755bddc8
AP
27212004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2722
2723 * archive.c (objc_read_class): Initialize class_name.
2724 (objc_read_selector): Initialize selector_name.
2725
eb01299a
RS
27262004-05-09 Richard Sandiford <rsandifo@redhat.com>
2727
2728 * Makefile.in (toolexecdir): Remove trailing space.
2729
db7f3c69
NN
27302004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
2731
2732 PR libobjc/14948
2733 * configure.ac: De-precious CC so multilibs work.
2734 * configure: Regenerate.
2735
a42a57cb
NN
27362004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2737
2738 * configure.ac: Restore toolexecdir.
2739 * Makefile.in: Restore toolexecdir.
2740 * configure: Regenerate.
2741
9c01f395
NN
27422004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2743
d770b996
NN
2744 * configure.ac: Remove (unused) glibcpp_prefixdir.
2745 * configure: Regenerate.
2746
3adc31d1
NN
2747 * configure.in: Rename to configure.ac.
2748 * Makefile.in: Update to match.
2749
608e1e0c
NN
2750 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2751 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2752 * configure.in: Remove glibcpp_toolexecdir (unused).
2753 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2754 config.h or stamp-h (unused). Move one comment to the right place.
2755 * configure: Regenerate.
2756 * config.h.in: Remove (unused).
2757
88b16960
NN
2758 * config.h.in: Regenerate with autoheader.
2759
af0c82b3
NN
2760 * Makefile.in: Remove (unused) gcc_version_trigger.
2761 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2762 gcc_version_trigger.
2763 * configure: Regenerate.
2764
252dde64
NN
2765 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2766 Sort file into sections. Remove dnl where appropriate. Fix
2767 other style issues.
2768 * configure: Regenerate.
2769
88386050
NN
2770 * configure.in: Replace old AC_PROG_CC hack with new one.
2771 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2772 are no subdirectory output files, so this is fine). Change prereq
2773 to autoconf 2.59.
2774 * aclocal.m4: Include ../config/no-executables.m4.
2775 * configure: Regenerate with autoconf 2.59.
2776
b43e7294
NN
2777 * configure.in: Improve comments on gthread_cflags. Improve m4
2778 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2779 * configure: Regenerate.
2780
1fcfac98
NN
2781 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2782 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2783 redundant checks for values of RANLIB, AR, INSTALL.
2784 * configure: Regenerate.
2785
9c01f395
NN
2786 * configure.in: Clean up handling of
2787 --enable-version-specific-runtime-libs and related variables;
2788 replace 'if test' with 'case' where reasonable. Fix comments.
2789 Remove useless libstdcxx_interface.
2790 * configure: Regenerate.
2791
2792 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2793 Replace uses of target_alias with target_noncanonical.
2794 * aclocal.m4: Include ../config/acx.m4.
2795 * configure: Regenerate.
2796 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2797 Fix copyright statement.
2798
2799 * configure.in: Hand-inline bulky, confusing macros from
2800 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2801 Update copyright notice. Remove stuff for automake, which isn't
2802 used in this directory. Remove emacs local variables.
2803 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2804 * configure: Regenerate.
2805
1adc3fec
MH
28062004-03-16 Manfred Hollstein <mh@suse.com>
2807
2808 * Makefile.in, configure.in, configure: Update copyright years.
2809
68a1af87
MH
28102004-03-15 Manfred Hollstein <mh@suse.com>
2811
2812 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2813 definition from configure.in.
2814 * configure.in (PACKAGE): Add definition.
2815 (VERSION): Add definition; substitute it in output files.
2816 * configure: Re-generate.
2817
d5e63fce
ZL
28182004-03-05 Ziemowit Laski <zlaski@apple.com>
2819
2820 * objc/hash.h (hash_string, compare_strings):
2821 Add type-casts to make Objective-C++ happy.
2822 * objc/typedstream.h (objc_get_stream_class_version):
2823 Rename parameter from 'class' to 'class_name' to make
2824 Objective-C++ happy.
2825
8f8cdf33
MM
28262004-03-01 Michael Matz <matz@suse.de>
2827
2828 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2829
25fe8680
ZL
28302004-02-06 Ziemowit Laski <zlaski@apple.com>
2831
2832 * objc/objc-api.h (objc_super): The 'class' field shall
2833 be named 'super_class' #ifdef __cplusplus.
2834
95727fb8
AP
28352004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2836
2837 PR target/10781
2838 * encoding.c (rs6000_special_round_type_align): Define.
2839
5af0e6ae
AF
28402004-01-14 Adam Fedor <fedor@gnu.org>
2841
2842 PR libobjc/12155
2843 * selector.c (__objc_register_instance_methods_to_class): Free
2844 new_list if not used.
2845
b39f1868
AR
28462004-01-09 Andrew Ruder <aeruder@ksu.edu>
2847
2848 PR libobjc/11904
2849 * sarray.c (sarray_free): Free array->is_copy_of latter.
2850
75d3baee
ZW
28512003-12-01 Zack Weinberg <zack@codesourcery.com>
2852
2853 PR 11433
2854 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2855 instance_methods if it's NULL.
2856 (descriptionForClassMethod): Likewise for class_methods.
2857
7989e4dc
RO
28582003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2859
2860 * Makefile.in (runtime-info.h): Remove -Wp.
2861
54b98a47
RO
28622003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2863
2864 * Makefile.in (CC1OBJ): Remove.
2865 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2866 correctly.
2867 Use .m extension for temporary file.
2868 Remove assembler temp file.
2869
beca20d2
JM
28702003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2871
2872 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2873
05dcec66
RO
28742003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2875
2876 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2877
e517f636
AM
28782003-09-09 Alan Modra <amodra@bigpond.net.au>
2879
2880 * configure: Regenerate.
2881
45dff86e
AM
28822003-08-27 Alexander Malmberg <alexander@malmberg.org>
2883
2884 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2885 (libdir)/gcc-lib/ when installing.
2886 * configure: Regenerate.
2887
c19f8e35
NP
2888Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2889
2890 libobjc/9969
2891 * sendmsg.c (get_imp): Fixed rare threading problem.
2892 (__objc_responds_to): Similar fixes.
2893 (objc_msg_lookup): Similar fixes.
2894 (__objc_init_install_dtable): Lock the runtime before checking if the
2895 table is installed.
75d3baee 2896
6c82ad25
NN
28972003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2898
38709cad
NN
2899 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2900 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2901 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2902 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
75d3baee 2903 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
38709cad 2904 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
6c82ad25
NN
2905 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2906 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2907 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2908 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2909 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2910
e083f3f9 2911Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
75d3baee 2912 Nicola Pero <n.pero@mi.flashnet.it>
e083f3f9
RFM
2913
2914 libobjc/10742
2915 * init.c (class_superclass_of_class): New function.
2916 (create_tree_of_subclasses_inherited_from): Use it.
2917 (__objc_tree_insert_class): Likewise.
2918 (class_is_subclass_of_class): Likewise.
75d3baee 2919
0b87e18e
DC
29202003-04-11 David Chad <davidc@freebsd.org>
2921 Loren J. Rittle <ljrittle@acm.org>
2922
2923 libobjc/8562
2924 * objc/hash.h (hash_string): Constify correctly.
2925 (compare_ptrs): Use direct compare.
2926 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2927 * objc/sarray.h: Global rename index to indx to avoid shadow.
2928
ff8b9ca8
AS
29292003-03-12 Andreas Schwab <schwab@suse.de>
2930
2931 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2932 glibcpp_toolexeclibdir.
2933 * configure: Rebuilt.
2934
3343fdd2
AO
29352003-02-20 Alexandre Oliva <aoliva@redhat.com>
2936
2937 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2938 config.status.
2939 * configure: Rebuilt.
2940
c5e3e1ed
AO
29412003-01-27 Alexandre Oliva <aoliva@redhat.com>
2942
2943 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2944 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2945 version_specific_libs is enabled.
2946 * configure: Rebuilt.
2947
90e5b39f
CC
29482003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2949
2950 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2951 (install-libs, install-headers): Prepend $(DESTDIR) to
2952 destination paths in all (un)installation commands.
2953
4977bab6
ZW
29542002-12-02 Zack Weinberg <zack@codesourcery.com>
2955
2956 * thr-objc.c: Include coretypes.h and tm.h.
2957
29582002-12-01 Zack Weinberg <zack@codesourcery.com>
2959
2960 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2961
29622002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2963
2964 * configure.in: Remove skip-this-dir support.
2965 * configure: Regenerate.
2966
6c5d742e
KG
29672002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2968
2969 * Makefile.in (all): Fix multilib parallel build.
2970
c2a68741
NP
2971Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2972
2973 * sendmsg.c (nil_method): Declare not to take a variable number of
2974 args.
2975 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2976 (objc_msg_lookup_super): The same.
2977
edf4d41e
JH
29782002-09-10 Jan Hubicka <jh@suse.cz>
2979
65a8189e
AJ
2980 * nil_method.c (nil_method): No longer defined with variable
2981 arguments.
edf4d41e 2982
40165636
RB
29832002-07-02 Rodney Brown <rbrown64@csc.com.au>
2984
2985 * objc/encoding.h: Fix formatting.
2986 * objc/hash.h: Likewise.
2987 * objc/objc-api.h: Likewise.
2988 * objc/runtime.h: Likewise.
2989 * objc/thr.h: Likewise.
2990 * archive.c: Likewise.
2991 * class.c: Likewise.
2992 * encoding.c: Likewise.
2993 * gc.c: Likewise.
2994 * hash.c: Likewise.
2995 * init.c: Likewise.
2996 * misc.c: Likewise.
2997 * nil_method.c: Likewise.
2998 * objects.c: Likewise.
2999 * sarray.c: Likewise.
3000 * selector.c: Likewise.
3001 * sendmsg.c: Likewise.
3002 * thr-mach.c: Likewise.
3003 * thr.c: Likewise.
3004
aebb8c22
DD
30052002-06-25 DJ Delorie <dj@redhat.com>
3006
3007 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
3008 GLIBCPP_TOPREL_CONFIGURE.
3009 * configure.in: Call it before AC_CANONICAL_SYSTEM.
3010 * configure: Regenerate.
3011
b62cc13a
KG
30122002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3013
3014 * Object.m (forward, read, write): Fix unused parameter warnings.
3015 * encoding.c: Include <stdlib.h>.
3016 (target_flags): Mark with attribute unused.
3017 (atoi): Delete.
3018 * runtime.h (__objc_selector_max_index): Change to unsigned int.
3019 (__objc_generate_gc_type_description): Prototype.
3020 * selector.c (__objc_selector_max_index): Change to unsigned int.
3021
10cb24df
NP
3022Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
3023
3024 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
3025 we always have a return value: if __objc_msg_forward does not
3026 supply a forwarding implementation, return the default
3027 __builtin_apply based one.
3028
8f8c44cb
KG
30292002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3030
3031 * Object.m: Fix signed/unsigned warning.
3032 * Protocol.m: Likewise.
3033 * archive.c: Always include stdlib.h.
3034 (objc_read_short, objc_read_unsigned_short, objc_read_int,
3035 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
3036 Fix signed/unsigned warning.
3037 (objc_write_type, objc_read_type, objc_write_types,
3038 objc_read_types): Ensure ctype 8-bit safety.
3039 (__objc_no_write, __objc_no_read): Mark unused parameters.
3040 * class.c (class_table_setup): Specify void arg.
3041 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
3042 objc_skip_typespec, objc_skip_offset,
3043 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
3044 (objc_layout_structure_next_member): Ensure variables are
3045 initialized.
3046 * gc.c (__objc_generate_gc_type_description,
3047 class_ivar_set_gcinvisible): Mark unused parameters.
3048 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
3049 unused parameters.
3050 (__objc_init_protocols) Fix signed/unsigned warning.
3051 * nil_method.c (nil_method): Mark unused parameters.
3052 * thr.h (objc_thread_callback): Specify void arg.
3053 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
3054 signed/unsigned warning.
3055 (sarray_free): Fix formatting.
3056 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
3057 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
3058
42bac116
AJ
30592002-06-09 Andreas Jaeger <aj@suse.de>
3060
3061 * encoding.c (objc_layout_structure_next_member): Remove unused
3062 variable.
3063
9aa338ec
KG
30642002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3065
3066 * Makefile.in (SHELL): Set to @SHELL@.
3067 (WARN_CFLAGS): New.
3068 (ALL_CFLAGS): Add $(WARN_CFLAGS).
3069
1e6347d8
RO
30702002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3071
3072 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
3073 * configure: Regenerate.
3074
6706f116
AO
30752002-05-08 Alexandre Oliva <aoliva@redhat.com>
3076
3077 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3078 script entry, and set LD to it when configuring multilibs.
3079 * configure: Rebuilt.
3080
d0d091ae
DB
30812002-04-19 David O'Brien <obrien@FreeBSD.org>
3082
3083 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
3084
ed426a38 30852002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
0bd9dd55
HPN
3086
3087 PR objc/6107
3088 * objc/objc-api.h (struct objc_protocol_list): Change type of
3089 member count from int to size_t.
3090
b150efee
FS
30912002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3092
3093 PR libobjc/4039
3094 * aclocal.m4: Replace with version copied from libstdc++-v3.
3095 * configure.in: Update for changes to aclocal and Makefile.
3096 * configure: Regenerate.
3097 * Makefile.in: Correct install of multilibs and shared libs, use
3098 INSTALL_DATA for include files.
3099
e5e0f6f5
NP
3100Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
3101
3102 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
3103 categories - when an unclaimed category was found, the loop was
3104 doing two steps forward instead of one, so that in certain cases
3105 it was failing to properly load all the categories. (Reported
3106 with fix by Alexander Malmberg <alexander@malmberg.org>).
3107
d5114db1
AH
31082001-11-14 Aldy Hernandez <aldyh@redhat.com>
3109
4977bab6 3110 * encoding.c: Add target_flags.
d5114db1 3111
f4fdaeda
AH
31122001-11-07 Aldy Hernandez <aldyh@redhat.com>
3113
3114 * objc/objc-api.h (_C_VECTOR): New.
3115
3116 * encoding.c (VECTOR_TYPE): New.
3117
26e51caa
NP
3118Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
3119
3120 * class.c: Rewritten the class table to use optimized, lock-free
4977bab6
ZW
3121 lookup. This more than doubles the speed of class method
3122 invocations. (class_table_setup), (class_table_insert),
3123 (class_table_replace), (class_table_get_safe),
3124 (class_table_next), (class_table_print),
3125 (class_table_print_histogram): New functions.
3126 (__objc_init_class_tables): Use class_table_setup.
3127 (__objc_add_class_to_hash): Use class_table_get_safe and
3128 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
3129 assert the existence of the table; do not lock the runtime; use
3130 class_table_get_safe. (objc_next_class): Use class_table_next.
3131 (__objc_resolve_class_links): Use class_table_next.
3132 (class_pose_as): Use class_table_replace.
26e51caa 3133
71a18acf
OP
31342001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
3135
3136 * gc.c: Removed the DEBUG declaration.
3137
5f1ecf82
NP
3138Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
3139
3140 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
3141 rather than through objc_thread_id, to save a function call.
3142 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
3143 Ditto.
3144
42d28de5
NP
3145Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
3146
3147 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
3148 to cast an id to a Class, which can not be done. Make the check
3149 by using CLS_ISMETA on the class pointer instead.
3150 (object_is_meta_class): Similar fix.
3151
4173be7f
AO
31522001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
3153
3154 * configure.in (AC_EXEEXT): Work around in case it expands to
3155 nothing, as in autoconf 2.50.
3156 * acinclude.m4: Likewise.
3157 * configure: Rebuilt.
3158
27132e64
NP
31592001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
3160
3161 * THREADS: Explain that when we compile libobjc inside GCC, we
3162 always use thr-objc.c as a backend, which uses GCC's thread code.
3163
e6be21fe
RFM
31642001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
3165
3166 * init.c (__objc_send_message_in_list): When setting a new entry
3167 in __objc_load_methods use the method IMP as key, but check to see
3168 if the method is in the hashtable by looking at the IMP also.
3169 Also ... call the method after adding it to the hashtable rather
3170 than before ... thus preventing an obscure possibility of infinite
3171 recursion if a +load method itself loads a subclass.
3172
12e01066
OP
31732001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
3174
3175 * init.c (__objc_send_message_in_list): When setting a new entry
3176 in __objc_load_methods use the method name as key, not the method
3177 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
3178
10c179f3
JM
31792001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
3180
3181 * objc-features.texi: Move to ../gcc/objc.texi.
3182 * fdl.texi: Remove.
3183 * Makefile.in: Don't generate documentation from
3184 objc-features.texi.
3185
bcecb0b0
MM
31862001-05-01 Mark Mitchell <mark@codesourcery.com>
3187
3188 * fdl.texi: New file.
3189 * objc-features.texi: Simplify.
3190 * Makefile.in: Adjust accordingly.
3191
c3aac512
MM
31922001-04-30 Mark Mitchell <mark@codesourcery.com>
3193
3194 * objc-features.texi: Use the GFDL.
3195
49073def
JW
3196Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
3197
3198 * encoding.c (REAL_TYPE): Define.
3199
120d59bf
DE
32002001-03-19 David Edelsohn <edelsohn@gnu.org>
3201
3202 * encoding.c (TYPE_MODE): Define.
3203
b894530e
NP
32042001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
3205
3206 * thr.c (objc_thread_add): New function.
3207 (objc_thread_remove): Ditto.
3208 * objc/thr.h: Declare them.
3209 * libobjc.def: Mention them.
3210
11014a3b
OP
32112001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
3212
3213 * objc-features.texi: Document the @compatibility_alias compiler
3214 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
3215
a79ffa5a
RO
3216Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3217
3218 * sendmsg.c (__objc_forward): Delete strlen() declaration.
3219
7c6b0e92
GK
32202001-02-08 Geoffrey Keating <geoffk@redhat.com>
3221
3222 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
3223 we're not interested in the result and they might fail.
3224 * configure: Regenerated.
3225
01d9cb8b
JM
32262001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3227
3228 * objc-features.texi: Use @email.
3229
0fc39d8a
JM
32302001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
3231
3232 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
3233 printf.
3234
919ee051
RE
32352000-01-11 Richard Earnshaw <rearnsha@arm.com>
3236
3237 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
3238 determines the value dynamically.
3239
1104c18d
OP
3240Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
3241
3242 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
3243 libraries to provide a function that returns the real forwarding
3244 function. This can alleviate problems __builtin_apply() and
3245 friends have on various platforms. (Solution suggested by Helge
3246 Hess.)
42bac116 3247
1104c18d
OP
3248 * objc/objc-api.h: Define __objc_msg_forward.
3249
3250 * sendmsg.c: Define gen_rtx_REG.
3251
68c9c61a
RC
32522000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3253
42bac116 3254 * thr-rtems.c: New file. Stub to compile.
68c9c61a 3255
6d93bca4
AO
32562000-09-06 Alexandre Oliva <aoliva@redhat.com>
3257
3258 * configure: Rebuilt with new libtool.m4.
3259
9d10fcf9
OP
3260Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3261
3262 * configure.in: Create a config.h file. Check for <sched.h>.
3263 * configure: Regenerate.
3264
3265 * config.h.in: Check for <sched.h>.
3266
57119aa9
ZW
32672000-08-14 Zack Weinberg <zack@wolery.cumb.org>
3268
3269 * configure: Regenerate after change to ../libtool.m4.
3270
b310e725
AS
32712000-08-14 Andreas Schwab <schwab@suse.de>
3272
3273 * objc-features.texi (Top): Move @menu at end of node.
3274
82fbe835
MH
32752000-08-11 Manfred Hollstein <manfredh@redhat.com>
3276
3277 * objc-features.texi: Move @node Top before @menu.
3278
b3dc253f
OP
3279Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3280
3281 * objc-features.texi: Documented the new -fconstant-string-class
3282 option.
3283
9bc3876e
OP
3284Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3285
3286 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
3287 improve the Posix thread support for Objective-C.
3288
8cab40f7
ZW
32892000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3290
3291 * aclocal.m4: Replace copy of ../libtool.m4 with
3292 sinclude(../libtool.m4).
3293
c161c99b
NP
3294Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
3295
42bac116 3296 * configure.in: Added libtool support; build shared libraries
c161c99b
NP
3297 if --enable-shared was passed on command line.
3298 * Makefile.in: Modified most compilation commands to use libtool.
3299 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
3300 libtool distribution.
3301
9c14a607
OP
3302Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3303
3304 * sarray.c, Object.m: Removed the explicit prototypes for strlen
3305 and memcpy on 64-bit platforms (Suggested by Rodney Brown
3306 <rdb@cup.hp.com>).
3307
15794a95
L
33082000-05-12 H.J. Lu (hjl@gnu.org)
3309
3310 * Makefile.in (GTHREAD_FLAGS): New.
3311 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
3312 (OBJC_THREAD_FILE): Changed to thr-objc.
3313
3314 * configure.in (GTHREAD_FLAGS): New, check and replace it for
3315 Makefile.
3316 (OBJC_THREAD_FILE): Removed.
3317
3318 * thr-objc.c: New.
3319
8dd8d754
KG
33202000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3321
3322 * objc/hash.h: Include string.h.
3323
39b48e02
DE
33242000-04-15 David Edelsohn <edelsohn@gnu.org>
3325
3326 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
3327
bcdb1106
JJ
33282000-04-12 Jakub Jelinek <jakub@redhat.com>
3329
3330 * Object.m (strlen): Provide prototype on all 64bit platforms,
3331 not only alpha.
3332 * sarray.c (memcpy): Likewise.
3333 * encoding.c (objc_layout_finish_structure): Don't use
3334 ROUND_TYPE_ALIGN on sparc.
3335
35f10998
JJ
3336 * encoding.c (objc_layout_structure_next_member): Do the whole
3337 procedure even for the first member, so that we get correct
3338 alignment.
3339
2e3120e8
ZW
33402000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3341
3342 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
3343 comments.
3344
6fc605d8
ZW
33452000-02-23 Zack Weinberg <zack@wolery.cumb.org>
3346
3347 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
3348
224a6bca
CB
3349Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
3350
3351 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
3352
e36e6e02
JL
3353Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
3354
3355 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
3356 the compiler when building C code.
42bac116 3357
76632dd0
DJ
3358Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3359
3360 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3361 libdir, libsubdir and tooldir.
3362
6000b42b
JDA
3363Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
3364
3365 * init.c (__objc_force_linking): Make global.
3366
6de94858
JL
3367Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
3368
3369 * configure.in (AC_EXEEXT): Remove call.
3370 (compiler_name): Explicitly check with no extension and .exe
3371 extension.
3372 * configure: Regenerate.
3373
7af06410
MK
3374Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
3375
3376 * Makefile.in (CC1OBJ): Define in terms of CC.
3377 (runtime-info.h): Use.
3378
09608fa2
OP
3379Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3380
3381 * objc-features.texi: Updated the URL to Boehm's GC page.
3382
56d654e4
OP
3383Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
3384
3385 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
3386 the char as being signed (patch from Daniel Jacobowitz
3387 <drow@false.org>).
3388
e33abc2d
MK
3389Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
3390
3391 * configure.in (AC_PREREQ): Update to 2.13.
3392 (AC_EXEEXT): Call to find possible file extension.
3393 (compiler_name): Use.
3394 * configure: Regenerate.
3395
ab87f8c8
JL
3396Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
3397
3398 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
3399
79014e6f
JL
3400Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
3401
3402 * configure.in (thread_file): Correct and simplify code to find
3403 the thread file.
3404 * configure: Rebuilt.
3405
71205e0b
MH
34061998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
3407
3408 * configure.in (compiler_name): Add check to detect if this
3409 language's compiler has been built.
3410 * configure: Regenerate.
3411
223a8848
KG
3412Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3413
3414 * configure.in: Use AC_PREREQ(2.12.1).
3415
74285159
JL
3416Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
3417
3418 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
3419
84beab38
KG
3420Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3421
3422 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
3423
8a829fd9
KG
3424Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3425
3426 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
3427
befb6d14
OP
3428Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
3429
3430 * objc-features.texi (Top): Changed the email address.
3431 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
3432
3433Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
3434
3435 * encoding.c: Redefine get_inner_array_type to get the first entry
42bac116 3436 in the structure.
befb6d14 3437
1df287f8
RFM
3438Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
3439
3440 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
3441 (objc_get_type_qualifiers): Similarly.
3442 * objc/encoding.h (_C_BYREF): Define.
3443 (_F_BYREF): Define.
3444
07181a20
DM
34451998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
3446
3447 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
3448 works out on 64-bit systems.
3449
5e2f657b
AO
3450Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3451
ceff9b14 3452 * Makefile.in (INCLUDES): Make it multilib-friendly.
5e2f657b 3453
4afb3646
L
3454Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
3455
3456 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
3457
4102f627
RL
3458Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
3459 Jeffrey A Law (law@cygnus.com)
3460
3461 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
3462 (FLAGS_TO_PASS): Added.
3463 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
3464
3465 * archive.c: Change config.h to tconfig.h.
3466
3467 * configure.in: Find gcc's object directory even for multilibs.
3468
3469Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
5ae4c799
RL
3470
3471 * configure.in: Escape ^ in grep string.
3472 * configure: Rebuilt.
3473
789eb4f5
JL
3474Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
3475
3476 * All .h files pushed down into the objc/ subdirectory.
3477 * Makefile.in (copy_headers): Corresponding changes.
3478 * configure.in (AC_INIT): Corresponding changes.
3479 * configure: Rebuilt.
3480
bce1b489
BE
34811998-09-30 Ben Elliston <bje@cygnus.com>
3482 Jeff Law <law@cygnus.com>
3483
3484 * Makefile.in: Rewrite.
3485
3486 * configure.in: Likewise.
3487
3488 * configure: Regenerate.
3489
3490 * All .c files. Remove "objc" prefix when including objc header
3491 files. Include tconfig.h, not ../tconfig.h.
3492
2e5f02a3
OP
3493Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
3494
3495 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
3496 (get_inner_array_type): Define.
3497
88e17b57
BE
34981998-09-21 Ben Elliston <bje@cygnus.com>
3499
3500 * New directory. Moved files from ../gcc/objc.
818ab71a 3501\f
85ec4feb 3502Copyright (C) 1998-2018 Free Software Foundation, Inc.
818ab71a
JJ
3503
3504Copying and distribution of this file, with or without modification,
3505are permitted in any medium without royalty provided the copyright
3506notice and this notice are preserved.