Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

--help shows -time and -print-stats; yet, driver does not recognize them #14117

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR14084
Status NEW
Importance P enhancement
Reported by Larry Evans (cppljevans@gmail.com)
Reported on 2012-10-15 06:36:09 -0700
Last modified on 2012-10-15 18:58:03 -0700
Version trunk
Hardware PC Linux
CC geek4civic@gmail.com, llvm-bugs@lists.llvm.org, paul.robinson@am.sony.com, pawel@32bitmicro.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Neither the -time or -print-stats flag is recognized by the driver
even though both appear in the --help output:

make compiler_help_driver MAIN=test
/home/evansl/download/llvm/svn/install/bin/clang --help|grep -e ' -time\| -
print-stat'
  -print-stats            Print performance metrics and statistics
  -time                   Time individual commands
/home/evansl/download/llvm/svn/install/bin/clang -time -print-stats -c test.cpp
clang: warning: argument unused during compilation: '-time'
clang: warning: argument unused during compilation: '-print-stats'
/home/evansl/download/llvm/svn/install/bin/clang -v
clang version 3.2 (trunk 165317)
Target: x86_64-unknown-linux-gnu
Thread model: posix
uname -a
Linux evansl-desktop 2.6.32-41-generic #90-Ubuntu SMP Tue May 22 11:29:51 UTC
2012 x86_64 GNU/Linux
Quuxplusone commented 11 years ago
I was noticing recently that --help will display 'cc1' options as well as
driver options.  While that might be optimal for Clang developers, it is
not especially nice for Clang users.

Also Clang won't display an option that has no defined help text. That
seems like kind of a funny way to identify hidden options.