[LLVMdev] nosegmentedstacks function attribute

Brian Anderson banderson at mozilla.com
Sun Feb 12 23:49:17 PST 2012

----- Original Message -----
> From: "Sanjoy Das" <sanjoy at playingwithpointers.com>
> To: "llvmdev at cs.uiuc.edu Mailing List" <llvmdev at cs.uiuc.edu>
> Sent: Sunday, January 29, 2012 12:18:56 AM
> Subject: [LLVMdev] nosegmentedstacks function attribute
> Hi all!
> Now that LLVM has support for a larger attribute set, I think it is a
> good idea to add one that stops LLVM from generating segmented
> stacked

I'm glad to hear this news, Sanjoy. Rust currently generates some functions that run with segmented stacks and some that run on big stacks (for C interop and the main function). When we switch to the C stack we have to reconfigure the stack boundary so it doesn't trip the call to __morestack. It would be cleaner if we could just tell LLVM not to generate the check for these functions.

More information about the llvm-dev mailing list