1 Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
2 Nicola Pero <n.pero@mi.flashnet.it>
5 * init.c (class_superclass_of_class): New function.
6 (create_tree_of_subclasses_inherited_from): Use it.
7 (__objc_tree_insert_class): Likewise.
8 (class_is_subclass_of_class): Likewise.
10 2003-04-11 David Chad <davidc@freebsd.org>
11 Loren J. Rittle <ljrittle@acm.org>
14 * objc/hash.h (hash_string): Constify correctly.
15 (compare_ptrs): Use direct compare.
16 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
17 * objc/sarray.h: Global rename index to indx to avoid shadow.
19 2003-03-12 Andreas Schwab <schwab@suse.de>
21 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
22 glibcpp_toolexeclibdir.
25 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
27 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
31 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
33 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
34 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
35 version_specific_libs is enabled.
38 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
41 (install-libs, install-headers): Prepend $(DESTDIR) to
42 destination paths in all (un)installation commands.
44 2002-12-02 Zack Weinberg <zack@codesourcery.com>
46 * thr-objc.c: Include coretypes.h and tm.h.
48 2002-12-01 Zack Weinberg <zack@codesourcery.com>
50 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
52 2002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
54 * configure.in: Remove skip-this-dir support.
55 * configure: Regenerate.
57 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
59 * Makefile.in (all): Fix multilib parallel build.
61 Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
63 * sendmsg.c (nil_method): Declare not to take a variable number of
65 (objc_msg_lookup): Cast nil_method to IMP before returning it.
66 (objc_msg_lookup_super): The same.
68 2002-09-10 Jan Hubicka <jh@suse.cz>
70 * nil_method.c (nil_method): No longer defined with variable
73 2002-07-02 Rodney Brown <rbrown64@csc.com.au>
75 * objc/encoding.h: Fix formatting.
76 * objc/hash.h: Likewise.
77 * objc/objc-api.h: Likewise.
78 * objc/runtime.h: Likewise.
79 * objc/thr.h: Likewise.
80 * archive.c: Likewise.
82 * encoding.c: Likewise.
87 * nil_method.c: Likewise.
88 * objects.c: Likewise.
90 * selector.c: Likewise.
91 * sendmsg.c: Likewise.
92 * thr-mach.c: Likewise.
95 2002-06-25 DJ Delorie <dj@redhat.com>
97 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
98 GLIBCPP_TOPREL_CONFIGURE.
99 * configure.in: Call it before AC_CANONICAL_SYSTEM.
100 * configure: Regenerate.
102 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
104 * Object.m (forward, read, write): Fix unused parameter warnings.
105 * encoding.c: Include <stdlib.h>.
106 (target_flags): Mark with attribute unused.
108 * runtime.h (__objc_selector_max_index): Change to unsigned int.
109 (__objc_generate_gc_type_description): Prototype.
110 * selector.c (__objc_selector_max_index): Change to unsigned int.
112 Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
114 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
115 we always have a return value: if __objc_msg_forward does not
116 supply a forwarding implementation, return the default
117 __builtin_apply based one.
119 2002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
121 * Object.m: Fix signed/unsigned warning.
122 * Protocol.m: Likewise.
123 * archive.c: Always include stdlib.h.
124 (objc_read_short, objc_read_unsigned_short, objc_read_int,
125 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
126 Fix signed/unsigned warning.
127 (objc_write_type, objc_read_type, objc_write_types,
128 objc_read_types): Ensure ctype 8-bit safety.
129 (__objc_no_write, __objc_no_read): Mark unused parameters.
130 * class.c (class_table_setup): Specify void arg.
131 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
132 objc_skip_typespec, objc_skip_offset,
133 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
134 (objc_layout_structure_next_member): Ensure variables are
136 * gc.c (__objc_generate_gc_type_description,
137 class_ivar_set_gcinvisible): Mark unused parameters.
138 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
140 (__objc_init_protocols) Fix signed/unsigned warning.
141 * nil_method.c (nil_method): Mark unused parameters.
142 * thr.h (objc_thread_callback): Specify void arg.
143 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
144 signed/unsigned warning.
145 (sarray_free): Fix formatting.
146 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
147 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
149 2002-06-09 Andreas Jaeger <aj@suse.de>
151 * encoding.c (objc_layout_structure_next_member): Remove unused
154 2002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
156 * Makefile.in (SHELL): Set to @SHELL@.
158 (ALL_CFLAGS): Add $(WARN_CFLAGS).
160 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
162 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
163 * configure: Regenerate.
165 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
167 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
168 script entry, and set LD to it when configuring multilibs.
169 * configure: Rebuilt.
171 2002-04-19 David O'Brien <obrien@FreeBSD.org>
173 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
175 2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
178 * objc/objc-api.h (struct objc_protocol_list): Change type of
179 member count from int to size_t.
181 2002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
184 * aclocal.m4: Replace with version copied from libstdc++-v3.
185 * configure.in: Update for changes to aclocal and Makefile.
186 * configure: Regenerate.
187 * Makefile.in: Correct install of multilibs and shared libs, use
188 INSTALL_DATA for include files.
190 Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
192 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
193 categories - when an unclaimed category was found, the loop was
194 doing two steps forward instead of one, so that in certain cases
195 it was failing to properly load all the categories. (Reported
196 with fix by Alexander Malmberg <alexander@malmberg.org>).
198 2001-11-14 Aldy Hernandez <aldyh@redhat.com>
200 * encoding.c: Add target_flags.
202 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
204 * objc/objc-api.h (_C_VECTOR): New.
206 * encoding.c (VECTOR_TYPE): New.
208 Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
210 * class.c: Rewritten the class table to use optimized, lock-free
211 lookup. This more than doubles the speed of class method
212 invocations. (class_table_setup), (class_table_insert),
213 (class_table_replace), (class_table_get_safe),
214 (class_table_next), (class_table_print),
215 (class_table_print_histogram): New functions.
216 (__objc_init_class_tables): Use class_table_setup.
217 (__objc_add_class_to_hash): Use class_table_get_safe and
218 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
219 assert the existence of the table; do not lock the runtime; use
220 class_table_get_safe. (objc_next_class): Use class_table_next.
221 (__objc_resolve_class_links): Use class_table_next.
222 (class_pose_as): Use class_table_replace.
224 2001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
226 * gc.c: Removed the DEBUG declaration.
228 Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
230 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
231 rather than through objc_thread_id, to save a function call.
232 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
235 Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
237 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
238 to cast an id to a Class, which can not be done. Make the check
239 by using CLS_ISMETA on the class pointer instead.
240 (object_is_meta_class): Similar fix.
242 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
244 * configure.in (AC_EXEEXT): Work around in case it expands to
245 nothing, as in autoconf 2.50.
246 * acinclude.m4: Likewise.
247 * configure: Rebuilt.
249 2001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
251 * THREADS: Explain that when we compile libobjc inside GCC, we
252 always use thr-objc.c as a backend, which uses GCC's thread code.
254 2001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
256 * init.c (__objc_send_message_in_list): When setting a new entry
257 in __objc_load_methods use the method IMP as key, but check to see
258 if the method is in the hashtable by looking at the IMP also.
259 Also ... call the method after adding it to the hashtable rather
260 than before ... thus preventing an obscure possibility of infinite
261 recursion if a +load method itself loads a subclass.
263 2001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
265 * init.c (__objc_send_message_in_list): When setting a new entry
266 in __objc_load_methods use the method name as key, not the method
267 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
269 2001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
271 * objc-features.texi: Move to ../gcc/objc.texi.
273 * Makefile.in: Don't generate documentation from
276 2001-05-01 Mark Mitchell <mark@codesourcery.com>
278 * fdl.texi: New file.
279 * objc-features.texi: Simplify.
280 * Makefile.in: Adjust accordingly.
282 2001-04-30 Mark Mitchell <mark@codesourcery.com>
284 * objc-features.texi: Use the GFDL.
286 Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
288 * encoding.c (REAL_TYPE): Define.
290 2001-03-19 David Edelsohn <edelsohn@gnu.org>
292 * encoding.c (TYPE_MODE): Define.
294 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
296 * thr.c (objc_thread_add): New function.
297 (objc_thread_remove): Ditto.
298 * objc/thr.h: Declare them.
299 * libobjc.def: Mention them.
301 2001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
303 * objc-features.texi: Document the @compatibility_alias compiler
304 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
306 Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
308 * sendmsg.c (__objc_forward): Delete strlen() declaration.
310 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
312 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
313 we're not interested in the result and they might fail.
314 * configure: Regenerated.
316 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
318 * objc-features.texi: Use @email.
320 2001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
322 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
325 2000-01-11 Richard Earnshaw <rearnsha@arm.com>
327 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
328 determines the value dynamically.
330 Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
332 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
333 libraries to provide a function that returns the real forwarding
334 function. This can alleviate problems __builtin_apply() and
335 friends have on various platforms. (Solution suggested by Helge
338 * objc/objc-api.h: Define __objc_msg_forward.
340 * sendmsg.c: Define gen_rtx_REG.
342 2000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
344 * thr-rtems.c: New file. Stub to compile.
346 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
348 * configure: Rebuilt with new libtool.m4.
350 Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
352 * configure.in: Create a config.h file. Check for <sched.h>.
353 * configure: Regenerate.
355 * config.h.in: Check for <sched.h>.
357 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
359 * configure: Regenerate after change to ../libtool.m4.
361 2000-08-14 Andreas Schwab <schwab@suse.de>
363 * objc-features.texi (Top): Move @menu at end of node.
365 2000-08-11 Manfred Hollstein <manfredh@redhat.com>
367 * objc-features.texi: Move @node Top before @menu.
369 Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
371 * objc-features.texi: Documented the new -fconstant-string-class
374 Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
376 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
377 improve the Posix thread support for Objective-C.
379 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
381 * aclocal.m4: Replace copy of ../libtool.m4 with
382 sinclude(../libtool.m4).
384 Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
386 * configure.in: Added libtool support; build shared libraries
387 if --enable-shared was passed on command line.
388 * Makefile.in: Modified most compilation commands to use libtool.
389 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
390 libtool distribution.
392 Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
394 * sarray.c, Object.m: Removed the explicit prototypes for strlen
395 and memcpy on 64-bit platforms (Suggested by Rodney Brown
398 2000-05-12 H.J. Lu (hjl@gnu.org)
400 * Makefile.in (GTHREAD_FLAGS): New.
401 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
402 (OBJC_THREAD_FILE): Changed to thr-objc.
404 * configure.in (GTHREAD_FLAGS): New, check and replace it for
406 (OBJC_THREAD_FILE): Removed.
410 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
412 * objc/hash.h: Include string.h.
414 2000-04-15 David Edelsohn <edelsohn@gnu.org>
416 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
418 2000-04-12 Jakub Jelinek <jakub@redhat.com>
420 * Object.m (strlen): Provide prototype on all 64bit platforms,
422 * sarray.c (memcpy): Likewise.
423 * encoding.c (objc_layout_finish_structure): Don't use
424 ROUND_TYPE_ALIGN on sparc.
426 * encoding.c (objc_layout_structure_next_member): Do the whole
427 procedure even for the first member, so that we get correct
430 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
432 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
435 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
437 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
439 Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
441 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
443 Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
445 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
446 the compiler when building C code.
448 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
450 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
451 libdir, libsubdir and tooldir.
453 Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
455 * init.c (__objc_force_linking): Make global.
457 Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
459 * configure.in (AC_EXEEXT): Remove call.
460 (compiler_name): Explicitly check with no extension and .exe
462 * configure: Regenerate.
464 Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
466 * Makefile.in (CC1OBJ): Define in terms of CC.
467 (runtime-info.h): Use.
469 Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
471 * objc-features.texi: Updated the URL to Boehm's GC page.
473 Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
475 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
476 the char as being signed (patch from Daniel Jacobowitz
479 Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
481 * configure.in (AC_PREREQ): Update to 2.13.
482 (AC_EXEEXT): Call to find possible file extension.
483 (compiler_name): Use.
484 * configure: Regenerate.
486 Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
488 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
490 Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
492 * configure.in (thread_file): Correct and simplify code to find
494 * configure: Rebuilt.
496 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
498 * configure.in (compiler_name): Add check to detect if this
499 language's compiler has been built.
500 * configure: Regenerate.
502 Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
504 * configure.in: Use AC_PREREQ(2.12.1).
506 Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
508 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
510 Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
512 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
514 Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
516 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
518 Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
520 * objc-features.texi (Top): Changed the email address.
521 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
523 Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
525 * encoding.c: Redefine get_inner_array_type to get the first entry
528 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
530 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
531 (objc_get_type_qualifiers): Similarly.
532 * objc/encoding.h (_C_BYREF): Define.
535 1998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
537 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
538 works out on 64-bit systems.
540 Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
542 * Makefile.in (INCLUDES): Make it multilib-friendly.
544 Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
546 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
548 Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
549 Jeffrey A Law (law@cygnus.com)
551 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
552 (FLAGS_TO_PASS): Added.
553 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
555 * archive.c: Change config.h to tconfig.h.
557 * configure.in: Find gcc's object directory even for multilibs.
559 Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
561 * configure.in: Escape ^ in grep string.
562 * configure: Rebuilt.
564 Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
566 * All .h files pushed down into the objc/ subdirectory.
567 * Makefile.in (copy_headers): Corresponding changes.
568 * configure.in (AC_INIT): Corresponding changes.
569 * configure: Rebuilt.
571 1998-09-30 Ben Elliston <bje@cygnus.com>
572 Jeff Law <law@cygnus.com>
574 * Makefile.in: Rewrite.
576 * configure.in: Likewise.
578 * configure: Regenerate.
580 * All .c files. Remove "objc" prefix when including objc header
581 files. Include tconfig.h, not ../tconfig.h.
583 Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
585 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
586 (get_inner_array_type): Define.
588 1998-09-21 Ben Elliston <bje@cygnus.com>
590 * New directory. Moved files from ../gcc/objc.