This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Suppressing "used uninitialized" warning when compiling matrix_reorg.c with -O3
- From: Sergei Dyshel <SERGEID at il dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Razya Ladelsky <RAZYA at il dot ibm dot com>
- Date: Sun, 21 Sep 2008 18:01:45 +0300
- Subject: [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;;