aboutsummaryrefslogtreecommitdiff
path: root/libobjc/Makefile.in
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-09-08 21:03:09 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-09-08 21:03:09 +0000
commite30511ed4b4e31f800fa1ff212006df2740bd410 (patch)
tree9b72d3e49901d1f748b383212af5d710212ac59c /libobjc/Makefile.in
parent2bfef1ad48b7acd536a8ac0edb218088f68979b5 (diff)
downloadgcc-e30511ed4b4e31f800fa1ff212006df2740bd410.zip
gcc-e30511ed4b4e31f800fa1ff212006df2740bd410.tar.gz
gcc-e30511ed4b4e31f800fa1ff212006df2740bd410.tar.bz2
objc-exception.h: New file.
* objc/objc-exception.h: New file. * exception.c (objc_set_uncaught_exception_handler): Implemented. (objc_set_exception_matcher): Implemented. (objc_exception_throw): Use the uncaught exception handler if set. (PERSONALITY_FUNCTION): Use the exception matcher instead of the hardcoded isKindOf. (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code up. Removed segmentation fault when value is 'nil'. * objc/objc-api.h (_objc_unexpected_exception): Mark as deprecated. * Makefile.in (exception.lo, exception_gc.lo): Use -Wno-deprecated-declarations when compiling. (OBJC_H): Added objc-exception.h From-SVN: r164023
Diffstat (limited to 'libobjc/Makefile.in')
-rw-r--r--libobjc/Makefile.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/libobjc/Makefile.in b/libobjc/Makefile.in
index 0a02e0a..d48c8dd 100644
--- a/libobjc/Makefile.in
+++ b/libobjc/Makefile.in
@@ -143,7 +143,7 @@ all: libobjc$(libsuffix).la $(OBJC_BOEHM_GC)
# User-visible header files.
-OBJC_H = hash.h objc-list.h sarray.h objc.h objc-api.h \
+OBJC_H = hash.h objc-list.h sarray.h objc.h objc-api.h objc-exception.h \
NXConstStr.h Object.h Protocol.h encoding.h typedstream.h \
thr.h objc-decls.h
@@ -152,7 +152,7 @@ OBJC_H = hash.h objc-list.h sarray.h objc.h objc-api.h \
OBJS = archive.lo class.lo encoding.lo gc.lo hash.lo init.lo linking.lo \
misc.lo nil_method.lo NXConstStr.lo Object.lo objects.lo \
Protocol.lo sarray.lo selector.lo sendmsg.lo thr.lo \
- exception.lo
+ exception.lo
OBJS_GC = archive_gc.lo class_gc.lo encoding_gc.lo gc_gc.lo hash_gc.lo \
init_gc.lo linking_gc.lo misc_gc.lo nil_method_gc.lo \
@@ -262,13 +262,15 @@ thr_gc.lo: thr.c
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
$(INCLUDES) $<
+# -Wno-deprecated-declarations is to silence warnings from using
+# _objc_unexpected_exception.
exception.lo: exception.c
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) \
- -fexceptions $(INCLUDES) $<
+ -fexceptions -Wno-deprecated-declarations $(INCLUDES) $<
exception_gc.lo: exception.c
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
- -fexceptions $(INCLUDES) $<
+ -fexceptions -Wno-deprecated-declarations $(INCLUDES) $<
doc: info dvi pdf html