------- 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