This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] byteswap-16.h: USe __builtin_bswap16 in gcc 4.8
On 01/07/2013 04:46 PM, Roland McGrath wrote:
> We won't include such a change until 4.8 is actually released (or very
> close ot it). Before that, there is no real guarantee what things are
> or aren't assumable from __GNUC_PREREQ (4, 8).
Consensus seems to be that we don't want to use __GNUC_PREREQ,
rather we should test for __builtin_bswap16, set a feature macro,
and then enable the optimization based on the feature macro.
This makes it easier to cleanup later when we no longer need feature X,
we just look for uses of the feature macro rather than having to grovel
through all of the __GNUC_PREREQ logic.
Nobody has stepped up to do the first one :-)