diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2010-02-23 12:58:44 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-02-23 12:58:44 +0000 |
commit | 143b72a99d266b5a88a3d7beae7fe050e6bdebfc (patch) | |
tree | b5baf3034df8f093ac15a58798413119f911f759 /gcc/sese.c | |
parent | 3bbc8462110858ba3b800e2c4274cec9c1c07e34 (diff) | |
download | gcc-143b72a99d266b5a88a3d7beae7fe050e6bdebfc.zip gcc-143b72a99d266b5a88a3d7beae7fe050e6bdebfc.tar.gz gcc-143b72a99d266b5a88a3d7beae7fe050e6bdebfc.tar.bz2 |
Fix PR43026: handle COMPONENT_REFs in expand scalar expressions.
2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43026
* sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
* g++.dg/graphite/pr43026.C: New.
From-SVN: r156993
Diffstat (limited to 'gcc/sese.c')
-rw-r--r-- | gcc/sese.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -897,6 +897,9 @@ expand_scalar_variables_expr (tree type, tree op0, enum tree_code code, return build4 (ARRAY_REF, type, base, subscript, op02, op03); } + case COMPONENT_REF: + return op0; + default: /* The above cases should catch everything. */ gcc_unreachable (); |