+2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
+ vector return by reference only if -Wpsabi.
+ (rs6000_pass_by_reference): Similarly, for argument passing.
+
2016-10-12 David Malcolm <dmalcolm@redhat.com>
* function-tests.c: Include "print-rtl.h".
static bool warned_for_return_big_vectors = false;
if (!warned_for_return_big_vectors)
{
- warning (0, "GCC vector returned by reference: "
+ warning (OPT_Wpsabi, "GCC vector returned by reference: "
"non-standard ABI extension with no compatibility guarantee");
warned_for_return_big_vectors = true;
}
fprintf (stderr, "function_arg_pass_by_reference: synthetic vector\n");
if (!warned_for_pass_big_vectors)
{
- warning (0, "GCC vector passed by reference: "
+ warning (OPT_Wpsabi, "GCC vector passed by reference: "
"non-standard ABI extension with no compatibility guarantee");
warned_for_pass_big_vectors = true;
}