Skip to content

Commit 437b414

Browse files
committed
Improve help message for -fno-fortran-main
1 parent 924877d commit 437b414

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6354,9 +6354,11 @@ def J : JoinedOrSeparate<["-"], "J">,
63546354
Group<gfortran_Group>,
63556355
Alias<module_dir>;
63566356

6357+
let Visibility = [FlangOption] in {
63576358
def no_fortran_main : Flag<["-"], "fno-fortran-main">,
63586359
Visibility<[FlangOption]>, Group<f_Group>,
6359-
HelpText<"Don't link in Fortran main">;
6360+
HelpText<"Do not include Fortran_main.a (provided by Flang) when linking">;
6361+
} // let Visibility = [ FlangOption ]
63606362

63616363
//===----------------------------------------------------------------------===//
63626364
// FC1 Options

flang/test/Driver/driver-help-hidden.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
! CHECK-NEXT: Select Windows run-time library
6565
! CHECK-NEXT: -fno-automatic Implies the SAVE attribute for non-automatic local objects in subprograms unless RECURSIVE
6666
! CHECK-NEXT: -fno-color-diagnostics Disable colors in diagnostics
67-
! CHECK-NEXT: -fno-fortran-main Don't link in Fortran main
67+
! CHECK-NEXT: -fno-fortran-main Do not include Fortran_main.a (provided by Flang) when linking
6868
! CHECK-NEXT: -fno-integrated-as Disable the integrated assembler
6969
! CHECK-NEXT: -fno-lto Disable LTO mode (default)
7070
! CHECK-NEXT: -fno-ppc-native-vector-element-order

flang/test/Driver/driver-help.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
! HELP-NEXT: Select Windows run-time library
5555
! HELP-NEXT: -fno-automatic Implies the SAVE attribute for non-automatic local objects in subprograms unless RECURSIVE
5656
! HELP-NEXT: -fno-color-diagnostics Disable colors in diagnostics
57-
! HELP-NEXT: -fno-fortran-main Don't link in Fortran main
57+
! HELP-NEXT: -fno-fortran-main Do not include Fortran_main.a (provided by Flang) when linking
5858
! HELP-NEXT: -fno-integrated-as Disable the integrated assembler
5959
! HELP-NEXT: -fno-lto Disable LTO mode (default)
6060
! HELP-NEXT: -fno-ppc-native-vector-element-order

0 commit comments

Comments
 (0)