www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/13/05:31:50

Date: Thu, 13 Nov 1997 12:30:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Soeren Sandmann <sandmann AT daimi DOT aau DOT dk>
cc: djgpp AT delorie DOT com
Subject: Re: GCC -dr?
In-Reply-To: <64cpvl$et4$1@nf.aau.dk>
Message-ID: <Pine.SUN.3.91.971113122947.23305Q-100000@is>
MIME-Version: 1.0

On 12 Nov 1997, Soeren Sandmann wrote:

> I realize that the problem probably stems from the fact that DOS' filenames
> can be no longer than eight characters. Is a workaround available? 

The workaround is to tell the parser explicitly to use a diffent
basename for the files it creates.  The following works for me:

	  gcc -save-temps -c foo.c
	  cc1 -dumpbase foo -quiet -dr -o foo.o foo.i

The first line tells gcc to not delete the intermediate files it
creates when compiling the source.  The second line then invokes cc1
directly on the output of the preprocessor.

You need these two steps because there's no easy way of passing the
`-dumpbase' option to cc1.

> Or is it something I can change in the DJGPP sources? Or is it something
> that will be fixed in a later version of DJGPP?

Unless somebody makes the change in the GCC sources and submits them
to the GCC maintainers, it won't be fixed.  The change is simple: if
LFN is not supported, remove the extension (.c, .cc etc.) from the
basename before appending the .rtl and the other extensions used for
the other -dX options.

- Raw text -


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