aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/generated/minloc1_8_r8.c
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2016-12-21 11:41:25 +0200
committerJanne Blomqvist <jb@gcc.gnu.org>2016-12-21 11:41:25 +0200
commitb528e42751b731746d98427fb6d9ec8634a72555 (patch)
tree40a33129018f1c26c5b431a7a91fa5eb335c0ed2 /libgfortran/generated/minloc1_8_r8.c
parentf7db9ebf2b793ee115d572267b8c97362f43575c (diff)
downloadgcc-b528e42751b731746d98427fb6d9ec8634a72555.zip
gcc-b528e42751b731746d98427fb6d9ec8634a72555.tar.gz
gcc-b528e42751b731746d98427fb6d9ec8634a72555.tar.bz2
PR 78867 Function returning string ICE with -flto
The fix for PR 78757 was slightly too cautious, and covered only the case of functions returning pointers to characters. By moving the block above the if statement the DECL_EXPR is created also for functions returning non-pointer characters. Regtested on x86_64-pc-linux-gnu. fortran ChangeLog: 2016-12-21 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/78867 * trans-expr.c (gfc_conv_procedure_call): Emit DECL_EXPR also for non-pointer character results. testsuite ChangeLog: 2016-12-21 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/78867 * gfortran.dg/string_length_4.f90: New test. From-SVN: r243842
Diffstat (limited to 'libgfortran/generated/minloc1_8_r8.c')
0 files changed, 0 insertions, 0 deletions