This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch,Fortran,Committed] PR 41080 - fix -dumpversion
- From: Tobias Burnus <burnus at net-b dot de>
- To: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Sat, 15 Aug 2009 22:55:54 +0200
- Subject: [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"))