summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 883336a..d2934c4 100755
--- a/configure
+++ b/configure
@@ -46690,8 +46690,12 @@ static void check_stack_location (volatile char *addr)
}
static void stackoverflow_handler (int sig)
{
+#if __GNUC__ >= 4
+ check_stack_location (__builtin_frame_address(0));
+#else
char dummy;
check_stack_location (&dummy);
+#endif
}
char mystack[2 * (1 << 24)];
int main ()