Commit b3fc0c98 by Richard Stallman

(store_parm_decls): Use TYPE_MAIN_VARIANT to compare types.

From-SVN: r2903
parent b93249c3
...@@ -5776,7 +5776,8 @@ store_parm_decls () ...@@ -5776,7 +5776,8 @@ store_parm_decls ()
with that declared for the arg. */ with that declared for the arg. */
if (! comptypes (DECL_ARG_TYPE (parm), TREE_VALUE (type))) 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 /* Adjust argument to match prototype. E.g. a previous
`int foo(float);' prototype causes `int foo(float);' prototype causes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment