This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -MD together with -save-temps broken
Am Don, 2002-03-14 um 00.08 schrieb Neil Booth:
> I'm not sure what you expect this to do, but it looks like you expect
> the dependency output to go to .deps/glib-genmarshal.pp. I don't
> believe that any prior version of GCC allowed you to name dependency
> output with -MD; but I could be wrong. To the best of my knowledge the
> only way to get the behaviour you appear to want was with the then
> undocumented environment variable SUNPRO_DEPENDENCIES.
This seems to be common behaviour and can be found for instance in glib.
It indeed outputs the dependencies to the passed name and works fine
with all versions prior and including 3.1. I haven't tested 2.95.4 with
this switch and -save-temps but I believe that it worked for me at
some time as glib is using since quite some time and it's common
practice for me to build with -save-temps to have a comparison base
for changes.
> 3.0.x and higher allow you to use -MF to name dependency output,
> though only 3.0.5 (CVS) is consistent with 3.1 and 3.2 in every way;
> sadly 3.0.4 has different semantics. I think 3.0.5 (CVS) is very close
> in behaviour to 2.95.x.
Well, I will find a workaround but it would be nice if this undocumented
behaviour could either be fixed and documented or be removed with the
conventinional standard error for unknown switches.
--
Servus,
Daniel