From dcdae924d27a737dcda16bac7d9dfad5fbdfba6a Mon Sep 17 00:00:00 2001 From: Dominique d'Humieres Date: Sun, 10 Jun 2018 14:50:03 +0200 Subject: [PATCH] re PR fortran/79854 (diagnostics: gfc_conv_constant_to_tree should be gfc_internal_error) 2018-06-10 Dominique d'Humieres PR fortran/79854 * trans-const.c: Remove include "diagnostic-core.h". (gfc_conv_constant_to_tree): Replace fatal_error with gcc_unreachable. From-SVN: r261387 --- gcc/fortran/ChangeLog | 6 ++++++ gcc/fortran/trans-const.c | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 3b22db13b14..2d79ab1a3ed 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2018-06-10 Dominique d'Humieres + + PR fortran/79854 + * trans-const.c: Remove include "diagnostic-core.h". + (gfc_conv_constant_to_tree): Replace fatal_error with gcc_unreachable. + 2018-06-10 Janus Weil PR fortran/85088 diff --git a/gcc/fortran/trans-const.c b/gcc/fortran/trans-const.c index 6b4e0de430d..0e14f1750b7 100644 --- a/gcc/fortran/trans-const.c +++ b/gcc/fortran/trans-const.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "gfortran.h" #include "trans.h" -#include "diagnostic-core.h" /* For fatal_error. */ #include "fold-const.h" #include "stor-layout.h" #include "realmpfr.h" @@ -368,9 +367,7 @@ gfc_conv_constant_to_tree (gfc_expr * expr) expr->representation.string); default: - fatal_error (input_location, - "gfc_conv_constant_to_tree(): invalid type: %s", - gfc_typename (&expr->ts)); + gcc_unreachable (); } } -- 2.30.2