Date: Thu, 13 Nov 1997 12:30:15 +0200 (IST) From: Eli Zaretskii To: Soeren Sandmann cc: djgpp AT delorie DOT com Subject: Re: GCC -dr? In-Reply-To: <64cpvl$et4$1@nf.aau.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.