This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Sparc & Alpha on codecvt_unicode? (was: Re: failure notice)
Paolo Carlini wrote:
> Ulrich Weigand wrote:
> > However, I do not quite understand why the test appears to succeed
> > on other big-endian platforms like alpha and sparc ...
>
> Yes. This is really troubling. Why?!?
> (by the way, I cannot find myself relevant Sparc-linux testresults, only Alpha)
Ulrich, are you sure that Alpha is big-endian?
I don't think so!
paolo:/usr/src/linux/include/asm-alpha>tail byteorder.h
#define __arch__swab32 __arch__swab32
#endif /* __GNUC__ */
#define __BYTEORDER_HAS_U64__
#include <linux/byteorder/little_endian.h>
#endif /* _ALPHA_BYTEORDER_H */
On the other hand:
paolo:/usr/src/linux/include/asm-sparc>tail byteorder.h
#include <asm/types.h>
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
# define __BYTEORDER_HAS_U64__
# define __SWAB_64_THRU_32__
#endif
#include <linux/byteorder/big_endian.h>
#endif /* _SPARC_BYTEORDER_H */
However, as I already told you I cannot find positive testresults for
sparc-linux... Have you really seen them?
Ciao,
Paolo.