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]
Other format: [Raw text]

[new-ra] fix for patch 1 (1-fix)


Hi,

this fixes the bootstrap problem.  It's an uninitialized variable access.
bootstrapped/regtested on i686-linux, all languages minus Ada.


Ciao,
Michael.
-- 
2003-06-30  Michael Matz  <matz@suse.de>
	* ra-rewrite.c (coalesce_spill_slots): Don't use uninitialized
	values.

diff -urpN h-1/gcc/ra-rewrite.c ra-branch-gcc/gcc/ra-rewrite.c
--- h-1/gcc/ra-rewrite.c	2003-06-30 20:01:18.000000000 +0200
+++ ra-branch-gcc/gcc/ra-rewrite.c	2003-07-01 21:37:59.000000000 +0200
@@ -2166,6 +2166,8 @@ coalesce_spill_slot (web, ref, place)
       s = use2web[DF_REF_ID (info->uses[0])];
       t = def2web[DF_REF_ID (info->defs[0])];
     }
+  else
+    return 0;

   if (s == web)
     dweb = t;


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