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]

[PATCH] Suppressing "used uninitialized" warning when compiling matrix_reorg.c with -O3


Hi

This suppresses  "used uninitialized" warning when compiling matrix_reorg.c
with -O3.
Passed bootstrap on x86_64.
OK for the mainline once passes testsuite with no additional regressions?.

ChangeLog:

2008-09-21 Sergei Dyshel <sergeid@il.ibm.com>

      * matrix-reorg.c (transform_allocation_sites): Initializers added to
avoid the warning.


Index: gcc/matrix-reorg.c
===================================================================
--- gcc/matrix-reorg.c  (revision 140446)
+++ gcc/matrix-reorg.c  (working copy)
@@ -2026,7 +2026,7 @@ transform_allocation_sites (void **slot,
   struct cgraph_node *c_node;
   struct cgraph_edge *e;
   gimple_stmt_iterator gsi;
-  struct malloc_call_data mcd;
+  struct malloc_call_data mcd = {NULL, NULL_TREE, NULL_TREE};
   HOST_WIDE_INT element_size;

   imm_use_iterator imm_iter;;


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