This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] Dependency output with -MMD/-MD and -o


Nathan Sidwell wrote:-

> > If there is no -o file specified, we still put the .d file in the
> > current directory, named after the .c file.  I think this should be
> > changed to use its full path, too.  This will be a follow-up patch,
> > and then I'm done.

> I disagree. I think the .d file should go in the same place as the
> output file. I.e. generating the .d name should use the output file
> name, however that is obtained, as a starting point. I think it would
> be a surprise that given 'subdir/foo.c' to get 'foo.o' and
> 'subdir/foo.d'.

Ah, OK, great.  I agree, sorry about the thinko.  No more to do :-)

Neil.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]