Commit 514c0e7c by Richard Biener Committed by Richard Biener

re PR tree-optimization/68517 (ICE in tree-vect-data-refs.c:2751)

2015-11-25  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/68517
	* tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
	Properly handle zero-sized types.

	* gcc.dg/torture/pr68517.c: New testcase.

From-SVN: r230858
parent 80d39568
2015-11-25 Richard Biener <rguenther@suse.de>
PR tree-optimization/68517
* tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
Properly handle zero-sized types.
2015-11-24 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline-analysis.c: Include gimplify.h
2015-11-25 Richard Biener <rguenther@suse.de>
PR tree-optimization/68517
* gcc.dg/torture/pr68517.c: New testcase.
2015-11-25 Jakub Jelinek <jakub@redhat.com>
PR target/67089
......
/* { dg-do compile } */
typedef struct
{
} st1;
typedef struct
{
volatile int c;
} __attribute__ ((aligned (4))) st2;
struct s4
{
st1 f1;
st2 f2;
st1 f3;
};
struct s3;
void
foo (struct s3 *arg, struct s4 *arg1)
{
arg1->f1 = (st1) { };
arg1->f3 = (st1) { };
}
......@@ -2769,7 +2769,8 @@ vect_analyze_data_ref_accesses (vec_info *vinfo)
/* If init_b == init_a + the size of the type * k, we have an
interleaving, and DRA is accessed before DRB. */
HOST_WIDE_INT type_size_a = tree_to_uhwi (sza);
if ((init_b - init_a) % type_size_a != 0)
if (type_size_a == 0
|| (init_b - init_a) % type_size_a != 0)
break;
/* If we have a store, the accesses are adjacent. This splits
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment