OSDN Git Service

* gcc.c-torture/execute/20000412-1.c: Reduce some more.
[pf3gnuchains/gcc-fork.git] / gcc / c-aux-info.c
index 4131abf..f3b375f 100644 (file)
@@ -1,7 +1,8 @@
 /* Generate information regarding function declarations and definitions based
    on information stored in GCC's tree structure.  This code implements the
    -aux-info option.
-   Copyright (C) 1989, 91, 94, 95, 97-98, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1989, 1991, 1994, 1995, 1997, 1998,
+   1999, 2000 Free Software Foundation, Inc.
    Contributed by Ron Guilmette (rfg@segfault.us.com).
 
 This file is part of GNU CC.
@@ -38,12 +39,12 @@ typedef enum formals_style_enum formals_style;
 
 static const char *data_type;
 
-static char *affix_data_type           PROTO((const char *));
-static const char *gen_formal_list_for_type PROTO((tree, formals_style));
-static int   deserves_ellipsis         PROTO((tree));
-static const char *gen_formal_list_for_func_def PROTO((tree, formals_style));
-static const char *gen_type            PROTO((const char *, tree, formals_style));
-static const char *gen_decl            PROTO((tree, int, formals_style));
+static char *affix_data_type           PARAMS ((const char *));
+static const char *gen_formal_list_for_type PARAMS ((tree, formals_style));
+static int   deserves_ellipsis         PARAMS ((tree));
+static const char *gen_formal_list_for_func_def PARAMS ((tree, formals_style));
+static const char *gen_type            PARAMS ((const char *, tree, formals_style));
+static const char *gen_decl            PARAMS ((tree, int, formals_style));
 \f
 /* Given a string representing an entire type or an entire declaration
    which only lacks the actual "data-type" specifier (at its left end),
@@ -333,7 +334,7 @@ gen_type (ret_val, t, style)
           return ret_val;
 
         case ARRAY_TYPE:
-         if (TYPE_SIZE (t) == 0 || TREE_CODE (TYPE_SIZE (t)) != INTEGER_CST)
+         if (!COMPLETE_TYPE_P (t) || TREE_CODE (TYPE_SIZE (t)) != INTEGER_CST)
            ret_val = gen_type (concat (ret_val, "[]", NULL_PTR),
                                TREE_TYPE (t), style);
          else if (int_size_in_bytes (t) == 0)