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: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2008 15:01:57 -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 #3 from jakub at gcc dot gnu dot org 2008-01-03 15:01 -------
Additionally, pass_tree_profile is executed multiple times with -fopenmp, e.g.
on
void foo (int i)
{
#pragma omp parallel
if (i > 2)
bar (i + 1);
else if (i < -2)
bar (i / 2);
else
bar (i * 2);
}
(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?
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...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34610