diff options
author | Alexandre Oliva <oliva@adacore.com> | 2024-05-17 00:45:45 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2024-05-17 00:45:45 -0300 |
commit | b7483de99536c05983129d9ca28b53b575861078 (patch) | |
tree | 7b49cd8eb7f26651973c1b09b6a9b6f2230e2d8b | |
parent | d477d683d5c6db90c80d348c795709ae6444ba7a (diff) | |
download | gcc-b7483de99536c05983129d9ca28b53b575861078.zip gcc-b7483de99536c05983129d9ca28b53b575861078.tar.gz gcc-b7483de99536c05983129d9ca28b53b575861078.tar.bz2 |
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.
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 40cab3c..40d90817 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -2412,7 +2412,7 @@ Common RejectNegative Joined UInteger Optimization -fpack-struct=<number> Set initial maximum structure member alignment. fpcc-struct-return -Common Var(flag_pcc_struct_return,1) Init(DEFAULT_PCC_STRUCT_RETURN) +Common Var(flag_pcc_struct_return,1) Init(DEFAULT_PCC_STRUCT_RETURN) Optimization Return small aggregates in memory, not registers. fpeel-loops @@ -2602,7 +2602,7 @@ Common Var(flag_record_gcc_switches) Record gcc command line switches in the object file. freg-struct-return -Common Var(flag_pcc_struct_return,0) Optimization +Common NegativeAlias Alias(fpcc_struct_return) Optimization Return small aggregates in registers. fregmove |