]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-decl.c
2005-08-24 Thomas Koenig <Thomas.Koenig@online.de>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Aug 2005 20:04:20 +0000 (20:04 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Aug 2005 20:04:20 +0000 (20:04 +0000)
commit6e27d77323d78e2dbddab718fc6e5601058e64ae
treeee3f72b0e9a25230193623fc852517df5c61a9e2
parentf4447a5d43593683a99ab182766d0be41ba4a52f
2005-08-24  Thomas Koenig  <Thomas.Koenig@online.de>

PR fortran/17758
* gfortran.h (symbol_attribute):  Add noreturn to the structure.
(gfc_intrinsic_sym):  Add noreturn to the structure.
* intrinsic.c (make_noreturn):  New function.
(add_subroutines):  Mark subroutines abort and exit as noreturn.
(gfc_intrinsic_sub_interface):  Copy noreturn attribute from
isym to the resolved symbol.
* trans-decl.c (gfc_get_extern_function_decl): Set function
as VOLATILE (== noreturn) if the noreturn attribute is set.

2005-08-24  Thomas Koenig  <Thomas.Koenig@online.de>

PR fortran/17758
gfortran.dg/nonreturning_statements.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103449 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/intrinsic.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/nonreturning_statements.f90 [new file with mode: 0644]