FYI: HPPA egcs 20000228 requires new gas => binutils

Rodney Brown rdb@localhost
Tue Feb 29 13:59:00 GMT 2000


Bootstrapping egcs-20000228 using GNU assembler 990824 failed
due to the new SOM weak symbol support.

make[3]: Entering directory `/devel/span/rdb/src/egcs-20000228.obj/gcc'
./xgcc -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B./ -I/usr/local/hppa2.0-hp-hpux10.20/include -O2   -DIN_GCC    -W -Wall -Wtraditional -O2 -g -O2 -I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -g -O2 -I. -I../../egcs-20000228/gcc -I../../egcs-20000228/gcc/config -I../../egcs-20000228/gcc/../include \
  -c ../../egcs-20000228/gcc/cp/tinfo.cc
cc1plus: warning: Ignoring command line option '-Wtraditional'
/devel/span/rdb/src/tmp/cc0QihB3.s: Assembler messages:
/devel/span/rdb/src/tmp/cc0QihB3.s:2900: Error: Unknown pseudo-op:  `.weak'
/devel/span/rdb/src/tmp/cc0QihB3.s:2926: Error: Unknown pseudo-op:  `.weak'

...

make[3]: *** [tinfo.o] Error 1
make[3]: Leaving directory `/devel/span/rdb/src/egcs-20000228.obj/gcc'
make[2]: *** [libgcc2.a] Error 1

Bootstrapping using GNU assembler 000228 failed the comparison
- because the code generated by the assemblers differs, having changed
assemblers in mid-build. I assume the differences are PA2.0 instructions.
Should 000228 objdump --disassemble give a clearer distinction between
the forms?


Bootstrap comparison failure!
alloca.o differs
collect2.o differs
...
make[1]: *** [compare-lean] Error 1

--- alloca.o.obj	Tue Feb 29 18:49:13 2000
+++ alloca.o.obj.2	Tue Feb 29 18:49:04 2000
@@ -1,121 +1,121 @@
 
