[PATCH] pr13012: Support -fpcc-struct-return for x86-32

John McCall rjmccall at apple.com
Mon Jun 17 16:42:17 PDT 2013


On Jun 17, 2013, at 11:54 AM, Arthur O'Dwyer <arthur.j.odwyer at gmail.com> wrote:
> On Wed, Jun 12, 2013, Arthur O'Dwyer <arthur.j.odwyer at gmail.com> wrote:
>> On Fri, Jun 7, 2013 at 4:46 PM, John McCall <rjmccall at apple.com> wrote:
>>> On Jun 7, 2013, at 4:42 PM, Arthur O'Dwyer <arthur.j.odwyer at gmail.com> wrote:
>>>> 
>>>> Fixed. I renamed this variable to SmallStructsConvention and the enum to
>>>> SmallStructsConventionKind to save a bit of horizontal space.
>>>> I removed the "default: assert(false);" case in my helper function, as it was
>>>> now triggering a warning from -Wcovered-switch-default.
>>> 
>>> How about "StructReturnConventionKind"?
>> 
>> Fixed, although I realized afterward that this changes "SSC_" to "SRC_",
>> which is slightly unfortunate ("SRC" being short for "source" in other
>> contexts).
> 
> Pinged rjmccall on Wednesday. Is there anything preventing this patch
> from going in, at this point?
> 
> I've attached two versions of the patch: one with SRC_OnStack and
> SRC_InRegs, and one with SRCK_OnStack and SRCK_InRegs. There's no
> other difference between them. I believe I prefer the SRCK_ version;
> thanks, Jordan!

Either one LGTM.

John.



More information about the cfe-commits mailing list