Date: Mon, 17 Nov 1997 09:40:36 +0200 (IST) From: Eli Zaretskii To: Andrew Crabtree cc: djgpp AT delorie DOT com Subject: Re: GCC -dr? In-Reply-To: <64ifnu$nd3$1@rosenews.rose.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 14 Nov 1997, Andrew Crabtree wrote: > In the host (xm) DJGPP config file put a > > #define CSE_STAGE_ONE_EXTENSION ".cs1" > #define CSE_STAGE_TWO_EXTENSION ".cs2" Please don't do that unconditionally. When GCC runs on an LFN platform, it should work like on Unix. So at least say this: #define CSE_STAGE_TWO_EXTENSION (_USE_LFN ? ".cse2" : ".cs2") A better way is to call `_use_lfn' (lower-case) on the full pathname of the source file, or any directory on the same drive, so that you know that the filesystem where the dump file will be created actually supports long names (it can be a networked drive redirected through network software that doesn't support LFN). Yet another alternative is to call `pathconf' with _PC_NAME_MAX parameter and see whether it returns 12 or more; if it's 12, use the short form. Personally, I prefer this way, since `pathconf' is a POSIX function. It seems like `compile_file' function on toplev.c in gcc source distribution has all the info. `dump_base_name' should be used as the argument to `pathconf' or `_use_lfn' to test for LFN support.