Message ID | F8BC4619-6736-4F11-8315-D9224E3E3801@lps.ens.fr |
---|---|
State | New |
Headers | show |
Series | PR79854 - diagnostics: gfc_conv_constant_to_tree should be gfc_internal_error | expand |
Hi Dominique, > 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. OK. Thanks! Thomas
Committed as r261387. Thanks, Dominique > Le 10 juin 2018 à 14:25, Thomas Koenig <tkoenig@netcologne.de> a écrit : > > Hi Dominique, > >> 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. > > OK. Thanks! > > Thomas
--- ../_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 (); } }