This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc --help -v prints cpp help instead of cpp+cc1 help
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc --help -v prints cpp help instead of cpp+cc1 help
- From: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- Date: Sat, 23 Dec 2000 23:11:24 +0000 (WET)
Hello,
The subjects says it all:
gcc --help -v prints cpp help instead of cpp+cc1 help
This happened when the cpp was included in the cc1 code.
The function cpp_handle_option in cppinit.c does 'exit (0)' after
printing the help. This function should problably use return.
The problem is that this fails if the preprocessor is compiled standalone.
A more clever method to solve this must be found.
The same problem is also present for --target-help and --version.
Herman.