aarch64-builtins.c (aarch64_init_simd_builtins): Resize type_signature.
authorTamar Christina <tamar.christina@arm.com>
Thu, 31 Aug 2017 10:54:38 +0000 (10:54 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Thu, 31 Aug 2017 10:54:38 +0000 (10:54 +0000)
2017-08-31  Tamar Christina  <tamar.christina@arm.com>

* config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
Resize type_signature.

From-SVN: r251558

gcc/ChangeLog
gcc/config/aarch64/aarch64-builtins.c

index dfde0b011857834c2ceef8fff6063c61890777c2..239c93390632a723abedbd39719224592608ce62 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-31  Tamar Christina  <tamar.christina@arm.com>
+
+       * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
+       Resize type_signature.
+
 2017-08-31  Richard Sandiford  <richard.sandiford@linaro.org>
            Alan Hayward  <alan.hayward@arm.com>
            David Sherwood  <david.sherwood@arm.com>
index 25ee5129f62d24ec494b15719d44a48f7374067a..7edf75c52effd3ef83e14ff6f2ed4b827fc99e54 100644 (file)
@@ -754,7 +754,7 @@ aarch64_init_simd_builtins (void)
   for (i = 0; i < ARRAY_SIZE (aarch64_simd_builtin_data); i++, fcode++)
     {
       bool print_type_signature_p = false;
-      char type_signature[SIMD_MAX_BUILTIN_ARGS] = { 0 };
+      char type_signature[SIMD_MAX_BUILTIN_ARGS + 1] = { 0 };
       aarch64_simd_builtin_datum *d = &aarch64_simd_builtin_data[i];
       char namebuf[60];
       tree ftype = NULL;