ARM32 EABI unwinder does not define _URC_NORMAL_STOP. Instead,
it has _URC_FAILURE. Use _URC_FAILURE there.
Should fix ARM32 build.
Reviewed-on: https://go-review.googlesource.com/c/153417
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267033
138bc75d-0d04-0410-961f-
82ee72b054a4
-f0266d382f8965b7bcaa380aa963498c1884505e
+4db15776701a7cfc1abcef08f7a98c63343d17e6
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
#define CONTINUE_UNWINDING return _URC_CONTINUE_UNWIND
#endif
#define CONTINUE_UNWINDING return _URC_CONTINUE_UNWIND
#endif
+#ifdef __ARM_EABI_UNWINDER__
+#define STOP_UNWINDING _URC_FAILURE
+#else
+#define STOP_UNWINDING _URC_NORMAL_STOP
+#endif
+
#ifdef __USING_SJLJ_EXCEPTIONS__
#define PERSONALITY_FUNCTION __gccgo_personality_sj0
#define __builtin_eh_return_data_regno(x) x
#ifdef __USING_SJLJ_EXCEPTIONS__
#define PERSONALITY_FUNCTION __gccgo_personality_sj0
#define __builtin_eh_return_data_regno(x) x
// TODO: print gp, pc, sp
runtime_throw ("no stack map");
}
// TODO: print gp, pc, sp
runtime_throw ("no stack map");
}
- return _URC_NORMAL_STOP;
// Found a stack map. No need to keep unwinding.
runtime_usestackmaps = true;
// Found a stack map. No need to keep unwinding.
runtime_usestackmaps = true;
- return _URC_NORMAL_STOP;
}
// Try to find a stack map, store the result in global variable runtime_usestackmaps.
}
// Try to find a stack map, store the result in global variable runtime_usestackmaps.