------- Comment #6 from ro at gcc dot gnu dot org 2010-03-05 20:09 ------- I found none of the changes to internal_mcount to be necessary: with the attached patch, I could both bootstrap mainline successfully on i386-pc-solaris2.11, the -pg related testsuite failures were gone, and I could profile a small test program with gcc -pg -m64. To be certain I hadn't done anything wrong, I've used Sun Studio 12.1 cc -xpg -m64 to verify the profiling output, and apart from the exact times, the results were identical.
So unless you have a testcase that misbehaves with that patch, I plan to submit it shortly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38085