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

fixes BUG 46307

Differential Revision: https://reviews.llvm.org/D84266
This commit is contained in:
AlexisPerry 2020-07-27 09:57:31 -07:00 committed by Tim Keith
parent dbeb184b7f
commit 4a4cafabc9
1 changed files with 5 additions and 0 deletions

View File

@ -545,6 +545,11 @@ int main(int argc, char *const argv[]) {
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") {