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 5cddf21..78faf57 100755
--- a/configure
+++ b/configure
@@ -38002,8 +38002,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 ()