This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix Dwarf2 ICE in NRVO in inline


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]