Hi, On Thu, Aug 27, 2009 at 2:44 PM, Loren Merritt <lorenm at u.washington.edu>wrote:
Now with MDCT, and tested on PPC64.
I can confirm it works as expected with FSF toolchain, but still fails with Apple toolchain. I fixed locally the fact that Apple toolchain doesn't supported named parameters, but only supports numbered parameters ($0 to $9). The problem I can't seem to be able to fix is the string concat problem (i.e. generating symbol names based on the macro's parameters): gcc-4.2 -arch ppc64 -DHAVE_AV_CONFIG_H -I. -I"/Users/gpoirier/Prgm/ffmpeg-git" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mcpu=970 -mpowerpc-gfxopt -mpowerpc64 -mdynamic-no-pic -MMD -MF libavcodec/ppc/fft_altivec_s.d -MT libavcodec/ppc/fft_altivec_s.o -c -o libavcodec/ppc/fft_altivec_s.o libavcodec/ppc/fft_altivec_s.S libavcodec/ppc/fft_altivec_s.S:323:Invalid mnemonic 'fft_pass\()_altivec:' libavcodec/ppc/fft_altivec_s.S:323:Invalid mnemonic 'fft32\()_altivec:' libavcodec/ppc/fft_altivec_s.S:323:Parameter syntax error (parameter 1) libavcodec/ppc/fft_altivec_s.S:323:Rest of line ignored. 1st junk character valued 92 (\). libavcodec/ppc/fft_altivec_s.S:323:Missing ')' assumed I found the part of GAS' doc that refers to it: http://sourceware.org/binutils/docs-2.19/as/Macro.html#MacroBut it looks like Apple's GAS doesn't support that syntax: http://developer.apple.com/mac/library/documentation/DeveloperTools/Referenc... I'll try with spaces as FSF's doc suggests it instead of \() (but Apple doesn't suggests anything). Guillaume -- Only a very small fraction of our DNA does anything; the rest is all comments and ifdefs. Mike Ditka <http://www.brainyquote.com/quotes/authors/m/mike_ditka.html> - "If God had wanted man to play soccer, he wouldn't have given us arms."