public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] use shallow copy rtx
@ 2002-10-29 10:37 Eric Christopher
  2002-10-31 11:05 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Christopher @ 2002-10-29 10:37 UTC (permalink / raw)
  To: gcc-patches

Instead of updating lots of uses for each new flag added, we should use
shallow_copy_rtx...

Bootstrapped on x86, fixed compilation on mips-rewrite.

OK?

-eric

-- 
Yeah, I used to play basketball...

2002-10-29  Eric Christopher  <echristo@redhat.com>

	* explow.c (convert_memory_address): Use shallow_copy_rtx.

Index: explow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/explow.c,v
retrieving revision 1.102.2.1
diff -u -p -w -r1.102.2.1 explow.c
--- explow.c	2 Oct 2002 21:50:47 -0000	1.102.2.1
+++ explow.c	29 Oct 2002 15:21:28 -0000
@@ -405,10 +405,8 @@ convert_memory_address (to_mode, x)
       break;
 
     case SYMBOL_REF:
-      temp = gen_rtx_SYMBOL_REF (to_mode, XSTR (x, 0));
-      SYMBOL_REF_FLAG (temp) = SYMBOL_REF_FLAG (x);
-      CONSTANT_POOL_ADDRESS_P (temp) = CONSTANT_POOL_ADDRESS_P (x);
-      STRING_POOL_ADDRESS_P (temp) = STRING_POOL_ADDRESS_P (x);
+      temp = shallow_copy_rtx (x);
+      PUT_MODE (temp, to_mode);
       return temp;
       break;
 
@@ -1716,4 +1714,3 @@ rtx_to_tree_code (code)
 }
 
 #include "gt-explow.h"
-

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] use shallow copy rtx
  2002-10-29 10:37 [patch] use shallow copy rtx Eric Christopher
@ 2002-10-31 11:05 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2002-10-31 11:05 UTC (permalink / raw)
  To: Eric Christopher; +Cc: gcc-patches

On Tue, Oct 29, 2002 at 11:09:30AM -0800, Eric Christopher wrote:
> 	* explow.c (convert_memory_address): Use shallow_copy_rtx.

Ok.


r~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-31 19:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-29 10:37 [patch] use shallow copy rtx Eric Christopher
2002-10-31 11:05 ` Richard Henderson

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).