Mail Archives: djgpp/1997/10/22/12:14:59
> DJ Delorie pointed out that this patch was dangerous, since HAVE_ATEXIT is
> used by other parts of libgcc. Sorry I didn't catch this myself.
I don't know the details of the first patch, but I believe I added the
following lines to config/go32.h. Your mention of HAVE_ATEXIT just
makes we worried I may have overlooked something when I did this last
April-ish.
/* djgpp has atexit (). */
#undef HAVE_ATEXIT
#define HAVE_ATEXIT
/* djgpp automatically calls it's own version of __main, so don't define one
in libgcc, nor call one in main(). */
#define HAS_INIT_SECTION
> (Andrew, can you please see if this patch still applies to the latest
> snapshots? I will then send it to the GCC maintainers. Thanks.)
typhoon:gcc$ patch < elipatch.diff
patching file `libgcc2.c'
Hunk #1 succeeded at 1688 (offset 77 lines).
typhoon:gcc$ emacs libgcc2.c
typhoon:gcc$
Looks OK (this was against the pgcc 1008 sources).
Remember to send to the egcs list too, as well as gcc2
(or I could do this if you want).
Andy
- Raw text -