From: Richard Henderson Date: Fri, 20 May 2005 01:28:35 +0000 (-0700) Subject: * exception.cc: Revert 05-17 gcc_unreachable change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce88799c37e930e0b5e760119ea73237c43b5f61;p=gcc.git * exception.cc: Revert 05-17 gcc_unreachable change. From-SVN: r100004 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 738b017e5f0..f2e1efb64fd 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2005-05-19 Richard Henderson + + * exception.cc: Revert 05-17 gcc_unreachable change. + 2005-05-19 Bryce McKinlay * java/lang/natClassLoader.cc (_Jv_NewClass): Use diff --git a/libjava/exception.cc b/libjava/exception.cc index 4bab412d5ba..367df3618b9 100644 --- a/libjava/exception.cc +++ b/libjava/exception.cc @@ -19,9 +19,17 @@ details. */ #include #include -// Sometimes we compile libjava without libstdc++-v3. Therefore make -// sure we use stdlib.h's abort(). -#define gcc_unreachable() ::abort () +// unwind-pe.h uses std::abort(), but sometimes we compile libjava +// without libstdc++-v3. The following hack forces it to use +// stdlib.h's abort(). +namespace std +{ + static __attribute__ ((__noreturn__)) void + abort () + { + ::abort (); + } +} #include "unwind.h" struct alignment_test_struct