summaryrefslogtreecommitdiffstats
path: root/mp3lib
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-26 10:12:40 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-26 10:12:40 +0000
commitbaa587170e63566f91dad212ff8b42d6c7966f4a (patch)
treef9ea544cad0a0382312e43f8bdbbfa4fdcab99fc /mp3lib
parent681827cb68fa33a3722e0a762b5b5f5477ef7291 (diff)
downloadmpv-baa587170e63566f91dad212ff8b42d6c7966f4a.tar.bz2
mpv-baa587170e63566f91dad212ff8b42d6c7966f4a.tar.xz
attribute_used for gcc3.4
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12293 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r--mp3lib/dct64_3dnow.c3
-rw-r--r--mp3lib/dct64_k7.c3
-rw-r--r--mp3lib/decode_MMX.c5
-rw-r--r--mp3lib/decode_i586.c3
-rw-r--r--mp3lib/tabinit_MMX.c3
5 files changed, 11 insertions, 6 deletions
diff --git a/mp3lib/dct64_3dnow.c b/mp3lib/dct64_3dnow.c
index 47a089143a..4205e673a5 100644
--- a/mp3lib/dct64_3dnow.c
+++ b/mp3lib/dct64_3dnow.c
@@ -9,10 +9,11 @@
*/
#define real float /* ugly - but only way */
+#include "../config.h"
#include "../mangle.h"
static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL;
-static float plus_1f = 1.0;
+static float attribute_used plus_1f = 1.0;
void dct64_MMX_3dnow(real *a,real *b,real *c)
{
diff --git a/mp3lib/dct64_k7.c b/mp3lib/dct64_k7.c
index 46e99b32d7..18de2f27aa 100644
--- a/mp3lib/dct64_k7.c
+++ b/mp3lib/dct64_k7.c
@@ -9,10 +9,11 @@
*/
#define real float /* ugly - but only way */
+#include "../config.h"
#include "../mangle.h"
static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL;
-static float plus_1f = 1.0;
+static float attribute_used plus_1f = 1.0;
void dct64_MMX_3dnowex(real *a,real *b,real *c)
{
diff --git a/mp3lib/decode_MMX.c b/mp3lib/decode_MMX.c
index 6461dd55d9..990e56305c 100644
--- a/mp3lib/decode_MMX.c
+++ b/mp3lib/decode_MMX.c
@@ -7,11 +7,12 @@
* Local ChangeLog:
* - Partial loops unrolling and removing MOVW insn from loops
*/
+#include "../config.h"
#include "../mangle.h"
#define real float /* ugly - but only way */
-static unsigned long long __attribute__((aligned(8))) null_one = 0x0000ffff0000ffffULL;
-static unsigned long long __attribute__((aligned(8))) one_null = 0xffff0000ffff0000ULL;
+static unsigned long long attribute_used __attribute__((aligned(8))) null_one = 0x0000ffff0000ffffULL;
+static unsigned long long attribute_used __attribute__((aligned(8))) one_null = 0xffff0000ffff0000ULL;
unsigned long __attribute__((aligned(8))) costab_mmx[] =
{
1056974725,
diff --git a/mp3lib/decode_i586.c b/mp3lib/decode_i586.c
index 946116cb07..7b0359ca65 100644
--- a/mp3lib/decode_i586.c
+++ b/mp3lib/decode_i586.c
@@ -23,11 +23,12 @@
*
* $Id$
*/
+#include "../config.h"
#include "../mangle.h"
#define real float /* ugly - but only way */
static long buffs[1088];
-static long bo=1;
+static long attribute_used bo=1;
static long saved_ebp;
int synth_1to1_pent(real *bandPtr, int channel, short *samples)
diff --git a/mp3lib/tabinit_MMX.c b/mp3lib/tabinit_MMX.c
index 1881998e67..7a73bdca1f 100644
--- a/mp3lib/tabinit_MMX.c
+++ b/mp3lib/tabinit_MMX.c
@@ -3,6 +3,7 @@
* See ChangeLog of mpg123-0.59s-pre.1 for detail
* Applied to mplayer by Nick Kurshev <nickols_k@mail.ru>
*/
+#include "../config.h"
#include "../mangle.h"
long __attribute__((aligned(8))) mp3lib_decwins [544];
@@ -11,7 +12,7 @@ long __attribute__((aligned(8))) mp3lib_decwins [544];
extern real mp3lib_decwin[(512+32)];
// static long decwin [544];
-static short intwinbase_MMX[] =
+static short attribute_used intwinbase_MMX[] =
{
0, -1, -1, -1, -1, -1, -1, -2,
-2, -2, -2, -3, -3, -4, -4, -5,