http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46079
Summary: ABI for empty stop statement broken Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: jvdeli...@gcc.gnu.org Prior to 4.6 a an empty STOP is translated into: _gfortran_stop_numeric (-1); The runtime looks for -1 as a signal for an empty STOP and just exist quietly. However, this statement, if run inadvertently with the 4.6 library will not exit quietly and will emit "STOP -1" with a -1 exit code. A -1 is a valid STOP code with later Fortran standards. I will post a proposed patch.