aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-04-05 21:10:26 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2007-04-05 21:10:26 +0000
commitfa574e51547c2cfd2dcbbfb47252caac60bc7171 (patch)
tree2b741470b3934fa906d399594e5383a991d80b1a /gcc/tree-sra.c
parentdc808df68ad8864d5d9e9ff7df501d8277e6da8b (diff)
downloadgcc-fa574e51547c2cfd2dcbbfb47252caac60bc7171.zip
gcc-fa574e51547c2cfd2dcbbfb47252caac60bc7171.tar.gz
gcc-fa574e51547c2cfd2dcbbfb47252caac60bc7171.tar.bz2
tree-sra.c (try_instantiate_multiple_fields): Needlessly initialize align to silence bogus warning.
* tree-sra.c (try_instantiate_multiple_fields): Needlessly initialize align to silence bogus warning. From-SVN: r123526
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index a73f22d..0f76bb5 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -1431,7 +1431,11 @@ try_instantiate_multiple_fields (struct sra_elt *elt, tree f)
return f;
/* Taking the alignment of elt->element is not enough, since it
- might be just an array index or some such. */
+ might be just an array index or some such. We shouldn't need to
+ initialize align here, but our optimizers don't always realize
+ that, if we leave the loop without initializing align, we'll fail
+ the assertion right after the loop. */
+ align = (unsigned HOST_WIDE_INT)-1;
for (block = elt; block; block = block->parent)
if (DECL_P (block->element))
{