diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-23 19:50:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-23 19:50:59 +0000 |
commit | 6f5b0e3727be58a2335bd3b66bb8d37fde78d630 (patch) | |
tree | 9647b8c7b0bf40464b26bb190d42ac1b2b41ec1a /llvm | |
parent | faa2b3a10115a7dda8dd7f9d3c7fcf891ef29589 (diff) | |
download | bcm5719-llvm-6f5b0e3727be58a2335bd3b66bb8d37fde78d630.tar.gz bcm5719-llvm-6f5b0e3727be58a2335bd3b66bb8d37fde78d630.zip |
Remove remaining references to -O4.
Thanks to Hal Finkel for noticing it.
llvm-svn: 191216
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/docs/GoldPlugin.rst | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/docs/GoldPlugin.rst b/llvm/docs/GoldPlugin.rst index 17bbeb8ba9f..be71f5f2ab4 100644 --- a/llvm/docs/GoldPlugin.rst +++ b/llvm/docs/GoldPlugin.rst @@ -66,10 +66,8 @@ look for the line where it runs ``collect2``. Replace that with ready to switch to using gold, backup your existing ``/usr/bin/ld`` then replace it with ``ld-new``. -You can produce bitcode files from ``clang`` using ``-emit-llvm`` or -``-flto``, or the ``-O4`` flag which is synonymous with ``-O3 -flto``. - -Any of these flags will also cause ``clang`` to look for the gold plugin in +You should produce bitcode files from ``clang`` with the option + ``-flto``. This flag will also cause ``clang`` to look for the gold plugin in the ``lib`` directory under its prefix and pass the ``-plugin`` option to ``ld``. It will not look for an alternate linker, which is why you need gold to be the installed system linker in your path. @@ -153,7 +151,6 @@ everything is in place for an easy to use LTO build of autotooled projects: export AR="$PREFIX/bin/ar" export NM="$PREFIX/bin/nm" export RANLIB=/bin/true #ranlib is not needed, and doesn't support .bc files in .a - export CFLAGS="-O4" * Or you can just set your path: @@ -163,7 +160,6 @@ everything is in place for an easy to use LTO build of autotooled projects: export CC="clang -flto" export CXX="clang++ -flto" export RANLIB=/bin/true - export CFLAGS="-O4" * Configure and build the project as usual: .. code-block:: bash |