This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/32789] Profiling not possible with -fopenmp
- From: "jensseidel at users dot sf dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2007 11:00:25 -0000
- Subject: [Bug libgomp/32789] Profiling not possible with -fopenmp
- References: <bug-32789-14868@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jensseidel at users dot sf dot net 2007-07-17 11:00 -------
(In reply to comment #4)
> grpof profiling is all done via a call to mcount and mcount is controlled by
> libc (in the GNU/Linux case glibc). So I doubt this is a GCC bug.>
OK, for the record: I use OpenSuse 10.2 with glibc 2.5.
According to http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html#SEC1
mcount occurs in the gprof output but I haven't seen this yet (gprof
2.17.50.0.5).
(In reply to comment #5)
> And that is the reason why GCC added atomic builtins when openmp came
> in also. There are manuals for a reason :).
I don't understand this but it may be off topic. (Should I inform the Open MPI
people about atomic assembler locking code in gcc so that they can reuse it?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32789