From 14fc5c1c05d04972375ee59a22bc7fbaf69c6e76 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Mon, 25 Apr 2005 20:36:56 +0000 Subject: [PATCH] Added question about turning off all optimizations. I think this has been asked once or twice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21542 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/FAQ.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/FAQ.html b/docs/FAQ.html index 0f2abd63801..810df0116a5 100644 --- a/docs/FAQ.html +++ b/docs/FAQ.html @@ -67,6 +67,11 @@ When I compile code using the LLVM GCC front end, it complains that it cannot find libcrtend.a. + +
  • + How can I disable all optimizations when compiling code using the LLVM GCC front end? +
  • + @@ -442,6 +447,19 @@ correct this, do:

    +
    +

    +How can I disable all optimizations when compiling code using the LLVM GCC front end? +

    +
    + +
    +

    +Passing "-Wa,-disable-opt -Wl,-disable-opt" will disable *all* cleanup and +optimizations done at the llvm level, leaving you with the truly horrible +code that you desire. +

    +
    -- 2.34.1