http://llvm.org/bugs/show_bug.cgi?id=9206
Summary: Clang does not support gcc-style nested functions
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Here are the gcc docs for this gnu-tension:
http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
Is this worth supporting in clang and LLVM? My understanding of the
implementation is that you emit snippet of code to the stack which loads the
address of the parent stack frame and jumps into the nested function.
It seems LLVM already supports trampolines, so this would mostly be frontend
work.
http://llvm.org/docs/LangRef.html#int_it
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs