This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC's statement expression extension


Mark Mitchell <mark@codesourcery.com> writes:

> A secondary consideration is that we should consider deprecating the
> statement-expression extension.  We should try to convince the glibc
> people that statement-expressions are bad, since they are the heaviest
> users of this hack.  The glibc people should remove all of that crud
> in macros, and replace it with inline functions.  And we should make
> the compiler optimize the inline fucntions appropriately so that they
> cannot complain that performance is degraded.

The main reason glibc does this is because __builtin_constant_p
doesn't/didn't work inside inline functions.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]