Message ID | 751060e1-67cb-d290-4fd1-46b15b77fc1a@tkoenig.net |
---|---|
State | New |
Headers | show |
Series | [libfortran,committed] Implement stop_numeric for minimal targets | expand |
Index: runtime/minimal.c =================================================================== --- runtime/minimal.c (Revision 259055) +++ runtime/minimal.c (Arbeitskopie) @@ -187,3 +187,17 @@ abort(); } + +/* A numeric STOP statement. */ + +extern _Noreturn void stop_numeric (int, bool); +export_proto(stop_numeric); + +void +stop_numeric (int code, bool quiet) +{ + if (!quiet) + printf ("STOP %d\n", code); + + exit (code); +}