delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/13:15:11

Message-ID: <B0000029905@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Date: Mon, 11 May 1998 20:14:31 +0300
MIME-Version: 1.0
Subject: Re: / and \ in gcc2.8.1
CC: djgpp AT delorie DOT com
References: <B0000029891 AT stargate DOT astr DOT lu DOT lv>
In-reply-to: <Pine.SUN.3.91.980511184404.20831A-100000@is>

Date sent:      	Mon, 11 May 1998 18:47:42 +0300 (IDT)
Subject:        	Re: / and \ in gcc2.8.1

> > For dependencies is looks that slightly modifying 2 files cccp.c and 
> > prefix.c is enough:
> 
> That's okay, but I would suggest to grep the sources once again (unless 
> you already did that) to make sure there are no more '/' in other places 
> which aren't covered by these two changes.

DOS works Ok with both '\\' and '/'. So perhaps it's enough to fix the names 
which appears in output. Defining DIR_SEPARATOR='\\' forces gcc to
understand correctly both separators, but '\\' appears in output what I don't 
want. Problem with TMPDIR is fixed so.

Perhaps output produced by gcc option '-v' is not dangerous as it is used
for diagnostic purposes only, so there is no need to fix it.

The second place is output of cpp.exe (names of primary file and included
ones). The names of these files is used to generate dependencies and
also for debug information when option -gstabs is used. So I think we should
provide that only '/' appears in output. Patching prefix.c and cccp.c provides
this.

I think that should be enough. 
> 
> > If You want I can send modified gcc.exe and cpp.exe (zip archive about 140K)
> 
> Thanks, but I don't need them (I haven't installed 2.8.1 yet).  I think 
> uploading the corrected zip files to SimTel is really important, though.
> 

Only some days are gone since upload of previous archives. Perhaps we 
must give some time for other problems to appear. 

For gcc I'm using as separator practically only '/' so I didn't notice the
problems we are discussing now about. 

If You are going to install gcc-2.8.1 then fixed executables are in archive
at URL  http://www.lanet.lv/~pavenis/gccfix.zip

Andris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019