[rust-dev] Impact of -ftrapv on Firefox

Robert O'Callahan robert at ocallahan.org
Mon Jan 13 17:19:25 PST 2014

On Tue, Jan 14, 2014 at 12:11 PM, Daniel Micay <danielmicay at gmail.com>wrote:

> There's also the issue that libgcc_s is missing the function LLVM will
> generate for 64-bit overflow checked multiplication on most
> architectures. It's there on x86_64, but on x86 you'll need a `clang`
> set up to use `compiler-rt`.
> It's hilarious that `gcc` is totally broken though...

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.

So we're back to not knowing anything :-).

Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140114/e869f777/attachment.html>

More information about the Rust-dev mailing list