1 2!-------------------------- 3! FLANG DRIVER (flang-new) 4!-------------------------- 5! RUN: %flang --help-hidden 2>&1 | FileCheck %s 6! RUN: not %flang -help-hidden 2>&1 | FileCheck %s --check-prefix=ERROR-FLANG 7 8!---------------------------------------- 9! FLANG FRONTEND DRIVER (flang-new -fc1) 10!---------------------------------------- 11! RUN: not %flang_fc1 --help-hidden 2>&1 | FileCheck %s --check-prefix=ERROR-FLANG-FC1 12! RUN: not %flang_fc1 -help-hidden 2>&1 | FileCheck %s --check-prefix=ERROR-FLANG-FC1 13 14! CHECK:USAGE: flang-new 15! CHECK-EMPTY: 16! CHECK-NEXT:OPTIONS: 17! CHECK-NEXT: -### Print (but do not run) the commands to run for this compilation 18! CHECK-NEXT: -cpp Enable predefined and command line preprocessor macros 19! CHECK-NEXT: -c Only run preprocess, compile, and assemble steps 20! CHECK-NEXT: -D <macro>=<value> Define <macro> to <value> (or 1 if <value> omitted) 21! CHECK-NEXT: -emit-llvm Use the LLVM representation for assembler and object files 22! CHECK-NEXT: -E Only run the preprocessor 23! CHECK-NEXT: -falternative-parameter-statement 24! CHECK-NEXT: Enable the old style PARAMETER statement 25! CHECK-NEXT: -fbackslash Specify that backslash in string introduces an escape character 26! CHECK-NEXT: -fcolor-diagnostics Enable colors in diagnostics 27! CHECK-NEXT: -fdefault-double-8 Set the default double precision kind to an 8 byte wide type 28! CHECK-NEXT: -fdefault-integer-8 Set the default integer kind to an 8 byte wide type 29! CHECK-NEXT: -fdefault-real-8 Set the default real kind to an 8 byte wide type 30! CHECK-NEXT: -ffixed-form Process source files in fixed form 31! CHECK-NEXT: -ffixed-line-length=<value> 32! CHECK-NEXT: Use <value> as character line width in fixed mode 33! CHECK-NEXT: -ffree-form Process source files in free form 34! CHECK-NEXT: -fimplicit-none No implicit typing allowed unless overridden by IMPLICIT statements 35! CHECK-NEXT: -finput-charset=<value> Specify the default character set for source files 36! CHECK-NEXT: -fintrinsic-modules-path <dir> 37! CHECK-NEXT: Specify where to find the compiled intrinsic modules 38! CHECK-NEXT: -flang-experimental-exec 39! CHECK-NEXT: Enable support for generating executables (experimental) 40! CHECK-NEXT: -flarge-sizes Use INTEGER(KIND=8) for the result type in size-related intrinsics 41! CHECK-NEXT: -flogical-abbreviations Enable logical abbreviations 42! CHECK-NEXT: -fno-automatic Implies the SAVE attribute for non-automatic local objects in subprograms unless RECURSIVE 43! CHECK-NEXT: -fno-color-diagnostics Disable colors in diagnostics 44! CHECK-NEXT: -fno-integrated-as Disable the integrated assembler 45! CHECK-NEXT: -fopenacc Enable OpenACC 46! CHECK-NEXT: -fopenmp Parse OpenMP pragmas and generate parallel code. 47! CHECK-NEXT: -fxor-operator Enable .XOR. as a synonym of .NEQV. 48! CHECK-NEXT: -help Display available options 49! CHECK-NEXT: -I <dir> Add directory to the end of the list of include search paths 50! CHECK-NEXT: -mllvm <value> Additional arguments to forward to LLVM's option processing 51! CHECK-NEXT: -mmlir <value> Additional arguments to forward to MLIR's option processing 52! CHECK-NEXT: -module-dir <dir> Put MODULE files in <dir> 53! CHECK-NEXT: -nocpp Disable predefined and command line preprocessor macros 54! CHECK-NEXT: -o <file> Write output to <file> 55! CHECK-NEXT: -pedantic Warn on language extensions 56! CHECK-NEXT: -print-effective-triple Print the effective target triple 57! CHECK-NEXT: -print-target-triple Print the normalized target triple 58! CHECK-NEXT: -P Disable linemarker output in -E mode 59! CHECK-NEXT: -save-temps=<value> Save intermediate compilation results. 60! CHECK-NEXT: -save-temps Save intermediate compilation results 61! CHECK-NEXT: -std=<value> Language standard to compile for 62! CHECK-NEXT: -S Only run preprocess and compilation steps 63! CHECK-NEXT: --target=<value> Generate code for the given target 64! CHECK-NEXT: -U <macro> Undefine macro <macro> 65! CHECK-NEXT: --version Print version information 66! CHECK-NEXT: -W<warning> Enable the specified warning 67! CHECK-NEXT: -Xflang <arg> Pass <arg> to the flang compiler 68 69! ERROR-FLANG: error: unknown argument '-help-hidden'; did you mean '--help-hidden'? 70 71! Frontend driver -help-hidden is not supported 72! ERROR-FLANG-FC1: error: unknown argument: '{{.*}}' 73 74