public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31588]  New: gfortran should be able to output Makefile dependencies with -M* options
@ 2007-04-16  9:21 fxcoudert at gcc dot gnu dot org
  2007-04-16  9:22 ` [Bug fortran/31588] " fxcoudert at gcc dot gnu dot org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-16  9:21 UTC (permalink / raw)
  To: gcc-bugs

gcc has various -M options to create Makefile dependencies for automatic
dependency tracking, which is very nice for compilation of large projects.
gfortran should be able to do the same. Here are examples with g95:

$ cat a.f90 
module foo
  integer, parameter :: bar = 42
end module foo
$ g95 -M a.f90     
a.o foo.mod: a.f90
$ cat a.F90
include "foo.inc"

module foo
  integer, parameter :: bar = 42
end module foo
$ g95 -M a.F90
a.o foo.mod: a.F90 foo.inc


-- 
           Summary: gfortran should be able to output Makefile dependencies
                    with -M* options
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
  2007-04-16  9:22 ` [Bug fortran/31588] " fxcoudert at gcc dot gnu dot org
@ 2007-04-16  9:22 ` fxcoudert at gcc dot gnu dot org
  2007-04-16 10:02 ` dfranke at gcc dot gnu dot org
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-16  9:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-16 10:21:45
               date|                            |


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
@ 2007-04-16  9:22 ` fxcoudert at gcc dot gnu dot org
  2007-04-16  9:22 ` fxcoudert at gcc dot gnu dot org
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-16  9:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fxcoudert at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-04-16 10:21:45         |2007-04-16 10:22:05
               date|                            |


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
  2007-04-16  9:22 ` [Bug fortran/31588] " fxcoudert at gcc dot gnu dot org
  2007-04-16  9:22 ` fxcoudert at gcc dot gnu dot org
@ 2007-04-16 10:02 ` dfranke at gcc dot gnu dot org
  2007-04-16 10:06 ` fxcoudert at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-04-16 10:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dfranke at gcc dot gnu dot org  2007-04-16 11:02 -------
FX, +5 karma for this proposal :)
How about USE association? For example

$> cat a.f90
module a
[...]
end module

$> cat b.f90
[...]
USE a
[...]

$> gfortran -M a.f90
a.o a.mod: a.f90

$> gfortran -M b.f90
b.o: a.mod b.f90

