2006-05-07 Richard Guenther <rguenther@suse.de>
+ PR tree-optimization/27409
+ * tree-ssa-structalias.c (get_constraint_for_component_ref):
+ Do not try to find zero-sized subvars.
+
+2006-05-07 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/27136
* tree-ssa-loop-niter.c (get_val_for): Correct function
comment, assert requirements.
+2006-05-07 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/27409
+ * gcc.dg/torture/pr27409.c: New testcase.
+
2006-05-07 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/27457
ignore this constraint. When we handle pointer subtraction,
we may have to do something cute here. */
- if (result->offset < get_varinfo (result->var)->fullsize)
+ if (result->offset < get_varinfo (result->var)->fullsize
+ && bitmaxsize != 0)
{
/* It's also not true that the constraint will actually start at the
right offset, it may start in some padding. We only care about
embedded in a struct resulting in accessing *only* padding. */
gcc_assert (curr || ref_contains_array_ref (orig_t));
}
+ else if (bitmaxsize == 0)
+ {
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fprintf (dump_file, "Access to zero-sized part of variable,"
+ "ignoring\n");
+ }
else
if (dump_file && (dump_flags & TDF_DETAILS))
fprintf (dump_file, "Access to past the end of variable, ignoring\n");