This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/35458] Dependency generation (-M) does not quote '#' in filenames
- From: "rwild at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2008 13:53:58 -0000
- Subject: [Bug preprocessor/35458] Dependency generation (-M) does not quote '#' in filenames
- References: <bug-35458-15857@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rwild at gcc dot gnu dot org 2008-03-04 13:53 -------
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:
--
rwild at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Ralf dot Wildenhues at gmx
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35458