This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix Dwarf2 ICE in NRVO in inline
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Fix Dwarf2 ICE in NRVO in inline
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 01 Nov 2001 19:37:43 +0000
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20011101132544.B739@sunsite.ms.mff.cuni.cz>
>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
> This patch seems to fix the testcase I just posted.
> Ok to commit?
Yes, please. And the testcase.
[patch not snipped because original mail didn't go to gcc-patches]
> 2001-11-01 Jakub Jelinek <jakub@redhat.com>
> * tree.c (cp_copy_res_decl_for_inlining): Adjust
> DECL_ABSTRACT_ORIGIN for the return variable.
> --- gcc/cp/tree.c.jj Wed Oct 24 17:34:09 2001
> +++ gcc/cp/tree.c Thu Nov 1 13:29:59 2001
> @@ -2250,6 +2250,7 @@ cp_copy_res_decl_for_inlining (result, f
> DECL_NAME (var) = DECL_NAME (nrv);
> DECL_SOURCE_FILE (var) = DECL_SOURCE_FILE (nrv);
> DECL_SOURCE_LINE (var) = DECL_SOURCE_LINE (nrv);
> + DECL_ABSTRACT_ORIGIN (var) = DECL_ORIGIN (nrv);
> splay_tree_insert (decl_map,
> (splay_tree_key) nrv,
> (splay_tree_value) var);
> Jakub