This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13082] [gfortran] ICE with ENTRY statement
- From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 May 2004 14:48:42 -0000
- Subject: [Bug fortran/13082] [gfortran] ICE with ENTRY statement
- References: <20031117013315.13082.kargl@12-230-81-20.client.attbi.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-05-04 14:48 -------
This seems to be a result of a more fundamental problem: programs with ENTRY's
compile flawlessly, but don't work. No symbol is generated for the entry:
[tobi@marktplatz tests]$ cat pr13082.f90
subroutine foo
entry bar
end
[tobi@marktplatz tests]$ gfortran pr13082.f90 -S
[tobi@marktplatz tests]$ cat pr13082.s
.file "pr13082.f90"
.text
.align 4
.globl foo_
.type foo_, @function
foo_:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
.size foo_, .-foo_
.ident "GCC: (GNU) 3.5-tree-ssa 20040501 (merged 20040428)"
.section .note.GNU-stack,"",@progbits
There is code in trans-decl.c which should catch this, but it doesn't trigger,
with my testcase that function is never called:
748: if (sym->attr.entry)
749: gfc_todo_error ("alternate entry");
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |Tobias dot Schlueter at
| |physik dot uni-muenchen dot
| |de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13082