internal-fn.c (init_internal_fns): Fix off-by-one.

2014-08-12  Yury Gribov  <y.gribov@samsung.com>
    
gcc/
	* internal-fn.c (init_internal_fns): Fix off-by-one.

From-SVN: r213848
This commit is contained in:
Yury Gribov 2014-08-12 07:34:33 +00:00 committed by Yury Gribov
parent 537ddba3f0
commit 63a4184f75
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-08-12 Yury Gribov <y.gribov@samsung.com>
* internal-fn.c (init_internal_fns): Fix off-by-one.
2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
Maxim Kuznetsov <maxim.kuznetsov@intel.com>
Anna Tikhonova <anna.tikhonova@intel.com>

View File

@ -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;