diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-04-10 17:20:30 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-04-10 17:20:30 +0200 |
commit | 1ca3588143735b0fc093821b6deed6a749ef72b9 (patch) | |
tree | 30f377630010d9b0e0ea83f7d9bfdeae121e08b1 /gcc/ada/init.c | |
parent | 2c880bdfe5fbf4222e17a39f4211de80a46136c8 (diff) | |
download | gcc-1ca3588143735b0fc093821b6deed6a749ef72b9.zip gcc-1ca3588143735b0fc093821b6deed6a749ef72b9.tar.gz gcc-1ca3588143735b0fc093821b6deed6a749ef72b9.tar.bz2 |
Complete previous change.
From-SVN: r145921
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r-- | gcc/ada/init.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c index 78c55b8..7a4ff3a 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -1822,8 +1822,7 @@ __gnat_map_signal (int sig) exception = &storage_error; msg = "SIGBUS: possible stack overflow"; break; -#else -#if (_WRS_VXWORKS_MAJOR = 6) +#elif (_WRS_VXWORKS_MAJOR == 6) case SIGILL: exception = &constraint_error; msg = "SIGILL"; @@ -1835,6 +1834,10 @@ __gnat_map_signal (int sig) exception = &storage_error; msg = "SIGSEGV: possible stack overflow"; break; + case SIGBUS: + exception = &program_error; + msg = "SIGBUS"; + break; #else /* VxWorks 6 kernel mode with probing. SIGBUS for guard page hit */ case SIGSEGV: @@ -1857,7 +1860,6 @@ __gnat_map_signal (int sig) exception = &program_error; msg = "SIGSEGV"; break; -#endif case SIGBUS: exception = &program_error; msg = "SIGBUS"; |