gnu@GATECH.EDU (09/23/88)
The following is a bug report for gas-1.25. This was made from gas-1.24 and applying a patch sent to me modifying write.c for VMS systems to get gas-1.25. bug-gcc@prep.ai.mit.edu To whom it may concern, The following bugs where found at my site involving the GNU as assembler. The versions of GNU used are: gcc version 1.24 Gnu assembler version 1.25 (I guess.) While this problem is with the GNU as assembler, I am including information about the GNU CC and my system. My system is a CRDS (Charles Rivers Data Systems) CP20 (68020 & 68881) UNOS 7.1 (SYSV) Unix system. I have 4.0 Mbytes of memory. The "tm.h" and "md.h" are essentially sun3 stuff but I modified "tm.h" to conform to my system. "md.h" is a shipped (i.e. md-m68k.h). The problem that I have is with gas-1.25. I took the messages.c module from the source release of gas-1.25 and compiled it to the assembly language level. With my old gas-1.14, this module will compile fine. However, with gas-1.25, I get: messages.s:89:FATAL:a68: 2nd pass not implemented - get your code from random(3) This is not a nice error message, especially from something that used to work. I guess my question is: Is the newer gcc compiler necessary? Does the newer compiler generate different enough code that gas operation would be different? Will Roger Rabbit ever get out of his mess? Below is the output of my gcc-1.24 for messages.c: gnugcc -I. -g -O -Dmc68851 messages.c -S ^^^^ start of messages.s #NO_APP Ltext: .stabs "messages.c",100,0,0,Ltext .stabs "int:t1=r1;-2147483648;2147483647;",128,0,0,0 .stabs "char:t2=r2;0;127;",128,0,0,0 .stabs "unsigned int:t3=r1;0;-1;",128,0,0,0 .stabs "long unsigned int:t4=r1;0;-1;",128,0,0,0 .stabs "short int:t5=r1;-32768;32767;",128,0,0,0 .stabs "long int:t6=r1;-2147483648;2147483647;",128,0,0,0 .stabs "long long int:t7=r1;0;-1;",128,0,0,0 .stabs "short unsigned int:t8=r1;0;65535;",128,0,0,0 .stabs "long long unsigned int:t9=r1;0;-1;",128,0,0,0 .stabs "signed char:t10=r1;-128;127;",128,0,0,0 .stabs "unsigned char:t11=r1;0;255;",128,0,0,0 .stabs "float:t12=r1;4;0;",128,0,0,0 .stabs "double:t13=r1;8;0;",128,0,0,0 .stabs "long double:t14=r1;8;0;",128,0,0,0 .stabs "void:t15=15",128,0,0,0 .stabs "FILE:t16=s24_ptr:17=*11,0,32;_cnt:1,32,32;\\",128,0,0,0 .stabs "_base:17,64,32;_flag:5,96,16;_file:2,112,8;\\",128,0,0,0 .stabs "_mod:2,120,8;_pos:6,128,32;_readvalid:2,160,8;\\",128,0,0,0 .stabs "_padding:2,168,8;_bufsize:5,176,16;;",128,0,0,0 .stabs "segT:t18=eSEG_ABSOLUTE:0,SEG_TEXT:1,SEG_DATA:2,SEG_BSS:3,\\",128,0,0,0 .stabs "SEG_UNKNOWN:4,SEG_NONE:5,SEG_PASS1:6,SEG_GOOF:7,SEG_BIG:8,\\",128,0,0,0 .stabs "SEG_DIFFERENCE:9,;",128,0,0,0 .stabs "subsegT:t11",128,0,0,0 .stabs "relax_stateT:t19=ers_fill:0,rs_align:1,rs_org:2,rs_machine_dependent:3,;",128,0,0,0 .stabs "relax_substateT:t4",128,0,0,0 .stabs "relax_addressT:t4",128,0,0,0 .stabs "frag:T20=s38fr_address:4,0,32;fr_next:21=*20,32,32;\\",128,0,0,0 .stabs "fr_fix:6,64,32;fr_var:6,96,32;fr_symbol:22=*23=xssymbol:,128,32;\\",128,0,0,0 .stabs "fr_offset:6,160,32;fr_opcode:24=*2,192,32;fr_type:19,224,32;\\",128,0,0,0 .stabs "fr_subtype:4,256,32;fr_literal:25=ar1;0;0;2,288,8;;",128,0,0,0 .stabs "fragS:t20",128,0,0,0 .text .align 1 .globl _as_warn _as_warn: .stabd 68,0,76 tstb sp@(-256) link a6,#0 movel a2,sp@- LBB1: .stabd 68,0,81 tstb _flagseen+87 jne L2 .stabd 68,0,83 jbsr _as_where .stabd 68,0,84 .stabd 68,0,85 pea a6@(12) movel a6@(8),sp@- lea __iob+48,a2 movel a2,sp@- jbsr _vfprintf .stabd 68,0,87 subql #1,__iob+52 addw #12,sp jmi L3 moveb #1,__iob+63 movel a2@,a0 moveb #10,a0@ addql #1,a2@ jra L2 L3: pea __iob+48 pea 10:w jbsr __flsbuf L2: LBE1: movel a6@(-4),a2 unlk a6 rts .stabs "as_warn:F15",36,0,0,_as_warn .stabs "Format:p24",160,0,0,8 .stabs "va_alist:p1",160,0,0,12 .stabn 192,0,0,LBB2 .stabn 224,0,0,LBE2 .text LC0: .ascii "FATAL:\0" .text .align 1 .globl _as_fatal _as_fatal: .stabd 68,0,115 tstb sp@(-256) link a6,#0 moveml #0x2020,sp@- LBB1: .stabd 68,0,120 jbsr _as_where .stabd 68,0,121 moveq #12,d2 addl a6,d2 .stabd 68,0,122 pea LC0 lea __iob+48,a2 movel a2,sp@- jbsr _fprintf .stabd 68,0,123 movel d2,sp@- movel a6@(8),sp@- movel a2,sp@- jbsr _vfprintf .stabd 68,0,124 subql #1,__iob+52 addw #20,sp jmi L6 moveb #1,__iob+63 movel a2@,a0 moveb #10,a0@ addql #1,a2@ jra L7 L6: pea __iob+48 pea 10:w jbsr __flsbuf addql #8,sp L7: .stabd 68,0,126 pea 42:w jbsr _exit LBE1: moveml a6@(-8),#0x404 unlk a6 rts .stabs "as_fatal:F15",36,0,0,_as_fatal .stabs "Format:p24",160,0,0,8 .stabs "va_alist:p1",160,0,0,12 .stabs "args:r24",64,0,0,2 .stabn 192,0,0,LBB3 .stabn 224,0,0,LBE3 ^^^^ end of messages.s Thank you very much. If you have any questions, please mail, snail or call. Allan G. Schrum Digital Design, Inc. 3060 Business Park Dr, Suite E Norcross, GA 30071 USA (404) 447-0274 {gatech|tolerant}!rebel!didsgn!{gnu|allan}