aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans.h
diff options
context:
space:
mode:
authorAndrew Benson <abenson@carnegiescience.edu>2020-01-28 18:12:23 +0000
committerAndrew Benson <abenson@carnegiescience.edu>2020-01-28 18:12:23 +0000
commitad690d79cfbb905c5546c9333c5fd089d906505b (patch)
treefb438caef385228d05ed42b6db90c165a5d5e718 /gcc/fortran/trans.h
parenta83b5cc5828ee34471de415e8893242dd3b0a91b (diff)
downloadgcc-ad690d79cfbb905c5546c9333c5fd089d906505b.zip
gcc-ad690d79cfbb905c5546c9333c5fd089d906505b.tar.gz
gcc-ad690d79cfbb905c5546c9333c5fd089d906505b.tar.bz2
Increase GFC_MAX_MANGLED_SYMBOL_LEN to handle submodule names.
PR fortran/93461 * trans.h: Increase GFC_MAX_MANGLED_SYMBOL_LEN to GFC_MAX_SYMBOL_LEN*3+5 to allow for inclusion of submodule name, plus the "." between module and submodule names. * gfortran.dg/pr93461.f90: New test.
Diffstat (limited to 'gcc/fortran/trans.h')
-rw-r--r--gcc/fortran/trans.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h
index 52bc045..69171f3 100644
--- a/gcc/fortran/trans.h
+++ b/gcc/fortran/trans.h
@@ -23,8 +23,8 @@ along with GCC; see the file COPYING3. If not see
#include "predict.h" /* For enum br_predictor and PRED_*. */
-/* Mangled symbols take the form __module__name. */
-#define GFC_MAX_MANGLED_SYMBOL_LEN (GFC_MAX_SYMBOL_LEN*2+4)
+/* Mangled symbols take the form __module__name or __module.submodule__name. */
+#define GFC_MAX_MANGLED_SYMBOL_LEN (GFC_MAX_SYMBOL_LEN*3+5)
/* Struct for holding a block of statements. It should be treated as an
opaque entity and not modified directly. This allows us to change the