diff options
| author | Sylvestre Ledru <sylvestre@debian.org> | 2013-11-18 13:23:07 +0000 |
|---|---|---|
| committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-11-18 13:23:07 +0000 |
| commit | 5abf2ec12dbd5b554fa1c7a24c6556b9a1d3f859 (patch) | |
| tree | 3de9d6f553e860be9d64dda34b8b66f34f87c093 /llvm/lib/CodeGen/LatencyPriorityQueue.cpp | |
| parent | b72cb4ec49ab5a937a53a4391bffce9d1b9b35ea (diff) | |
| download | bcm5719-llvm-5abf2ec12dbd5b554fa1c7a24c6556b9a1d3f859.tar.gz bcm5719-llvm-5abf2ec12dbd5b554fa1c7a24c6556b9a1d3f859.zip | |
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
Diffstat (limited to 'llvm/lib/CodeGen/LatencyPriorityQueue.cpp')
0 files changed, 0 insertions, 0 deletions

