Author: Timm Bäder Date: 2021-01-12T13:16:49-05:00 New Revision: 348471575d9c24bbfb124ca5eac1589de075da88
URL: https://github.com/llvm/llvm-project/commit/348471575d9c24bbfb124ca5eac1589de075da88 DIFF: https://github.com/llvm/llvm-project/commit/348471575d9c24bbfb124ca5eac1589de075da88.diff LOG: Add -ansi option to CompileOnly group -ansi is documented as being the "same as -std=c89", but there are differences when passing it to a link. Adding -ansi to said group makes sense since it's supposed to be an alias for -std=c89 and resolves this inconsistency. Added: Modified: clang/include/clang/Driver/Options.td Removed: ################################################################################ diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index d9586e086a9c..b441c1b4c169 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -800,7 +800,7 @@ def Z_Flag : Flag<["-"], "Z">, Group<Link_Group>; def Z_Joined : Joined<["-"], "Z">; def all__load : Flag<["-"], "all_load">; def allowable__client : Separate<["-"], "allowable_client">; -def ansi : Flag<["-", "--"], "ansi">; +def ansi : Flag<["-", "--"], "ansi">, Group<CompileOnly_Group>; def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">; def arch : Separate<["-"], "arch">, Flags<[NoXarchOption]>; def arch__only : Separate<["-"], "arch_only">; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits