expr.c (expand_expr): Don't look through constant arrays if they don't bind locally.

* expr.c (expand_expr): Don't look through constant arrays if
        they don't bind locally.

From-SVN: r73698
This commit is contained in:
Richard Henderson 2003-11-18 00:37:15 -08:00 committed by Richard Henderson
parent 2934246345
commit beb0c2e0ca
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-11-18 Richard Henderson <rth@redhat.com>
* expr.c (expand_expr): Don't look through constant arrays if
they don't bind locally.
2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize

View File

@ -6955,7 +6955,8 @@ expand_expr (tree exp, rtx target, enum machine_mode tmode,
&& modifier != EXPAND_MEMORY
&& TREE_READONLY (array) && ! TREE_SIDE_EFFECTS (array)
&& TREE_CODE (array) == VAR_DECL && DECL_INITIAL (array)
&& TREE_CODE (DECL_INITIAL (array)) != ERROR_MARK)
&& TREE_CODE (DECL_INITIAL (array)) != ERROR_MARK
&& targetm.binds_local_p (array))
{
if (TREE_CODE (index) == INTEGER_CST)
{