------- Comment #9 from ubizjak at gmail dot com  2007-07-04 14:11 -------
(In reply to comment #1)
> Most likely -pg is changing the alignment of the stack which is incorrect.  Oh
> -pg code is emitted by the target specific code so this is a target issue.

Hm, on x86_64 pg inserts:

fprintf (file, "\tleaq\t%sP%d@(%%rip),%%r11\n", LPREFIX, labelno);
fprintf (file, "[EMAIL PROTECTED](%%rip)\n", MCOUNT_NAME);

So, it loads %r11 and calls mcount. The only thing that can go wrong is, that
some value in %r11 gets rewritten. Could you look what happens with %r11 around
the point of failure?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32450

Reply via email to