aboutsummaryrefslogtreecommitdiff
path: root/gcc/ubsan.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2013-11-25 10:46:20 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2013-11-25 10:46:20 +0000
commit39a4816e40afdcfab063602bd16fee9b6eeb4088 (patch)
tree2a41c4424bd1075d45a445031458a6392fc0577c /gcc/ubsan.c
parent4d717338dfb8987291e5f644340b731b1587737e (diff)
downloadgcc-39a4816e40afdcfab063602bd16fee9b6eeb4088.zip
gcc-39a4816e40afdcfab063602bd16fee9b6eeb4088.tar.gz
gcc-39a4816e40afdcfab063602bd16fee9b6eeb4088.tar.bz2
ubsan.c (ubsan_create_data): Increase the size of the fields array.
2013-11-25 Marek Polacek <polacek@redhat.com> * ubsan.c (ubsan_create_data): Increase the size of the fields array. From-SVN: r205347
Diffstat (limited to 'gcc/ubsan.c')
-rw-r--r--gcc/ubsan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ubsan.c b/gcc/ubsan.c
index f2b66bf..a16f3eb 100644
--- a/gcc/ubsan.c
+++ b/gcc/ubsan.c
@@ -390,7 +390,7 @@ ubsan_create_data (const char *name, location_t loc,
{
va_list args;
tree ret, t;
- tree fields[3];
+ tree fields[5];
vec<tree, va_gc> *saved_args = NULL;
size_t i = 0;
@@ -428,7 +428,7 @@ ubsan_create_data (const char *name, location_t loc,
{
/* We have to add two more decls. */
fields[i] = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE,
- pointer_sized_int_node);
+ pointer_sized_int_node);
DECL_CONTEXT (fields[i]) = ret;
DECL_CHAIN (fields[i - 1]) = fields[i];
i++;