summaryrefslogtreecommitdiff
path: root/gcc/cp/except.c
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-06 09:09:47 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-06 09:09:47 +0000
commitccb59bb6a4de1511f5c702ff77b97193ac025583 (patch)
tree9429281816e5f0ce1b0e27a9de8cbfa48bc75a3f /gcc/cp/except.c
parentaa9741c4c26f0d5eca115a83d1beff8d5c67fcbc (diff)
downloadgcc-ccb59bb6a4de1511f5c702ff77b97193ac025583.tar.gz
2009-07-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
cp/ * decl.c: Replace %H by an explicit location. Update all calls. * except.c: Likewise. * semantics.c: Likewise. * parser.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149277 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r--gcc/cp/except.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 92def0f72d0..01512860725 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -998,10 +998,11 @@ check_handlers_1 (tree master, tree_stmt_iterator i)
tree handler = tsi_stmt (i);
if (TREE_TYPE (handler) && can_convert_eh (type, TREE_TYPE (handler)))
{
- warning (0, "%Hexception of type %qT will be caught",
- EXPR_LOCUS (handler), TREE_TYPE (handler));
- warning (0, "%H by earlier handler for %qT",
- EXPR_LOCUS (master), type);
+ warning_at (EXPR_LOCATION (handler), 0,
+ "exception of type %qT will be caught",
+ TREE_TYPE (handler));
+ warning_at (EXPR_LOCATION (master), 0,
+ " by earlier handler for %qT", type);
break;
}
}
@@ -1030,8 +1031,8 @@ check_handlers (tree handlers)
if (tsi_end_p (i))
break;
if (TREE_TYPE (handler) == NULL_TREE)
- permerror (input_location, "%H%<...%> handler must be the last handler for"
- " its try block", EXPR_LOCUS (handler));
+ permerror (EXPR_LOCATION (handler), "%<...%>"
+ " handler must be the last handler for its try block");
else
check_handlers_1 (handler, i);
}