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/58464] [4.9 Regression] Crashes with SIGSEGV (infinite recursion in phi_translate)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58464

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Sep 23 12:37:17 2013
New Revision: 202826

URL: http://gcc.gnu.org/viewcvs?rev=202826&root=gcc&view=rev
Log:
2013-09-23  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/58464
    * tree-ssa-pre.c (phi_trans_lookup): Remove.
    (phi_trans_add): Change to add conditionally on being not
    present.
    (phi_translate_1): Remove recursion detection here.
    (phi_translate): Pre-seed the cache with NULL to catch
    recursion here in a more generic way.
    (bitmap_find_leader): Adjust comment.
    (get_representative_for): Dump value-numbers.
    (create_expression_by_pieces): Likewise.
    (insert_into_preds_of_block): Likewise.

    * g++.dg/torture/pr58464.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr58464.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-pre.c


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