+2018-06-05 Steve Ellcey <sellcey@cavium.com>
+
+ PR target/79924
+ * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): Remove
+ second argument.
+ * config/aarch64/aarch64-protos..c (aarch64_err_no_fpadvsimd):
+ Remove second argument, change how error is called.
+ (aarch64_layout_arg): Remove second argument from
+ aarch64_err_no_fpadvsimd call.
+ (aarch64_init_cumulative_args): Ditto.
+ (aarch64_gimplify_va_arg_expr): Ditto.
+ * config/aarch64/aarch64.md (mov<mode>): Ditto.
+
2018-06-05 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (simple_return_indirect_internal): New expander.
void aarch64_cpu_cpp_builtins (cpp_reader *);
const char * aarch64_gen_far_branch (rtx *, int, const char *, const char *);
const char * aarch64_output_probe_stack_range (rtx, rtx);
-void aarch64_err_no_fpadvsimd (machine_mode, const char *);
+void aarch64_err_no_fpadvsimd (machine_mode);
void aarch64_expand_epilogue (bool);
void aarch64_expand_mov_immediate (rtx, rtx, rtx (*) (rtx, rtx) = 0);
void aarch64_emit_sve_pred_move (rtx, rtx, rtx);
}
void
-aarch64_err_no_fpadvsimd (machine_mode mode, const char *msg)
+aarch64_err_no_fpadvsimd (machine_mode mode)
{
- const char *mc = FLOAT_MODE_P (mode) ? "floating-point" : "vector";
if (TARGET_GENERAL_REGS_ONLY)
- error ("%qs is incompatible with %s %s", "-mgeneral-regs-only", mc, msg);
+ if (FLOAT_MODE_P (mode))
+ error ("%qs is incompatible with the use of floating-point types",
+ "-mgeneral-regs-only");
+ else
+ error ("%qs is incompatible with the use of vector types",
+ "-mgeneral-regs-only");
else
- error ("%qs feature modifier is incompatible with %s %s", "+nofp", mc, msg);
+ if (FLOAT_MODE_P (mode))
+ error ("%qs feature modifier is incompatible with the use of"
+ " floating-point types", "+nofp");
+ else
+ error ("%qs feature modifier is incompatible with the use of"
+ " vector types", "+nofp");
}
/* Implement TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS.
if (allocate_nvrn)
{
if (!TARGET_FLOAT)
- aarch64_err_no_fpadvsimd (mode, "argument");
+ aarch64_err_no_fpadvsimd (mode);
if (nvrn + nregs <= NUM_FP_ARG_REGS)
{
int nregs ATTRIBUTE_UNUSED; /* Likewise. */
if (aarch64_vfp_is_call_or_return_candidate (TYPE_MODE (type), type,
&mode, &nregs, NULL))
- aarch64_err_no_fpadvsimd (TYPE_MODE (type), "return type");
+ aarch64_err_no_fpadvsimd (TYPE_MODE (type));
}
return;
}
/* TYPE passed in fp/simd registers. */
if (!TARGET_FLOAT)
- aarch64_err_no_fpadvsimd (mode, "varargs");
+ aarch64_err_no_fpadvsimd (mode);
f_top = build3 (COMPONENT_REF, TREE_TYPE (f_vrtop),
unshare_expr (valist), f_vrtop, NULL_TREE);