llvm-project/clang/lib
Sylvestre Ledru 26386be183 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: invalid value '20' in '-O20'. Fall back on value '3'

Reviewers: rengolin, hfinkel

Reviewed By: rengolin

CC: cfe-commits, hfinkel, rengolin

Differential Revision: http://llvm-reviews.chandlerc.com/D2125

llvm-svn: 194403
2013-11-11 19:01:05 +00:00
..
ARCMigrate ObjectiveC migrator. Added a dropped check in my 2013-11-08 02:00:22 +00:00
AST Avoid double StringMap lookups. No functionality change. 2013-11-10 16:55:11 +00:00
ASTMatchers Introduce MatchFinder::matchAST. 2013-11-07 22:30:36 +00:00
Analysis Thread-safety analysis: check guarded_by and pt_guarded_by on array access. 2013-11-08 19:42:01 +00:00
Basic NetBSD 6.99.26 switched to default rounding mode, so adjust 2013-11-11 14:00:37 +00:00
CodeGen [AArch64] Add support for NEON scalar floating-point convert to fixed-point instructions. 2013-11-11 18:04:22 +00:00
Driver Using an invalid -O falls back on -O3 instead of an error 2013-11-11 19:01:05 +00:00
Edit ObjectiveC migrator: When doing migration, migrator must suggest 2013-10-01 21:16:29 +00:00
Format clang-format: Fix alignment of ObjC string literals. 2013-11-09 03:08:25 +00:00
Frontend Using an invalid -O falls back on -O3 instead of an error 2013-11-11 19:01:05 +00:00
FrontendTool Remove -ast-dump-xml. 2013-10-07 20:56:34 +00:00
Headers Define [U]LLONG_{MIN,MAX} for C++11, add tests. 2013-10-27 19:00:49 +00:00
Index Avoid using the 'index' namespace as scope. 2013-08-21 00:49:25 +00:00
Lex Modules: Teach the preprocessor to recognize 'import' only after an '@'. 2013-11-07 22:55:02 +00:00
Parse Try to recover a bit better if a close brace is missing from the end of a class 2013-11-09 04:52:51 +00:00
Rewrite Fix typo: inccrementally 2013-10-13 12:02:16 +00:00
Sema Issue a diagnostic if we see a templated friend declaration that we do not 2013-11-08 18:59:56 +00:00
Serialization Include non-explicit submodules in exported module list 2013-11-04 21:51:33 +00:00
StaticAnalyzer Revert 'Tweak ContainerNonEmptyMap with "int" instead of "bool"'. 2013-11-08 17:23:33 +00:00
Tooling Adds the ability to inject a DiagnosticConsumer into ClangTools. 2013-11-07 23:18:05 +00:00
CMakeLists.txt Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00
Makefile Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00