[RFA] Dependency output with -MMD/-MD and -o
Jeffrey A Law
law@redhat.com
Tue Jan 9 18:23:00 GMT 2001
In message < 20010109142939.G1474@daikokuya.demon.co.uk >you write:
> This is about 75% of Nathan's patch of a week ago, trivially tweaked
> for recent updates. If -o is specified, the dependency file is named
> after it, and put in its directory; only the suffix is changed.
>
> 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.
>
> Zack, do you want to give a rationale for your extra dependencies
> proposal in projects/cpplib.html? Does it require an extra switch?
> If you give full details, and it's simple to do, I'll squeeze it in.
>
> Bootstrapped i586 Linux. OK to commit?
>
> Neil.
>
> 2001-01-04 Nathan Sidwell <nathan@codesourcery.com>
>
> * gcc.c (cpp_options): Set MD file name from output
> filename, if specified.
> (suffix_subst): New static variable.
> (do_spec): Clear it.
> (do_spec_1, case '.'): Handle new `%.suffix' spec.
> Clear it.
> (give_switch): Handle suffix_subst.
This is fine. Please install this patch.
Thanks,
jeff
More information about the Gcc-patches
mailing list