This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]