From d80db03db2a63a855abb27ae3f236e8d27c7c227 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 11 Apr 1996 07:24:55 -0400 Subject: (expand_inline_function): When comparing types of formal and actual, use TYPE_MAIN_VARIANT. From-SVN: r11697 --- gcc/integrate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/integrate.c b/gcc/integrate.c index 0d871bd..9c2769e 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -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; } -- cgit v1.1