This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New __atomic builtins generating an unwanted/unneeded stack slot


On 10/29/2013 03:06 AM, Richard Biener wrote:
> On Mon, Oct 28, 2013 at 7:33 PM, Richard Henderson <rth@redhat.com> wrote:
>> On 10/28/2013 02:25 AM, Frederic Riss wrote:
>>> Is there a clean way to have the compiler discard the unneeded stack slot?
>>
>> Not yet.  There is a rewrite of the atomic support in gcc to
>> move away from using builtins, which will allow two outputs
>> to be ssa allocacted.  But this will not be complete for 4.9.
> 
> Though if the expander is ok with not having the stack slot and the
> result is not required we could fold this argument to NULL ...

FWIW, the md interface returns two registers.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]