Skip to content

Commit de44691

Browse files
PeixinQiaobryanpkc
authored andcommitted
[Driver][ClassicFlang] Add options -fno-automatic and -f(no-)implicit-none
These three options are added in release_12. When compiling programs with them using Classic Flang, there are only warnings generated. They are removed now so that the errors of "unknown argument" are reported. Add these options in Driver for compatibility reason. Please note that these options are not implemented yet in Classic Flang.
1 parent 98e09d5 commit de44691

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6747,6 +6747,10 @@ def fbackslash : Flag<["-"], "fbackslash">, Group<gfortran_Group>,
67476747
DocBrief<[{Change the interpretation of backslashes in string literals from
67486748
a single backslash character to "C-style" escape characters.}]>;
67496749
def fno_backslash : Flag<["-"], "fno-backslash">, Group<gfortran_Group>;
6750+
// Add the options -f(no-)implicit-none and -f(no-)automatic for compatibility
6751+
// reason. They are not implemented yet in Classic Flang for now.
6752+
defm implicit_none : BooleanFFlag<"implicit-none">, Group<gfortran_Group>;
6753+
def fno_automatic : Flag<["-"], "fno-automatic">, Group<gfortran_Group>;
67506754
#else
67516755
defm backslash : OptInFC1FFlag<"backslash", "Specify that backslash in string introduces an escape character">;
67526756
defm xor_operator : OptInFC1FFlag<"xor-operator", "Enable .XOR. as a synonym of .NEQV.">;

0 commit comments

Comments
 (0)