]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Complete previous change.
authorArnaud Charlet <charlet@gcc.gnu.org>
Fri, 10 Apr 2009 15:20:30 +0000 (17:20 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 10 Apr 2009 15:20:30 +0000 (17:20 +0200)
From-SVN: r145921

gcc/ada/init.c

index 78c55b83572c5e1838b0465f231a37e9df6b3755..7a4ff3a095920f027237f905eebfa3ca1a11965a 100644 (file)
@@ -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";