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]

Re: cpp mishandles \ in filenames


On Thu, Jan 10, 2002 at 04:19:58PM -0800, mike stump wrote:
> Someone broke filenames with \ in them when they turned on the new
> preprocessor.  This used to work exactly this way in the old
> preprocessor.  This restores the functionality.  Without this windows
> hosted tools with native filenames are completely screwed.

The "string constant" on a #-line is interpreted the same way as a
double-quote include, i.e. \ escapes are *not* interpreted.  Try your
test again with -S -save-temps, you will see that the proper .file
string appears in the assembly output.

I do not see what else you could mean by "mishandles \ in filenames."
Please clarify.

zw


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