Bug with -mcpu=ultrasparc

Theodore Papadopoulo Theodore.Papadopoulo@sophia.inria.fr
Tue Mar 2 14:51:00 GMT 1999


The compiler (sparc-sun-solaris2.6/egcs-2.93.02/specs
gcc version egcs-2.93.02 19990118 (gcc2 ss-980609 experimental)) 
seems to have a problem with integer constants when -mcpu=ultrasparc 
is given as option.

cat Int.C

#include <limits.h>

template <class I,I min,I max>
class A {
};

int
main()
{
	A<long, LONG_MIN, LONG_MAX> a;
}

mururoa->g++ Int.C  --> works fine.
mururoa->g++ -mcpu=ultrasparc Int.C
Int.C: In function `int main()':
Int.C:10: integer constant out of range
Int.C:10: warning: decimal integer constant is so large that it is unsigned
Int.C:10: integer constant out of range
Int.C:10: warning: decimal integer constant is so large that it is unsigned


 --------------------------------------------------------------------
 Theodore Papadopoulo
 Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------





More information about the Gcc-bugs mailing list