Commit 39a4816e by Marek Polacek Committed by Marek Polacek

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
parent 4d717338
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> 2013-11-25 Richard Biener <rguenther@suse.de>
* tree-dfa.c: Remove unused convert.h include. * tree-dfa.c: Remove unused convert.h include.
...@@ -390,7 +390,7 @@ ubsan_create_data (const char *name, location_t loc, ...@@ -390,7 +390,7 @@ ubsan_create_data (const char *name, location_t loc,
{ {
va_list args; va_list args;
tree ret, t; tree ret, t;
tree fields[3]; tree fields[5];
vec<tree, va_gc> *saved_args = NULL; vec<tree, va_gc> *saved_args = NULL;
size_t i = 0; size_t i = 0;
...@@ -428,7 +428,7 @@ ubsan_create_data (const char *name, location_t loc, ...@@ -428,7 +428,7 @@ ubsan_create_data (const char *name, location_t loc,
{ {
/* We have to add two more decls. */ /* We have to add two more decls. */
fields[i] = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE, fields[i] = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE,
pointer_sized_int_node); pointer_sized_int_node);
DECL_CONTEXT (fields[i]) = ret; DECL_CONTEXT (fields[i]) = ret;
DECL_CHAIN (fields[i - 1]) = fields[i]; DECL_CHAIN (fields[i - 1]) = fields[i];
i++; i++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment