[vbox-dev] [PATCH] Build fix for later versions of LLVM/i386

Kyle Evans kevans at freebsd.org
Wed Apr 15 03:11:13 GMT 2020


This was encountered on FreeBSD. I believe, starting with LLVM 10, a
warning/error is now produced as such (reported to me; I do not have
the machine in question on hand):

      exception specification in declaration does not match previous
IEM_DECL_IMPL_DEF(void, iemAImpl_add_u64,(uint64_t *puDst, uint64_t uSrc...
      previous declaration is here
FNIEMAIMPLBINU64 iemAImpl_add_u64, iemAImpl_add_u64_locked;

Examination reveals that the __nothrow__ attribute is being applied to
the definition but not the declaration, which is the source of the
above error. Patch attached and available at
https://people.freebsd.org/~kevans/vbox/nothrow.diff adds __nothrow__
to the declaration as well to appease clang.

I suspect this is a de-minimus patch and licensing is not an issue,
but in case it's explicitly needed: this may be MIT licensed.


Kyle Evans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vbox-nothrow.diff
Type: text/x-patch
Size: 628 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20200414/f4f80863/attachment.bin>

More information about the vbox-dev mailing list