aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-08-26 16:26:50 +0000
committerJakub Jelinek <jakub@redhat.com>2005-08-26 16:26:50 +0000
commitef029a26930dcb2e367b025f8afb391e868273b1 (patch)
tree8dfcaeb020b6c0a482691f535de5f70dac14f185 /gcc/c-common.c
parent9c29e730f80eb3bccdbc9a1602c75a5a805e3d1a (diff)
PR c/23506
* c-common.c (c_common_nodes_and_builtins): Increase builtin_types array by one element, initialize the BT_LAST element with NULL. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@103526 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 678327779bf..edd744893cb 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -2951,7 +2951,7 @@ c_common_nodes_and_builtins (void)
typedef enum builtin_type builtin_type;
- tree builtin_types[(int) BT_LAST];
+ tree builtin_types[(int) BT_LAST + 1];
int wchar_type_size;
tree array_domain_type;
tree va_list_ref_type_node;
@@ -3311,6 +3311,7 @@ c_common_nodes_and_builtins (void)
#undef DEF_FUNCTION_TYPE_VAR_4
#undef DEF_FUNCTION_TYPE_VAR_5
#undef DEF_POINTER_TYPE
+ builtin_types[(int) BT_LAST] = NULL_TREE;
c_init_attributes ();