https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78416

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec  7 22:54:14 2016
New Revision: 243406

URL: https://gcc.gnu.org/viewcvs?rev=243406&root=gcc&view=rev
Log:
        Backported from mainline
        2016-11-22  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/78416
        * expmed.c (expand_divmod): Use wide_int for computation of
        op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
        Use size <= HOST_BITS_PER_WIDE_INT instead of
        HOST_BITS_PER_WIDE_INT >= size.

        * gcc.dg/torture/pr78416.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr78416.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/expmed.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to