public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/aoliva/heads/testme)] make -freg-struct-return visibly a negative alias of -fpcc-struct-return
Date: Tue, 23 Apr 2024 03:59:02 +0000 (GMT)	[thread overview]
Message-ID: <20240423035902.DB3DC3858D3C@sourceware.org> (raw)

https://gcc.gnu.org/g:60e63cf86f91608df32377f9ffc7c3f3e9f316fd

commit 60e63cf86f91608df32377f9ffc7c3f3e9f316fd
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Tue Apr 23 00:33:04 2024 -0300

    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.
    
    
    for  gcc/ChangeLog
    
            * common.opt (freg-struct-return): Make it explicitly
            fpcc-struct-return's NegativeAlias.

Diff:
---
 gcc/common.opt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/common.opt b/gcc/common.opt
index ad348844775..12d93c76a1e 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2406,7 +2406,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
@@ -2596,7 +2596,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

             reply	other threads:[~2024-04-23  3:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23  3:59 Alexandre Oliva [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-28  5:21 Alexandre Oliva
2024-04-23  4:20 Alexandre Oliva
2024-04-23  3:50 Alexandre Oliva
2024-04-23  3:48 Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240423035902.DB3DC3858D3C@sourceware.org \
    --to=aoliva@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).