aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/expr.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2020-06-30 13:01:36 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:15:28 -0300
commite5d43111f025486d1487532ea240c55c5a4dd129 (patch)
tree87514f1e97223118f4910f9b18cd4130b7319456 /gcc/fortran/expr.c
parent269bee37b973e84f33235a5c1f95e4f4e8f75454 (diff)
downloadgcc-e5d43111f025486d1487532ea240c55c5a4dd129.zip
gcc-e5d43111f025486d1487532ea240c55c5a4dd129.tar.gz
gcc-e5d43111f025486d1487532ea240c55c5a4dd129.tar.bz2
Use CHARACTER(kind) string for calculating the type hash.
This regression came about because of a change in the way types are displayed in error messages. The character representation is also used to calculate the hashes for our types, so this patch restores the old behavior if we are indeed calculating a hash. The test case also checks for the specific hash value because changing that would be an ABI change, which we should not be doing unintentionally. gcc/fortran/ChangeLog: 2020-06-30 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/95355 * gfortran.h (gfc_typename): Add optional argument for_hash. * misc.c (gfc_typename): When for_hash is true, just retur CHARACTER(kind). * class.c (gfc_intrinsic_hash_value): Call gfc_typename with for_hash = true.
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions