This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/34610] [4.3 regression] ICE with "-fprofile-arcs -fopenmp"
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2008 21:05:16 -0000
- Subject: [Bug gcov-profile/34610] [4.3 regression] ICE with "-fprofile-arcs -fopenmp"
- References: <bug-34610-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from hubicka at ucw dot cz 2008-01-03 21:05 -------
Subject: Re: [4.3 regression] ICE with "-fprofile-arcs -fopenmp"
> (which compiles) profile counters are added before omp expansion and once again
> for the child function. Is there a reason why pass_tree_profile can't run
> after
> pass_cleanup_cfg/pass_init_datastructures/pass_expand_omp?
The reason is that pass_cleanup_cfg might remove some explicit goto
statements and gcov output would miss them then.
> If it can't be moved, could it at least skip all edges in omp parallel regions?
> Or if it is not thread safe, just disable pass_tree_profile if flag_openmp...
Well, there is thread safe profiling. In general tree_profile should
not see anything it profiled already. I guess all we need to is to mark
clones constructed by OMP and ignore those functions in tree_profile?
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34610