]> git.ipfire.org Git - thirdparty/gcc.git/commit
make -freg-struct-return visibly a negative alias of -fpcc-struct-return
authorAlexandre Oliva <oliva@adacore.com>
Fri, 17 May 2024 03:45:45 +0000 (00:45 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 17 May 2024 03:45:45 +0000 (00:45 -0300)
commitb7483de99536c05983129d9ca28b53b575861078
tree7b49cd8eb7f26651973c1b09b6a9b6f2230e2d8b
parentd477d683d5c6db90c80d348c795709ae6444ba7a
make -freg-struct-return visibly a negative alias of -fpcc-struct-return

The fact that both options accept negative forms suggests that maybe
they aren't negative forms of each other.  They are, but that isn't
clear even by examining common.opt.  Use NegativeAlias to make it
abundantly clear.

The 'Optimization' keyword next to freg-struct-return was the only
thing that caused flag_pcc_struct_return to be a per-function flag,
and ipa-inline relied on that.  After making it an alias, the
Optimization keyword was no longer operational.  I'm not sure it was
sensible or desirable for flag_pcc_struct_return to be a per-function
setting, but this patch does not intend to change behavior.

for  gcc/ChangeLog

* common.opt (freg-struct-return): Make it explicitly
fpcc-struct-return's NegativeAlias.  Copy Optimization...
(freg-struct-return): ... here.
gcc/common.opt