[clang] [flang] [Flang] [Driver] Add -fplt and -fno-plt options (PR #235622)
Eugene Epshteyn via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 06:35:53 PDT 2026
================
@@ -4516,9 +4516,9 @@ def fno_direct_access_external_data : Flag<["-"], "fno-direct-access-external-da
HelpText<"Use GOT indirection to reference external data symbols">;
defm plt : BoolFOption<"plt",
CodeGenOpts<"NoPLT">, DefaultFalse,
- NegFlag<SetTrue, [], [ClangOption, CC1Option],
- "Use GOT indirection instead of PLT to make external function calls (x86 only)">,
- PosFlag<SetFalse>>;
+ NegFlag<SetTrue, [], [ClangOption, CC1Option, FlangOption, FC1Option],
+ "Use GOT indirection instead of PLT to make external function calls (x86 and AArch64 only)">,
+ PosFlag<SetFalse, [], [ClangOption, CC1Option, FlangOption, FC1Option]>>;
----------------
eugeneepshteyn wrote:
flang needs only `FlangOption, FC1Option` on `-fplt`. Adding `CC1Option` changes clang too: `clang -cc1 -fplt` is accepted now, where it used to be an unknown argument.
https://github.com/llvm/llvm-project/pull/235622
More information about the cfe-commits
mailing list