Commit 6f11d690 by Richard Guenther Committed by Andrey Belevantsev

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
parent 88961471
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 ...
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment