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/java/decl.c | |
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/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 2737463..d1c5b5c 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1022,7 +1022,8 @@ pushdecl (tree x) /* error_mark_node is 0 for a while during initialization! */ { t = 0; - error_with_decl (x, "`%s' used prior to declaration"); + error ("%H'%D' used prior to declaration", + &DECL_SOURCE_LOCATION (x), x); } if (t != 0) @@ -1364,12 +1365,14 @@ poplevel (int keep, int reverse, int functionbody) if (DECL_INITIAL (label) == 0) { - error_with_decl (label, "label `%s' used but not defined"); + error ("%Hlabel '%D' used but not defined", + &DECL_SOURCE_LOCATION (label), label); /* Avoid crashing later. */ define_label (input_location, DECL_NAME (label)); } else if (warn_unused[UNUSED_LABEL] && !TREE_USED (label)) - warning_with_decl (label, "label `%s' defined but not used"); + warning ("%Hlabel '%D' defined but not used", + &DECL_SOURCE_LOCATION (label), label); IDENTIFIER_LABEL_VALUE (DECL_NAME (label)) = 0; /* Put the labels into the "variables" of the @@ -1497,9 +1500,10 @@ force_poplevels (int start_pc) while (current_binding_level->start_pc > start_pc) { if (pedantic && current_binding_level->start_pc > start_pc) - warning_with_decl (current_function_decl, - "In %s: overlapped variable and exception ranges at %d", - current_binding_level->start_pc); + warning (current_function_decl, + "%HIn %D: overlapped variable and exception ranges at %d", + &DECL_SOURCE_LOCATION (current_function_decl), + current_function_decl, current_binding_level->start_pc); expand_end_bindings (getdecls (), 1, 0); poplevel (1, 0, 0); } @@ -1584,8 +1588,8 @@ give_name_to_locals (JCF *jcf) tree decl = build_decl (VAR_DECL, name, type); if (end_pc > DECL_CODE_LENGTH (current_function_decl)) { - warning_with_decl (decl, - "bad PC range for debug info for local `%s'"); + warning ("%Hbad PC range for debug info for local '%D'", + &DECL_SOURCE_LOCATION (decl), decl); end_pc = DECL_CODE_LENGTH (current_function_decl); } |