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

[Bug gcov-profile/34610] [4.3 regression] ICE with "-fprofile-arcs -fopenmp"



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


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