This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug preprocessor/35458] Dependency generation (-M) does not quote '#' in filenames



------- Comment #3 from markus dot milleder at generali dot at  2008-03-04 14:10 -------
(In reply to comment #2)
> Please note that quoting # in makefiles is not portable, but only supported
> by some make implementations.  For example, with
>    foo: a\#b
>    bar: c#d
> 
> AIX make will assume 'foo' depends on 'a\', and 'bar' on 'c'.
> Likewise HP-UX make.  Consequently, both of these make's will error out on
> either line of:
>   a#b:
>   a\#b:
> 
So it seems to me the patch is an improvement for make versions that understand
quoting and does not worsen the situation for those that do not, i.e. files
containing # are broken on e.g. AIX without the patch and with it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35458


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