The attached patch adds missing quoting to diagnostic directives in files in the objc/ directory.
Martin
gcc/objc/ChangeLog: * objc-gnu-runtime-abi-01.c (objc_eh_runtime_type): Add missing quoting to %T directives. * objc-next-runtime-abi-01.c (objc_eh_runtime_type): Ditto. * objc-next-runtime-abi-02.c (next_runtime_02_eh_type): Ditto. diff --git a/gcc/objc/objc-gnu-runtime-abi-01.c b/gcc/objc/objc-gnu-runtime-abi-01.c index 6d655f2..beeec58 100644 --- a/gcc/objc/objc-gnu-runtime-abi-01.c +++ b/gcc/objc/objc-gnu-runtime-abi-01.c @@ -2165,7 +2165,7 @@ objc_eh_runtime_type (tree type) we use the c++ typeinfo decl. */ return build_eh_type_type (type); #else - error ("non-objective-c type '%T' cannot be caught", type); + error ("non-objective-c type %qT cannot be caught", type); ident = get_identifier ("ErrorMarkNode"); goto make_err_class; #endif diff --git a/gcc/objc/objc-next-runtime-abi-01.c b/gcc/objc/objc-next-runtime-abi-01.c index 3ffbb46..7aff788 100644 --- a/gcc/objc/objc-next-runtime-abi-01.c +++ b/gcc/objc/objc-next-runtime-abi-01.c @@ -2812,7 +2812,7 @@ objc_eh_runtime_type (tree type) we use c++'s typeinfo decl. */ return build_eh_type_type (type); #else - error ("non-objective-c type '%T' cannot be caught", type); + error ("non-objective-c type %qT cannot be caught", type); ident = get_identifier ("ErrorMarkNode"); goto make_err_class; #endif diff --git a/gcc/objc/objc-next-runtime-abi-02.c b/gcc/objc/objc-next-runtime-abi-02.c index d206a6a..9731486 100644 --- a/gcc/objc/objc-next-runtime-abi-02.c +++ b/gcc/objc/objc-next-runtime-abi-02.c @@ -3584,7 +3584,7 @@ next_runtime_02_eh_type (tree type) case, we use c++'s typeinfo decl. */ return build_eh_type_type (type); #else - error ("non-objective-c type '%T' cannot be caught", type); + error ("non-objective-c type %qT cannot be caught", type); goto err_mark_in; #endif }