aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2003-07-25 10:27:43 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2003-07-25 10:27:43 +0000
commitcd47580517bf12a070ba8b5e76043d9df813acc6 (patch)
treebd914c5fecb0645c91a2bb36077ad261dfaf5a60 /gcc/java/class.c
parente710066d27bdcc5165a1feef691e11b90e8f5a1f (diff)
downloadgcc-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/java/class.c')
-rw-r--r--gcc/java/class.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index a4278ef..582183d 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1211,8 +1211,8 @@ get_dispatch_table (tree type, tree this_class_addr)
if (METHOD_ABSTRACT (method))
{
if (! abstract_p)
- warning_with_decl (method,
- "abstract method in non-abstract class");
+ warning ("%Habstract method in non-abstract class",
+ &DECL_SOURCE_FILE (method));
if (TARGET_VTABLE_USES_DESCRIPTORS)
for (j = 0; j < TARGET_VTABLE_USES_DESCRIPTORS; ++j)
@@ -1927,8 +1927,8 @@ layout_class_method (tree this_class, tree super_class,
DECL_VINDEX (method_decl) = DECL_VINDEX (super_method);
if (DECL_VINDEX (method_decl) == NULL_TREE
&& !CLASS_FROM_SOURCE_P (this_class))
- error_with_decl (method_decl,
- "non-static method '%s' overrides static method");
+ error ("%Hnon-static method '%D' overrides static method",
+ &DECL_SOURCE_LOCATION (method_decl), method_decl);
}
else if (! METHOD_FINAL (method_decl)
&& ! METHOD_PRIVATE (method_decl)