aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-25 17:30:35 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-25 17:30:35 +0000
commitc7a6ac3e2e1a23117f35f3f46a217def541d30be (patch)
tree9fe7e1556fe56389218626b74f488af8ace10684 /gcc/c-decl.c
parent2a6cbbdcb49ef1797919b35c024740587a15dfcb (diff)
(duplicate_decls): Don't look at TYPE_ACTUAL_ARG_TYPES if it is not
set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9439 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-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 8f9534857fb..fdad0074557 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -1586,7 +1586,8 @@ duplicate_decls (newdecl, olddecl)
else if (TREE_CODE (olddecl) == FUNCTION_DECL
&& DECL_INITIAL (olddecl) != 0
&& TYPE_ARG_TYPES (oldtype) == 0
- && TYPE_ARG_TYPES (newtype) != 0)
+ && TYPE_ARG_TYPES (newtype) != 0
+ && TYPE_ACTUAL_ARG_TYPES (oldtype) != 0)
{
register tree type, parm;
register int nargs;