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 middle-end/48770] [4.7 Regression] wrong code with -O -fprofile-arcs -fPIC -fno-dce -fno-forward-propagate -fno-tree-forwprop


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

--- Comment #7 from Jeffrey A. Law <law at gcc dot gnu.org> 2011-06-23 21:30:23 UTC ---
Author: law
Date: Thu Jun 23 21:30:20 2011
New Revision: 175353

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175353
Log:

    PR middle-end/48770
    * reload.h (reload): Change to return a bool.
    * ira.c (ira): If requested by reload, run a fast DCE pass after
    reload has completed.  Fix comment typo.
    * reload1.c (need_dce): New file scoped static.
    (reload): Set reload_completed here.  Return whether or not a DCE
    pass after reload is needed.
    (delete_dead_insn): Set need_dce as needed.

    PR middle-end/48770
    * gcc.dg/pr48770.c: New test.



Added:
    trunk/gcc/testsuite/gcc.dg/pr48770.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira.c
    trunk/gcc/reload.h
    trunk/gcc/reload1.c
    trunk/gcc/testsuite/ChangeLog


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