This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Exceptions, Optimizations and AIX


>>>>> Joerg Richter writes:

Joerg> I dont know the exception handling very well, but is it possible that the
Joerg> unwind information for optimized and unoptimized objects get mixed?

Joerg> I am interested in the case where two objects use the same header which
Joerg> defines an inline function. One object is optimized and the other is not.
Joerg> What when the runtime exception handling uses the wrong unwind information
Joerg> for this inline function (eg. optimized uses non optimized)? Is this
Joerg> possible? 

Joerg> Or is it not OK to mix optimized and unoptimized objects/libraries?

Joerg> I think the problem is not only AIX related. Perhaps is has something to do
Joerg> with weak symbol support or the like.

	There is no problem mixing optimized and unoptimized libraries.
The unwind information is inside the library itself, so it matches the way
the library was compiled.  There is no way for the EH mechanism to access
EH built with a different set of options.

David


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