diff options
author | Renlin Li <renlin.li@arm.com> | 2015-02-06 14:37:59 +0000 |
---|---|---|
committer | Renlin Li <renlin@gcc.gnu.org> | 2015-02-06 14:37:59 +0000 |
commit | f376994ad8101fe7819c52e6c44f8a51134dd48f (patch) | |
tree | 699a5f6106ebad87a8fc9a8e702a867222760c70 /gcc/tree-ssa-forwprop.c | |
parent | 9baa38b7a0495194bafc0bccbed0858c6b9a94a6 (diff) | |
download | gcc-f376994ad8101fe7819c52e6c44f8a51134dd48f.zip gcc-f376994ad8101fe7819c52e6c44f8a51134dd48f.tar.gz gcc-f376994ad8101fe7819c52e6c44f8a51134dd48f.tar.bz2 |
[PATCH]Keep location info when expand complex component-wise load/store.
gcc/
* tree-ssa-forwprop.c (execute): Keep location info while rewrite
complex gimple.
* tree-ssa.c (execute_update_addresses_taken): Likewise.
From-SVN: r220480
Diffstat (limited to 'gcc/tree-ssa-forwprop.c')
-rw-r--r-- | gcc/tree-ssa-forwprop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index 82d832d..d8db20a 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -2274,6 +2274,8 @@ pass_forwprop::execute (function *fun) = gimple_build_assign (gimple_assign_lhs (use_stmt), new_rhs); + location_t loc = gimple_location (use_stmt); + gimple_set_location (new_stmt, loc); gimple_stmt_iterator gsi2 = gsi_for_stmt (use_stmt); unlink_stmt_vdef (use_stmt); gsi_remove (&gsi2, true); @@ -2305,6 +2307,8 @@ pass_forwprop::execute (function *fun) TREE_TYPE (TREE_TYPE (use_lhs)), unshare_expr (use_lhs)); gimple new_stmt = gimple_build_assign (new_lhs, rhs); + location_t loc = gimple_location (use_stmt); + gimple_set_location (new_stmt, loc); gimple_set_vuse (new_stmt, gimple_vuse (use_stmt)); gimple_set_vdef (new_stmt, make_ssa_name (gimple_vop (cfun))); SSA_NAME_DEF_STMT (gimple_vdef (new_stmt)) = new_stmt; |