From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id DB3DC3858D3C; Tue, 23 Apr 2024 03:59:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB3DC3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713844742; bh=YJDDa3pl7su+nh9hl4PNk3Liq6yFdhLERLVLUWQCboY=; h=From:To:Subject:Date:From; b=kLAVRNDQ1MMwMS6UTQQjeKdZ3V9X+YHInuosLJGJSYS32c/rSWapEif5tSKn4Nv6G npQ8zCSz+ZCGcDums9iCm2QHlYeyN1fZ3wYR6I87NXVMTCLB9tkwiYPJ1DOthJakRO 9pmzMtWs0rVKBabSCbgViTeo7N6jnBReihPW4DlI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva 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 X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 30e8256702cc4dfb56d329ee279e957a10fc962b X-Git-Newrev: 60e63cf86f91608df32377f9ffc7c3f3e9f316fd Message-Id: <20240423035902.DB3DC3858D3C@sourceware.org> Date: Tue, 23 Apr 2024 03:59:02 +0000 (GMT) List-Id: https://gcc.gnu.org/g:60e63cf86f91608df32377f9ffc7c3f3e9f316fd commit 60e63cf86f91608df32377f9ffc7c3f3e9f316fd Author: Alexandre Oliva 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= 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