This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix -ftree-based-profiling -fprofile-arcs failures
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Sep 2004 16:35:03 +0200
- Subject: Fix -ftree-based-profiling -fprofile-arcs failures
Hi,
profile.c calls verify_flow_info on CFG with fake edges in. Tree
version of the function don't like these and aborts. This is quite
inconsistent so I will look into this next, but for profile.c case I
don't think it is problem to remove the call as it don't buy us much
anyway.
Bootstrapped/regtested i686-pc-gnu-linux, committed.
2004-09-23 Jan Hubicka <jh@suse.cz>
* profile.c (branch_prob): Do not verify flow info in the middle of the
pass.
Index: profile.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/profile.c,v
retrieving revision 1.142
diff -c -3 -p -r1.142 profile.c
*** profile.c 16 Sep 2004 20:42:00 -0000 1.142
--- profile.c 21 Sep 2004 15:15:43 -0000
*************** branch_prob (void)
*** 838,847 ****
}
}
- #ifdef ENABLE_CHECKING
- verify_flow_info ();
- #endif
-
/* Create spanning tree from basic block graph, mark each edge that is
on the spanning tree. We insert as many abnormal and critical edges
as possible to minimize number of edge splits necessary. */
--- 838,843 ----