attribute(mode) ignored by Sun cc
Jay K
jay.krell at cornell.edu
Sat Jun 16 08:36:21 CEST 2012
I reported this years ago.
It is still a problem in 5.0.2.
/* Define stuff for longlong.h. */
#if HAVE_ATTRIBUTE_MODE
typedef unsigned int UQItype __attribute__ ((mode (QI)));
typedef int SItype __attribute__ ((mode (SI)));
typedef unsigned int USItype __attribute__ ((mode (SI)));
typedef int DItype __attribute__ ((mode (DI)));
typedef unsigned int UDItype __attribute__ ((mode (DI)));
#else
typedef unsigned char UQItype;
typedef long SItype;
typedef unsigned long USItype;
#if HAVE_LONG_LONG
typedef long long int DItype;
typedef unsigned long long int UDItype;
#else /* Assume `long' gives us a wide enough type. Needed for hppa2.0w. */
typedef long int DItype;
typedef unsigned long int UDItype;
#endif
#endif
-bash-4.2$ cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-16 2010/08/11
usage: cc [ options] files. Use 'cc -flags' for details
gives
"../../gcc-4.7/gmp/gmp-impl.h", line 3193: warning: attribute "mode" is unknown, ignored
mpfr has the same problem.
In the #else, should it really be long, or should it be int?
- Jay
More information about the gmp-bugs
mailing list