Skip to content

Commit 054d6a7

Browse files
committed
[Xtensa] Add a no-op -mlongcalls option for better compatibility
Many projects targeting Xtensa architecture use GCC-specific -mlongcalls option. The current behavior of LLVM for Xtensa is equivalent to this option being set, so accept this option without changing the behavior.
1 parent 1b782d8 commit 054d6a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4263,6 +4263,7 @@ def mfix_esp32_psram_cache_issue : Flag<["-"], "mfix-esp32-psram-cache-issue">,
42634263
def mfix_esp32_psram_cache_strategy_EQ : Joined<["-"], "mfix-esp32-psram-cache-strategy=">, Group<m_xtensa_Features_Group>,
42644264
HelpText<" Psram cache fix strategies : memw, nops">,
42654265
Values<"memw, nops">;
4266+
def mlongcalls : Flag<["-"], "mlongcalls">, Group<m_xtensa_Features_Group>;
42664267

42674268
// These are legacy user-facing driver-level option spellings. They are always
42684269
// aliases for options that are spelled using the more common Unix / GNU flag

0 commit comments

Comments
 (0)