From: bothner Date: Wed, 2 Mar 2005 00:23:47 +0000 (+0000) Subject: * decl.c (finish_function): Use SET_EXPR_LOCATION instead of X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35d8b8ba32a7d9dc2d24ca3edf1aaccf2c467c52;p=thirdparty%2Fgcc.git * decl.c (finish_function): Use SET_EXPR_LOCATION instead of unavailable annotate_with_file_line, if USE_MAPPED_LOCATION. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95772 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 51cc4f1bffe4..55ec85461c33 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-03-01 Per Bothner + + * decl.c (finish_function): Use SET_EXPR_LOCATION instead of + unavailable annotate_with_file_line, if USE_MAPPED_LOCATION. + 2005-03-01 Nathan Sidwell PR c++/20232 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 072519ca1ed4..bfe503f30d38 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -10593,7 +10593,11 @@ finish_function (int flags) /* Hack. We don't want the middle-end to warn that this return is unreachable, so put the statement on the special line 0. */ +#ifdef USE_MAPPED_LOCATION + SET_EXPR_LOCATION (stmt, UNKNOWN_LOCATION); +#else annotate_with_file_line (stmt, input_filename, 0); +#endif } /* Finish dealing with exception specifiers. */