[Intel-gfx] [PATCH] Android port of intel-gpu-tools

Adam Jackson ajax at redhat.com
Tue Jan 10 16:03:38 CET 2012


On 1/9/12 11:45 PM, Sateesh Kavuri wrote:
> Added support for Android. Changes include fixes for compilation issues
>   related to Android using an older version of GCC compiler (ver 4.3.3)
>   while the latest version of intel-gpu-tools confirms to GCC ver 4.5.2
>   (C99 standard functions), using functions like getline(). Fixed such
>   functions, header dependencies for android and added an Android.mk file.

I can understand avoiding C99 functions that android doesn't have, but 
this kind of thing:

> +            #ifdef ANDROID
> +	    int i;
> +	    for (i = 1; i<  len; i++) {
> +            #else
>   	    for (int i = 1; i<  len; i++) {
> +            #endif

is silly.  Does gcc -std=c99 on android seriously not cope with this?

- ajax



More information about the Intel-gfx mailing list