[PATCH 21/32] Remove the lambda framework and make -ftree-loop-linear an alias of -floop-interchange.

Andreas Schwab schwab@linux-m68k.org
Wed Jan 26 19:24:00 GMT 2011


Sebastian Pop <sebpop@gmail.com> writes:

> diff --git a/gcc/hwint.h b/gcc/hwint.h
> index 8bd7c5e..1eadd45 100644
> --- a/gcc/hwint.h
> +++ b/gcc/hwint.h
> @@ -228,4 +228,33 @@ exact_log2 (unsigned HOST_WIDE_INT x)
>  
>  #endif /* GCC_VERSION >= 3004 */
>  
> +/* Compute the greatest common divisor of two numbers using
> +   Euclid's algorithm.  */
> +
> +static inline int
> +gcd (int a, int b)
> +{
> +  int x, y, z;
> +
> +  x = abs (a);
> +  y = abs (b);

In file included from ../../gcc/system.h:254:0,
                 from ../../gcc/ada/targext.c:36:
../../gcc/hwint.h: In function 'gcd':
../../gcc/hwint.h:239:3: error: implicit declaration of function 'abs' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

make[3]: *** [ada/targext.o] Error 1

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list