[flang-commits] [PATCH] D84060: [flang] Improve output from a STOP statement

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Sat Jul 18 11:34:37 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGcbff0c75b9ea: [flang] Improve output from a STOP statement (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84060/new/

https://reviews.llvm.org/D84060

Files:
  flang/runtime/stop.cpp


Index: flang/runtime/stop.cpp
===================================================================
--- flang/runtime/stop.cpp
+++ flang/runtime/stop.cpp
@@ -40,6 +40,7 @@
     if (excepts & FE_UNDERFLOW) {
       std::fputs(" UNDERFLOW", stderr);
     }
+    std::fputc('\n', stderr);
   }
 }
 
@@ -52,10 +53,11 @@
     int code, bool isErrorStop, bool quiet) {
   CloseAllExternalUnits("STOP statement");
   if (!quiet) {
+    std::fprintf(stderr, "Fortran %s", isErrorStop ? "ERROR STOP" : "STOP");
     if (code != EXIT_SUCCESS) {
-      std::fprintf(stderr, "Fortran %s: code %d\n",
-          isErrorStop ? "ERROR STOP" : "STOP", code);
+      std::fprintf(stderr, ": code %d\n", code);
     }
+    std::fputc('\n', stderr);
     DescribeIEEESignaledExceptions();
   }
   std::exit(code);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84060.279015.patch
Type: text/x-patch
Size: 793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200718/6a394250/attachment.bin>


More information about the flang-commits mailing list