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
This commit is contained in:
parent
dc808df68a
commit
fa574e5154
|
@ -1,3 +1,8 @@
|
||||||
|
2007-04-05 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
* tree-sra.c (try_instantiate_multiple_fields): Needlessly
|
||||||
|
initialize align to silence bogus warning.
|
||||||
|
|
||||||
2007-04-05 Alexandre Oliva <aoliva@redhat.com>
|
2007-04-05 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
PR middle-end/22156
|
PR middle-end/22156
|
||||||
|
|
|
@ -1431,7 +1431,11 @@ try_instantiate_multiple_fields (struct sra_elt *elt, tree f)
|
||||||
return f;
|
return f;
|
||||||
|
|
||||||
/* Taking the alignment of elt->element is not enough, since it
|
/* 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)
|
for (block = elt; block; block = block->parent)
|
||||||
if (DECL_P (block->element))
|
if (DECL_P (block->element))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue