diff options
author | Marek Polacek <polacek@redhat.com> | 2013-11-25 10:46:20 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2013-11-25 10:46:20 +0000 |
commit | 39a4816e40afdcfab063602bd16fee9b6eeb4088 (patch) | |
tree | 2a41c4424bd1075d45a445031458a6392fc0577c | |
parent | 4d717338dfb8987291e5f644340b731b1587737e (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ubsan.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d72dfa6..7bcce37 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-11-25 Marek Polacek <polacek@redhat.com> + + * ubsan.c (ubsan_create_data): Increase the size of the fields array. + 2013-11-25 Richard Biener <rguenther@suse.de> * tree-dfa.c: Remove unused convert.h include. 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++; |