This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-CVS19980830 sparc-sun-sunos4.1.4, another bootstrap failure ...


 > From: "David S. Miller" <davem@dm.cobaltmicro.com>
 >  
 >    Date: Sun, 30 Aug 1998 21:17:51 -0400 (EDT)
 >    From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
 >  
 >            After appplying my patch for removing 1U from sparc.c (sent to
 >    egcs-patches,) I still have trouble bootstrapping on sunos4.  I get the
 >    following during stage1 when building libgcc2.a. 
 >  
 >     > _muldi3
 >     > as: "/usr/tmp/ccc5tGMb.s", line 172: error: invalid alignment boundary
 >     > make[4]: *** [libgcc2.a] Error 1
 >  
 >  
 > Can you rerun the libgcc2.c build command and send me the *.s file it
 > output and the assembler choked on?  Thanks.
 >  
 > Later,
 > David S. Miller
 > davem@dm.cobaltmicro.com



	Sure, I compiled libgcc2's _muldi3 using the following command:


 > ./xgcc -save-temps -B./ -O2 -DIN_GCC -g -I./include -g1 -DIN_LIBGCC2
 > 	-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -c -DL_muldi3
 > 	./libgcc2.c -o _muldi3.o


	and I got:


 > as: "libgcc2.s", line 172: error: invalid alignment boundary


	Below is the resulting libgcc2.s file.  Line 172 does ".align 32".
