Commit 667afe5a by Richard Biener

tree-optimization/93661 properly guard tree_to_poly_int64

2020-02-11  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/93661
	PR tree-optimization/93662
	* tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
	tree_to_poly_int64.
	* tree-sra.c (get_access_for_expr): Likewise.

	* gcc.dg/pr93661.c: New testcase.
parent 9714f1a7
/* { dg-do compile } */
/* { dg-options "-O2" } */
int f ()
{
unsigned x = 0xffffffff;
__builtin_memset (1+(char *) &x, 0, -1); /* { dg-warning "maximum object size" } */
return (x != 0xf0000000);
}
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