tree-chrec.h (build_polynomial_chrec): RHS of a chrec should not be of pointer type.

2007-11-13  Sebastian Pop  <sebastian.pop@amd.com>

	* tree-chrec.h (build_polynomial_chrec): RHS of a chrec
	should not be of pointer type.

From-SVN: r130167
This commit is contained in:
Sebastian Pop 2007-11-14 00:41:05 +00:00 committed by Sebastian Pop
parent 9732cac401
commit 7cbb9e2902
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-11-13 Sebastian Pop <sebastian.pop@amd.com>
* tree-chrec.h (build_polynomial_chrec): RHS of a chrec
should not be of pointer type.
2007-11-13 Michael Meissner <michael.meissner@amd.com>
* config/i386/i386.c (ix86_sse5_valid_op_p): Put type on separate

View File

@ -132,6 +132,11 @@ build_polynomial_chrec (unsigned loop_num,
if (no_evolution_in_loop_p (left, loop_num, &val) && !val)
return chrec_dont_know;
/* Pointer types should occur only on the left hand side, i.e. in
the base of the chrec, and not in the step. */
gcc_assert (!POINTER_TYPE_P (TREE_TYPE (right)));
/* Types of left and right sides of a chrec should be compatible. */
if (POINTER_TYPE_P (TREE_TYPE (left)))
gcc_assert (sizetype == TREE_TYPE (right));
else