projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b93249c
)
(store_parm_decls): Use TYPE_MAIN_VARIANT to compare types.
author
Richard Stallman
<rms@gnu.org>
Tue, 22 Dec 1992 22:56:39 +0000
(22:56 +0000)
committer
Richard Stallman
<rms@gnu.org>
Tue, 22 Dec 1992 22:56:39 +0000
(22:56 +0000)
From-SVN: r2903
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index e4cec2181e660223187b9a953d6d0e01a877aa96..053241863f614a4c236d1b0183be4d7e47088efb 100644
(file)
--- 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