lib1funcs.h (FMOVD_WORKS): Only define if __FMOVD_ENABLED__ is defined.
authorNick Clifton <nickc@redhat.com>
Mon, 6 Jul 2009 13:55:09 +0000 (13:55 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Mon, 6 Jul 2009 13:55:09 +0000 (13:55 +0000)
commit7a61cf6f09d0a08de70d1f15f089a79cbec1ab1e
treef2b4569c011e34c11f7d7c4e6539913dbbd5f507
parent83f63251d92b61d083e7801e762089b372cbcf8e
lib1funcs.h (FMOVD_WORKS): Only define if __FMOVD_ENABLED__ is defined.

        * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
        __FMOVD_ENABLED__ is defined.
        * config/sh/sh.h
        (TARGET_FMOVD): Provide a default definition.
        (MASK_FMOVD): Likewise.
        (TARGET_CPU_CPP_BUILTINS): Define
        __FMOVD_ENABLED__ if TARGET_FMOVD is true.
        * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
        two fmov instructions depending upon whether TARGET_FMOVD is
        enabled.
        (split for DF load from memory into register): Also handle
        MEMs which consist of REG+DISP addressing.
        (split for DF store from register to memory): Likewise.
        (movsf_ie): Always use single fp_mode.
        * config/sh/sh.c (sh_override_options): Do not automatically
        enable TARGET_MOVD for the SH2A when supporting doubles - leave
        that to the -mfmovd command line switch.
        (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
        (fldi_ok): Always allow.
        * config/sh/sh.opt (mfmovd): Remove this switch.
        * doc/invoke.texi (-mfmovd): Remove documentation of this switch.

Co-Authored-By: DJ Delorie <dj@redhat.com>
From-SVN: r149283
gcc/ChangeLog
gcc/config/sh/lib1funcs.h
gcc/config/sh/sh.c
gcc/config/sh/sh.h
gcc/config/sh/sh.md
gcc/config/sh/sh.opt
gcc/doc/invoke.texi