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

Alexis Perry-Holby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 13:16:40 PDT 2020


AlexisPerry created this revision.
AlexisPerry added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

fixes BUG 46307


Repository:
  rG LLVM Github Monorepo

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
@@ -544,6 +544,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.279621.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200721/59db28a6/attachment.bin>


More information about the llvm-commits mailing list