From: Jan Hubicka Date: Thu, 1 Oct 2020 12:57:36 +0000 (+0200) Subject: Fix handling of fnspec for internal functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba663ac1b1add0f1625862166a946fcb583d3686;p=gcc.git Fix handling of fnspec for internal functions. * internal-fn.c (DEF_INTERNAL_FN): Fix handling of fnspec --- diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index 8ea3195d31c..c8970820026 100644 --- a/gcc/internal-fn.c +++ b/gcc/internal-fn.c @@ -93,7 +93,7 @@ init_internal_fns () { #define DEF_INTERNAL_FN(CODE, FLAGS, FNSPEC) \ if (FNSPEC) internal_fn_fnspec_array[IFN_##CODE] = \ - build_string ((int) sizeof (FNSPEC), FNSPEC ? FNSPEC : ""); + build_string ((int) sizeof (FNSPEC) - 1, FNSPEC ? FNSPEC : ""); #include "internal-fn.def" internal_fn_fnspec_array[IFN_LAST] = 0; }