This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30933] intrinsic: EXIT
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2007 00:21:40 -0000
- Subject: [Bug fortran/30933] intrinsic: EXIT
- References: <bug-30933-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from dfranke at gcc dot gnu dot org 2007-02-23 00:21 -------
A note on the testcase: gfortran seems to resolve EXIT only once.
If
CALL exit()
CALL exit(int_1)
gfortran happily compiles and links.
If
CALL exit(int_1)
CALL exit()
then
/tmp/ccuE9OGi.o: In function `MAIN__':
subroutine-exit-link.f90:(.text+0x31): undefined reference to
`_gfortran_exit_i1'
collect2: ld returned 1 exit status
The same goes for `_gfortran_exit_i2':
if
CALL exit(int_1)
CALL exit(int_2)
then only `_gfortran_exit_i1' is missing -- and vice versa.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30933