summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-30 01:35:15 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-30 01:35:15 +0000
commitc271bdb277d61ab830951a1f495b421f9ad5cca7 (patch)
treec268ffdf655de9176ff5a95683d1e4bfc230ad87 /gcc/c-common.h
parentcff9bd7dba49ac01c42906be70e395481b764d7e (diff)
downloadgcc-c271bdb277d61ab830951a1f495b421f9ad5cca7.tar.gz
PR c/20519
* c-decl.c (c_finish_incomplete_decl): Update complete_array_type call. (build_compound_literal): Likewise. Propagate decl type into the initializer. (finish_decl): Likewise. Use new return value from complete_array_type for zero sized arrays. (complete_array_type): Move ... * c-common.c (complete_array_type): ... here. Change first argument to pointer-to-type-node. Consistently use sizetype for the index except for zero sized arrays. Detect zero sized arrays for pedantic mode diagnostics. Create a new type node instead of modifying the old node in place. * c-tree.h (complete_array_type): Move decl ... * c-common.h (complete_array_type): ... here. cp/ * decl.c (cp_complete_array_type): Rename from complete_array_type. Use the new complete_array_type in c-common.c. Update all callers. * cp-tree.h (cp_complete_array_type): Update to match. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97223 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 63dcb10b40c..7794adedbeb 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -888,6 +888,8 @@ enum lvalue_use {
extern void lvalue_error (enum lvalue_use);
+extern int complete_array_type (tree *, tree, bool);
+
/* In c-gimplify.c */
extern void c_genericize (tree);
extern int c_gimplify_expr (tree *, tree *, tree *);