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 middle-end/71606] [4.9/5/6 Regression] ICE on -O2 and above on x86_64-linux-gnu (internal compiler error: in get_expr_operands, at tree-ssa-operands.c:882)


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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Jul  8 20:21:02 2016
New Revision: 238173

URL: https://gcc.gnu.org/viewcvs?rev=238173&root=gcc&view=rev
Log:
Do not consider COMPLEX_TYPE as fold_convertible_p

        Backported from mainline
        2016-07-08  Martin Liska  <mliska@suse.cz>

        PR middle-end/71606
        * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
        folding produces SAVE_EXPRs, thus return false for the type.
        Backported from mainline
        2016-07-08  Martin Liska  <mliska@suse.cz>

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

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr71606.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/fold-const.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

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