Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Add the "no-split-stack" attribute
Browse files Browse the repository at this point in the history
This disable emission of segmented-stack prologues on a per-function basis, even
if segmented stacks are turned on globally.
  • Loading branch information
alexcrichton committed Feb 26, 2014
1 parent 12c9f92 commit ae43eea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/CodeGen/PrologEpilogInserter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,8 @@ void PEI::insertPrologEpilogCode(MachineFunction &Fn) {
// we've been asked for it. This, when linked with a runtime with support
// for segmented stacks (libgcc is one), will result in allocating stack
// space in small chunks instead of one large contiguous block.
if (Fn.getTarget().Options.EnableSegmentedStacks)
if (Fn.getTarget().Options.EnableSegmentedStacks &&
!Fn.getFunction()->hasFnAttribute("no-split-stack"))
TFI.adjustForSegmentedStacks(Fn);

// Emit additional code that is required to explicitly handle the stack in
Expand Down

0 comments on commit ae43eea

Please sign in to comment.