This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[new-ra] fix for patch 1 (1-fix)
- From: Michael Matz <matz at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Jul 2003 14:48:41 +0200 (CEST)
- Subject: [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;