This is the mail archive of the gcc-patches@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]

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 ----


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