[Bug 221588] clang crashes when compiling cad/openvsp

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 17 17:26:32 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221588

--- Comment #2 from Dimitry Andric <dim at FreeBSD.org> ---
So what this test case causes is:

fatal error: error in backend: No open frame

This happens with most versions of clang that I could test, and is due to the
following inline assembly:

https://sourceforge.net/p/angelscript/code/HEAD/tree/trunk/sdk/angelscript/source/as_callfunc_x86.cpp#l1454

#ifdef __OPTIMIZE__
                // Epilogue
                "movl %%ebp, %%esp         \n"
                ".cfi_def_cfa_register esp \n"
                "popl %%ebp                \n"
                ".cfi_adjust_cfa_offset -4 \n"
                ".cfi_restore ebp          \n"
#endif

Basically, it finds a 'naked' .cfi_restore directive, and it chokes on that. It
is probably possible to work around this by disabling the epilogue part, but I
am not familiar with this angelscript stuff at all...

We do have a lang/angelscript port, maintained by vg@, maybe he knows how we
can work around this problem?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list