Go to file
Sylvestre Ledru 5abf2ec12d 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

llvm-svn: 195009
2013-11-18 13:23:07 +00:00
clang Using an invalid -O falls back on -O3 instead of an error 2013-11-18 13:23:07 +00:00
clang-tools-extra Reworked moduleImport example with real data. 2013-11-15 23:26:14 +00:00
compiler-rt CMake: make sure compiler-rt headers are copied to build tree if 'compilrer-rt' target is built 2013-11-18 10:57:36 +00:00
debuginfo-tests don't use CHECK-NEXT because it may be on the same line. 2013-09-18 23:01:54 +00:00
libclc s/_CLC_DECL/_CLC_DEF/ 2013-10-31 15:50:53 +00:00
libcxx Set the permissions for 'experimental' and its context to the correct values. 2013-11-18 07:01:16 +00:00
libcxxabi If libc++ has not declared bad_array_length, then declare it here just so that it gets into the binary. 2013-11-07 17:16:37 +00:00
lld Replace unnecessary vector copy with reference. 2013-11-18 04:05:28 +00:00
lldb Add a new SBThread::GetExtendedBacktraceOriginatingIndexID() method 2013-11-16 01:24:22 +00:00
llvm LoopVectorizer: Extend the induction variable to a larger type 2013-11-18 13:14:32 +00:00
openmp Update web pages to include style sheets and referenced documents missed before. 2013-10-03 11:55:28 +00:00
polly Fix 80 column violation 2013-11-17 03:18:32 +00:00