public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7280: [PATCH] NRV related miscompilation
@ 2002-07-11 14:16 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2002-07-11 14:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/7280; it has been noted by GNATS.

From: Jason Merrill <jason@redhat.com>
To: gcc-bugs@gcc.gnu.org
Cc: jakub@redhat.com, gcc-gnats@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: c++/7280: [PATCH] NRV related miscompilation
Date: Thu, 11 Jul 2002 22:11:19 +0100

 --=-=-=
 
 The bug was that we were failing to put the new variable in the stack
 because we didn't copy TREE_ADDRESSABLE.
 
 Tested i686-pc-linux-gnu, applied trunk and 3.1.
 
 2002-07-11  Jason Merrill  <jason@redhat.com>
 
 	PR c++/7279
 	* tree.c (cp_copy_res_decl_for_inlining): Also copy
 	TREE_ADDRESSABLE.
 
 
 --=-=-=
 Content-Type: text/x-patch
 Content-Disposition: inline
 
 *** tree.c.~1~	Thu Jul  4 16:08:15 2002
 --- tree.c	Thu Jul 11 20:16:15 2002
 *************** cp_copy_res_decl_for_inlining (result, f
 *** 2292,2298 ****
 --- 2292,2302 ----
   	  DECL_SOURCE_FILE (var) = DECL_SOURCE_FILE (nrv);
   	  DECL_SOURCE_LINE (var) = DECL_SOURCE_LINE (nrv);
   	  DECL_ABSTRACT_ORIGIN (var) = DECL_ORIGIN (nrv);
 + 	  /* Don't lose initialization info.  */
   	  DECL_INITIAL (var) = DECL_INITIAL (nrv);
 + 	  /* Don't forget that it needs to go in the stack.  */
 + 	  TREE_ADDRESSABLE (var) = TREE_ADDRESSABLE (nrv);
 + 
   	  splay_tree_insert (decl_map,
   			     (splay_tree_key) nrv,
   			     (splay_tree_value) var);
 
 --=-=-=--


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-11 21:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-11 14:16 c++/7280: [PATCH] NRV related miscompilation Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).