From 63a4184f758924df39c4c9ab54203128d6cbbbc4 Mon Sep 17 00:00:00 2001 From: Yury Gribov Date: Tue, 12 Aug 2014 07:34:33 +0000 Subject: [PATCH] internal-fn.c (init_internal_fns): Fix off-by-one. 2014-08-12 Yury Gribov gcc/ * internal-fn.c (init_internal_fns): Fix off-by-one. From-SVN: r213848 --- gcc/ChangeLog | 4 ++++ gcc/internal-fn.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index afce14f86b2..23f4327d625 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-08-12 Yury Gribov + + * internal-fn.c (init_internal_fns): Fix off-by-one. + 2014-08-12 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index 230fefca8ae..af45d275176 100644 --- a/gcc/internal-fn.c +++ b/gcc/internal-fn.c @@ -62,7 +62,7 @@ init_internal_fns () { #define DEF_INTERNAL_FN(CODE, FLAGS, FNSPEC) \ if (FNSPEC) internal_fn_fnspec_array[IFN_##CODE] = \ - build_string ((int) sizeof (FNSPEC) + 1, FNSPEC ? FNSPEC : ""); + build_string ((int) sizeof (FNSPEC), FNSPEC ? FNSPEC : ""); #include "internal-fn.def" #undef DEF_INTERNAL_FN internal_fn_fnspec_array[IFN_LAST] = 0;