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]

Warning fix for ra-rewrite.c


I get a 'used uninitalized' warning in ra-rewrite.c on ia64.  I also tried
moving the declaration down inside the loop, but that didn't help.

Andreas.

2003-01-22  Andreas Schwab  <schwab@suse.de>

	* ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.

--- gcc/ra-rewrite.c.~1.9.~	2003-01-17 10:00:14.000000000 +0100
+++ gcc/ra-rewrite.c	2003-01-22 13:06:52.000000000 +0100
@@ -1085,7 +1085,7 @@ static void
 rewrite_program2 (new_deaths)
      bitmap new_deaths;
 {
-  basic_block bb;
+  basic_block bb = NULL;
   int nl_first_reload;
   struct rewrite_info ri;
   rtx insn;

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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