summaryrefslogtreecommitdiff
path: root/docs/ReleaseNotes.rst
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-11-18 13:23:07 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-11-18 13:23:07 +0000
commit762e567ee54171662111534108aebf8f1c0b303c (patch)
tree7ed8e4850011adaed862edc434579e49206eee90 /docs/ReleaseNotes.rst
parentf696538f5e79a285cc453eba2eacdb3edab16cca (diff)
downloadclang-762e567ee54171662111534108aebf8f1c0b303c.tar.gz
clang-762e567ee54171662111534108aebf8f1c0b303c.tar.bz2
clang-762e567ee54171662111534108aebf8f1c0b303c.tar.xz
Using an invalid -O falls back on -O3 instead of an error
Summary: Currently with clang: $ clang -O20 foo.c error: invalid value '20' in '-O20' With the patch: $ clang -O20 foo.c warning: optimization level '-O20' is unsupported; using '-O3' instead. 1 warning generated. This matches the gcc behavior (with a warning added) Pass all tests: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 94.14s Expected Passes : 6721 Expected Failures : 20 Unsupported Tests : 17 (which was not the case of http://llvm-reviews.chandlerc.com/D2125) Differential Revision: http://llvm-reviews.chandlerc.com/D2212 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ReleaseNotes.rst')
-rw-r--r--docs/ReleaseNotes.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 7d63744bdf..597d48142f 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -77,7 +77,8 @@ New Compiler Flags
- Clang no longer special cases -O4 to enable lto. Explicitly pass -flto to
enable it.
-- Command line "clang -O3 -flto a.c -c" and "clang -emit-llvm a.c -c"
+- Clang no longer fails on >= -O5. Uses -O3 instead.
+- Command line "clang -O3 -flto a.c -c" and "clang -emit-llvm a.c -c"
are no longer equivalent.
- Clang now errors on unknown -m flags (``-munknown-to-clang``),
unknown -f flags (``-funknown-to-clang``) and unknown