Help with gmp-4.0.1 and gcc-3.3.1 on sparcv9?

Bradley Lucier lucier@math.purdue.edu
Wed Oct 1 22:18:00 GMT 2003


I thought I'd try the tree-ssa branch on my typical Scheme code.  It's 
been an interesting journey ...

I got the C compiler built on sparc-sun-solaris2.8, but it ran into the 
2GB process limit compiling most of my files so I'm trying to build the 
64-bit version for sparcv9.  I'm backing off to just the C compiler 
since I'm having trouble compiling gmp-4.0.1 with gcc-3.3.1.  I've 
searched the gcc web pages but couldn't find a reference to this 
problem.

After a generic configure of gmp-4.0.1, the build fails with

gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. 
-DOPERATION_divrem_1 -g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9 -c 
divrem_1.c  -fPIC -DPIC -o .libs/divrem_1.o
divrem_1.c: In function `__gmpn_divrem_1':
divrem_1.c:159: warning: right shift count >= width of type
divrem_1.c:239: warning: right shift count >= width of type
/usr/ccs/bin/as: "/tmp/ccTJHvaN.s", line 655: error: statement syntax
/usr/ccs/bin/as: "/tmp/ccTJHvaN.s", line 656: error: statement syntax
/usr/ccs/bin/as: "/tmp/ccTJHvaN.s", line 1072: error: statement syntax
/usr/ccs/bin/as: "/tmp/ccTJHvaN.s", line 1073: error: statement syntax
make[2]: *** [divrem_1.lo] Error 1
make[2]: Leaving directory 
`/export/mdd0/users/lucier/programs/gcc/gcc-ssa/gmp-4.0.1/mpn'

The offending lines are (655 & 656):

	subcc	0,%g4,%l5
	subccc	0,%g1,%g0

and (1072 & 1073)

	subcc	0,%g4,%g5
	subccc	0,%g1,%g0

Any suggestions?  (Like back off to gmp-3.*?)

Brad

-------------- next part --------------
A non-text attachment was scrubbed...
Name: divrem_1.i.gz
Type: application/x-gzip
Size: 6665 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20031001/2413bd24/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: divrem_1.s.gz
Type: application/x-gzip
Size: 8677 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20031001/2413bd24/attachment-0001.bin>


More information about the Gcc mailing list