[MPlayer-dev-eng] [PATCH] Disable additional optimization if compiler doesn't support __attribute__((used))

Reimar Doeffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jun 10 12:15:04 CEST 2007


Hello,
On Sun, Jun 10, 2007 at 11:52:19AM +0200, Michael Niedermayer wrote:
[...]
> you can add a seperate asm (or c code) which refers to the used variable
> or maybe just defining attribute used to volatile would work?

volatile did not help with 9.1.
And separate code that references it seems ugly to do. Also you would
have to make sure that that code in turn isn't unused as well...

> or if all attribute used are also static then we could 
> 
> #define attribute_used static attriute(used)
> #else
> #define attribute_used
> 
> icc likely cant remove global vars ...

That is possible, though I very much do not like the namespace bloat
involved in it...
Though if ICC supports visibility maybe this can be combined into
something acceptable...

Greetings,
Reimar Doeffinger



More information about the MPlayer-dev-eng mailing list