cfgexpand.c (discover_nonconstant_array_refs_r): Make only non-BLKmode arrays addressable.

2009-06-03  Richard Guenther  <rguenther@suse.de>
            Andrey Belevantsev  <abel@ispras.ru>

        * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
        non-BLKmode arrays addressable.


Co-Authored-By: Andrey Belevantsev <abel@ispras.ru>

From-SVN: r148130
This commit is contained in:
Richard Guenther 2009-06-03 14:33:31 +00:00 committed by Andrey Belevantsev
parent 8896147199
commit 6f11d6900d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-06-03 Richard Guenther <rguenther@suse.de>
Andrey Belevantsev <abel@ispras.ru>
* cfgexpand.c (discover_nonconstant_array_refs_r): Make only
non-BLKmode arrays addressable.
2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...

View File

@ -2321,7 +2321,8 @@ discover_nonconstant_array_refs_r (tree * tp, int *walk_subtrees,
if (TREE_CODE (t) == ARRAY_REF || TREE_CODE (t) == ARRAY_RANGE_REF)
{
t = get_base_address (t);
if (t && DECL_P (t))
if (t && DECL_P (t)
&& DECL_MODE (t) != BLKmode)
TREE_ADDRESSABLE (t) = 1;
}