[Bug target/56529] [SH] Calls to __sdivsi3_i4i and __udivsi3_i4i are generated on SH2

olegendo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 6 22:54:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56529

--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> 2013-03-06 22:54:18 UTC ---
Author: olegendo
Date: Wed Mar  6 22:54:11 2013
New Revision: 196510

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196510
Log:
    Backport from mainline
    2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>

    PR target/56529
    * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
    instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
    to SH_DIV_CALL_TABLE for TARGET_SH2.
    * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
    list.
    * doc/invoke.texi (SH options): Use table for mdiv= option.  Document
    mdiv= call-div1, call-fp, call-table options.


    Backport from mainline.
    2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>

    PR target/56529
    * config/sh/lib1funcs.S (udivsi3_i4i, sdivsi3_i4i): Add __SH2A__ to
    inclusion list.


Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/config.gcc
    branches/gcc-4_7-branch/gcc/config/sh/sh.c
    branches/gcc-4_7-branch/gcc/doc/invoke.texi
    branches/gcc-4_7-branch/libgcc/ChangeLog
    branches/gcc-4_7-branch/libgcc/config/sh/lib1funcs.S



More information about the Gcc-bugs mailing list