[MPlayer-advusers] gcc, mplayer and profile (mcount)

Guillaume POIRIER poirierg at gmail.com
Wed Jan 3 18:02:08 CET 2007


Hi,

On 1/3/07, Adam Sulmicki <adam at cfar.umd.edu> wrote:

> Suggested solutions:
>
>         * Rename mcount in mplayer/libmenu/menu.c to something else.
>
>         * document mcount in gcc man page

Actually, it's at least documented in gprof's info page


>         * gcc prints warning.
>
>         * do nothing.
>
> I can immagine that gcc developers might have intentionally left mcount()
> visible to user space so that user can replace gcc's mcount() with their
> own implementation.

Looks like you're right:
http://sourceware.org/binutils/docs-2.17/gprof/Implementation.html

damn! I really don't like that design!

Guillaume
-- 
An association of men who will not quarrel with one another is a thing
which has never yet existed, from the greatest confederacy of nations
down to a town meeting or a vestry.
 -- Thomas Jefferson
(when interviewed about MPlayer ML flamewars)
http://www.brainyquote.com/quotes/quotes/t/thomasjeff157207.html



More information about the MPlayer-advusers mailing list