Commit 6d1e8bff by Eric Botcazou Committed by Eric Botcazou

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
parent 0db747be
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> 2007-10-23 Richard Guenther <rguenther@suse.de>
PR bootstrap/33608 PR bootstrap/33608
...@@ -264,9 +264,6 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED) ...@@ -264,9 +264,6 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
switch (code) switch (code)
{ {
default:
abort ();
case OPT_I: case OPT_I:
q = xmalloc (sizeof("-I") + strlen (arg)); q = xmalloc (sizeof("-I") + strlen (arg));
strcpy (q, "-I"); strcpy (q, "-I");
...@@ -329,6 +326,9 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED) ...@@ -329,6 +326,9 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
gnat_argv[gnat_argc] = xstrdup (arg); gnat_argv[gnat_argc] = xstrdup (arg);
gnat_argc++; gnat_argc++;
break; break;
default:
gcc_unreachable ();
} }
return 1; return 1;
...@@ -464,7 +464,7 @@ gnat_init (void) ...@@ -464,7 +464,7 @@ gnat_init (void)
static void static void
gnat_finish_incomplete_decl (tree dont_care ATTRIBUTE_UNUSED) 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 /* 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, ...@@ -669,7 +669,7 @@ gnat_expand_expr (tree exp, rtx target, enum machine_mode tmode,
/* ... fall through ... */ /* ... fall through ... */
default: default:
abort (); gcc_unreachable ();
} }
return expand_expr_real (new, target, tmode, modifier, alt_rtl); return expand_expr_real (new, target, tmode, modifier, alt_rtl);
...@@ -916,7 +916,7 @@ fp_prec_to_size (int prec) ...@@ -916,7 +916,7 @@ fp_prec_to_size (int prec)
if (GET_MODE_PRECISION (mode) == prec) if (GET_MODE_PRECISION (mode) == prec)
return GET_MODE_BITSIZE (mode); return GET_MODE_BITSIZE (mode);
abort (); gcc_unreachable ();
} }
int int
...@@ -929,5 +929,5 @@ fp_size_to_prec (int size) ...@@ -929,5 +929,5 @@ fp_size_to_prec (int size)
if (GET_MODE_BITSIZE (mode) == size) if (GET_MODE_BITSIZE (mode) == size)
return GET_MODE_PRECISION (mode); return GET_MODE_PRECISION (mode);
abort (); gcc_unreachable ();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment