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