(Don't have g95 to check its output)


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-04-16 10:02 ` dfranke at gcc dot gnu dot org
@ 2007-04-16 10:06 ` fxcoudert at gcc dot gnu dot org
  2007-04-16 14:28 ` burnus at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-16 10:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-04-16 11:06 -------
(In reply to comment #1)
> How about USE association?

That's also part of the plan.


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-04-16 10:06 ` fxcoudert at gcc dot gnu dot org
@ 2007-04-16 14:28 ` burnus at gcc dot gnu dot org
  2007-06-04 17:20 ` aldot at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-04-16 14:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2007-04-16 15:28 -------
What about
  include "foo.f90"
and
#include "bar.f90"
(g95 handles both)

And what about
  include "z.f90"
where "z.f90" is foo/z.f90 and is found via
gfortran -Jfoo ?
(g95 does not handle this and writes: b.o b.mod: b.F90 z.f90)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-04-16 14:28 ` burnus at gcc dot gnu dot org
@ 2007-06-04 17:20 ` aldot at gcc dot gnu dot org
  2007-06-04 17:40 ` fxcoudert at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: aldot at gcc dot gnu dot org @ 2007-06-04 17:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from aldot at gcc dot gnu dot org  2007-06-04 17:20 -------
fx, are you still working on this?

yet another reason why "-M" as an alias for -J should be dropped and instead
proper -M dependency handling should be added is this:

$ echo end > foo.f90 && gfortran -o main  foo.f90 -v -M
Segmentation fault

i.e. it isn't user-safe with 4.1.2, 4.2.0 and trunk.


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldot at gcc dot gnu dot org


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-06-04 17:20 ` aldot at gcc dot gnu dot org
@ 2007-06-04 17:40 ` fxcoudert at gcc dot gnu dot org
  2007-06-04 20:50 ` rep dot dot dot nop at gmail dot com
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-06-04 17:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2007-06-04 17:39 -------
(In reply to comment #4)
> fx, are you still working on this?

Not actively. It's probably not so hard, though: read the file, like we do with
-fsyntax-only mode, and parse #file headers.

> yet another reason why "-M" as an alias for -J should be dropped and instead
> proper -M dependency handling should be added is this:
> 
> $ echo end > foo.f90 && gfortran -o main  foo.f90 -v -M
> Segmentation fault

That's another one. File a new PR (it's probably a simple check that's missing
in gfc_handle_module_path_options()).


-- 

fxcoudert at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-06-04 17:40 ` fxcoudert at gcc dot gnu dot org
@ 2007-06-04 20:50 ` rep dot dot dot nop at gmail dot com
  2007-10-06 21:36 ` tkoenig at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: rep dot dot dot nop at gmail dot com @ 2007-06-04 20:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rep dot dot dot nop at gmail dot com  2007-06-04 20:50 -------
Subject: Re:  gfortran should be able to output Makefile dependencies with -M*
options

On Mon, Jun 04, 2007 at 05:39:48PM -0000, fxcoudert at gcc dot gnu dot org
wrote:
>
>
>------- Comment #5 from fxcoudert at gcc dot gnu dot org  2007-06-04 17:39 -------
>(In reply to comment #4)
>> fx, are you still working on this?
>
>Not actively. It's probably not so hard, though: read the file, like we do with
>-fsyntax-only mode, and parse #file headers.

Yes, without looking i was thinking about for each file, populate a list
of provides/needs mods and emit them when a file is done.

>> yet another reason why "-M" as an alias for -J should be dropped and instead
>> proper -M dependency handling should be added is this:
>> 
>> $ echo end > foo.f90 && gfortran -o main  foo.f90 -v -M
>> Segmentation fault
>
>That's another one. File a new PR (it's probably a simple check that's missing
>in gfc_handle_module_path_options()).

I did not look whether it is calling strlen on NULL or another spot in
the option handling, but i will not look at the current meaning of -M,
so please feel free to file this if you think it's worth noting it.
Thanks,


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-06-04 20:50 ` rep dot dot dot nop at gmail dot com
@ 2007-10-06 21:36 ` tkoenig at gcc dot gnu dot org
  2008-01-30 22:57 ` dfranke at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-10-06 21:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tkoenig at gcc dot gnu dot org  2007-10-06 21:36 -------
For once, the segfault is in the
gfortran driver, not the f951 binary.

Backtrace, plus some more debug info:

$ gdb ~/bin/gfortran 
GNU gdb 6.6.90.20070912-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb)  r foo.f90 -v -M
Starting program: /home/ig25/bin/gfortran foo.f90 -v -M

Program received signal SIGSEGV, Segmentation fault.
0xb7e23513 in strlen () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7e23513 in strlen () from /lib/i686/cmov/libc.so.6
#1  0x08056b56 in lang_specific_driver (in_argc=0xbfde2b08, in_argv=0xbfde2b04,
in_added_libraries=0x8079b94)
    at ../../../gcc/trunk/gcc/fortran/gfortranspec.c:431
#2  0x0804f910 in process_command (argc=4, argv=0x807e938) at
../../../gcc/trunk/gcc/gcc.c:3581
#3  0x0805364e in main (argc=4, argv=0xbfde2c54) at
../../../gcc/trunk/gcc/gcc.c:6244
(gdb) up
#1  0x08056b56 in lang_specific_driver (in_argc=0xbfde2b08, in_argv=0xbfde2b04,
in_added_libraries=0x8079b94)
    at ../../../gcc/trunk/gcc/fortran/gfortranspec.c:431
431                   p = XNEWVEC (char, strlen (argv[i + 1]) + 2);
(gdb) p i   
$1 = 4
(gdb) p argv[0]
$2 = 0xbfde47c5 "/home/ig25/bin/gfortran"
(gdb) p argv[1]
$3 = 0xbfde47dd "foo.f90"
(gdb) p argv[2]
$4 = 0xbfde47e5 "-v"
(gdb) p argv[3]
$5 = 0xbfde47e8 "-M"
(gdb) p argv[4]
$6 = 0x0


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-10-06 21:36 ` tkoenig at gcc dot gnu dot org
@ 2008-01-30 22:57 ` dfranke at gcc dot gnu dot org
  2008-01-31  1:47 ` fxcoudert at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-01-30 22:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from dfranke at gcc dot gnu dot org  2008-01-30 22:22 -------
> Not actively. It's probably not so hard, though: read the file, like we 
> do with -fsyntax-only mode, and parse #file headers.

FX, I'm lost here. The flag_syntax_only is not used anywhere in the fortran
directory, but only in places like gcc/toplev.c(compile_file) to, as I
understand it, e.g. avoid code generation. As I see it, gfortran never knows it
does syntax checking only?!

What exactly do you mean by "#file headers"? Preprocessor include directives as
`#include "foo.inc"`?

