[llvm-bugs] [Bug 30658] New: Clang should support gcc's __builtin_alloca_with_align()
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 11 05:38:57 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30658
Bug ID: 30658
Summary: Clang should support gcc's
__builtin_alloca_with_align()
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jobstz at yahoo.de
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Clang already supports __builtin_alloca() but not with an extra alignment
specifier.
IMHO this function without alignment guarantees is almost useless, because e.g
it is inherently unsafe to attempt to stuff a c++ type into the allocated
memory.
Trying to implement this function outside of the compiler stack is also not a
good idea, because it is by nature very platform dependent and any efficient
implementation would have to use inline assembly.
Still the function is abstract enough to be supported on most machines (just as
__buitin_alloca()) so that it makes sense to insert into the compiler.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161011/e228bee7/attachment.html>
More information about the llvm-bugs
mailing list