[FFmpeg-devel] [PATCH 2/8] Don't use the cold attribute with ICC.

Måns Rullgård mans
Thu Oct 2 16:49:35 CEST 2008


Diego 'Flameeyes' Petten? wrote:
> The Intel C Compiler does not support the cold attribute that
> GCC 4.2+ supports, although it declares itself as GCC 4.3.0, disable
> the attribute if __ICC is also defined.
> ---
>
>  libavutil/common.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavutil/common.h b/libavutil/common.h
> index 42fe951..d43a039 100644
> --- a/libavutil/common.h
> +++ b/libavutil/common.h
> @@ -74,7 +74,7 @@
>  #endif
>
>  #ifndef av_cold
> -#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2)
> +#if defined(__GNUC__) && !defined(__ICC) && (__GNUC__ > 4 || __GNUC__ == 4
&& __GNUC_MINOR__ > 2)
>  #    define av_cold __attribute__((cold))
>  #else
>  #    define av_cold

Ditto.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list