2019-03-07 Jakub Jelinek <jakub@redhat.com>
+ PR target/80003
+ * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
+ doesn't start with a capital letter and doesn't end with a dot.
+ (ix86_function_arg_boundary): Make sure diagnostics doesn't start
+ with a capital letter.
+ (ix86_mangle_function_version_assembler_name): Likewise.
+ (ix86_generate_version_dispatcher_body): Likewise.
+ (fold_builtin_cpu): Likewise.
+ (get_builtin_code_for_version): Likewise. Remove extraneous space.
+ (ix86_handle_interrupt_attribute): Make the diagnostics easier for
+ translators, wrap full type name in %qs.
+
PR translation/79999
* gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
depend clause with source (or sink) modifier.
/* Only dwarf2out.c can handle -WORD(AP) as a pointer argument. */
if (write_symbols != NO_DEBUG && write_symbols != DWARF2_DEBUG)
- sorry ("Only DWARF debug format is supported for interrupt "
- "service routine.");
+ sorry ("only DWARF debug format is supported for interrupt "
+ "service routine");
}
else
{
{
warned = true;
inform (input_location,
- "The ABI for passing parameters with %d-byte"
+ "the ABI for passing parameters with %d-byte"
" alignment has changed in GCC 4.6",
align / BITS_PER_UNIT);
}
if (predicate_list && arg_str == NULL)
{
error_at (DECL_SOURCE_LOCATION (decl),
- "No dispatcher found for the versioning attributes");
+ "no dispatcher found for the versioning attributes");
return 0;
}
if (predicate_list && i == NUM_FEATURES)
{
error_at (DECL_SOURCE_LOCATION (decl),
- "No dispatcher found for %s", token);
+ "no dispatcher found for %s", token);
return 0;
}
token = strtok (NULL, ",");
if (predicate_list && predicate_chain == NULL_TREE)
{
error_at (DECL_SOURCE_LOCATION (decl),
- "No dispatcher found for the versioning attributes : %s",
+ "no dispatcher found for the versioning attributes: %s",
attrs_str);
return 0;
}
&& lookup_attribute ("gnu_inline",
DECL_ATTRIBUTES (decl)))
error_at (DECL_SOURCE_LOCATION (decl),
- "Function versions cannot be marked as gnu_inline,"
+ "function versions cannot be marked as gnu_inline,"
" bodies have to be generated");
if (DECL_VIRTUAL_P (decl)
|| DECL_VINDEX (decl))
- sorry ("Virtual function multiversioning not supported");
+ sorry ("virtual function multiversioning not supported");
version_attr = lookup_attribute ("target", DECL_ATTRIBUTES (decl));
virtual methods in base classes but are not explicitly marked as
virtual. */
if (DECL_VINDEX (versn->decl))
- sorry ("Virtual function multiversioning not supported");
+ sorry ("virtual function multiversioning not supported");
fn_ver_vec.safe_push (versn->decl);
}
STRING_CST. */
if (!EXPR_P (param_string_cst))
{
- error ("Parameter to builtin must be a string constant or literal");
+ error ("parameter to builtin must be a string constant or literal");
return integer_zero_node;
}
param_string_cst = TREE_OPERAND (EXPR_CHECK (param_string_cst), 0);
if (i == NUM_ARCH_NAMES)
{
- error ("Parameter to builtin not valid: %s",
+ error ("parameter to builtin not valid: %s",
TREE_STRING_POINTER (param_string_cst));
return integer_zero_node;
}
if (i == NUM_ISA_NAMES)
{
- error ("Parameter to builtin not valid: %s",
+ error ("parameter to builtin not valid: %s",
TREE_STRING_POINTER (param_string_cst));
return integer_zero_node;
}
{
if (TREE_CODE (TREE_VALUE (current_arg_type)) != INTEGER_TYPE
|| TYPE_MODE (TREE_VALUE (current_arg_type)) != word_mode)
- error ("interrupt service routine should have unsigned %s"
- "int as the second argument",
+ error ("interrupt service routine should have %qs "
+ "as the second argument",
TARGET_64BIT
- ? (TARGET_X32 ? "long long " : "long ")
- : "");
+ ? (TARGET_X32 ? "unsigned long long int"
+ : "unsigned long int")
+ : "unsigned int");
}
nargs++;
current_arg_type = TREE_CHAIN (current_arg_type);