PR fortran/95106 - truncation of long symbol names with EQUIVALENCE
authorHarald Anlauf <anlauf@gmx.de>
Sun, 24 May 2020 19:35:04 +0000 (21:35 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 24 May 2020 19:35:04 +0000 (21:35 +0200)
commitd176184d98a00ab379ae5959aed1908a79995e6b
tree558141f6f0a891be9183cc5d32a352b6db5b772e
parent392bc7d21306d29f560c754ca13d9e206ec6854b
PR fortran/95106 - truncation of long symbol names with EQUIVALENCE

For long module names, the generated name-mangled symbol was
truncated, leading to bogus warnings about COMMON block
mismatches.  Provide sufficiently large temporaries.

gcc/fortran/

2020-05-24  Harald Anlauf  <anlauf@gmx.de>

PR fortran/95106
* trans-common.c (gfc_sym_mangled_common_id): Enlarge temporaries
for name-mangling.

gcc/testsuite/

2020-05-24  Harald Anlauf  <anlauf@gmx.de>

PR fortran/95106
* gfortran.dg/equiv_11.f90: New test.
gcc/fortran/ChangeLog
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/equiv_11.f90 [new file with mode: 0644]