This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50907] [4.7 Regression] EDGE_CROSSING incorrectly set across same section with -freorder-blocks-and-partition -fPIC -fprofile-use
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Nov 2011 21:04:15 +0000
- Subject: [Bug middle-end/50907] [4.7 Regression] EDGE_CROSSING incorrectly set across same section with -freorder-blocks-and-partition -fPIC -fprofile-use
- Auto-submitted: auto-generated
- References: <bug-50907-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50907
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-28 21:04:15 UTC ---
Author: jakub
Date: Mon Nov 28 21:04:10 2011
New Revision: 181787
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181787
Log:
PR middle-end/50907
* function.c (convert_jumps_to_returns): When redirecting an edge
succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
* gcc.dg/tree-prof/pr50907.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/tree-prof/pr50907.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/function.c
trunk/gcc/testsuite/ChangeLog