[PATCH 2/3] rs6000: Warn for "GCC vector passed by reference" only with -Wpsabi

Jakub Jelinek jakub@redhat.com
Thu Oct 6 21:01:00 GMT 2016


On Thu, Oct 06, 2016 at 07:57:36PM +0000, Segher Boessenkool wrote:
> As suggested by Jakub in https://gcc.gnu.org/ml/gcc-patches/2016-10/msg00305.html .
> The warning name isn't so super for us, but the option is undocumented
> anyway; maybe it means "warn for particularly surprising abi differences".

LGTM.  The x86 backend uses it for the same purpose.  I bet the reason for
-Wpsabi is that we already had -Wabi at that time (used for C++ ABI changes)
and so it doesn't mean exactly psABI, but just processor specific ABI.

> 2016-10-06  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.

	Jakub



More information about the Gcc-patches mailing list