[Bug tree-optimization/81503] [8 Regression] Wrong code at -O2

wschmidt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 5 21:52:00 GMT 2017


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

--- Comment #20 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Tue Sep  5 21:52:01 2017
New Revision: 251745

URL: https://gcc.gnu.org/viewcvs?rev=251745&root=gcc&view=rev
Log:
[gcc]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
        folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        Backport from mainline
        2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
                    Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR tree-optimization/81503
        * gcc.c-torture/execute/pr81503.c: New file.


Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr81503.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list