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: cpplib: Implement -MT <target>


>>>>> "Zack" == Zack Weinberg <zackw@Stanford.EDU> writes:

Zack> I should warn you that the current semantics of deps_add_target
Zack> are wrong for -MT.  It tries to quote dollar signs, spaces,
Zack> etc. in its argument, which means you can't write something like

Zack>   -MT '$(objpfx)foo.o $(objpfx)foo.os $(objpfx)foo.op'

Zack> and have it do what you expect.  [Glibc needs to do just that - it's
Zack> not a theoretical problem.]

Sometimes you want quoting and sometimes not.

I think automake will always want it.  That's because it is
manipulating filenames and not introducing variables or anything like
that.

We could add quoting to automake, I guess, but that seems gross.

What if we had -MT do quoting and -MQ to not do quoting?

Tom

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