[Bug target/62018] FAIL: gcc.dg/torture/ftrapv-1.c * execution test on x86_64-apple-darwin13

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Mon Nov 10 08:54:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62018

--- Comment #15 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 10 Nov 2014, fxcoudert at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62018
> 
> --- Comment #14 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
> (In reply to rguenther@suse.de from comment #12)
> > So I bet apple GCC 4.2 is affected as well - not sure if LLVM
> > provides libgcc_s on newer systems.
> 
> Apple does not provide GCC 4.2 anymore, but its LLVM compiler provides a
> __addvsi3 as part of its libSystem. Probably for backward compatibility,
> because…
> 
> 
> (In reply to rguenther@suse.de from comment #13)
> > Simply get libcompiler_rt folks to fix their code?  You should be
> > able to file a bug somewhere.
> 
> … the current clang-based Apple compilers do not emit any call to __addvsi3,
> but directly emit the overflow checking code. So, I cannot get a simple
> reproducer to report to them.

Your example directly calling __addvsi3 should suffice for that.

Richard.


More information about the Gcc-bugs mailing list