On Mon, Oct 6, 2014 at 12:10 PM, Eric Botcazou <ebotca...@adacore.com> wrote: > Hi, > > LTO quickly breaks on Ada code involving floating-point comparisons because > the Ada compiler defaults to -fnon-call-exceptions -fno-trapping-math (on most > platforms) and only -fnon-call-exceptions is restored on the LTO side, so you > can end up with the wrong number of edges on FP comparisons during LTRANS. > > Tested on x86_64-suse-linux, OK for the mainline?
Ok. Thanks, Richard. > > 2014-10-06 Eric Botcazou <ebotca...@adacore.com> > > * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros > and -ftrapping-math. > * lto-wrapper.c (merge_and_complain): Likewise. > (run_gcc): Likewise. > > > 2014-10-06 Eric Botcazou <ebotca...@adacore.com> > > * gnat.dg/lto16.adb: New test. > * gnat.dg/lto16_pkg.adb: New helper. > > > -- > Eric Botcazou