diff options
author | Per Bothner <per@bothner.com> | 2005-03-01 16:23:47 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2005-03-01 16:23:47 -0800 |
commit | 176a0aad11289b39ab49dda6abc94b69de7fe68d (patch) | |
tree | a8fab762bd6ab178f8ad75861dec6d00be8089ea /gcc | |
parent | 58a30fef7ba4677d35b6f756d3484f6a846991d1 (diff) | |
download | gcc-176a0aad11289b39ab49dda6abc94b69de7fe68d.zip gcc-176a0aad11289b39ab49dda6abc94b69de7fe68d.tar.gz gcc-176a0aad11289b39ab49dda6abc94b69de7fe68d.tar.bz2 |
decl.c (finish_function): Use SET_EXPR_LOCATION instead of unavailable annotate_with_file_line...
* decl.c (finish_function): Use SET_EXPR_LOCATION instead of
unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
From-SVN: r95772
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 51cc4f1..55ec854 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-03-01 Per Bothner <per@bothner.com> + + * decl.c (finish_function): Use SET_EXPR_LOCATION instead of + unavailable annotate_with_file_line, if USE_MAPPED_LOCATION. + 2005-03-01 Nathan Sidwell <nathan@codesourcery.com> PR c++/20232 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 072519c..bfe503f 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. */ |