Mail Archives: djgpp/1997/11/16/20:31:46
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
- Raw text -