This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20538] compiling -finline-functions -O2 and we crash at runtime
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2005 22:36:18 -0000
- Subject: [Bug fortran/20538] compiling -finline-functions -O2 and we crash at runtime
- References: <20050318192834.20538.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kargl at gcc dot gnu dot org 2005-03-18 22:36 -------
I added a "print *, size(bodies)" in the advance routine. We have
troutmask:kargl[295] gfc -o jk -O2 jk.f90
troutmask:kargl[296] ./jk 1
-0.169075164
-595
-0.169075164
troutmask:kargl[297] gfc -o jk -O jk.f90
troutmask:kargl[298] ./jk 1
-0.169075164
5
-0.169074954
Note, the correct answer is 5, so it looks like -O2 is screwing up the
size() function.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20538