aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-04-25 13:30:35 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-04-25 13:30:35 -0400
commitf5ec0026978bd7b5da7df82287fa5ef262739d53 (patch)
tree9fe7e1556fe56389218626b74f488af8ace10684 /gcc
parent007cac0f1ac605b0ec884b561814fec75357d0a3 (diff)
downloadgcc-f5ec0026978bd7b5da7df82287fa5ef262739d53.zip
gcc-f5ec0026978bd7b5da7df82287fa5ef262739d53.tar.gz
gcc-f5ec0026978bd7b5da7df82287fa5ef262739d53.tar.bz2
(duplicate_decls): Don't look at TYPE_ACTUAL_ARG_TYPES if it is not
set. From-SVN: r9439
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 8f95348..fdad007 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;