Update copyright year
[openadk.git] / toolchain / gcc / patches / 4.4.7 / fix-compile-with-newer-gcc.patch
blobbe2603c051170b0328e20296baf4b4c4c411ecf9
1 diff -Nur gcc-4.4.7.orig/gcc/toplev.h gcc-4.4.7/gcc/toplev.h
2 --- gcc-4.4.7.orig/gcc/toplev.h 2009-02-20 16:20:38.000000000 +0100
3 +++ gcc-4.4.7/gcc/toplev.h 2017-06-30 21:00:00.981033517 +0200
4 @@ -167,38 +167,6 @@
5 extern bool fast_math_flags_set_p (void);
6 extern bool fast_math_flags_struct_set_p (struct cl_optimization *);
8 -/* Return log2, or -1 if not exact. */
9 -extern int exact_log2 (unsigned HOST_WIDE_INT);
11 -/* Return floor of log2, with -1 for zero. */
12 -extern int floor_log2 (unsigned HOST_WIDE_INT);
14 -/* Inline versions of the above for speed. */
15 -#if GCC_VERSION >= 3004
16 -# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
17 -# define CLZ_HWI __builtin_clzl
18 -# define CTZ_HWI __builtin_ctzl
19 -# elif HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONGLONG
20 -# define CLZ_HWI __builtin_clzll
21 -# define CTZ_HWI __builtin_ctzll
22 -# else
23 -# define CLZ_HWI __builtin_clz
24 -# define CTZ_HWI __builtin_ctz
25 -# endif
27 -extern inline int
28 -floor_log2 (unsigned HOST_WIDE_INT x)
30 - return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1;
33 -extern inline int
34 -exact_log2 (unsigned HOST_WIDE_INT x)
36 - return x == (x & -x) && x ? (int) CTZ_HWI (x) : -1;
38 -#endif /* GCC_VERSION >= 3004 */
40 /* Functions used to get and set GCC's notion of in what directory
41 compilation was started. */