[cfe-commits] [PATCH] Fix for bug 7870 (incorrect O level)

Aaron Ballman aaron at aaronballman.com
Sun Feb 5 14:52:33 PST 2012


This patch fixed 7870, where you pass in an incorrect O level on the
command line.  The problem was that the supplied value was truncated
to 4 bits and then being reported.  The patch simply saves the
supplied value and assigns it after verification (or diagnostic
output).

eg)
c:\llvm\build>clang -O900 "C:\Users\Aaron Ballman\Desktop\test.cpp"
error: invalid value '4' in '-O900'

becomes:
c:\llvm\build>clang -O900 "C:\Users\Aaron Ballman\Desktop\test.cpp"
error: invalid value '900' in '-O900'

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: O_Level.patch
Type: application/octet-stream
Size: 950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120205/0313bd7d/attachment.obj>


More information about the cfe-commits mailing list