[Bug tree-optimization/44182] [4.5/4.6 Regression] -fcompare-debug failure (length) with -O1

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon May 31 15:39:00 GMT 2010



------- Comment #7 from jakub at gcc dot gnu dot org  2010-05-31 15:38 -------
Subject: Bug 44182

Author: jakub
Date: Mon May 31 15:38:35 2010
New Revision: 160074

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160074
Log:
        PR tree-optimization/44182
        * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
        newly needs to end a bb is followed by debug stmts, instead return
        true from the function at the end.
        (maybe_move_debug_stmts_to_successors): New function.
        (copy_cfg_body): Call it if copy_edges_for_bb returned true.

        * g++.dg/debug/pr44182.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/debug/pr44182.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c


-- 


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



More information about the Gcc-bugs mailing list