SafeStack proposal in GCC

Joel Sherrill joel.sherrill@oarcorp.com
Mon May 9 19:42:00 GMT 2016



On 5/9/2016 2:25 PM, Ian Lance Taylor wrote:
> On Fri, May 6, 2016 at 10:42 PM, Rich Felker <dalias@libc.org> wrote:
>>
>> The *context APIs are deprecated and I'm not sure they're worth
>> supporting with this. It would be a good excuse to get people to stop
>> using them.
>
> The gccgo library uses them, because there is no working alternative.

FWIW when this transition occurred, that's when the RTEMS port broke.
We don't have these methods.

It would be an interesting exercise to see if they could be
implemented in terms of our internal thread context management
APIs but no one has ever looked into it deeply.

> In general coroutine support requires the ability to designate some
> area of memory as stack space.
>
> Ian
>

--joel



More information about the Gcc mailing list