Added question about turning off all optimizations. I think this has been asked once...
authorTanya Lattner <tonic@nondot.org>
Mon, 25 Apr 2005 20:36:56 +0000 (20:36 +0000)
committerTanya Lattner <tonic@nondot.org>
Mon, 25 Apr 2005 20:36:56 +0000 (20:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21542 91177308-0d34-0410-b5e6-96231b3b80d8

docs/FAQ.html

index 0f2abd63801ed7455c4bfdcf3b94253e30da755b..810df0116a53452d8b706bcabe56d4f745ac33da 100644 (file)
     When I compile code using the LLVM GCC front end, it complains that it
     cannot find libcrtend.a.
     </li>
+
+    <li>
+    How can I disable all optimizations when compiling code using the LLVM GCC front end?
+    </li>
+
   </ol>
   </li>
 
@@ -442,6 +447,19 @@ correct this, do:</p>
 </pre>
 </div>
 
+<div class="question">
+<p>
+How can I disable all optimizations when compiling code using the LLVM GCC front end?
+</p>
+</div>
+
+<div class="answer">
+<p>
+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.
+</p>
+</div>
 
 <!-- *********************************************************************** -->
 <div class="doc_section">