Need a global GCC maintainer ruling on atexit

Michael Sokolov msokolov@ivan.Harhan.ORG
Thu Dec 28 20:06:00 GMT 2000


GCC maintainers,

I raise your attention once again to the problem that GCC currently uses atexit
(in fixinc) and is therefore unbuildable on UNIX systems that do not have
atexit. I am requesting that the GCC global maintainers address this issue and
rule on how to properly solve the problem. There are at least three solutions I
can see, and I am willing to provide a patch implementing any one of them:

1. Provide atexit in libiberty (or elsewhere) for systems that don't have it.
2. Change programs needing atexit functionality to use xexit/xatexit.
3. Conditionally #define exit to xexit and atexit to xatexit on systems that
   lack atexit.

Right now the atexit problem occurs only in fixinc, and the fixinc maintainer
Bruce Korb said that he prefers the 3rd solution. However, I think it is just a
happenstance that the atexit problem currently occurs in fixinc and not
somewhere else, and is a more general problem that should be addressed for GCC
overall. Therefore, I request a ruling from a blanket write priv person or the
SC on how to handle the atexit problem in GCC. TIA.

--
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