Commit fff08961 by Martin Jambor Committed by Martin Jambor

tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.

2010-01-21  Martin Jambor  <mjambor@suse.cz>

	* tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.

From-SVN: r156155
parent a288b143
2010-01-21 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
2010-01-21 Andrew Haley <aph@redhat.com>
* gcc.c (process_command): Move lang_specific_driver before
......
......@@ -1288,7 +1288,12 @@ build_ref_for_offset_1 (tree *res, tree type, HOST_WIDE_INT offset,
if (!tr_size || !host_integerp (tr_size, 1))
continue;
size = tree_low_cst (tr_size, 1);
if (pos > offset || (pos + size) <= offset)
if (size == 0)
{
if (pos != offset)
continue;
}
else if (pos > offset || (pos + size) <= offset)
continue;
if (res)
......
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