On Thu, Sep 27, 2018 at 7:01 AM, Rich Felker <dal...@libc.org> wrote:
> On Wed, Sep 26, 2018 at 11:10:29AM -0700, H.J. Lu wrote:
>> Add -mzero-caller-saved-regs=[skip|used|all] command-line option and
>> zero_caller_saved_regs("skip|used|all") function attribue:
>
> Minor nit, but could this be named -mzero-call-clobbered-regs?
> "Caller-saved" is a misnomer and inconsistent with other gcc usage.
> For example -fcall-used-[reg] documents it as "an allocable register
> that is clobbered by function calls". This is a piece of terminology
> I've been trying to get fixed in educational materials so it would be
> nice to avoid a new instance of it in gcc.

I picked caller-saved since this terminology is used in x86 psABIs.
I have no strong opinion here.  We can decide on the name later
after we decide that we want this feature in GCC.


-- 
H.J.

Reply via email to