[Bug 236216] devel/valgrind: clang 8 crashes during build

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 4 18:01:26 UTC 2019


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

--- Comment #4 from Dimitry Andric <dim at FreeBSD.org> ---
Created attachment 202554
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=202554&action=edit
Reuse existing offsetof macro for clang 8's sake

This is regressed by upstream https://reviews.llvm.org/rL349561 ("Emit ASM
input in a constant context"), and I already filed an upstream bug here:

https://bugs.llvm.org/show_bug.cgi?id=40890

The cause is the custom my_offsetof() macro in genoffsets, which returns a
pointer, not an offset.  The attached patch makes it reuse the already existing
offsetof() macro from VEX/pub/libvex_basictypes.h, which does the right thing.

I think this is an acceptable workaround until upstream fixes the issue with
<https://reviews.llvm.org/rL349561>, or even as a permanent cleanup.

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


More information about the freebsd-toolchain mailing list