Submitted By: Uwe Düffert (lfs at uwe-dueffert dot de)
Date: 2006-05-26
Initial Package Version: 4.2-20060218
Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/gcc-4.2-20060520-compilation-1.patch
Upstream Status: not reported
Description: fix compilation (uninitialized vars)
 
diff -Naur gcc-4.2-20060520.orig/gcc/see.c gcc-4.2-20060520/gcc/see.c
--- gcc-4.2-20060520.orig/gcc/see.c	2006-05-26 13:31:17.000000000 +0000
+++ gcc-4.2-20060520/gcc/see.c	2006-05-26 13:49:12.000000000 +0000
@@ -2732,7 +2732,7 @@
   enum rtx_code code;
   enum rtx_code extension_code;
   enum machine_mode source_extension_mode;
-  enum machine_mode source_mode;
+  enum machine_mode source_mode=0;
   enum machine_mode dest_extension_mode;
   bool merge_success = false;
   int i;
diff -Naur gcc-4.2-20060520.orig/gcc/tree-ssa-structalias.c gcc-4.2-20060520/gcc/tree-ssa-structalias.c
--- gcc-4.2-20060520.orig/gcc/tree-ssa-structalias.c	2006-05-26 13:31:19.000000000 +0000
+++ gcc-4.2-20060520/gcc/tree-ssa-structalias.c	2006-05-26 13:48:46.000000000 +0000
@@ -858,6 +858,8 @@
 	unsigned int place;
 	struct constraint_edge lookfor;
 	constraint_edge_t result;
+	
+	lookfor.weights=0;
 
 	lookfor.dest = node;
 	place = VEC_lower_bound (constraint_edge_t, graph->preds[c->dest], 
@@ -879,6 +881,8 @@
 	unsigned int place;
 	struct constraint_edge lookfor;
 	constraint_edge_t result;
+	
+	lookfor.weights=0;
 
 	lookfor.dest = node;
 	place = VEC_lower_bound (constraint_edge_t, graph->succs[c->dest],
@@ -954,6 +958,7 @@
   VEC(constraint_edge_t,heap) *vec;
   struct constraint_edge lookfor;
 
+  lookfor.weights=0;
   lookfor.dest = dest;
 
   vec = graph->preds[src];
@@ -975,6 +980,8 @@
   VEC(constraint_edge_t,heap) *vec;
   struct constraint_edge lookfor;
   
+  lookfor.weights=0;
+  
   result = BITMAP_ALLOC (&ptabitmap_obstack);
 
   /* Set the pred weight.  */
@@ -1152,6 +1159,7 @@
 {
   struct constraint_edge lookfor;
   lookfor.dest = src;
+  lookfor.weights = 0;
   
   return (graph->zero_weight_succs[dest] 
       && bitmap_bit_p (graph->zero_weight_succs[dest], src)) 
@@ -1166,6 +1174,7 @@
 {
   struct constraint_edge lookfor;
   lookfor.dest = src;
+  lookfor.weights = 0;
   
   return graph->preds[src] 
     && constraint_edge_vec_find (graph->succs[dest], lookfor) != NULL;
diff -Naur gcc-4.2-20060520.orig/libcpp/traditional.c gcc-4.2-20060520/libcpp/traditional.c
--- gcc-4.2-20060520.orig/libcpp/traditional.c	2006-05-26 13:31:25.000000000 +0000
+++ gcc-4.2-20060520/libcpp/traditional.c	2006-05-26 13:48:46.000000000 +0000
@@ -355,6 +355,11 @@
   fmacro.buff = NULL;
 
   quote = 0;
+  fmacro.args=0;
+  fmacro.node=0;
+  fmacro.offset=0;
+  fmacro.argc=0;
+  fmacro.line=0;
   header_ok = pfile->state.angled_headers;
   CUR (pfile->context) = pfile->buffer->cur;
   RLIMIT (pfile->context) = pfile->buffer->rlimit;
