]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ubsan.c (ubsan_create_data): Increase the size of the fields array.
authorMarek Polacek <polacek@redhat.com>
Mon, 25 Nov 2013 10:46:20 +0000 (10:46 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 25 Nov 2013 10:46:20 +0000 (10:46 +0000)
2013-11-25  Marek Polacek  <polacek@redhat.com>

* ubsan.c (ubsan_create_data): Increase the size of the fields array.

From-SVN: r205347

gcc/ChangeLog
gcc/ubsan.c

index d72dfa66758e54a0fd06b16e7292436b1b89c842..7bcce3748203c367c53f9bca0f98d4a4373e4c43 100644 (file)
@@ -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.
index f2b66bf4d571867513095e6d5b9f783d100f370f..a16f3eb097f1981b46c8365105b989bf6c23b35b 100644 (file)
@@ -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++;