diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-07-25 10:27:43 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-07-25 10:27:43 +0000 |
commit | cd47580517bf12a070ba8b5e76043d9df813acc6 (patch) | |
tree | bd914c5fecb0645c91a2bb36077ad261dfaf5a60 /gcc/objc | |
parent | e710066d27bdcc5165a1feef691e11b90e8f5a1f (diff) | |
download | gcc-cd47580517bf12a070ba8b5e76043d9df813acc6.zip gcc-cd47580517bf12a070ba8b5e76043d9df813acc6.tar.gz gcc-cd47580517bf12a070ba8b5e76043d9df813acc6.tar.bz2 |
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
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 9 |
1 files changed, 6 insertions, 3 deletions
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) |