[flang-commits] [PATCH] D84266: [flang] Temp Driver - pass the flag to change the default integer kind through to F18_FC

Tim Keith via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 27 09:58:02 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4a4cafabc906: [flang] Temp Driver - pass the flag to change the default integer kind through… (authored by AlexisPerry, committed by tskeith).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84266

Files:
  flang/tools/f18/f18.cpp


Index: flang/tools/f18/f18.cpp
===================================================================
--- flang/tools/f18/f18.cpp
+++ flang/tools/f18/f18.cpp
@@ -545,6 +545,11 @@
       defaultKinds.set_defaultIntegerKind(8);
       defaultKinds.set_subscriptIntegerKind(8);
       defaultKinds.set_sizeIntegerKind(8);
+      if (isPGF90) {
+        driver.F18_FCArgs.push_back("-i8");
+      } else {
+        driver.F18_FCArgs.push_back("-fdefault-integer-8");
+      }
     } else if (arg == "-Mlargearray") {
     } else if (arg == "-Mnolargearray") {
     } else if (arg == "-flarge-sizes") {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84266.280957.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200727/cf0cf894/attachment.bin>


More information about the flang-commits mailing list