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/37879] [4.3 Regression] ICE with "wrong" use of noreturn attribute and optimization



------- Comment #7 from jakub at gcc dot gnu dot org  2008-11-05 20:41 -------
Subject: Bug 37879

Author: jakub
Date: Wed Nov  5 20:39:50 2008
New Revision: 141620

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141620
Log:
        PR tree-optimization/37879
        * predict.c (tree_estimate_probability): Check if last_stmt is
        non-NULL before dereferencing it.

        * gcc.dg/pr37879.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr37879.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/predict.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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