Revert "Using an invalid -O falls back on -O3 instead of an error"
authorAlp Toker <alp@nuanti.com>
Fri, 15 Nov 2013 20:40:58 +0000 (20:40 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 15 Nov 2013 20:40:58 +0000 (20:40 +0000)
commite22017e0b691ff02616e6a8e670b721d078d4bc9
treea6268d34bd0e201a0a591aab1f000cf650829cf0
parentd378144e00212af69800ab9c1df8be8b339f086b
Revert "Using an invalid -O falls back on -O3 instead of an error"

Trying to fix test failures since earlier today.

One of the tests added in this commit is outputting test/Driver/clang_f_opts.s
which the builders that build in-tree (eg. clang-native-arm-cortex-a9) are
trying to run as a test case, causing failures.

clang_f_opts.c:
  If -### doesn't emit the warning then this test probably shouldn't be in
  here in the first place. Frontend maybe?

invalid-o-level.c:
  Running %clang_cc1 in the Driver tests doesn't make sense because -cc1
  bypasses the driver. (I'm not reverting the commit that introduced this but
  please fix instead of keeping it this way.)

Reverting to fix the build failures and also so that the tests can be thought
out more thoroughly.

This reverts commit r194817.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194845 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.rst
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Basic/DiagnosticGroups.td
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/clang_f_opts.c
test/Driver/invalid-o-level.c