[Ada] Small tweak to signal handling code
Arnaud Charlet
charlet@adacore.com
Wed Feb 22 13:54:00 GMT 2012
This changes the mapping of SIGBUS from Constraint_Error to Storage_Error in
non-tasking mode on Linux, to be consistent with the tasking mode.
Tested on x86_64-pc-linux-gnu, committed on trunk
2012-02-22 Eric Botcazou <ebotcazou@adacore.com>
* init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
Storage_Error.
-------------- next part --------------
Index: init.c
===================================================================
--- init.c (revision 184470)
+++ init.c (working copy)
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2011, Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2012, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -661,8 +661,8 @@
break;
case SIGBUS:
- exception = &constraint_error;
- msg = "SIGBUS";
+ exception = &storage_error;
+ msg = "SIGBUS: possible stack overflow";
break;
case SIGFPE:
More information about the Gcc-patches
mailing list