This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 2/2] ipa-struct-reorg.c: Fix bootstrap error on x86
- From: Samuel Tardieu <sam at rfc1149 dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 24 Oct 2007 21:01:06 +0200
- Subject: [PATCH 2/2] ipa-struct-reorg.c: Fix bootstrap error on x86
(warning treated as error)
2007-10-24 Samuel Tardieu <sam@rfc1149.net>
* ipa-struct-reorg.c (replace_field_acc): Make it clear to
the compiler that wr.wrap and wr.domain are initialized in
any case.
---
gcc/ipa-struct-reorg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c
index bbb6f50..6b565e4 100644
--- a/gcc/ipa-struct-reorg.c
+++ b/gcc/ipa-struct-reorg.c
@@ -968,7 +968,7 @@ replace_field_acc (struct field_access_site *acc, tree new_type)
wr.wrap = 0;
wr.domain = 0;
}
- else if (TREE_CODE (ref_var) == ARRAY_REF)
+ else
{
wr.wrap = 1;
wr.domain = TREE_OPERAND (ref_var, 1);
--
1.5.3.4