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]
Other format: [Raw text]

[Patch,Fortran,Committed] PR 41080 - fix -dumpversion


-dumpversion should only print the version number; however, gfortran was
printing the same as for -fversion.

Solution: Remove two lines and use the common options handling.

Committed as obvious (was also approved on IRC by Steve):

Sending        fortran/ChangeLog
Sending        fortran/gfortranspec.c
Transmitting file data ..
Committed revision 150792.

Tobias
Index: ChangeLog
===================================================================
--- ChangeLog	(Revision 150791)
+++ ChangeLog	(Arbeitskopie)
@@ -1,3 +1,9 @@
+2009-08-15  Tobias Burnus  <burnus@net-b.de>
+
+	PR fortran/41080
+	* gfortranspec.c (lookup_option): Remove gfortran-specific
+	version of -dumpversion.
+
 2009-08-14  Janus Weil  <janus@gcc.gnu.org>
 
 	PR fortran/41070
Index: gfortranspec.c
===================================================================
--- gfortranspec.c	(Revision 150791)
+++ gfortranspec.c	(Arbeitskopie)
@@ -186,8 +186,6 @@ lookup_option (Option *xopt, int *xskip,
 	opt = OPTION_syntax_only;
       else if (!strcmp (text, "-static-libgfortran"))
 	opt = OPTION_static_libgfortran;
-      else if (!strcmp (text, "-dumpversion"))
-	opt = OPTION_version;
       else if (!strcmp (text, "-fversion"))	/* Really --version!! */
 	opt = OPTION_version;
       else if (!strcmp (text, "-Xlinker") || !strcmp (text, "-specs"))

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