[rust-dev] Impact of -ftrapv on Firefox

Daniel Micay danielmicay at gmail.com
Mon Jan 13 22:19:30 PST 2014

On Mon, Jan 13, 2014 at 8:19 PM, Robert O'Callahan <robert at ocallahan.org> wrote:
> Thanks for catching that. My experiments indicate that -ftrapv works in gcc
> for x86 but not x86-64. Which explains why the Firefox try builds only work
> for x86-64. Which makes sense, since Firefox contains code that would depend
> on overflow wrapping around.

That's a bit scary since `-ftrapv` is only for signed integers and
it's probably not using `-fwrapv` to make it defined :).

More information about the Rust-dev mailing list