This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR79854 - diagnostics: gfc_conv_constant_to_tree should be gfc_internal_error
- From: Dominique d'Humières <dominiq at lps dot ens dot fr>
- To: gfortran <fortran at gcc dot gnu dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 10 Jun 2018 14:09:34 +0200
- Subject: [PATCH] PR79854 - diagnostics: gfc_conv_constant_to_tree should be gfc_internal_error
Is the following patch OK for the trunk?
TIA
Dominique
2018-06-10 Dominique d'Humieres <dominiq@gcc.gnu.org>
PR fortran/79854
* trans-const.c: Remove include "diagnostic-core.h"
(gfc_conv_constant_to_tree): Replace fatal_error with gcc_unreachable.
--- ../_clean/gcc/fortran/trans-const.c 2018-02-23 15:17:14.000000000 +0100
+++ gcc/fortran/trans-const.c 2018-06-07 15:49:38.000000000 +0200
@@ -26,7 +26,6 @@ along with GCC; see the file COPYING3.
#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 * ex
expr->representation.string);
default:
- fatal_error (input_location,
- "gfc_conv_constant_to_tree(): invalid type: %s",
- gfc_typename (&expr->ts));
+ gcc_unreachable ();
}
}