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]
Other format: [Raw text]

[patch]: Fix argv[0] for dos based filesystem


Hi,

this patch is a work-a-round for the problem in spec-file parsing for
dos based file system in gcc.c (and additionally fix this for
cc1,cc1plus,...). The spec-file parser eats backslashes, because it
assumes, that they are escape sequences. For environment variables the
pre-escape by back-slashes is done, but for the relative targets on
dos based file systems the argv[0] isn't escaped.

ChangeLog

2008-05-18  Kai Tietz  <kai.tietz@onevision.com>

	* gcc.c (main): Replace backslashes by slashes
	for dos based file systems.
	* main.c (main): Likewise.

Is this patch ok for apply?

Cheers,
  Kai

-- 
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: dosbase.txt
Description: Text document


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