This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/81428] [7/8 Regression] ICE: in build_one_cst, at tree.c:2079 with -O2. Fixed point division.


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jul 17 19:45:59 2017
New Revision: 250289

URL: https://gcc.gnu.org/viewcvs?rev=250289&root=gcc&view=rev
Log:
        PR tree-optimization/81428
        * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
        can't be built for those types.

        * gcc.dg/fixed-point/pr81428.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/fixed-point/pr81428.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/match.pd
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

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