Build failure on arm-symbianelf
Paul Brook
paul@codesourcery.com
Wed Jan 18 16:34:00 GMT 2006
The patchbelow fixes a build failure on arm-none-symbianelf.
It changes the code in eh_personality.cc to use std::abort() instead of
abort(). The former is supplied by <cstdlib>, the latter only when
_GLIBCXX_HOSTED.
Previous releses worked because the Arm EABI version of unwind.h contained a
prototype for abort().
Tested by building arm-linux-gnueabi and arm-none-symbianelf.
As this only effects arm eabi targets I've applied as obvious to mainline and
4.1
Paul
2006-01-18 Paul Brook <paul@codesourcery.com>
* libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Use std::abort.
Index: libstdc++-v3/libsupc++/eh_personality.cc
===================================================================
--- libstdc++-v3/libsupc++/eh_personality.cc (revision 109867)
+++ libstdc++-v3/libsupc++/eh_personality.cc (working copy)
@@ -386,7 +386,7 @@ PERSONALITY_FUNCTION (int version,
break;
default:
- abort();
+ std::abort();
}
actions |= state & _US_FORCE_UNWIND;
More information about the Gcc-patches
mailing list