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/42508] [4.5 Regression] wrong code with "-O1 -fipa-sra"



------- Comment #5 from jakub at gcc dot gnu dot org  2010-01-05 08:41 -------
Subject: Bug 42508

Author: jakub
Date: Tue Jan  5 08:40:50 2010
New Revision: 155640

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155640
Log:
        PR tree-optimization/42508
        * tree-sra.c (convert_callers): Check for recursive call
        by comparing cgraph nodes instead of decls.
        (modify_function): Call ipa_modify_formal_parameters also
        on all same_body aliases.

        * g++.dg/opt/pr42508.C: New test.

        * cgraphunit.c (cgraph_materialize_all_clones): Compare
        cgraph nodes when checking for same_body aliases.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr42508.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraphunit.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c


-- 


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


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