This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/33806] [regression 4.3] gfortran.dg/cray_pointers_2.f90 give an ICE at -O3 -m64 on Darwin
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2007 12:55:25 -0000
- Subject: [Bug middle-end/33806] [regression 4.3] gfortran.dg/cray_pointers_2.f90 give an ICE at -O3 -m64 on Darwin
- References: <bug-33806-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dominiq at lps dot ens dot fr 2007-10-18 12:55 -------
This regression affects also
gfortran.fortran-torture/execute/stack_varsize.f90.
A reduced test case is:
! Program to test the stack variable size limit.
program stack
call sub1
contains
! Local variables larger than 32768 in byte size shall be placed in static
! storage area, while others be put on stack by default.
subroutine sub1
real b(32768/4), c(32768/4+1)
b = 20.0
c = 30.0
if ((b(1) .ne. 20.0).or.(c(1) .ne. 30.0)) call abort
end subroutine
end
[karma] f90/bug% gfc -m64 -O3 stack_varsize_red.f90
stack_varsize_red.f90: In function 'sub1':
stack_varsize_red.f90:12: internal compiler error: in change_address_1, at
emit-rtl.c:1888
Note that array c alone is not sufficient to trigger the ICE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33806