This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RFA][objc] Add exception.c to the GC version of libobjc
- From: Alexander Malmberg <alexander at malmberg dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 20 Jun 2004 00:17:28 +0200
- Subject: [RFA][objc] Add exception.c to the GC version of libobjc
When exception.c was added to libobjc recently, it wasn't added to the
list of objects to include in the GC version of libobjc, and it was
always compiled with $(OBJC_GCFLAGS). The attached (obvious, I think)
patch fixes this.
'make check-objc' shows no new failures, FWIW.
- Alexander Malmberg
2004-06-20 Alexander Malmberg <alexander@malmberg.org>
* Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
(exception_gc.lo): New.
(OBJS_GC): Add exception_gc.lo.
Index: Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/libobjc/Makefile.in,v
retrieving revision 1.42
diff -u -r1.42 Makefile.in
--- Makefile.in 18 Jun 2004 01:00:28 -0000 1.42
+++ Makefile.in 19 Jun 2004 21:52:55 -0000
@@ -151,7 +151,7 @@
init_gc.lo linking_gc.lo misc_gc.lo nil_method_gc.lo \
NXConstStr_gc.lo Object_gc.lo objects_gc.lo Protocol_gc.lo \
sarray_gc.lo selector_gc.lo sendmsg_gc.lo thr_gc.lo \
- $(OBJC_THREAD_FILE)_gc.lo
+ $(OBJC_THREAD_FILE)_gc.lo exception_gc.lo
runtime-info.h:
echo "" > tmp-runtime.m
@@ -254,6 +254,10 @@
$(INCLUDES) $<
exception.lo: exception.c
+ $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) \
+ -fexceptions $(INCLUDES) $<
+
+exception_gc.lo: exception.c
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
-fexceptions $(INCLUDES) $<