OSDN Git Service

fortran/
[pf3gnuchains/gcc-fork.git] / libjava / exception.cc
index 65bc4ed..3d8fda1 100644 (file)
@@ -231,9 +231,13 @@ PERSONALITY_FUNCTION (int version,
 
   // Parse the LSDA header.
   p = parse_lsda_header (context, language_specific_data, &info);
+#ifdef HAVE_GETIPINFO
   ip = _Unwind_GetIPInfo (context, &ip_before_insn);
   if (! ip_before_insn)
     --ip;
+#else
+  ip = _Unwind_GetIP (context) - 1;
+#endif
   landing_pad = 0;
   action_record = 0;
   handler_switch_value = 0;