From fefb7e698f603cd8d2840254dcf2cf6360e1e7ce Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Fri, 1 Sep 2023 00:38:30 -0700 Subject: Don't inline AddCompilerOptionsArgumentParserOptions This function generates a large stack frame, but that's OK, so the stack frame limit is ignored for it. However, if the function is inlined into its callers, then the pragma suppressing the stack frame limit doesn't work. Bug: b/175635923 Test: treehugger Change-Id: Ie24409ba5691f2734cfedb6506e9fb341718b86b --- compiler/driver/compiler_options_map-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_options_map-inl.h') diff --git a/compiler/driver/compiler_options_map-inl.h b/compiler/driver/compiler_options_map-inl.h index 79a59625f5..8530df37e4 100644 --- a/compiler/driver/compiler_options_map-inl.h +++ b/compiler/driver/compiler_options_map-inl.h @@ -117,7 +117,7 @@ inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string #pragma GCC diagnostic ignored "-Wframe-larger-than=" template -inline void AddCompilerOptionsArgumentParserOptions(Builder& b) { +NO_INLINE void AddCompilerOptionsArgumentParserOptions(Builder& b) { // clang-format off b. Define("--compiler-filter=_") -- cgit v1.2.3-59-g8ed1b