This is the mail archive of the gcc@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]

Small reload.c patch


The following patch fixes a small problem in decompose().  The problem
is (again :-) that val.base isn't initialized completely when val is
returned by decompose().  I don't think this caused any real problems
(because val.base should never be used unless GET_CODE(val) == MEM), but
it should be fixed anyway.

Wed Oct  1 23:51:06 CEST 1997  Thomas Koenig (ig25@rz.uni-karlsruhe.de)

	* reload.c (decompose): Always initialize val.base.
 
-- reload.c.orig	Wed Oct  1 18:38:09 1997
+++ reload.c	Wed Oct  1 18:38:26 1997
@@ -2077,6 +2077,7 @@
 
   val.reg_flag = 0;
   val.safe = 0;
+  val.base = 0;
   if (GET_CODE (x) == MEM)
     {
       rtx base, offset = 0;
-- 
Thomas Koenig, Thomas.Koenig@ciw.uni-karlsruhe.de, ig25@dkauni2.bitnet.
The joy of engineering is to find a straight line on a double
logarithmic diagram.


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