[Mplayer-dev-eng] warnings fixes for gcc-3.0 (debian sid)

pl p_l at tfz.net
Sat Jun 9 12:55:51 CEST 2001


Hi,

One more half a cent patch for gcc-3 (since it's only warnings)...
While 'make dep'ing :

gcc-3.0 -MM -O4 -march=athlon -mcpu=athlon -pipe -ffast-math -fomit-frame-pointer -I. -I.. -DHAVE_CONFIG_H bit_all
e.c bitstream.c coeff.c crc.c debug.c decode.c dither.c exponent.c imdct.c parse.c rematrix.c sanity_check.c srfft
tats.c downmix/downmix_3dnow.S 1>.depend
In file included from srfft.c:41:
mmx/srfft_3dnow.c:449:3: warning: pasting ""pswapd      "" and ""%%mm4"" does not give a valid preprocessing token
mmx/srfft_3dnow.c:449:3: warning: pasting "","" and ""%%mm4"" does not give a valid preprocessing token
[...]
mmx/srfft_3dnow.c:450:3: warning: pasting ""pfnacc      "" and ""%%mm2"" does not give a valid preprocessing token
mmx/srfft_3dnow.c:450:3: warning: pasting "","" and ""%%mm2"" does not give a valid preprocessing token
[...]


The ##... aren't necessary since macro are called with strings.
cpp will just do a string cat and stop complaining (at last :)
(tested with gcc 3.0 and 2.95.4)


--- libac3/mmx/srfftp_3dnow.h~  Sat Jun  9 10:50:48 2001
+++ libac3/mmx/srfftp_3dnow.h   Sat Jun  9 11:59:17 2001
@@ -61,21 +61,21 @@
 #endif

 #ifdef HAVE_3DNOWEX
-#define PSWAP_MM(mm_base,mm_hlp) "pswapd       "##mm_base","##mm_base"\n\t"
+#define PSWAP_MM(mm_base,mm_hlp) "pswapd       " mm_base "," mm_base "\n\t"
 #else
 #define PSWAP_MM(mm_base,mm_hlp)\
-       "movq   "##mm_base","##mm_hlp"\n\t"\
-       "psrlq $32, "##mm_base"\n\t"\
-       "punpckldq "##mm_hlp","##mm_base"\n\t"
+       "movq   " mm_base "," mm_hlp "\n\t"\
+       "psrlq $32, " mm_base "\n\t"\
+       "punpckldq " mm_hlp "," mm_base "\n\t"
 #endif
 #ifdef HAVE_3DNOWEX
-#define PFNACC_MM(mm_base,mm_hlp)      "pfnacc "##mm_base","##mm_base"\n\t"
+#define PFNACC_MM(mm_base,mm_hlp)      "pfnacc " mm_base "," mm_base "\n\t"
 #else
 #define PFNACC_MM(mm_base,mm_hlp)\
-       "movq   "##mm_base","##mm_hlp"\n\t"\
-       "psrlq  $32,"##mm_hlp"\n\t"\
-       "punpckldq "##mm_hlp","##mm_hlp"\n\t"\
-       "pfsub  "##mm_hlp","##mm_base"\n\t"
+       "movq   " mm_base "," mm_hlp "\n\t"\
+       "psrlq  $32," mm_hlp "\n\t"\
+       "punpckldq " mm_hlp "," mm_hlp "\n\t"\
+       "pfsub  " mm_hlp "," mm_base "\n\t"
 #endif

 #define TRANSZERO_3DNOW(A0,A4,A8,A12) \

--
pl

_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list