<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This accidentally got filtered by the mailing list.  I fixed the problem on the list manager so it shouldn't happen in the future.<div><br></div><div>-Chris<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>From: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:cfe-commits-bounces@cs.uiuc.edu">cfe-commits-bounces@cs.uiuc.edu</a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">June 4, 2009 4:32:09 PM PDT</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:cfe-commits-owner@cs.uiuc.edu">cfe-commits-owner@cs.uiuc.edu</a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Subject: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Auto-discard notification</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div>The attached message has been automatically discarded.<br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Devang Patel <<a href="mailto:dpatel@apple.com">dpatel@apple.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">June 4, 2009 4:32:06 PM PDT<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>r72902 - in /cfe/trunk: include/clang/Frontend/CompileOptions.h lib/CodeGen/CGCall.cpp tools/clang-cc/clang-cc.cpp</b><br></span></div><br><br>Author: dpatel<br>Date: Thu Jun  4 18:32:02 2009<br>New Revision: 72902<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=72902&view=rev">http://llvm.org/viewvc/llvm-project?rev=72902&view=rev</a><br>Log:<br>Set function attribute llvm::Attribute::NoRedZone appropriately.<br><br>Modified:<br>    cfe/trunk/include/clang/Frontend/CompileOptions.h<br>    cfe/trunk/lib/CodeGen/CGCall.cpp<br>    cfe/trunk/tools/clang-cc/clang-cc.cpp<br><br>Modified: cfe/trunk/include/clang/Frontend/CompileOptions.h<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/CompileOptions.h?rev=72902&r1=72901&r2=72902&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/CompileOptions.h?rev=72902&r1=72901&r2=72902&view=diff</a><br><br>==============================================================================<br>--- cfe/trunk/include/clang/Frontend/CompileOptions.h (original)<br>+++ cfe/trunk/include/clang/Frontend/CompileOptions.h Thu Jun  4 18:32:02 2009<br>@@ -41,6 +41,7 @@<br>                                   /// should be run through the LLVM Verifier.<br>   unsigned TimePasses        : 1; /// Set when -ftime-report is enabled.<br>   unsigned NoCommon          : 1; /// Set when -fno-common or C++ is enabled.<br>+  unsigned DisableRedZone    : 1; /// Set when -mno-red-zone is enabled.<br><br>   /// Inlining - The kind of inlining to perform.<br>   InliningMethod Inlining;<br>@@ -63,6 +64,7 @@<br>     TimePasses = 0;<br>     NoCommon = 0;<br>     Inlining = NoInlining;<br>+    DisableRedZone = 0;<br>   }  <br> };<br><br><br>Modified: cfe/trunk/lib/CodeGen/CGCall.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=72902&r1=72901&r2=72902&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=72902&r1=72901&r2=72902&view=diff</a><br><br>==============================================================================<br>--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)<br>+++ cfe/trunk/lib/CodeGen/CGCall.cpp Thu Jun  4 18:32:02 2009<br>@@ -21,6 +21,7 @@<br> #include "clang/AST/DeclCXX.h"<br> #include "clang/AST/DeclObjC.h"<br> #include "clang/AST/RecordLayout.h"<br>+#include "clang/Frontend/CompileOptions.h"<br> #include "llvm/ADT/StringExtras.h"<br> #include "llvm/Attributes.h"<br> #include "llvm/Support/CallSite.h"<br>@@ -1751,6 +1752,9 @@<br>       FuncAttrs |= llvm::Attribute::ReadOnly;<br>   }<br><br>+  if (CompileOpts.DisableRedZone)<br>+    FuncAttrs |= llvm::Attribute::NoRedZone;<br>+<br>   QualType RetTy = FI.getReturnType();<br>   unsigned Index = 1;<br>   const ABIArgInfo &RetAI = FI.getReturnInfo();<br><br>Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=72902&r1=72901&r2=72902&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=72902&r1=72901&r2=72902&view=diff</a><br><br>==============================================================================<br>--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)<br>+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Thu Jun  4 18:32:02 2009<br>@@ -1395,6 +1395,12 @@<br> static llvm::cl::list<std::string><br> TargetFeatures("target-feature", llvm::cl::desc("Target specific attributes"));<br><br>+<br>+static llvm::cl::opt<bool><br>+DisableRedZone("disable-red-zone",<br>+               llvm::cl::desc("Do not emit code that uses the red zone."),<br>+               llvm::cl::init(false));<br>+<br> /// ComputeTargetFeatures - Recompute the target feature list to only<br> /// be the list of things that are enabled, based on the target cpu<br> /// and feature list.<br>@@ -1471,6 +1477,8 @@<br><br>   // Handle -ftime-report.<br>   Opts.TimePasses = TimeReport;<br>+<br>+  Opts.DisableRedZone = DisableRedZone;<br> }<br><br> //===----------------------------------------------------------------------===//<br><br><br><br><br></blockquote></div><br></div></body></html>