public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
@ 2003-12-22 12:03 toon at moene dot indiv dot nluug dot nl
  2003-12-22 17:08 ` [Bug driver/13464] " pinskia at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-12-22 12:03 UTC (permalink / raw)
  To: gcc-bugs

The Fortran options -d8, -i8 and -r8 are not passed to f951 correctly.

The option processor thinks that -d8 is a form of the -d dump options, in spite
of the fact that there is no such  -d8 option.  -i8 is simply consumed without
ever resurfacing. -r8 is simply an `unrecognized option'.

I tried to debug this, but got lost in all the routines that look at or mangle
the options.  However, one thing is clear:

In options.c we find:

  { "-d8",
    N_("Set the default real and integer kinds to double precision"),
    OPT_d, 2, CL_F95 | CL_REJECT_NEGATIVE },
    ^^^^^ this is wrong.

-- 
           Summary: [gfortran options] -d8, -i8 and -r8 not passed correctly
                    to compiler proper.
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: neil at daikokuya dot co dot uk
        ReportedBy: toon at moene dot indiv dot nluug dot nl
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
@ 2003-12-22 17:08 ` pinskia at gcc dot gnu dot org
  2003-12-22 20:49 ` neil at daikokuya dot co dot uk
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-22 17:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-22 16:37 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-22 16:37:21
               date|                            |


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
  2003-12-22 17:08 ` [Bug driver/13464] " pinskia at gcc dot gnu dot org
@ 2003-12-22 20:49 ` neil at daikokuya dot co dot uk
  2003-12-22 23:40 ` toon at moene dot indiv dot nluug dot nl
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: neil at daikokuya dot co dot uk @ 2003-12-22 20:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neil at daikokuya dot co dot uk  2003-12-22 20:37 -------
Subject: Re:  New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.

toon at moene dot indiv dot nluug dot nl wrote:-

> The Fortran options -d8, -i8 and -r8 are not passed to f951 correctly.
> 
> The option processor thinks that -d8 is a form of the -d dump options, in spite
> of the fact that there is no such  -d8 option.  -i8 is simply consumed without
> ever resurfacing. -r8 is simply an `unrecognized option'.
> 
> I tried to debug this, but got lost in all the routines that look at or mangle
> the options.  However, one thing is clear:
> 
> In options.c we find:
> 
>   { "-d8",
>     N_("Set the default real and integer kinds to double precision"),
>     OPT_d, 2, CL_F95 | CL_REJECT_NEGATIVE },
>     ^^^^^ this is wrong.

I don't believe I introduced this problem; indeed this switch is new to
me.  I suggest you speak to the g95 people.

Neil.


-- 


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
  2003-12-22 17:08 ` [Bug driver/13464] " pinskia at gcc dot gnu dot org
  2003-12-22 20:49 ` neil at daikokuya dot co dot uk
@ 2003-12-22 23:40 ` toon at moene dot indiv dot nluug dot nl
  2003-12-23  0:00 ` pinskia at gcc dot gnu dot org
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-12-22 23:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-12-22 23:22 -------
Well, this is the relevant content of fortran/lang.opt:

d8
F95 RejectNegative
Set the default real and integer kinds to double precision

