From 6d1e8bff96cd3ebc74129648987c7cf7d0d05748 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 23 Oct 2007 17:36:51 +0000 Subject: [PATCH] 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 --- gcc/ada/ChangeLog | 9 +++++++++ gcc/ada/misc.c | 14 +++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 20d69ecea84..e3bfeb1c8f8 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,12 @@ +2007-10-23 Eric Botcazou + + * 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 PR bootstrap/33608 diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index b7830040c41..03cce3a94d4 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 (); } -- 2.30.2