diff options
author | Seongbae Park <seongbae.park@gmail.com> | 2007-08-16 17:36:01 +0000 |
---|---|---|
committer | Seongbae Park <spark@gcc.gnu.org> | 2007-08-16 17:36:01 +0000 |
commit | 75407da35c2a03618a8a5fe2d111efaa8437f3a2 (patch) | |
tree | 5ad9f2fc9f72f8a25f8dea691fe9dfe93d66f804 /gcc/cp | |
parent | d407ad672934d4cdca932d108fddde8f4a75af97 (diff) | |
download | gcc-75407da35c2a03618a8a5fe2d111efaa8437f3a2.zip gcc-75407da35c2a03618a8a5fe2d111efaa8437f3a2.tar.gz gcc-75407da35c2a03618a8a5fe2d111efaa8437f3a2.tar.bz2 |
gcov-5.C: New test.
gcc/testsuite/ChangeLog:
2007-08-16 Seongbae Park <seongbae.park@gmail.com>
* g++.dg/gcov/gcov-5.C: New test.
gcc/cp/ChangeLog:
2007-08-16 Seongbae Park <seongbae.park@gmail.com>
* pt.c (instantiate_decl): Set input_location
for the function end.
From-SVN: r127563
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/pt.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c2b043f..89172af 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2007-08-16 Seongbae Park <seongbae.park@gmail.com> + + * pt.c (instantiate_decl): Set input_location + for the function end. + 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * cp-objcp-common.c (cxx_warn_unused_global_decl, cp_expr_size): diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 68cd9a5..76d3518 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -14440,6 +14440,10 @@ instantiate_decl (tree d, int defer_ok, tf_warning_or_error, tmpl, /*integral_constant_expression_p=*/false); + /* Set the current input_location to the end of the function + so that finish_function knows where we are. */ + input_location = DECL_STRUCT_FUNCTION (code_pattern)->function_end_locus; + /* We don't need the local specializations any more. */ htab_delete (local_specializations); local_specializations = saved_local_specializations; |