summaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-28 12:46:29 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-28 12:46:29 +0000
commite3fa6175917e8f89f600e7f34e33e423927cc4f7 (patch)
tree2f69d2f9db2659da8f12daae60081c7bd130c29f /gcc/tree-sra.c
parent2e1d16b086138167229ac58d8b35fe4ed88a8980 (diff)
downloadgcc-e3fa6175917e8f89f600e7f34e33e423927cc4f7.tar.gz
2013-02-28 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements with no initialization to the RHS of debug statements. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196341 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index 5d55d735402..67212c204c4 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -2870,7 +2870,12 @@ load_assign_lhs_subreplacements (struct access *lacc, struct access *top_racc,
lacc->size);
if (racc && racc->grp_to_be_replaced)
- drhs = get_access_replacement (racc);
+ {
+ if (racc->grp_write)
+ drhs = get_access_replacement (racc);
+ else
+ drhs = NULL;
+ }
else if (*refreshed == SRA_UDH_LEFT)
drhs = build_debug_ref_for_model (loc, lacc->base, lacc->offset,
lacc);