[cfe-commits] r72902 - in /cfe/trunk: include/clang/Frontend/CompileOptions.h lib/CodeGen/CGCall.cpp tools/clang-cc/clang-cc.cpp
Chris Lattner
sabre at nondot.org
Thu Jun 4 16:45:08 PDT 2009
This accidentally got filtered by the mailing list. I fixed the
problem on the list manager so it shouldn't happen in the future.
-Chris
Begin forwarded message:
> From: cfe-commits-bounces at cs.uiuc.edu
> Date: June 4, 2009 4:32:09 PM PDT
> To: cfe-commits-owner at cs.uiuc.edu
> Subject: Auto-discard notification
>
> The attached message has been automatically discarded.
> From: Devang Patel <dpatel at apple.com>
> Date: June 4, 2009 4:32:06 PM PDT
> To: cfe-commits at cs.uiuc.edu
> Subject: r72902 - in /cfe/trunk: include/clang/Frontend/
> CompileOptions.h lib/CodeGen/CGCall.cpp tools/clang-cc/clang-cc.cpp
>
>
> Author: dpatel
> Date: Thu Jun 4 18:32:02 2009
> New Revision: 72902
>
> URL: http://llvm.org/viewvc/llvm-project?rev=72902&view=rev
> Log:
> Set function attribute llvm::Attribute::NoRedZone appropriately.
>
> Modified:
> cfe/trunk/include/clang/Frontend/CompileOptions.h
> cfe/trunk/lib/CodeGen/CGCall.cpp
> cfe/trunk/tools/clang-cc/clang-cc.cpp
>
> Modified: cfe/trunk/include/clang/Frontend/CompileOptions.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/CompileOptions.h?rev=72902&r1=72901&r2=72902&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/include/clang/Frontend/CompileOptions.h (original)
> +++ cfe/trunk/include/clang/Frontend/CompileOptions.h Thu Jun 4
> 18:32:02 2009
> @@ -41,6 +41,7 @@
> /// should be run through the LLVM
> Verifier.
> unsigned TimePasses : 1; /// Set when -ftime-report is
> enabled.
> unsigned NoCommon : 1; /// Set when -fno-common or C++ is
> enabled.
> + unsigned DisableRedZone : 1; /// Set when -mno-red-zone is
> enabled.
>
> /// Inlining - The kind of inlining to perform.
> InliningMethod Inlining;
> @@ -63,6 +64,7 @@
> TimePasses = 0;
> NoCommon = 0;
> Inlining = NoInlining;
> + DisableRedZone = 0;
> }
> };
>
>
> Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=72902&r1=72901&r2=72902&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGCall.cpp Thu Jun 4 18:32:02 2009
> @@ -21,6 +21,7 @@
> #include "clang/AST/DeclCXX.h"
> #include "clang/AST/DeclObjC.h"
> #include "clang/AST/RecordLayout.h"
> +#include "clang/Frontend/CompileOptions.h"
> #include "llvm/ADT/StringExtras.h"
> #include "llvm/Attributes.h"
> #include "llvm/Support/CallSite.h"
> @@ -1751,6 +1752,9 @@
> FuncAttrs |= llvm::Attribute::ReadOnly;
> }
>
> + if (CompileOpts.DisableRedZone)
> + FuncAttrs |= llvm::Attribute::NoRedZone;
> +
> QualType RetTy = FI.getReturnType();
> unsigned Index = 1;
> const ABIArgInfo &RetAI = FI.getReturnInfo();
>
> Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=72902&r1=72901&r2=72902&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
> +++ cfe/trunk/tools/clang-cc/clang-cc.cpp Thu Jun 4 18:32:02 2009
> @@ -1395,6 +1395,12 @@
> static llvm::cl::list<std::string>
> TargetFeatures("target-feature", llvm::cl::desc("Target specific
> attributes"));
>
> +
> +static llvm::cl::opt<bool>
> +DisableRedZone("disable-red-zone",
> + llvm::cl::desc("Do not emit code that uses the red
> zone."),
> + llvm::cl::init(false));
> +
> /// ComputeTargetFeatures - Recompute the target feature list to only
> /// be the list of things that are enabled, based on the target cpu
> /// and feature list.
> @@ -1471,6 +1477,8 @@
>
> // Handle -ftime-report.
> Opts.TimePasses = TimeReport;
> +
> + Opts.DisableRedZone = DisableRedZone;
> }
>
> //
> =
> =
> =
> ----------------------------------------------------------------------=
> ==//
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090604/4f813e73/attachment.html>
More information about the cfe-commits
mailing list