bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: profiling support (files)


From: Marcus Brinkmann
Subject: Re: profiling support (files)
Date: Tue, 15 May 2001 02:38:05 +0200
User-agent: Mutt/1.3.15i

On Mon, May 14, 2001 at 07:36:23PM -0400, Roland McGrath wrote:
> > The specs file implement the following option combinations:
> > Notes: -shared overrides (and prevents) profiling options.
> >        -profile forces to link the profiling C library statically
> >        -pg/-p does link to the normal C library (dynamically or statically)
> 
> Is this the same as Linux?  Once it's verified to work, and is consistent
> with Linux, we can send the specs updates to the GCC folks.

A small correction: -shared overrides any profiling option at the linking
stage.  The cc1 option -p is added for all of -p/-pg/-profile (for the first
two automatically, for the third there is a rule in the specs file).

I verified equivalent behaviour on Linux and the Hurd for the following:

gcc -v -o main main.c $(OPTIONS)

Where $(OPTIONS) is:
(none)
-p
-pg
-profile
(any combination of the above)
-shared
-shared -p/-pg/-profile/combinations
-static
-static -p/-pg/-profile/combinations

At least I believe so.  I will double check tomorrow.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]