This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Copying rtx should copy frame_related flag
- To: gcc-patches at gcc dot gnu dot org
- Subject: Copying rtx should copy frame_related flag
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 25 Dec 2000 05:10:39 -0200
- Organization: GCC Team, Red Hat
Since we use the frame_related flag to denote strings in the string
pool of a function, this flag should be copied by copy_most_rtx() and
shallow_copy_rtx(), given that copy_rtx() (implicitly) copies it too.
Ok to install?
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* rtl.c (copy_most_rtx, shallow_copy_rtx): Copy frame_related
flag.
Index: gcc/rtl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtl.c,v
retrieving revision 1.85
diff -u -p -r1.85 rtl.c
--- gcc/rtl.c 2000/12/21 01:11:30 1.85
+++ gcc/rtl.c 2000/12/25 07:06:09
@@ -486,6 +486,7 @@ copy_most_rtx (orig, may_share)
copy->volatil = orig->volatil;
copy->unchanging = orig->unchanging;
copy->integrated = orig->integrated;
+ copy->frame_related = orig->frame_related;
format_ptr = GET_RTX_FORMAT (GET_CODE (copy));
@@ -559,6 +560,7 @@ shallow_copy_rtx (orig)
copy->volatil = orig->volatil;
copy->unchanging = orig->unchanging;
copy->integrated = orig->integrated;
+ copy->frame_related = orig->frame_related;
for (i = 0; i < GET_RTX_LENGTH (code); i++)
copy->fld[i] = orig->fld[i];
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me