From b3fc0c9876f21efc23e62b883d40ab627fcda722 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 22 Dec 1992 22:56:39 +0000 Subject: [PATCH] (store_parm_decls): Use TYPE_MAIN_VARIANT to compare types. From-SVN: r2903 --- gcc/c-decl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index e4cec21..0532418 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5776,7 +5776,8 @@ store_parm_decls () with that declared for the arg. */ if (! comptypes (DECL_ARG_TYPE (parm), TREE_VALUE (type))) { - if (TREE_TYPE (parm) == TREE_VALUE (type)) + if (TYPE_MAIN_VARIANT (TREE_TYPE (parm)) + == TYPE_MAIN_VARIANT (TREE_VALUE (type))) { /* Adjust argument to match prototype. E.g. a previous `int foo(float);' prototype causes -- 2.7.4