Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Harvey J. Stein <abel@netvision.net.il>
Subject: Re: Profiling still broken?
Date: Tue, 30 Sep 1997 15:50:29 +0200	[thread overview]
Message-ID: <9833a509d1df9d32d4f3c5902a7a9515.axp-list@archive.invalid> (raw)
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

       reply	other threads:[~1997-09-30 13:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9709291751.AA16877@moene.indiv.nluug.nl>
1997-09-30 13:50 ` Harvey J. Stein [this message]
1997-10-01 11:05 ` Profiling still broken? Harvey J. Stein
     [not found] <34335786.41C67EA6@iis.fhg.de>
1997-10-02 16:05 ` Richard Henderson
1997-10-02  8:12 Stefan Schroepfer
     [not found] <199710011105.NAA09773@blinky.bfr.co.il>
1997-10-02  6:09 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1997-09-30 17:35 Toon Moene
1997-09-29 17:51 Toon Moene
1997-09-29 13:37 Harvey J. Stein
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox