This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Identify cpplib in -v output
- To: gcc-patches at gcc dot gnu dot org
- Subject: Identify cpplib in -v output
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Thu, 27 Jan 2000 10:34:58 -0800
Currently it is not possible to tell from -v output whether the
preprocessor is cccp or cppmain. (Well, sometimes you can guess from
slightly different description of the include path, but it isn't
reliable.) This corrects that.
zw
* cppinit.c: Add " (cpplib)" to end of string printed by
-v / --version.
===================================================================
Index: cppinit.c
--- cppinit.c 2000/01/12 00:35:36 1.30
+++ cppinit.c 2000/01/27 18:31:54
@@ -1500,12 +1500,12 @@ cpp_handle_option (pfile, argc, argv)
if (!strcmp (argv[i], "--help"))
print_help ();
else if (!strcmp (argv[i], "--version"))
- cpp_notice ("GNU CPP version %s\n", version_string);
+ cpp_notice ("GNU CPP version %s (cpplib)\n", version_string);
exit (0); /* XXX */
break;
case 'v':
- cpp_notice ("GNU CPP version %s", version_string);
+ cpp_notice ("GNU CPP version %s (cpplib)", version_string);
#ifdef TARGET_VERSION
TARGET_VERSION;
#endif