aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/FAQ.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/FAQ.html b/docs/FAQ.html
index 0f2abd6380..810df0116a 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.
</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">