This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix internal error in LTO mode on Ada code


On Mon, Oct 6, 2014 at 12:10 PM, Eric Botcazou <ebotcazou@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  <ebotcazou@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  <ebotcazou@adacore.com>
>
>         * gnat.dg/lto16.adb: New test.
>         * gnat.dg/lto16_pkg.adb: New helper.
>
>
> --
> Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]