Mark Mitchell wrote:
Michael Eager wrote:
Why should the personality routine be included in all C++ programs?

Because all non-trivial, exceptions-enabled programs, may need to do
stack unwinding.

It would seem that the place to require the personality
routine would be in the routine which causes the stack
unwinding, not in every C++ object file, whether needed
or not.

For embedded targets, there are many C++ programs which
are non-trivial and which do not require exception handling.

My thoughts:

1)  Exception support should be included only when used.

2)  The default for -exceptions should be target dependent.

--
Michael Eager    [EMAIL PROTECTED]
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

Reply via email to