[Bug fortran/97176] Cannot return deferred length strings when using -fno-automatic

2020-09-23 Thread jeremy at jeremysanders dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97176 --- Comment #3 from Jeremy Sanders --- I'm not using -fno-automatic out of choice, unfortunately (I'd never use it otherwise). I maintaining part of a large software package which has this switched on (for unclear reasons). It will require some t

[Bug fortran/97176] New: Cannot return deferred length strings when using -fno-automatic

2020-09-23 Thread jeremy at jeremysanders dot net
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jeremy at jeremysanders dot net Target Milestone: --- Created attachment 49261 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49261&action=edit Test case Functions re

[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran

2019-03-31 Thread jeremy at jeremysanders dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352 --- Comment #14 from Jeremy Sanders --- Created attachment 46064 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46064&action=edit Patch to instrument gfortran for test case

[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran

2019-03-31 Thread jeremy at jeremysanders dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352 --- Comment #13 from Jeremy Sanders --- Created attachment 46063 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46063&action=edit log (minor edits) from instrumentation patch

[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran

2019-03-31 Thread jeremy at jeremysanders dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352 --- Comment #12 from Jeremy Sanders --- Thomas - unfortunately I don't have a copy of what I did. I think reverting this patch fixes the problem though: https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/fortran/resolve.c?r1=254427&r2=254426&pathrev=25442

[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran

2019-03-21 Thread jeremy at jeremysanders dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352 --- Comment #8 from Jeremy Sanders --- Created attachment 46003 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46003&action=edit Much smaller testcase. Switch 73/74 to see the difference.

[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran

2019-03-21 Thread jeremy at jeremysanders dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352 --- Comment #7 from Jeremy Sanders --- Created attachment 46002 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46002&action=edit Tiny patch to fix testcase

[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran

2019-03-21 Thread jeremy at jeremysanders dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352 --- Comment #6 from Jeremy Sanders --- I think I have worked out where the problem lies. The code contains fixed-sized arrays of types containing allocatable arrays and other nested types with allocatable arrays. If I switch the fixed-sized decla

[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran

2018-10-27 Thread jeremy at jeremysanders dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352 --- Comment #4 from Jeremy Sanders --- Janne: This problem is also present on version 7, whereas the other bug is new in 8. There may be a relation, however.

[Bug fortran/87352] New: Large stack usage with new gfortran

2018-09-18 Thread jeremy at jeremysanders dot net
Assignee: unassigned at gcc dot gnu.org Reporter: jeremy at jeremysanders dot net Target Milestone: --- Created attachment 44718 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44718&action=edit Affected module and example main program With gcc/gfortran 7.3 and 8.2, c