aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2020-11-28 12:36:28 +0100
committerThomas Koenig <tkoenig@gcc.gnu.org>2020-11-28 12:37:17 +0100
commit36ec54aac7da134441c83248e14825381b8d6f17 (patch)
treef4e6da6e8acbd45a79a2a888475ad57e7c1549b3 /gcc/tree-ssa-structalias.c
parente87559d202d90e614315203f38f9aa2f5881d36e (diff)
downloadgcc-36ec54aac7da134441c83248e14825381b8d6f17.zip
gcc-36ec54aac7da134441c83248e14825381b8d6f17.tar.gz
gcc-36ec54aac7da134441c83248e14825381b8d6f17.tar.bz2
Generate correct fn specs for some Fortran library functions.
This patch works by generating the correct fn spec from the actual arguments in specific_intrinsic_symbol, and by passing this down via gfc_get_extern_function_decl to gfc_get_function_type. CSHIFT remains to be done. gcc/fortran/ChangeLog: PR fortran/97454 * trans-decl.c (gfc_get_extern_function_decl): Add argument fnspec. * trans-intrinsic.c (MAX_SPEC_ARG): Define. (intrinsic_fnspec): New function. (ADD_CHAR): Define. (specific_intrinsic_symbol): Adjust comment. Pass fn spec to gfc_get_extern_function_decl. (gfc_conv_intrinsic_funcall): Add ANY, ALL, NORM2, PRODUCT and SUM intrnisic. Add FIXME for cshift et al. * trans-types.c (gfc_get_function_type): Add fnspec argument, handle it. * trans-types.h (gfc_get_function_type): Add optinal fnspec argument. * trans.h (gfc_get_extern_function_decl): Likewise.
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
0 files changed, 0 insertions, 0 deletions