Thomas Bertschinger

Results 5 comments of Thomas Bertschinger

Make sure you select a CPU for the VM that supports the x86-64-v2 instructions. This page shows which ones support them: https://www.qemu.org/docs/master/system/i386/cpu.html. The default CPU (qemu64) does not. This page...

> I'd take a reasonable patch for this, sure :) Cool. I will get to work :)

The patch I've just uploaded (https://github.com/rust-lang/rust-bindgen/pull/2734) handles the "type has both packed and align attrs" case, but it doesn't do anything for the "packed type transitively contains aligned type" case....

> Makes sense to me. Not sure if a full analysis/ pass would be necessary. It seems it would be feasible to handle it in CompInfo::layout? Thanks! - I may...

Emilio - I've submitted two patches that take different approaches to handling "packed type transitively contains aligned type". The first patch (https://github.com/rust-lang/rust-bindgen/pull/2769) is simpler but doesn't cover as many cases...