From: "Andrew Crabtree" Newsgroups: comp.os.msdos.djgpp Subject: Re: GCC -dr? Date: Fri, 14 Nov 1997 13:27:23 -0800 Organization: Hewlett Packard Lines: 40 Message-ID: <64ifnu$nd3$1@rosenews.rose.hp.com> References: <199711140637 DOT WAA20714 AT adit DOT ap DOT net> NNTP-Posting-Host: ros51675cra.rose.hp.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Nate Eldredge wrote in message <199711140637 DOT WAA20714 AT adit DOT ap DOT net>... >That, and it'll also involve changing the dump extensions under MSDOS. The >easy way to do this is to invent some shortened forms and put them inside >`#ifdef MSDOS', but that's not very clean. IMHO, the Right Thing would be to >make it an option in the configuration header files to name the dumps >whatever a particular system wants, but that would involve some considerable >work with all the configurations. So maybe the dirty way is better? > >I'm willing to make the easy changes, but I really don't want to go >groveling through all of GCC's sources. I think the 'Right Thing' is not so difficult as you think. How about something like this. In the host (xm) DJGPP config file put a #define CSE_STAGE_ONE_EXTENSION ".cs1" #define CSE_STAGE_TWO_EXTENSION ".cs2" or something similar. Then, in whatever gcc file it is that appends the .cse and .cse2 put a #ifndef CSE_STAGE_ONE_EXTENSION #define CSE_STAGE_ONE_EXTENSION ".cse" #endif #ifndef CSE_STAGE_TWO_EXTENSION #define CSE_STAGE_TWO_EXTENSION ".cse2" #endif and then use the macros instead of just manually appending the extension. This will leave all configurations the same except those that specifically override the macros in the host configuration file. I can put it on my list of things to do if nobody else volunteers. Andy