[cfe-dev] User manual, and GCC functions not implemented

Hal Finkel hfinkel at anl.gov
Fri Jul 25 09:51:09 PDT 2014


----- Original Message -----
> From: "Jeffrey Walton" <noloader at gmail.com>
> To: cfe-dev at cs.uiuc.edu
> Sent: Friday, July 25, 2014 11:43:05 AM
> Subject: [cfe-dev] User manual, and GCC functions not implemented
> 
> http://clang.llvm.org/docs/UsersManual.html#gcc-extensions-not-implemented-yet
> 
> "clang does not support nested functions; this is a complex
> feature..."
> 
> That is bitter sweet. I need it because a library I'm building uses
> them (but I'd prefer the library not use them).
> 
> The devs might consider adding text to the statements: in addition to
> being complex, it also breaks No-Exec Stacks because a trampoline is
> placed on the stack (assuming Clang would have a similar
> implementation to GCC). I think the security posture is more
> important
> than feature complexity ;)
> 
> And the devs might consider adding this text to the statements: Clang
> has no plans to implement the feature. See Bug 6378,
> http://www.llvm.org/bugs/show_bug.cgi?id=6378.

Not that I'm advocating implementing it, but I wonder if now that we have support for many similar constructs (C++ lambdas, OpenMP outlining, etc.) it would not be as complex as it once was.

 -Hal

> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-dev mailing list