Last but not least: did you intend to use the mkdeps-interface of libcpp or to
craft something on your own?


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2008-01-30 22:57 ` dfranke at gcc dot gnu dot org
@ 2008-01-31  1:47 ` fxcoudert at gcc dot gnu dot org
  2008-03-26  3:33 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-01-31  1:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from fxcoudert at gcc dot gnu dot org  2008-01-31 00:26 -------
(In reply to comment #8)
> As I see it, gfortran never knows it does syntax checking only?!

Exactly. 

> What exactly do you mean by "#file headers"? Preprocessor include directives as
> `#include "foo.inc"`?

Yes. These are some of the dependencies, but not all. Fortran include
directives are others (probably not too hard to handle), modules are yet
another one.

> Last but not least: did you intend to use the mkdeps-interface of libcpp or to
> craft something on your own?

gfortran doesn't use libcpp, but it probably should. There's a PR about that,
and I tried to make the switch at some point (I was still a newcomer to
gfortran development at that time, so probably somewhere around 4.1/4.2), but
didn't succeed.


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2008-01-31  1:47 ` fxcoudert at gcc dot gnu dot org
@ 2008-03-26  3:33 ` pinskia at gcc dot gnu dot org
  2008-03-26  3:36 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-26  3:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2008-03-26 03:32 -------
Subject: Bug 31588

Author: pinskia
Date: Wed Mar 26 03:32:13 2008
New Revision: 133541

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133541
Log:
2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/31588
        * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
        error_mark_node's.

2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/31588
        * g++.dg/ext/altivec-15.C: New testcase.


Added:
    trunk/gcc/testsuite/g++.dg/ext/altivec-15.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000-c.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2008-03-26  3:33 ` pinskia at gcc dot gnu dot org
@ 2008-03-26  3:36 ` pinskia at gcc dot gnu dot org
  2008-05-25 22:56 ` dfranke at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-26  3:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2008-03-26 03:35 -------
Ignore comment #10, I entered the wrong number, it should have been 31558.


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2008-03-26  3:36 ` pinskia at gcc dot gnu dot org
@ 2008-05-25 22:56 ` dfranke at gcc dot gnu dot org
  2010-05-03 18:10 ` dfranke at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-05-25 22:56 UTC (permalink / raw)
  To: gcc-bugs



-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dfranke at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-04-16 10:22:05         |2008-05-25 22:55:39
               date|                            |


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2008-05-25 22:56 ` dfranke at gcc dot gnu dot org
@ 2010-05-03 18:10 ` dfranke at gcc dot gnu dot org
  2010-06-12 21:06 ` dfranke at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-03 18:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from dfranke at gcc dot gnu dot org  2010-05-03 18:09 -------
*** Bug 43954 has been marked as a duplicate of this bug. ***


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2010-05-03 18:10 ` dfranke at gcc dot gnu dot org
@ 2010-06-12 21:06 ` dfranke at gcc dot gnu dot org
  2010-06-12 21:46 ` dfranke at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-06-12 21:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from dfranke at gcc dot gnu dot org  2010-06-12 21:06 -------
Would it be ok to require '-cpp' with '-M' or shall '-M' work without explicit
preprocessing enabled? In the latter case, would it be ok to enable
preprocessing implicitly?


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2010-06-12 21:06 ` dfranke at gcc dot gnu dot org
@ 2010-06-12 21:46 ` dfranke at gcc dot gnu dot org
  2010-06-13 16:05 ` dfranke at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-06-12 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from dfranke at gcc dot gnu dot org  2010-06-12 21:46 -------
(In reply to comment #13)
> Would it be ok to require '-cpp' with '-M' or shall '-M' work without explicit
> preprocessing enabled? In the latter case, would it be ok to enable
> preprocessing implicitly?

"Passing -M to the driver implies -E" - so much for that.


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (16 preceding siblings ...)
  2010-06-12 21:46 ` dfranke at gcc dot gnu dot org
@ 2010-06-13 16:05 ` dfranke at gcc dot gnu dot org
  2010-06-13 16:07 ` dfranke at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-06-13 16:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from dfranke at gcc dot gnu dot org  2010-06-13 16:05 -------
Subject: Bug 31588

Author: dfranke
Date: Sun Jun 13 16:05:01 2010
New Revision: 160684

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160684
Log:
2010-06-13  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/31588
        PR fortran/43954
        * gfortranspec.c (lang_specific_driver): Removed deprecation
        warning for -M.
        * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
        * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
        * cpp.h (gfc_cpp_makedep): New.
        (gfc_cpp_add_dep): New.
        (gfc_cpp_add_target): New.
        * cpp.c (gfc_cpp_option): Add deps* members.
        (gfc_cpp_makedep): New.
        (gfc_cpp_add_dep): New.
        (gfc_cpp_add_target): New.
        (gfc_cpp_init_options): Initialize new options.
        (gfc_cpp_handle_option): Handle new options.
        (gfc_cpp_post_options): Map new options to libcpp-options.
        (gfc_cpp_init): Handle deferred -MQ and -MT options.
        (gfc_cpp_done): If requested, write dependencies to file.
        * module.c (gfc_dump_module): Add a module filename as target.
        * scanner.c (open_included_file): New parameter system; add the
        included file as dependency.
        (gfc_open_included_file): Add the included file as dependency.
        (gfc_open_intrinsic_module): Likewise.
        * invoke.texi: Removed deprecation warning for -M.
        * gfortran.texi: Removed Makefile-dependencies project.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/cpp.c
    trunk/gcc/fortran/cpp.h
    trunk/gcc/fortran/gfortran.texi
    trunk/gcc/fortran/gfortranspec.c
    trunk/gcc/fortran/invoke.texi
    trunk/gcc/fortran/lang-specs.h
    trunk/gcc/fortran/lang.opt
    trunk/gcc/fortran/module.c
    trunk/gcc/fortran/scanner.c


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (17 preceding siblings ...)
  2010-06-13 16:05 ` dfranke at gcc dot gnu dot org
@ 2010-06-13 16:07 ` dfranke at gcc dot gnu dot org
  2010-08-07 16:52 ` jvdelisle at gcc dot gnu dot org
  2010-08-08  1:59 ` jvdelisle at gcc dot gnu dot org
  20 siblings, 0 replies; 22+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-06-13 16:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from dfranke at gcc dot gnu dot org  2010-06-13 16:07 -------
Fixed in trunk. See PR44526 for a follow-up request for libcpp.
Closing.


-- 

dfranke at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (18 preceding siblings ...)
  2010-06-13 16:07 ` dfranke at gcc dot gnu dot org
@ 2010-08-07 16:52 ` jvdelisle at gcc dot gnu dot org
  2010-08-08  1:59 ` jvdelisle at gcc dot gnu dot org
  20 siblings, 0 replies; 22+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2010-08-07 16:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from jvdelisle at gcc dot gnu dot org  2010-08-07 16:52 -------
Subject: Bug 31588

Author: jvdelisle
Date: Sat Aug  7 16:51:55 2010
New Revision: 162980

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162980
Log:
2010-08-07  Daniel Franke  <franke.daniel@gmail.com>

        2010-06-13  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/31588
        PR fortran/43954
        Backport from mainline:
        * gfortranspec.c (lang_specific_driver): Removed deprecation
        warning for -M.
        * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
        * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
        * cpp.h (gfc_cpp_makedep): New.
        (gfc_cpp_add_dep): New.
        (gfc_cpp_add_target): New.
        * cpp.c (gfc_cpp_option): Add deps* members.
        (gfc_cpp_makedep): New.
        (gfc_cpp_add_dep): New.
        (gfc_cpp_add_target): New.
        (gfc_cpp_init_options): Initialize new options.
        (gfc_cpp_handle_option): Handle new options.
        (gfc_cpp_post_options): Map new options to libcpp-options.
        (gfc_cpp_init): Handle deferred -MQ and -MT options.
        (gfc_cpp_done): If requested, write dependencies to file.
        * module.c (gfc_dump_module): Add a module filename as target.
        * scanner.c (open_included_file): New parameter system; add the
        included file as dependency.
        (gfc_open_included_file): Add the included file as dependency.
        (gfc_open_intrinsic_module): Likewise.
        * invoke.texi: Removed deprecation warning for -M.
        * gfortran.texi: Removed Makefile-dependencies project.

Modified:
    branches/gcc-4_5-branch/gcc/fortran/ChangeLog
    branches/gcc-4_5-branch/gcc/fortran/cpp.c
    branches/gcc-4_5-branch/gcc/fortran/cpp.h
    branches/gcc-4_5-branch/gcc/fortran/gfortran.texi
    branches/gcc-4_5-branch/gcc/fortran/gfortranspec.c
    branches/gcc-4_5-branch/gcc/fortran/invoke.texi
    branches/gcc-4_5-branch/gcc/fortran/lang-specs.h
    branches/gcc-4_5-branch/gcc/fortran/lang.opt
    branches/gcc-4_5-branch/gcc/fortran/module.c
    branches/gcc-4_5-branch/gcc/fortran/scanner.c


-- 


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


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

* [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
  2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
                   ` (19 preceding siblings ...)
  2010-08-07 16:52 ` jvdelisle at gcc dot gnu dot org
@ 2010-08-08  1:59 ` jvdelisle at gcc dot gnu dot org
  20 siblings, 0 replies; 22+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2010-08-08  1:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from jvdelisle at gcc dot gnu dot org  2010-08-08 01:59 -------
Subject: Bug 31588

Author: jvdelisle
Date: Sun Aug  8 01:59:15 2010
New Revision: 162990

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162990
Log:
2010-08-07  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/31588
        PR fortran/43954
        Backport from mainline:
        * gfortranspec.c (lang_specific_driver): Removed deprecation
        warning for -M.
        * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
        * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
        * cpp.h (gfc_cpp_makedep): New.
        (gfc_cpp_add_dep): New.
        (gfc_cpp_add_target): New.
        * cpp.c (gfc_cpp_option): Add deps* members.
        (gfc_cpp_makedep): New.
        (gfc_cpp_add_dep): New.
        (gfc_cpp_add_target): New.
        (gfc_cpp_init_options): Initialize new options.
        (gfc_cpp_handle_option): Handle new options.
        (gfc_cpp_post_options): Map new options to libcpp-options.
        (gfc_cpp_init): Handle deferred -MQ and -MT options.
        (gfc_cpp_done): If requested, write dependencies to file.
        * module.c (gfc_dump_module): Add a module filename as target.
        * scanner.c (open_included_file): New parameter system; add the
        included file as dependency.
        (gfc_open_included_file): Add the included file as dependency.
        (gfc_open_intrinsic_module): Likewise.
        * invoke.texi: Removed deprecation warning for -M.
        * gfortran.texi: Removed Makefile-dependencies project.

Modified:
    branches/gcc-4_4-branch/gcc/fortran/ChangeLog
    branches/gcc-4_4-branch/gcc/fortran/cpp.c
    branches/gcc-4_4-branch/gcc/fortran/cpp.h
    branches/gcc-4_4-branch/gcc/fortran/gfortran.texi
    branches/gcc-4_4-branch/gcc/fortran/gfortranspec.c
    branches/gcc-4_4-branch/gcc/fortran/invoke.texi
    branches/gcc-4_4-branch/gcc/fortran/lang-specs.h
    branches/gcc-4_4-branch/gcc/fortran/lang.opt
    branches/gcc-4_4-branch/gcc/fortran/module.c
    branches/gcc-4_4-branch/gcc/fortran/scanner.c


-- 


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


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

end of thread, other threads:[~2010-08-08  1:59 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16  9:21 [Bug fortran/31588] New: gfortran should be able to output Makefile dependencies with -M* options fxcoudert at gcc dot gnu dot org
2007-04-16  9:22 ` [Bug fortran/31588] " fxcoudert at gcc dot gnu dot org
2007-04-16  9:22 ` fxcoudert at gcc dot gnu dot org
2007-04-16 10:02 ` dfranke at gcc dot gnu dot org
2007-04-16 10:06 ` fxcoudert at gcc dot gnu dot org
2007-04-16 14:28 ` burnus at gcc dot gnu dot org
2007-06-04 17:20 ` aldot at gcc dot gnu dot org
2007-06-04 17:40 ` fxcoudert at gcc dot gnu dot org
2007-06-04 20:50 ` rep dot dot dot nop at gmail dot com
2007-10-06 21:36 ` tkoenig at gcc dot gnu dot org
2008-01-30 22:57 ` dfranke at gcc dot gnu dot org
2008-01-31  1:47 ` fxcoudert at gcc dot gnu dot org
2008-03-26  3:33 ` pinskia at gcc dot gnu dot org
2008-03-26  3:36 ` pinskia at gcc dot gnu dot org
2008-05-25 22:56 ` dfranke at gcc dot gnu dot org
2010-05-03 18:10 ` dfranke at gcc dot gnu dot org
2010-06-12 21:06 ` dfranke at gcc dot gnu dot org
2010-06-12 21:46 ` dfranke at gcc dot gnu dot org
2010-06-13 16:05 ` dfranke at gcc dot gnu dot org
2010-06-13 16:07 ` dfranke at gcc dot gnu dot org
2010-08-07 16:52 ` jvdelisle at gcc dot gnu dot org
2010-08-08  1:59 ` jvdelisle 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).