public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Daniel Santos <daniel.santos@pobox.com>
To: Sandra Loosemore <sandra@codesourcery.com>,
	gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH 3/9] Add option -moutline-msabi-xlogues
Date: Sat, 26 Nov 2016 01:27:00 -0000	[thread overview]
Message-ID: <daa8dbe4-7193-260b-9d9a-36f80c6fd97c@pobox.com> (raw)
In-Reply-To: <5838CE73.50008@codesourcery.com>

Thank you very much for your review!

On 11/25/2016 05:51 PM, Sandra Loosemore wrote:
> On 11/22/2016 10:19 PM, Daniel Santos wrote:
>
>> diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt
>> index 9eef558..f556978 100644
>> --- a/gcc/config/i386/i386.opt
>> +++ b/gcc/config/i386/i386.opt
>> @@ -528,6 +528,11 @@ Enum(calling_abi) String(sysv) Value(SYSV_ABI)
>>   EnumValue
>>   Enum(calling_abi) String(ms) Value(MS_ABI)
>>
>> +moutline-msabi-xlogues
>> +Target Report Mask(OUTLINE_MSABI_XLOGUES) Save
>> +Reduces function size by using out-of-line stubs to save & restore 
>> registers
>> +clobberd by differences in Microsoft and System V ABIs.
>> +
>
> Just as a suggestion (I'm not an i386 maintainer), I'd recommend 
> spelling the name of this option -mno-inline-msabi-xlogues instead of 
> -moutline-msabi-xlogues, and making the default -minline-msabi-xlogues.

That is certainly more intuitive ("outline" or "out-of-line" vs 
"inline"). I guess I'm not sure what concept is more important, that 
it's not inline or that it's using stubs. Probably the former.

>
>> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
>> index 8e2f466..4706085 100644
>> --- a/gcc/doc/invoke.texi
>> +++ b/gcc/doc/invoke.texi
>> @@ -25004,6 +25004,15 @@ You can control this behavior for specific 
>> functions by
>>   using the function attributes @code{ms_abi} and @code{sysv_abi}.
>>   @xref{Function Attributes}.
>>
>> +@item -moutline-msabi-xlogues
>> +@itemx -mno-outline-msabi-xlogues
>
> By convention, we only list the option form that is not the default....

OK. This is my first time to work on gcc, so still learning all of the 
conventions.

>
>> +@opindex moutline-msabi-xlogues
>
> ...but we should have index entries for both.

So basically I got that backwards. :)

>
>> +Due to differences in 64-bit ABIs, any Microsoft ABI function that 
>> calls a
>> +SysV ABI function must consider RSI, RDI and XMM6-15 as clobbered, 
>> emitting
>> +fairly lengthy prologues & epilogues.  This option generates 
>> prologues &
>> +epilogues that instead call stubs in libgcc to perform these saves & 
>> restores,
>> +thus reducing function size at the cost of a few extra instructions.
>
> Please use the word "and" in all three locations here, instead of "&".
>
> -Sandra

Now that I think of it, would "System V" be better than just "SysV"?

This is very helpful, thanks again. I'm working on a meaningful 
testsuite, so I suppose I should just submit a v3 with these changes 
when I'm done with the tests and hopefully I'll have a little more 
feedback on the back end & assembly as well.

Daniel

  reply	other threads:[~2016-11-26  1:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23  5:11 [PATCH v2 0/9] Add optimization -moutline-msabi-xlougues (for Wine 64) Daniel Santos
2016-11-23  5:16 ` [PATCH 2/9] Minor refactor in ix86_compute_frame_layout Daniel Santos
2016-11-23  5:16 ` [PATCH 7/9] Add patterns and predicates foutline-msabi-xlouges Daniel Santos
2016-11-23  5:16 ` [PATCH 5/9] Modify ix86_save_reg to optionally omit stub-managed registers Daniel Santos
2016-11-23  5:16 ` [PATCH 1/9] Change type of x86_64_ms_sysv_extra_clobbered_registers Daniel Santos
2016-11-23  5:16 ` [PATCH 4/9] Adds class xlouge_layout and new fields to struct machine_function Daniel Santos
2016-11-23  5:16 ` [PATCH 6/9] Modify ix86_compute_frame_layout for foutline-msabi-xlogues Daniel Santos
2016-11-23  5:16 ` [PATCH 8/9] Add msabi pro/epilogue stubs to libgcc Daniel Santos
2016-11-23  5:16 ` [PATCH 3/9] Add option -moutline-msabi-xlogues Daniel Santos
2016-11-25 23:51   ` Sandra Loosemore
2016-11-26  1:27     ` Daniel Santos [this message]
2016-11-23  5:16 ` [PATCH 9/9] Add remainder of moutline-msabi-xlogues implementation Daniel Santos

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=daa8dbe4-7193-260b-9d9a-36f80c6fd97c@pobox.com \
    --to=daniel.santos@pobox.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=sandra@codesourcery.com \
    /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).