summaryrefslogtreecommitdiff
path: root/libgfortran/generated/minloc0_8_i8.c
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-21 09:41:25 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-21 09:41:25 +0000
commit670b225d6c03b803166555ba13b981ffdcb10706 (patch)
tree40a33129018f1c26c5b431a7a91fa5eb335c0ed2 /libgfortran/generated/minloc0_8_i8.c
parent84f0fbc61901106cef3c088d4a1db17b689bdc57 (diff)
downloadgcc-670b225d6c03b803166555ba13b981ffdcb10706.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243842 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/generated/minloc0_8_i8.c')
0 files changed, 0 insertions, 0 deletions