These warnings, including the suggested fixes are seen on power*-linux builds.
warning: misspelled term 'builtin function' in format; use 'bult-in function'
instead [-Wformat-diag]
warning: spurious trailing punctuation sequence '].' in format [-Wformat-diag]
warning: misspelled term 'floating point' in format; use 'floating-point'
instead [-Wformat-diag]
Ok to fix these?
Matthias
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
index 2308cc8b4a2..3988dd81481 100644
--- a/gcc/config/rs6000/rs6000-call.c
+++ b/gcc/config/rs6000/rs6000-call.c
@@ -8741,7 +8741,7 @@ def_builtin (const char *name, tree type, enum rs6000_builtins code)
if (rs6000_builtin_decls[(int)code])
fatal_error (input_location,
- "internal error: builtin function %qs already processed",
+ "internal error: builtin-function %qs already processed",
name);
rs6000_builtin_decls[(int)code] = t =
@@ -11219,7 +11219,7 @@ altivec_expand_builtin (tree exp, rtx target, bool *expandedp)
{
size_t uns_fcode = (size_t) fcode;
const char *name = rs6000_builtin_info[uns_fcode].name;
- error ("Second argument of %qs must be in the range [0, 3].", name);
+ error ("Second argument of %qs must be in the range [0, 3]", name);
return expand_call (exp, target, false);
}
break;
@@ -11479,7 +11479,7 @@ rs6000_invalid_builtin (enum rs6000_builtins fncode)
else if ((fnmask & RS6000_BTM_HARD_FLOAT) != 0)
error ("%qs requires the %qs option", name, "-mhard-float");
else if ((fnmask & RS6000_BTM_FLOAT128_HW) != 0)
- error ("%qs requires ISA 3.0 IEEE 128-bit floating point", name);
+ error ("%qs requires ISA 3.0 IEEE 128-bit floating-point", name);
else if ((fnmask & RS6000_BTM_FLOAT128) != 0)
error ("%qs requires the %qs option", name, "%<-mfloat128%>");
else if ((fnmask & (RS6000_BTM_POPCNTD | RS6000_BTM_POWERPC64))
@@ -14582,7 +14582,7 @@ builtin_function_type (machine_mode mode_ret, machine_mode mode_arg0,
if (!ret_type)
fatal_error (input_location,
- "internal error: builtin function %qs had an unexpected "
+ "internal error: builtin-function %qs had an unexpected "
"return type %qs", name, GET_MODE_NAME (h.mode[0]));
for (i = 0; i < (int) ARRAY_SIZE (arg_type); i++)
@@ -14604,7 +14604,7 @@ builtin_function_type (machine_mode mode_ret, machine_mode mode_arg0,
if (!arg_type[i])
fatal_error (input_location,
- "internal error: builtin function %qs, argument %d "
+ "internal error: builtin-function %qs, argument %d "
"had unexpected argument type %qs", name, i,
GET_MODE_NAME (m));
}