This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Identify cpplib in -v output


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]