public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41080]  New: gfortran -dumpversion does not behave like gcc or g++
@ 2009-08-15 16:01 david dot kirkby at onetel dot net
  2009-08-15 18:14 ` [Bug fortran/41080] " burnus at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: david dot kirkby at onetel dot net @ 2009-08-15 16:01 UTC (permalink / raw)
  To: gcc-bugs

The 'dumpversion' option of gcc and g++ show just the version number, which is
useful. The same is not true of gfortran, which shows a lot of other
information, making getting the version more difficult 

drkirkby@smudge:[~] $ g++ -dumpversion
4.4.1
drkirkby@smudge:[~] $ gcc -dumpversion
4.4.1
drkirkby@smudge:[~] $ gfortran -dumpversion
GNU Fortran (GCC) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING


-- 
           Summary: gfortran -dumpversion does not behave like gcc or g++
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: david dot kirkby at onetel dot net
 GCC build triplet: Solaris 10 update 7 on Sun Ultra 80
  GCC host triplet: Solaris 10 update 7 on Sun Ultra 80
GCC target triplet: Solairs 10 update 7 on Sun Ultra 80


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41080


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/41080] gfortran -dumpversion does not behave like gcc or g++
  2009-08-15 16:01 [Bug fortran/41080] New: gfortran -dumpversion does not behave like gcc or g++ david dot kirkby at onetel dot net
@ 2009-08-15 18:14 ` burnus at gcc dot gnu dot org
  2009-08-15 20:10 ` david dot kirkby at onetel dot net
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-15 18:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2009-08-15 18:14 -------
Trivial patch:

Index: gcc/fortran/gfortranspec.c
===================================================================
--- gcc/fortran/gfortranspec.c  (Revision 150791)
+++ gcc/fortran/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"))


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41080


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/41080] gfortran -dumpversion does not behave like gcc or g++
  2009-08-15 16:01 [Bug fortran/41080] New: gfortran -dumpversion does not behave like gcc or g++ david dot kirkby at onetel dot net
  2009-08-15 18:14 ` [Bug fortran/41080] " burnus at gcc dot gnu dot org
@ 2009-08-15 20:10 ` david dot kirkby at onetel dot net
  2009-08-15 20:52 ` burnus at gcc dot gnu dot org
  2009-08-15 20:58 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: david dot kirkby at onetel dot net @ 2009-08-15 20:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from david dot kirkby at onetel dot net  2009-08-15 20:10 -------
Thank you. Does this mean the next version of gcc will support this? 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41080


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/41080] gfortran -dumpversion does not behave like gcc or g++
  2009-08-15 16:01 [Bug fortran/41080] New: gfortran -dumpversion does not behave like gcc or g++ david dot kirkby at onetel dot net
  2009-08-15 18:14 ` [Bug fortran/41080] " burnus at gcc dot gnu dot org
  2009-08-15 20:10 ` david dot kirkby at onetel dot net
@ 2009-08-15 20:52 ` burnus at gcc dot gnu dot org
  2009-08-15 20:58 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-15 20:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2009-08-15 20:52 -------
Subject: Bug 41080

Author: burnus
Date: Sat Aug 15 20:51:55 2009
New Revision: 150792

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150792
Log:
2009-08-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41080
        * gfortranspec.c (lookup_option): Remove gfortran-specific
        version of -dumpversion.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortranspec.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41080


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/41080] gfortran -dumpversion does not behave like gcc or g++
  2009-08-15 16:01 [Bug fortran/41080] New: gfortran -dumpversion does not behave like gcc or g++ david dot kirkby at onetel dot net
                   ` (2 preceding siblings ...)
  2009-08-15 20:52 ` burnus at gcc dot gnu dot org
@ 2009-08-15 20:58 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-15 20:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from burnus at gcc dot gnu dot org  2009-08-15 20:57 -------
(In reply to comment #2)
> Thank you. Does this mean the next version of gcc will support this? 

Now yes - I have just committed it to the trunk, i.e. the 4.5.0 release will
have it (as will have the nightly trunk builds).

Thanks for the bugreport!

Close as FIXED.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41080


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-15 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-15 16:01 [Bug fortran/41080] New: gfortran -dumpversion does not behave like gcc or g++ david dot kirkby at onetel dot net
2009-08-15 18:14 ` [Bug fortran/41080] " burnus at gcc dot gnu dot org
2009-08-15 20:10 ` david dot kirkby at onetel dot net
2009-08-15 20:52 ` burnus at gcc dot gnu dot org
2009-08-15 20:58 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).