This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: [v3] add -fno-exceptions support


> > 	* libsupc++/new_op.cc (new): Include functexcept.h. Use
> > 	std::__throw_bad_alloc() instead of throw bad_alloc.
> 
> This is wrong.  Nothing in libsupc++ should depend on anything but
> libsupc++, libgcc and (as little as possible) the C library.  Similarly,
> std::__throw_bad_cast should call __cxa_bad_cast, not the other way around.

Hmm. Maybe I should just move the functexcept.h/functexcept.cc bits into 
libsupc++. 

While I'm at it I should probably clean up libsupc++ WRT the new abi. I 
was trying to keep some of this stuff separated out though.

-benjamin


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