[patch] to gcc: use xexit/xatexit in fixinc

Michael Sokolov msokolov@ivan.Harhan.ORG
Mon Jan 1 17:57:00 GMT 2001


Geoff Keating <geoffk@geoffk.org> wrote:

> Probably the best way to do this is in the frontends; just have the C
> and C++ frontends replace references to atexit with references to
> xatexit, implement xatexit in libgcc, and compile main() specially so
> that it calls xexit instead of returning.

You are talking about solving the atexit problems for programs compiled with
GCC, and this problem is already solved much more elegantly: libgcc2 now always
requires atexit and provides it for systems that don't have it.

I'm talking about solving the atexit problem in GCC itself compiled with the
native compiler, currectly occurring only in fixinc.

--
Michael Sokolov
Public Service Agent
International Engineering and Science Task Force

1351 VINE AVE APT 27		Phone: +1-714-738-5409
FULLERTON CA 92833-4291 USA	(home office)

E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP)


More information about the Gcc-patches mailing list