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