-alloca.o:     file format som
+stage2/alloca.o:     file format som
 
 Contents of section $CODE$:
  0000 6bc23fd9 37de0080 37d43f81 2b600000  k.?.7...7.?.+`..
  0010 36930010 48340000 37d63f81 8e802018  6...H4..7.?... .
  0020 36d50010 68330000 e85f1fa5 34420000  6...h3..._..4B..
  0030 8ab48008 34133fff 34130002 2b600000  ....4.?.4...+`..
  0040 68330000 4bc23f59 e840c000 37de3f81  h3..K.?Y.@..7.?.
 Contents of section $CODE$:
  0000 6bc23fd9 37de0100 2b600000 37d33f01  k.?.7...+`..7.?.
  0010 6bc63f1b 08010246 6bc33f33 36630010  k.?....Fk.?36c..
  0020 6bc73f13 6bc53f23 6bc43f2b 48d30000  k.?.k.?#k.?+H...
  0030 8e602010 081a0247 e8400000 08000240  .` ....G.@.....@
  0040 2b600000 08010245 48a40000 84802050  +`.....EH..... P
- 0050 0804025a 48d40000 8e80400a 0c881093  ...ZH.....@.....
- 0060 82638012 86806022 0c881093 8263a012  .c....`".....c..
- 0070 0c801084 e8400000 34420000 8ce02010  .....@..4B.... .
+ 0050 0804025a 48d40000 8e80400a 48930008  ...ZH.....@.H...
+ 0060 82638012 86806022 48930008 8263a012  .c....`"H....c..
+ 0070 48840000 e8400000 34420000 8ce02010  H....@..4B.... .
  0080 68a40000 e8000050 341c0000 e8400000  h......P4....@..
  0090 34fa0010 ca9ca010 48b30000 e8400000  4.......H....@..
- 00a0 08000240 369c0010 0e831288 0e931280  ...@6...........
+ 00a0 08000240 369c0010 6a830008 6a930000  ...@6...j...j...
  00b0 68b40000 4bc23ed9 4bc73f13 4bc63f1b  h...K.>.K.?.K.?.
  00c0 4bc53f23 4bc43f2b 4bc33f33 e840c000  K.?#K.?+K.?3.@..
  00d0 37de3f01 00000000                    7.?.....        

...

@@ -1188,141 +1188,141 @@

...

 Disassembly of section $CODE$:
 
 00000000 <alloca>:
    0:	6b c2 3f d9 	stw rp,-14(sr0,sp)
    4:	37 de 01 00 	ldo 80(sp),sp
    8:	2b 60 00 00 	addil 0,dp,%r1
    c:	37 d3 3f 01 	ldo -80(sp),r19
   10:	6b c6 3f 1b 	stw r6,-73(sr0,sp)
   14:	08 01 02 46 	copy r1,r6
   18:	6b c3 3f 33 	stw r3,-67(sr0,sp)
   1c:	36 63 00 10 	ldo 8(r19),r3
   20:	6b c7 3f 13 	stw r7,-77(sr0,sp)
   24:	6b c5 3f 23 	stw r5,-6f(sr0,sp)
   28:	6b c4 3f 2b 	stw r4,-6b(sr0,sp)
   2c:	48 d3 00 00 	ldw 0(sr0,r6),r19
   30:	8e 60 20 10 	cmpib,<> 0,r19,40 <alloca+0x40>
   34:	08 1a 02 47 	copy r26,r7
   38:	e8 40 00 00 	b,l 40 <alloca+0x40>,rp
   3c:	08 00 02 40 	nop
   40:	2b 60 00 00 	addil 0,dp,%r1
   44:	08 01 02 45 	copy r1,r5
   48:	48 a4 00 00 	ldw 0(sr0,r5),r4
 
 0000004c <L$0011>:
   4c:	84 80 20 50 	cmpib,= 0,r4,7c <L$0022>
   50:	08 04 02 5a 	copy r4,r26
   54:	48 d4 00 00 	ldw 0(sr0,r6),r20
   58:	8e 80 40 0a 	cmpib,>=,n 0,r20,64 <L$0011+0x18>
-  5c:	0c 88 10 93 	ldw  4(sr0,r4),r19
+  5c:	48 93 00 08 	ldw 4(sr0,r4),r19
   60:	82 63 80 12 	cmpb,<<,n r3,r19,70 <L$0011+0x24>
   64:	86 80 60 22 	cmpib,<=,n 0,r20,7c <L$0022>
-  68:	0c 88 10 93 	ldw  4(sr0,r4),r19
+  68:	48 93 00 08 	ldw 4(sr0,r4),r19
   6c:	82 63 a0 12 	cmpb,<<=,n r3,r19,7c <L$0022>
-  70:	0c 80 10 84 	ldw  0(sr0,r4),r4
+  70:	48 84 00 00 	ldw 0(sr0,r4),r4
   74:	e8 40 00 00 	b,l 7c <L$0022>,rp
   78:	34 42 00 00 	ldo 0(rp),rp
 
 0000007c <L$0022>:
   7c:	8c e0 20 10 	cmpib,<> 0,r7,8c <L$0022+0x10>
   80:	68 a4 00 00 	stw r4,0(sr0,r5)
   84:	e8 00 00 50 	b,l b4 <L$0022+0x38>,r0
   88:	34 1c 00 00 	ldi 0,ret0
   8c:	e8 40 00 00 	b,l 94 <L$0022+0x18>,rp
   90:	34 fa 00 10 	ldo 8(r7),r26
   94:	ca 9c a0 10 	movb,<> ret0,r20,a4 <L$0022+0x28>
   98:	48 b3 00 00 	ldw 0(sr0,r5),r19
   9c:	e8 40 00 00 	b,l a4 <L$0022+0x28>,rp
   a0:	08 00 02 40 	nop
   a4:	36 9c 00 10 	ldo 8(r20),ret0
-  a8:	0e 83 12 88 	stw  r3,4(sr0,r20)
-  ac:	0e 93 12 80 	stw  r19,0(sr0,r20)
+  a8:	6a 83 00 08 	stw r3,4(sr0,r20)
+  ac:	6a 93 00 00 	stw r19,0(sr0,r20)
   b0:	68 b4 00 00 	stw r20,0(sr0,r5)
   b4:	4b c2 3e d9 	ldw -94(sr0,sp),rp
   b8:	4b c7 3f 13 	ldw -77(sr0,sp),r7
   bc:	4b c6 3f 1b 	ldw -73(sr0,sp),r6
   c0:	4b c5 3f 23 	ldw -6f(sr0,sp),r5
   c4:	4b c4 3f 2b 	ldw -6b(sr0,sp),r4
   c8:	4b c3 3f 33 	ldw -67(sr0,sp),r3
   cc:	e8 40 c0 00 	bv r0(rp)
   d0:	37 de 3f 01 	ldo -80(sp),sp
   d4:	00 00 00 00 	break 0,0
 Disassembly of section $CODE$:

...

bash-2.02$ adb 
0x0c881093=i
                LDWS            4(r4),r19
0x48930008=i
                LDW             4(r4),r19
0x0c801084=i
                LDWS            0(r4),r4
0x48840000=i
                LDW             0(r4),r4
0x0e831288=i
                STWS            r3,4(r20)
0x6a830008=i
                STW             r3,4(r20)
0x0e931280=i
                STWS            r19,0(r20)
0x6a930000=i
                STW             r19,0(r20)
$q


More information about the Gcc-bugs mailing list