re PR tree-optimization/55920 (ICE in expand_debug_locations, at cfgexpand.c:3753)

2013-01-15  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/55920
	* tree-sra.c (analyze_access_subtree): Do not mark non-removable
	accesses as grp_to_be_debug_replaced.

From-SVN: r195210
This commit is contained in:
Martin Jambor 2013-01-15 17:43:05 +01:00 committed by Martin Jambor
parent a7818b54bb
commit 207b59560f
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-01-15 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/55920
* tree-sra.c (analyze_access_subtree): Do not mark non-removable
accesses as grp_to_be_debug_replaced.
2013-01-15 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/55920

View file

@ -2199,7 +2199,9 @@ analyze_access_subtree (struct access *root, struct access *parent,
{
if (allow_replacements
&& scalar && !root->first_child
&& (root->grp_scalar_write || root->grp_assignment_write))
&& (root->grp_scalar_write || root->grp_assignment_write)
&& !bitmap_bit_p (cannot_scalarize_away_bitmap,
DECL_UID (root->base)))
{
gcc_checking_assert (!root->grp_scalar_read
&& !root->grp_assignment_read);