From cd47580517bf12a070ba8b5e76043d9df813acc6 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 25 Jul 2003 10:27:43 +0000 Subject: objc-act.c (objc_check_decl): Don't use xxx_with_decl. * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl. (objc_declare_class): Likewise. (error_with_ivar): Likewise. (start_class): Likewise. (warn_with_method): Likewise. java/ * expr.c (expand_java_field_op): Don't use xxx_with_decl (expand_java_field_op): Likewise. * class.c (layout_class_method): Likewise (emit_register_classes): Likewise. * decl.c (pushdecl): Likewise. (poplevel): Likewise. (force_poplevels): Likewise. (give_name_to_locals): Likewise. * check-init.c (check_for_initialization): Likewise. From-SVN: r69780 --- gcc/objc/objc-act.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/objc') diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 4112f63..e5d6e52 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -915,7 +915,8 @@ objc_check_decl (decl) if (TREE_CODE (type) == RECORD_TYPE && TREE_STATIC_TEMPLATE (type) && type != constant_string_type) - error_with_decl (decl, "`%s' cannot be statically allocated"); + error ("%H'%D' cannot be statically allocated", + &DECL_SOURCE_LOCATION (decl), decl); } /* Implement static typing. At this point, we know we have an interface. */ @@ -2370,7 +2371,8 @@ objc_declare_class (ident_list) { error ("`%s' redeclared as different kind of symbol", IDENTIFIER_POINTER (ident)); - error_with_decl (decl, "previous declaration of `%s'"); + error ("%Hprevious declaration of '%D'", + &DECL_SOURCE_LOCATION (decl), decl); } if (! is_class_name (ident)) @@ -6116,7 +6118,8 @@ start_class (code, class_name, super_name, protocol_list) { error ("`%s' redeclared as different kind of symbol", IDENTIFIER_POINTER (class_name)); - error_with_decl (decl, "previous declaration of `%s'"); + error ("%Hprevious declaration of '%D'", + &DECL_SOURCE_LOCATION (decl), decl); } if (code == CLASS_IMPLEMENTATION_TYPE) -- cgit v1.1