[FFmpeg-devel] [RFC]configures asmalign test does not work on icc64 11.0
Carl Eugen Hoyos
cehoyos
Thu Dec 11 14:46:31 CET 2008
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").
Attached is a trivial try to fix this, inputs for better solutions would
be welcome!
Thank you, Carl Eugen
-------------- next part --------------
Index: configure
===================================================================
--- configure (Revision 16052)
+++ configure (Arbeitskopie)
@@ -2049,8 +2049,15 @@
check_cflags -fno-math-errno
check_cflags -fno-signed-zeros
+# 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
+
# add some flags for Intel C Compiler
if $cc --version 2> /dev/null | grep -q Intel; then
+ disable asmalign_pot
# Just warnings, no remarks
check_cflags -w1
# -wd: Disable following warnings
@@ -2082,12 +2089,6 @@
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
-
enabled_any $DECODER_LIST && enable decoders
enabled_any $ENCODER_LIST && enable encoders
enabled_any $BSF_LIST && enable bsfs
More information about the ffmpeg-devel
mailing list