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/69155] [6 Regression] ICE (segfault in gimple_stmt_nonnegative_warnv_p)


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

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 14 15:25:22 2016
New Revision: 232368

URL: https://gcc.gnu.org/viewcvs?rev=232368&root=gcc&view=rev
Log:
        PR middle-end/68146
        PR tree-optimization/69155
        * tree-complex.c: Include cfganal.h.
        (phis_to_revisit): New variable.
        (extract_component): Add phiarg_p argument.  Assert that returned
        SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
        (update_phi_components): Partly rewrite to use loop over real/imag
        components instead of code duplication.  If extract_component returns
        SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
        create_tmp_reg into the PHI node instead, and mention the phi triplet
        in phis_to_revisit.
        (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
        in phis_to_revisit at the end.

        * gfortran.dg/pr68146.f: New test.
        * gfortran.dg/pr69155.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr68146.f
    trunk/gcc/testsuite/gfortran.dg/pr69155.f90
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-complex.c

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