re PR tree-optimization/31085 (internal compiler error: in create_mem_ref, at tree-ssa-address.c:606)

PR tree-optimization/31085
	* tree-ssa-address.c (create_mem_ref): Fix test of type of base.

From-SVN: r122724
This commit is contained in:
Zdenek Dvorak 2007-03-08 23:36:47 +01:00 committed by Zdenek Dvorak
parent 9d1d1cd449
commit 5f787cbcaf
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/31085
* tree-ssa-address.c (create_mem_ref): Fix test of type of base.
2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,

View File

@ -603,7 +603,8 @@ create_mem_ref (block_stmt_iterator *bsi, tree type, aff_tree *addr)
/* Add the symbol to base, eventually forcing it to register. */
if (parts.base)
{
gcc_assert (TREE_TYPE (parts.base) == sizetype);
gcc_assert (tree_ssa_useless_type_conversion_1
(sizetype, TREE_TYPE (parts.base)));
if (parts.index)
{