From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9833a509d1df9d32d4f3c5902a7a9515.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199709301350.PAA18209@blinky.bfr.co.il> Date: Tue, 30 Sep 1997 15:50:29 +0200 From: Harvey J. Stein Subject: Re: Profiling still broken? In-Reply-To: <9709291751.AA16877@moene.indiv.nluug.nl> Toon Moene writes: > > Well, I don't know for sure, because I don't know what's in "the > recent gcc patch", but there is (still) a problem in gcc with > respect to profiling. The symptom is that C code with nested > functions (of which glibc seems to use a lot) has a fairly good > chance of dying with a segmentation violation. > > For instance, g77-0.5.21 has a change in the code of > profile_function in final.c that fixes this in gcc-2.7.2.3, so > apparently all publicly available gcc's have this bug. > > The problem is that the static chain pointer has to be saved around > the calls of mcount that profiling inserts. The gcc patch I'm refering to is the one that Richard Henderson sent to the list a few weeks ago. I was seeing the message: Error: macro requires $at register while noat in effect when compiling certain files. Richard figured out that it was due to very large stack frames & mailed out a gcc patch to fix the problem (which, I might add, worked perfectly - Thanks, Richard!). So in any case, what's one to do regarding profiling? Is there a patch for gcc 2.7.2.1 to fix it? Or should I grab some code from g77-0.5.21? Or should I get 2.7.2.3? Or what? Thanks, -- Harvey J. Stein Berger Financial Research hjstein@bfr.co.il -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com