misc.c (gnat_handle_option): Replace call to abort with call to gcc_unreachable.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 23 Oct 2007 17:36:51 +0000 (17:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 23 Oct 2007 17:36:51 +0000 (17:36 +0000)
* misc.c (gnat_handle_option): Replace call to abort with
call to gcc_unreachable.
(gnat_init): Likewise.
(gnat_expand_expr): Likewise.
(fp_prec_to_size): Likewise.
(fp_size_to_prec): Likewise.

From-SVN: r129583

gcc/ada/ChangeLog
gcc/ada/misc.c

index 20d69ecea84405e36df181a6ce89f01058f6a22b..e3bfeb1c8f8107108623dd9f9020f45a814a6aa5 100644 (file)
@@ -1,3 +1,12 @@
+2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * misc.c (gnat_handle_option): Replace call to abort with
+       call to gcc_unreachable.
+       (gnat_init): Likewise.
+       (gnat_expand_expr): Likewise.
+       (fp_prec_to_size): Likewise.
+       (fp_size_to_prec): Likewise.
+
 2007-10-23  Richard Guenther  <rguenther@suse.de>
 
        PR bootstrap/33608
index b7830040c419af9677ef15a78dda9ea4c6d0cec3..03cce3a94d4826fa75c066e6a3b9ea73feb6414b 100644 (file)
@@ -264,9 +264,6 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
 
   switch (code)
     {
-    default:
-      abort ();
-
     case OPT_I:
       q = xmalloc (sizeof("-I") + strlen (arg));
       strcpy (q, "-I");
@@ -329,6 +326,9 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
       gnat_argv[gnat_argc] = xstrdup (arg);
       gnat_argc++;
       break;
+
+    default:
+      gcc_unreachable ();
     }
 
   return 1;
@@ -464,7 +464,7 @@ gnat_init (void)
 static void
 gnat_finish_incomplete_decl (tree dont_care ATTRIBUTE_UNUSED)
 {
-  abort ();
+  gcc_unreachable ();
 }
 \f
 /* Compute the alignment of the largest mode that can be used for copying
@@ -669,7 +669,7 @@ gnat_expand_expr (tree exp, rtx target, enum machine_mode tmode,
       /* ... fall through ... */
 
     default:
-      abort ();
+      gcc_unreachable ();
     }
 
   return expand_expr_real (new, target, tmode, modifier, alt_rtl);
@@ -916,7 +916,7 @@ fp_prec_to_size (int prec)
     if (GET_MODE_PRECISION (mode) == prec)
       return GET_MODE_BITSIZE (mode);
 
-  abort ();
+  gcc_unreachable ();
 }
 
 int
@@ -929,5 +929,5 @@ fp_size_to_prec (int size)
     if (GET_MODE_BITSIZE (mode) == size)
       return GET_MODE_PRECISION (mode);
 
-  abort ();
+  gcc_unreachable ();
 }