That's, as far as I can see, correct.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (2 preceding siblings ...)
  2003-12-22 23:40 ` toon at moene dot indiv dot nluug dot nl
@ 2003-12-23  0:00 ` pinskia at gcc dot gnu dot org
  2003-12-23  9:02 ` neil at daikokuya dot co dot uk
                   ` (17 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23  0:00 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |tree-ssa


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (3 preceding siblings ...)
  2003-12-23  0:00 ` pinskia at gcc dot gnu dot org
@ 2003-12-23  9:02 ` neil at daikokuya dot co dot uk
  2003-12-23 14:33 ` toon at moene dot indiv dot nluug dot nl
                   ` (16 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: neil at daikokuya dot co dot uk @ 2003-12-23  9:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neil at daikokuya dot co dot uk  2003-12-23 06:39 -------
Subject: Re:  [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.

toon at moene dot indiv dot nluug dot nl wrote:-

> 
> ------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-12-22 23:22 -------
> Well, this is the relevant content of fortran/lang.opt:
> 
> d8
> F95 RejectNegative
> Set the default real and integer kinds to double precision
> 
> That's, as far as I can see, correct.

RejectNegative only applies to -f and -W switches, but it shouldn't
hurt.  You need to figure out why this is being converted to OPT_d
rather than OPT_d8 by opts.sh.

Neil.


-- 


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (4 preceding siblings ...)
  2003-12-23  9:02 ` neil at daikokuya dot co dot uk
@ 2003-12-23 14:33 ` toon at moene dot indiv dot nluug dot nl
  2003-12-24  2:39 ` neil at daikokuya dot co dot uk
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-12-23 14:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-12-23 12:59 -------
Isn't this caused by the following in opts.sh

            # If this switch takes joined arguments, back-chain all
            # subsequent switches to it for which it is a prefix.  If
            # a later switch S is a longer prefix of a switch T, T
            # will be back-chained to S in a later iteration of this
            # for() loop, which is what we want.
            if (flags[i] ~ "Joined") {
                for (j = i + 1; j < n_opts; j++) {
                    if (substr (opts[j], 1, len) != opts[i])
                        break;
                    back_chain[j] = enum;
                }
            }

and is this really what we want ?

-- 


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (5 preceding siblings ...)
  2003-12-23 14:33 ` toon at moene dot indiv dot nluug dot nl
@ 2003-12-24  2:39 ` neil at daikokuya dot co dot uk
  2003-12-24  2:40 ` toon at moene dot indiv dot nluug dot nl
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: neil at daikokuya dot co dot uk @ 2003-12-24  2:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neil at daikokuya dot co dot uk  2003-12-23 22:44 -------
Subject: Re:  [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.

toon at moene dot indiv dot nluug dot nl wrote:-

> 
> ------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-12-23 12:59 -------
> Isn't this caused by the following in opts.sh
> 
>             # If this switch takes joined arguments, back-chain all
>             # subsequent switches to it for which it is a prefix.  If
>             # a later switch S is a longer prefix of a switch T, T
>             # will be back-chained to S in a later iteration of this
>             # for() loop, which is what we want.
>             if (flags[i] ~ "Joined") {
>                 for (j = i + 1; j < n_opts; j++) {
>                     if (substr (opts[j], 1, len) != opts[i])
>                         break;
>                     back_chain[j] = enum;
>                 }
>             }
> 
> and is this really what we want ?

I believe this is what we want.  -d8 shouldn't be Joined though.

Neil.


-- 


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (6 preceding siblings ...)
  2003-12-24  2:39 ` neil at daikokuya dot co dot uk
@ 2003-12-24  2:40 ` toon at moene dot indiv dot nluug dot nl
  2003-12-24 14:53 ` neil at daikokuya dot co dot uk
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-12-24  2:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-12-23 23:48 -------
> I believe this is what we want.  -d8 shouldn't be Joined though.

Well, yes, obviously - unfortunately, it *is*:

"a prefix [for -d<letters>]"

and therefore eaten (while it shouldn't, because '8' isn't one of the <letters>).

-- 


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (7 preceding siblings ...)
  2003-12-24  2:40 ` toon at moene dot indiv dot nluug dot nl
@ 2003-12-24 14:53 ` neil at daikokuya dot co dot uk
  2004-01-11  9:10 ` neil at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: neil at daikokuya dot co dot uk @ 2003-12-24 14:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neil at daikokuya dot co dot uk  2003-12-24 06:31 -------
Subject: Re:  [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.

toon at moene dot indiv dot nluug dot nl wrote:-

> 
> ------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-12-23 23:48 -------
> > I believe this is what we want.  -d8 shouldn't be Joined though.
> 
> Well, yes, obviously - unfortunately, it *is*:
> 
> "a prefix [for -d<letters>]"
> 
> and therefore eaten (while it shouldn't, because '8' isn't one of the <letters>).

Um, -d8 is only Joined if you specified that in your .opt file.  Nothing
in opts.sh is magically adding the Joined flag for you.

-dumpbase in common.opt works fine, right?  Why can't you get d8 to work the same?
Or is -dumpbase broken too?

Neil.


-- 


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


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

* [Bug driver/13464] [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (8 preceding siblings ...)
  2003-12-24 14:53 ` neil at daikokuya dot co dot uk
@ 2004-01-11  9:10 ` neil at gcc dot gnu dot org
  2004-03-03  3:47 ` [Bug fortran/13464] [gfortran options] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: neil at gcc dot gnu dot org @ 2004-01-11  9:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|neil at daikokuya dot co dot|unassigned at gcc dot gnu
                   |uk                          |dot org
             Status|WAITING                     |NEW


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


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

* [Bug fortran/13464] [gfortran options] -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (9 preceding siblings ...)
  2004-01-11  9:10 ` neil at gcc dot gnu dot org
@ 2004-03-03  3:47 ` pinskia at gcc dot gnu dot org
  2004-03-03  6:53 ` steven at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-03  3:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-03 03:47 -------
This looks like still problem on the tree-ssa, but only for -i8 and -r8, the driver does not pass them to 
the compiler but the problem comes from fortran specific code in gfortranspec.c: lang_specific_driver.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neil at daikokuya dot co dot
                   |                            |uk
          Component|other                       |fortran
            Summary|[gfortran options] -d8, -i8 |[gfortran options] -i8 and -
                   |and -r8 not passed correctly|r8 not passed correctly to
                   |to compiler proper.         |compiler proper.


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


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

* [Bug fortran/13464] [gfortran options] -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (10 preceding siblings ...)
  2004-03-03  3:47 ` [Bug fortran/13464] [gfortran options] " pinskia at gcc dot gnu dot org
@ 2004-03-03  6:53 ` steven at gcc dot gnu dot org
  2004-08-25 13:04 ` [Bug fortran/13464] " c dot lemmen at fz-juelich dot de
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-03-03  6:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-03-03 06:53 -------
i'll have a look. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |steven at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug fortran/13464] -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (11 preceding siblings ...)
  2004-03-03  6:53 ` steven at gcc dot gnu dot org
@ 2004-08-25 13:04 ` c dot lemmen at fz-juelich dot de
  2004-11-21 16:18 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: c dot lemmen at fz-juelich dot de @ 2004-08-25 13:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From c dot lemmen at fz-juelich dot de  2004-08-25 13:04 -------
Well, those options are still not recognized as of gcc version 3.5.0 20040823
In reply to <a
href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13464#c2>#2</a>, the g95
people <emph>do not</emph> have this problem.

-- 


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


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

* [Bug fortran/13464] -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (12 preceding siblings ...)
  2004-08-25 13:04 ` [Bug fortran/13464] " c dot lemmen at fz-juelich dot de
@ 2004-11-21 16:18 ` pinskia at gcc dot gnu dot org
  2005-01-07 21:58 ` [Bug driver/13464] " toon at moene dot indiv dot nluug dot nl
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-21 16:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-21 16:18 -------
*** Bug 18598 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paul dot richard dot thomas
                   |                            |at cea dot fr


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper.
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (13 preceding siblings ...)
  2004-11-21 16:18 ` pinskia at gcc dot gnu dot org
@ 2005-01-07 21:58 ` toon at moene dot indiv dot nluug dot nl
  2005-02-20  9:33 ` [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2005-01-07 21:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2005-01-07 21:58 -------
This really, really is a driver issue.

AFAICS, we stick to the correct definitions ...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|fortran                     |driver


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (14 preceding siblings ...)
  2005-01-07 21:58 ` [Bug driver/13464] " toon at moene dot indiv dot nluug dot nl
@ 2005-02-20  9:33 ` pinskia at gcc dot gnu dot org
  2005-02-22 21:40 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-20  9:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-19 23:13 -------
*** Bug 20096 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dir at lanl dot gov


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (15 preceding siblings ...)
  2005-02-20  9:33 ` [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work pinskia at gcc dot gnu dot org
@ 2005-02-22 21:40 ` pinskia at gcc dot gnu dot org
  2005-03-08 23:52 ` sgk at troutmask dot apl dot washington dot edu
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22 21:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-22 15:55 -------
*** Bug 20144 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (16 preceding siblings ...)
  2005-02-22 21:40 ` pinskia at gcc dot gnu dot org
@ 2005-03-08 23:52 ` sgk at troutmask dot apl dot washington dot edu
  2005-03-08 23:53 ` sgk at troutmask dot apl dot washington dot edu
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2005-03-08 23:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sgk at troutmask dot apl dot washington dot edu  2005-03-08 23:52 -------
The gfortran frontend defines the two options -i8 and -r8 in gfortran/lang.opt. 
gcc/opts.sh appears to process lang.opt without a problem, because the produced
options.h file contains OPT_i8 and OPT_r8.  However, neither -i8 nor -r8 is
passed to gfc_handle_option, which is defined to LANG_HOOKS_HANDLE_OPTION
in f95-lang.c.
  
I have added some debugging printfs to gfc_handle_option
  
int
gfc_handle_option (size_t scode, const char *arg, int value)
{
  int result = 1;
  enum opt_code code = (enum opt_code) scode;
  
 printf("code = %d ", code);
 if (arg != NULL) printf("arg = %s ", arg); 
 printf("value = %d\n", value);
  
The execution of gfortran shows that gfc_handle_option is
never called if -i8 or -r8 is specified.
  
troutmask:sgk[307] gfc41 -static -o kl -d8 kl.f90
code = 138 value = 1
troutmask:sgk[308] gfc41 -static -o kl -r8 kl.f90
gfc41: unrecognized option '-r8'
troutmask:sgk[309] gfc41 -static -o kl -i8 kl.f90

Note, -d8 is OPT_d8 in options.h and it is passed to gfc_handle_option.

So, it appears that some magic parsing of command line arguments occurs
before gfc_handle_option is called.  Is there someway to inhibit this
magic??

BTW, I have a patch that actually makes -d8 work.

-- 


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (17 preceding siblings ...)
  2005-03-08 23:52 ` sgk at troutmask dot apl dot washington dot edu
@ 2005-03-08 23:53 ` sgk at troutmask dot apl dot washington dot edu
  2005-03-11  5:31 ` wilson at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2005-03-08 23:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sgk at troutmask dot apl dot washington dot edu  2005-03-08 23:53 -------
*** Bug 20390 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sgk at troutmask dot apl dot
                   |                            |washington dot edu


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (18 preceding siblings ...)
  2005-03-08 23:53 ` sgk at troutmask dot apl dot washington dot edu
@ 2005-03-11  5:31 ` wilson at gcc dot gnu dot org
  2005-04-21  5:04 ` mmitchel at gcc dot gnu dot org
  2005-04-21  5:29 ` pinskia at gcc dot gnu dot org
  21 siblings, 0 replies; 23+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-03-11  5:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2005-03-11 05:31 -------
See
    http://gcc.gnu.org/ml/gcc/2005-03/msg00513.html
for relevant comments.

-- 


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (19 preceding siblings ...)
  2005-03-11  5:31 ` wilson at gcc dot gnu dot org
@ 2005-04-21  5:04 ` mmitchel at gcc dot gnu dot org
  2005-04-21  5:29 ` pinskia at gcc dot gnu dot org
  21 siblings, 0 replies; 23+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-21  5:04 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |4.0.1


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


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

* [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work
  2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
                   ` (20 preceding siblings ...)
  2005-04-21  5:04 ` mmitchel at gcc dot gnu dot org
@ 2005-04-21  5:29 ` pinskia at gcc dot gnu dot org
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-21  5:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-21 05:06 -------
These options has changed to -fdefault-double-8, -fdefault-integer-8, and -fdefault-real-8. so 
closing as will not fix.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WONTFIX
   Target Milestone|4.0.1                       |4.0.0


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


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

end of thread, other threads:[~2005-04-21  5:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-22 12:03 [Bug driver/13464] New: [gfortran options] -d8, -i8 and -r8 not passed correctly to compiler proper toon at moene dot indiv dot nluug dot nl
2003-12-22 17:08 ` [Bug driver/13464] " pinskia at gcc dot gnu dot org
2003-12-22 20:49 ` neil at daikokuya dot co dot uk
2003-12-22 23:40 ` toon at moene dot indiv dot nluug dot nl
2003-12-23  0:00 ` pinskia at gcc dot gnu dot org
2003-12-23  9:02 ` neil at daikokuya dot co dot uk
2003-12-23 14:33 ` toon at moene dot indiv dot nluug dot nl
2003-12-24  2:39 ` neil at daikokuya dot co dot uk
2003-12-24  2:40 ` toon at moene dot indiv dot nluug dot nl
2003-12-24 14:53 ` neil at daikokuya dot co dot uk
2004-01-11  9:10 ` neil at gcc dot gnu dot org
2004-03-03  3:47 ` [Bug fortran/13464] [gfortran options] " pinskia at gcc dot gnu dot org
2004-03-03  6:53 ` steven at gcc dot gnu dot org
2004-08-25 13:04 ` [Bug fortran/13464] " c dot lemmen at fz-juelich dot de
2004-11-21 16:18 ` pinskia at gcc dot gnu dot org
2005-01-07 21:58 ` [Bug driver/13464] " toon at moene dot indiv dot nluug dot nl
2005-02-20  9:33 ` [Bug driver/13464] -i8 and -r8 not passed correctly to compiler proper. and -d8 does not work pinskia at gcc dot gnu dot org
2005-02-22 21:40 ` pinskia at gcc dot gnu dot org
2005-03-08 23:52 ` sgk at troutmask dot apl dot washington dot edu
2005-03-08 23:53 ` sgk at troutmask dot apl dot washington dot edu
2005-03-11  5:31 ` wilson at gcc dot gnu dot org
2005-04-21  5:04 ` mmitchel at gcc dot gnu dot org
2005-04-21  5:29 ` pinskia 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).