[FFmpeg-devel] [RFC]configures asmalign test does not work on icc64 11.0
Måns Rullgård
mans
Thu Dec 11 12:54:23 CET 2008
Carl Eugen Hoyos wrote:
> Hi!
>
> configure tests alignment with the following C program:
> __asm__ (".align 3");
> icc 11.0 for x86-64 optimizes the align away (even with -O0), so the test
> does not fail (it should, because the assembler does not like ".align 3").
Does using "__asm__ volatile" help? Try this:
diff --git a/configure b/configure
index 0c8d31e..c2344e1 100755
--- a/configure
+++ b/configure
@@ -1110,7 +1110,6 @@ ar="ar"
nm="nm"
ranlib="ranlib"
strip="strip"
-asmalign_pot="unknown"
ln_s="ln -sf"
objformat="elf"
@@ -2098,10 +2097,7 @@ fi
VHOOKCFLAGS="-fPIC"
# Find out if the .align argument is a power of two or not.
-if test $asmalign_pot = "unknown"; then
- disable asmalign_pot
- echo '__asm__ (".align 3");' | check_cc && enable asmalign_pot
-fi
+check_asm asmalign_pot '".align 3"'
enabled_any $DECODER_LIST && enable decoders
enabled_any $ENCODER_LIST && enable encoders
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list