From b08bc84a36f9661e37340a6b4b3244f4b0f7060a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 18 May 2016 18:30:03 -0700 Subject: don't add no-frame-pointer-elim for inline functions and make syscall functions inline this gets the tests all passing on i386 --- src/analyze.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 937a7627de..26c85ea68f 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1130,7 +1130,7 @@ static void resolve_function_proto(CodeGen *g, AstNode *node, FnTableEntry *fn_t if (!fn_table_entry->is_extern) { LLVMAddFunctionAttr(fn_table_entry->fn_value, LLVMNoUnwindAttribute); } - if (!g->is_release_build) { + if (!g->is_release_build && !fn_proto->is_inline) { ZigLLVMAddFunctionAttr(fn_table_entry->fn_value, "no-frame-pointer-elim", "true"); ZigLLVMAddFunctionAttr(fn_table_entry->fn_value, "no-frame-pointer-elim-non-leaf", nullptr); } -- cgit v1.2.3