aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-12-22 22:56:39 +0000
committerRichard Stallman <rms@gnu.org>1992-12-22 22:56:39 +0000
commitb3fc0c9876f21efc23e62b883d40ab627fcda722 (patch)
treecafd2748d34107c62c2cff1dfc781c1da7a3280d /gcc
parentb93249c36d3b1aa589bbd42a4d2b59bc03bf2ad4 (diff)
downloadgcc-b3fc0c9876f21efc23e62b883d40ab627fcda722.zip
gcc-b3fc0c9876f21efc23e62b883d40ab627fcda722.tar.gz
gcc-b3fc0c9876f21efc23e62b883d40ab627fcda722.tar.bz2
(store_parm_decls): Use TYPE_MAIN_VARIANT to compare types.
From-SVN: r2903
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c3
1 files changed, 2 insertions, 1 deletions
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