(I'm using the native assembler.)

		--Kaveh

--------cut-here--------
gcc2_compiled.:
___gnu_compiled_c:
.stabs "/caip/u50/ghazi/gcc-testing/sunos-test/egcs-CVS19980830/gcc/",100,0,0,Ltext0
.stabs "./libgcc2.c",100,0,0,Ltext0
.text
Ltext0:
.stabs "int:t(0,1)=r(0,1);0020000000000;0017777777777;",128,0,0,0
.stabs "char:t(0,2)=r(0,2);0;127;",128,0,0,0
.stabs "long int:t(0,3)=r(0,1);0020000000000;0017777777777;",128,0,0,0
.stabs "unsigned int:t(0,4)=r(0,1);0000000000000;0037777777777;",128,0,0,0
.stabs "long unsigned int:t(0,5)=r(0,1);0000000000000;0037777777777;",128,0,0,0
.stabs "long long int:t(0,6)=r(0,1);01000000000000000000000;0777777777777777777777;",128,0,0,0
.stabs "long long unsigned int:t(0,7)=r(0,1);0000000000000;01777777777777777777777;",128,0,0,0
.stabs "short int:t(0,8)=r(0,8);-32768;32767;",128,0,0,0
.stabs "short unsigned int:t(0,9)=r(0,9);0;65535;",128,0,0,0
.stabs "signed char:t(0,10)=r(0,10);-128;127;",128,0,0,0
.stabs "unsigned char:t(0,11)=r(0,11);0;255;",128,0,0,0
.stabs "float:t(0,12)=r(0,1);4;0;",128,0,0,0
.stabs "double:t(0,13)=r(0,1);8;0;",128,0,0,0
.stabs "long double:t(0,14)=r(0,1);8;0;",128,0,0,0
.stabs "complex int:t(0,15)=s8real:(0,1),0,32;imag:(0,1),32,32;;",128,0,0,0
.stabs "complex float:t(0,16)=r(0,16);4;0;",128,0,0,0
.stabs "complex double:t(0,17)=r(0,17);8;0;",128,0,0,0
.stabs "complex long double:t(0,18)=r(0,18);8;0;",128,0,0,0
.stabs "void:t(0,19)=(0,19)",128,0,0,0
.stabs "tconfig.h",130,0,0,0
.stabs "config/sparc/xm-sparc.h",130,0,0,0
.stabs "tm.h",130,0,0,0
.stabs "config/sparc/sunos4.h",130,0,0,0
.stabs "config/sparc/sparc.h",130,0,0,0
.stabs "cmodel:T(5,1)=eCM_32:0,CM_MEDLOW:1,CM_MEDMID:2,CM_MEDANY:3,CM_EMBMEDANY:4,;",128,0,0,0
.stabs "processor_type:T(5,2)=ePROCESSOR_V7:0,PROCESSOR_CYPRESS:1,PROCESSOR_V8:2,PROCESSOR_SUPERSPARC:3,PROCESSOR_SPARCLITE:4,PROCESSOR_F930:5,PROCESSOR_F934:6,PROCESSOR_SPARCLET:7,PROCESSOR_TSC701:8,PROCESSOR_V9:9,PROCESSOR_ULTRASPARC:10,;",128,0,0,0
.stabs "sparc_cpu_select:T(5,3)=s16string:(5,4)=*(0,2),0,32;name:(5,4),32,32;set_tune_p:(0,1),64,32;set_arch_p:(0,1),96,32;;",128,0,0,0
.stabs "reg_class:T(5,5)=eNO_REGS:0,FPCC_REGS:1,I64_REGS:2,GENERAL_REGS:3,FP_REGS:4,EXTRA_FP_REGS:5,GENERAL_OR_FP_REGS:6,GENERAL_OR_EXTRA_FP_REGS:7,ALL_REGS:8,LIM_REG_CLASSES:9,;",128,0,0,0
.stabs "sparc_args:T(5,6)=s12words:(0,1),0,32;prototype_p:(0,1),32,32;libcall_p:(0,1),64,32;;",128,0,0,0
.stabn 162,0,0,0
.stabn 162,0,0,0
.stabn 162,0,0,0
.stabn 162,0,0,0
.stabn 162,0,0,0
.stabs "include/stdlib.h",130,0,0,0
.stabs "include/sys/stdtypes.h",130,0,0,0
.stabs "sigset_t:t(7,1)=(0,1)",128,0,14,0
.stabs "speed_t:t(7,2)=(0,4)",128,0,16,0
.stabs "tcflag_t:t(7,3)=(0,5)",128,0,17,0
.stabs "cc_t:t(7,4)=(0,11)",128,0,18,0
.stabs "pid_t:t(7,5)=(0,1)",128,0,19,0
.stabs "mode_t:t(7,6)=(0,9)",128,0,21,0
.stabs "nlink_t:t(7,7)=(0,8)",128,0,22,0
.stabs "clock_t:t(7,8)=(0,3)",128,0,24,0
.stabs "time_t:t(7,9)=(0,3)",128,0,25,0
.stabs "size_t:t(7,10)=(0,4)",128,0,32,0
.stabs "ptrdiff_t:t(7,11)=(0,1)",128,0,39,0
.stabs "wchar_t:t(7,12)=(0,9)",128,0,48,0
.stabn 162,0,0,0
.stabn 162,0,0,0
.stabs "include/unistd.h",130,0,0,0
.stabs "include/sys/types.h",130,0,0,0
.stabs "/usr/include/sys/sysmacros.h",130,0,0,0
.stabn 162,0,0,0
.stabs "u_char:t(9,1)=(0,11)",128,0,24,0
.stabs "u_short:t(9,2)=(0,9)",128,0,25,0
.stabs "u_int:t(9,3)=(0,4)",128,0,26,0
.stabs "u_long:t(9,4)=(0,5)",128,0,27,0
.stabs "ushort:t(9,5)=(0,9)",128,0,28,0
.stabs "uint:t(9,6)=(0,4)",128,0,29,0
.stabs "_physadr_t:T(9,7)=s4r:(9,8)=ar(0,1);0;0;(0,1),0,32;;",128,0,0,0
.stabs "physadr_t:t(9,9)=(9,10)=*(9,7)",128,0,45,0
.stabs "label_t:T(9,11)=s8val:(9,12)=ar(0,1);0;1;(0,1),0,64;;",128,0,0,0
.stabs "label_t:t(9,13)=(9,11)",128,0,48,0
.stabs "_quad_t:T(9,14)=s8val:(9,15)=ar(0,1);0;1;(0,3),0,64;;",128,0,0,0
.stabs "quad_t:t(9,16)=(9,14)",128,0,56,0
.stabs "daddr_t:t(9,17)=(0,3)",128,0,57,0
.stabs "caddr_t:t(9,18)=(5,4)",128,0,58,0
.stabs "ino_t:t(9,19)=(0,5)",128,0,59,0
.stabs "dev_t:t(9,20)=(0,8)",128,0,60,0
.stabs "off_t:t(9,21)=(0,3)",128,0,61,0
.stabs "uid_t:t(9,22)=(0,9)",128,0,62,0
.stabs "gid_t:t(9,23)=(0,9)",128,0,63,0
.stabs "key_t:t(9,24)=(0,3)",128,0,64,0
.stabs "addr_t:t(9,25)=(5,4)",128,0,65,0
.stabs "fd_mask:t(9,26)=(0,3)",128,0,80,0
.stabs "fd_set:T(9,27)=s32fds_bits:(9,28)=ar(0,1);0;7;(9,26),0,256;;",128,0,0,0
.stabs "fd_set:t(9,29)=(9,27)",128,0,92,0
.stabn 162,0,0,0
.stabn 162,0,0,0
.stabs "machmode.h",130,0,0,0
.stabs "gansidecl.h",130,0,0,0
.stabn 162,0,0,0
.stabs "machmode.def",130,0,0,0
.stabn 162,0,0,0
.stabs "machine_mode:T(11,1)=eVOIDmode:0,PQImode:1,QImode:2,PHImode:3,HImode:4,PSImode:5,SImode:6,PDImode:7,DImode:8,TImode:9,OImode:10,QFmode:11,HFmode:12,TQFmode:13,SFmode:14,DFmode:15,XFmode:16,TFmode:17,QCmode:18,HCmode:19,SCmode:20,DCmode:21,XCmode:22,TCmode:23,CQImode:24,CHImode:25,CSImode:26,CDImode:27,CTImode:28,COImode:29,BLKmode:30,CCmode:31,CCXmode:32,CC_NOOVmode:33,CCX_NOOVmode:34,CCFPmode:35,CCFPEmode:36,\\",128,0,0,0
.stabs "MAX_MACHINE_MODE:37,;",128,0,0,0
.stabs "mode_class:T(11,2)=eMODE_RANDOM:0,MODE_INT:1,MODE_FLOAT:2,MODE_PARTIAL_INT:3,MODE_CC:4,MODE_COMPLEX_INT:5,MODE_COMPLEX_FLOAT:6,MAX_MODE_CLASS:7,;",128,0,0,0
.stabn 162,0,0,0
.stabs "defaults.h",130,0,0,0
.stabn 162,0,0,0
.stabs "include/stddef.h",130,0,0,0
.stabn 162,0,0,0
.stabs "UQItype:t(0,20)=(0,11)",128,0,84,0
.stabs "SItype:t(0,21)=(0,1)",128,0,85,0
.stabs "USItype:t(0,22)=(0,4)",128,0,86,0
.stabs "DItype:t(0,23)=(0,6)",128,0,87,0
.stabs "UDItype:t(0,24)=(0,7)",128,0,88,0
.stabs "SFtype:t(0,25)=(0,12)",128,0,90,0
.stabs "DFtype:t(0,26)=(0,13)",128,0,91,0
.stabs "word_type:t(0,27)=(0,1)",128,0,100,0
.stabs "DIstruct:T(0,28)=s8high:(0,21),0,32;low:(0,21),32,32;;",128,0,0,0
.stabs "DIunion:t(0,29)=(0,30)=u8s:(0,28),0,64;ll:(0,23),0,64;;",128,0,135,0
.stabs "longlong.h",130,0,0,0
.stabn 162,0,0,0
	.align 4
	.global ___muldi3
	.proc	05
___muldi3:
	!#PROLOGUE# 0
	save	%sp, -104, %sp
	!#PROLOGUE# 1
	! Inlined umul_ppmm
	wr	%g0,%i1,%y	! SPARC has 0-3 delay insn after a wr
	sra	%i3,31,%g2	! Don't move this insn
	and	%i1,%g2,%g2	! Don't move this insn
	andcc	%g0,0,%g1	! Don't move this insn
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,%i3,%g1
	mulscc	%g1,0,%g1
	add	%g1,%g2,%l2
	rd	%y,%o1
	mov	%o1, %l3
	mov	%i1, %o0
	call	.umul, 0
	mov	%i2, %o1
	mov	%o0, %l0
	mov	%i0, %o0
	call	.umul, 0
	mov	%i3, %o1
	add	%l0, %o0, %l0
	mov	%l2, %i0
	add	%l2, %l0, %i0
	ret
	restore %g0, %l3, %o1
	.align 32
.stabs "__muldi3:F(0,23)",36,0,289,___muldi3
.stabs "u:P(0,23)",64,0,288,24
.stabs "v:P(0,23)",64,0,288,26
--------cut-here--------
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Icon CMT Corp.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]