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]

[PATCH, i386, libgcc]: Split SSE specific part from set_fast_math


Hello!

This patch splits SSE specific part of set_fast_math to its own
function, decorated with "fxsr,sse" target attribute. This way, we can
avoid compiling the whole file with -msse that implies generation of
possibly unsupported CMOVE insns.

Additionally, we can now use generic t-crtfm makefile fragment.

2015-05-22  Uros Bizjak  <ubizjak@gmail.com>

    * config.host (i[34567]-*-*, x86_64-*-*): Add t-crtfm instead of
    i386/t-crtfm to tmake_file.
    * config/i386/crtfastmath.c (set_fast_math_sse): New function.
    (set_fast_math): Use set_fast_math_sse for SSE targets.
    * config/i386/t-crtfm: Remove.

Bootstrapped, regression tested on x86_64-linux-gnu {,-m32} and
committed to mainline SVN.

Uros.

Attachment: l.diff.txt
Description: Text document


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