[MPlayer-dev-eng] [PATCH] gcc 3.3.3 optimizing statics out of decode_i586.c
Steven M. Schultz
sms at 2BSD.COM
Tue Aug 3 20:11:37 CEST 2004
Hi -
gcc 3.3.3 (on a SuSE 9.1 system) optimizes 'buffs', and
'saved_ebp' out which causes undefined symbols later at link time.
Fix is to use the "attribute_used" macro in the same way that
it was used for 'bo'.
Cheers,
Steven Schultz
-------------- next part --------------
--- mp3lib/decode_i586.c.dist 2004-08-03 10:55:25.826080000 -0700
+++ mp3lib/decode_i586.c 2004-08-03 11:05:44.178387476 -0700
@@ -27,9 +27,9 @@
#include "../mangle.h"
#define real float /* ugly - but only way */
-static long buffs[1088]={0};
+static long attribute_used buffs[1088]={0};
static long attribute_used bo=1;
-static long saved_ebp=0;
+static long attribute_used saved_ebp=0;
int synth_1to1_pent(real *bandPtr, int channel, short *samples)
{
More information about the MPlayer-dev-eng
mailing list