From: Marek Polacek Date: Mon, 25 Nov 2013 10:46:20 +0000 (+0000) Subject: ubsan.c (ubsan_create_data): Increase the size of the fields array. X-Git-Tag: releases/gcc-4.9.0~2476 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39a4816e40afdcfab063602bd16fee9b6eeb4088;p=thirdparty%2Fgcc.git ubsan.c (ubsan_create_data): Increase the size of the fields array. 2013-11-25 Marek Polacek * ubsan.c (ubsan_create_data): Increase the size of the fields array. From-SVN: r205347 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d72dfa66758e..7bcce3748203 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-11-25 Marek Polacek + + * ubsan.c (ubsan_create_data): Increase the size of the fields array. + 2013-11-25 Richard Biener * tree-dfa.c: Remove unused convert.h include. diff --git a/gcc/ubsan.c b/gcc/ubsan.c index f2b66bf4d571..a16f3eb097f1 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 *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++;