Gcc attribute may_alias is not supported (or silently ignored) by all supported compi...
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 20 Feb 2010 12:22:24 +0000 (12:22 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 20 Feb 2010 12:22:24 +0000 (12:22 +0000)
Originally committed as revision 21917 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/internal.h

index d22b4e6..5091e1c 100644 (file)
@@ -56,7 +56,7 @@
 #endif
 
 #ifndef av_alias
-#if HAVE_ATTRIBUTE_MAY_ALIAS
+#if HAVE_ATTRIBUTE_MAY_ALIAS && (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(3,3)
 #   define av_alias __attribute__((may_alias))
 #else
 #   define av_alias