diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2007-10-23 17:36:51 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2007-10-23 17:36:51 +0000 |
commit | 6d1e8bff96cd3ebc74129648987c7cf7d0d05748 (patch) | |
tree | 8109e8d7b7ebc12413741f079649bb5f0cf49ada /gcc/ada/misc.c | |
parent | 0db747be5b9d91345662c1d172dfbb39877b8805 (diff) | |
download | gcc-6d1e8bff96cd3ebc74129648987c7cf7d0d05748.zip gcc-6d1e8bff96cd3ebc74129648987c7cf7d0d05748.tar.gz gcc-6d1e8bff96cd3ebc74129648987c7cf7d0d05748.tar.bz2 |
misc.c (gnat_handle_option): Replace call to abort with call to gcc_unreachable.
* 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
Diffstat (limited to 'gcc/ada/misc.c')
-rw-r--r-- | gcc/ada/misc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index b783004..03cce3a 100644 --- a/gcc/ada/misc.c +++ b/gcc/ada/misc.c @@ -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 (); } /* 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 (); } |