[MPlayer-advusers] gcc profile and mcount

Adam Sulmicki adam at cfar.umd.edu
Tue Jan 2 22:39:29 CET 2007


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.

-- 
Adam Sulmicki
http://www.eax.com 	The Supreme Headquarters of the 32 bit registers



More information about the MPlayer-advusers mailing list