Andrew Pinski <[EMAIL PROTECTED]> writes:
> No. This is GCC "extern inline" and not C99 "extern inline".
Does GCC plan to move to the C99 semantics of inline and extern inline
in C?
--
__("< Marcin Kowalczyk
\__/ [EMAIL PROTECTED]
^^ http://qrnik.knm.org.pl/~qrczak/
On 2006-01-22, at 04:35, Andrew Pinski wrote:
OK. Looking closer I have just found that in gcc/toplev.c
#if GCC_VERSION < 3004
...
#endif
Is missing around the floor_log2() and exact_log2() functions.
You are mssing the fact that the ones in the headers are declared
as extern inline.
Yes
At first glace it seems that the .c variants represents hand optimized
C code, which get's never called. I'm quite convinced that it should
be just removed, since it's never used due to overschadowing by the .h
variant
You need the .c variant for the cases where inlining cannot be
>
>
> On 2006-01-22, at 04:17, Andrew Pinski wrote:
>
> >>
> >> OK. Looking closer I have just found that in gcc/toplev.c
> >>
> >> #if GCC_VERSION < 3004
> >> ...
> >> #endif
> >>
> >> Is missing around the floor_log2() and exact_log2() functions.
> >
> > You are mssing the fact that the ones i
On 2006-01-22, at 04:17, Andrew Pinski wrote:
OK. Looking closer I have just found that in gcc/toplev.c
#if GCC_VERSION < 3004
...
#endif
Is missing around the floor_log2() and exact_log2() functions.
You are mssing the fact that the ones in the headers are declared
as extern inline.
Yes
>
> OK. Looking closer I have just found that in gcc/toplev.c
>
> #if GCC_VERSION < 3004
> ...
> #endif
>
> Is missing around the floor_log2() and exact_log2() functions.
You are mssing the fact that the ones in the headers are declared
as extern inline.
-- Pinski
OK. Looking closer I have just found that in gcc/toplev.c
#if GCC_VERSION < 3004
...
#endif
Is missing around the floor_log2() and exact_log2() functions.
Looking at gcc/toplev.h and gcc/toplev.c I have found the following
two variants of the same
function once in the header and once in the definition fine.
extern inline int
floor_log2 (unsigned HOST_WIDE_INT x)
{
return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1;
}
and again the