tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Special function names



On Fri, Oct 18, 2019 at 05:30:13PM +0100, Robert Swindells wrote:
> 
> Joerg pointed out that gcc has a list of function names that it special
> cases, this was the cause of x86/vm_machdep.c failing to compile:
> 
> <http://mail-index.netbsd.org/current-users/2019/10/17/msg036799.html>
> 
> Any thoughts on whether we should remove some or all of the names
> from the list in our build of gcc ?
> 
> The list is: "setjmp", "sigsetjmp", "savectx", "vfork", "getcontext"
> 
> There are similar declarations in clang.

We had that discussion in the specific context of savectx in LLVM a long
time ago. Consensus was that the chance of breaking code in bad ways is
still high enough that it is just better to avoid the names in new code.

Joerg


Home | Main Index | Thread Index | Old Index