[MPlayer-advusers] gcc profile and mcount

Alban Bedel albeu at free.fr
Tue Jan 2 22:50:17 CET 2007


On Tue, 2 Jan 2007 16:39:29 -0500 (EST)
Adam Sulmicki <adam at cfar.umd.edu> wrote:

> 
> hello,
> 
> The Problem:
>  	In mplayer/libmenu/menu.c there's in use "mcount" variable:
> 
>  		# grep mcount menu.c
>  		static int mcount = 0;
> 
>  	however, once "-pg" or "-p" options are enabled,
>  	gcc uses mcount _function_ for its internal profiling.
> 
>  	The results are mysterious crashes on menu_init().
> 
> The solution:
> 
>  	Rename mcount in libmenu/menu.c to something else.

No, the solution is to send a bug report to the gcc ppl and make them
fix their bugs.

	Albeu



More information about the MPlayer-advusers mailing list