(expand_inline_function): When comparing types of formal and actual,

use TYPE_MAIN_VARIANT.

From-SVN: r11697
This commit is contained in:
Richard Kenner 1996-04-11 07:24:55 -04:00
parent 82fa9209b7
commit d80db03db2
1 changed files with 3 additions and 1 deletions

View File

@ -1227,7 +1227,9 @@ expand_inline_function (fndecl, parms, target, ignore, type,
/* If they are block mode, the types should match exactly.
They don't match exactly if TREE_TYPE (FORMAL) == ERROR_MARK_NODE,
which could happen if the parameter has incomplete type. */
|| (mode == BLKmode && TREE_TYPE (arg) != TREE_TYPE (formal)))
|| (mode == BLKmode
&& (TYPE_MAIN_VARIANT (TREE_TYPE (arg))
!= TYPE_MAIN_VARIANT (TREE_TYPE (formal)))))
return (rtx) (HOST_WIDE_INT) -1;
}