1596Sbill /* Copyright (c) 1980 Regents of the University of California */ 2*638Sbill static char sccsid[] = "@(#)asmain.c 4.4 08/16/80"; 3596Sbill #include <stdio.h> 4596Sbill #include <ctype.h> 5596Sbill #include <signal.h> 6596Sbill 7596Sbill #include "as.h" 8596Sbill #include "assyms.h" 9596Sbill #include "asexpr.h" 10596Sbill #include "asscan.h" 11596Sbill 12596Sbill #ifdef UNIX 13631Shenry #define unix_lang_name "VAX/UNIX Assembler Vasmain.c" 14596Sbill #endif 15596Sbill 16596Sbill #ifdef VMS 17631Shenry #define vms_lang_name "VAX/VMS C Assembler V1.00" 18596Sbill #endif VMS 19596Sbill 20596Sbill /* 21596Sbill * variables to manage reading the assembly source files 22596Sbill */ 23596Sbill char *dotsname; /*the current file name; managed by the parser*/ 24596Sbill int lineno; /*current line number; managed by the parser*/ 25596Sbill char *innames[32]; /*names of the files being assembled*/ 26596Sbill int ninfiles; /*how many interesting files there are*/ 27596Sbill /* 28596Sbill * Flags settable from the argv process argument list 29596Sbill */ 30596Sbill int silent = 0; /*don't complain about any errors*/ 31596Sbill int savelabels = 0; /*write the labels to the a.out file*/ 32596Sbill int d124 = 4; /*default allocate 4 bytes for unknown pointers*/ 33596Sbill int anyerrs = 0; /*no errors yet*/ 34596Sbill int orgwarn = 0; /*Bad origins*/ 35596Sbill int passno = 1; /* current pass*/ 36636Shenry int jxxxJUMP = 0; /* in jxxxes that branch too far, use jmp instead of brw */ 37*638Sbill int readonlydata = 0; /* initialzed data -> text space */ 38596Sbill 39596Sbill #ifdef DEBUG 40596Sbill int debug = 0; 41596Sbill int toktrace = 0; 42596Sbill #endif 43596Sbill 44596Sbill int useVM = /*put the temp file in virtual memory*/ 45596Sbill #ifdef VMS 46596Sbill 1; /*VMS has virtual memory (duh)*/ 47596Sbill #endif VMS 48596Sbill #ifdef UNIX 49596Sbill 0; 50596Sbill #endif 51596Sbill 52596Sbill char *endcore; /*where to get more symbol space*/ 53596Sbill 54596Sbill /* 55596Sbill * Managers of the a.out file. 56596Sbill */ 57596Sbill struct exec hdr; 58*638Sbill #define MAGIC 0407 59596Sbill u_long tsize; /* total text size */ 60596Sbill u_long dsize; /* total data size */ 61596Sbill u_long datbase; /* base of the data segment */ 62596Sbill u_long trsize; /* total text relocation size */ 63596Sbill u_long drsize; /* total data relocation size */ 64596Sbill 65596Sbill /* 66596Sbill * Information about the current segment is accumulated in 67596Sbill * usedot; the most important information stored is the 68596Sbill * accumulated size of each of the text and data segments 69596Sbill * 70596Sbill * dotp points to the correct usedot expression for the current segment 71596Sbill */ 72596Sbill struct exp usedot[NLOC+NLOC]; /* info about all segments */ 73596Sbill struct exp *dotp; /* data/text location pointer */ 74596Sbill /* 75596Sbill * The inter pass temporary file is opened and closed by stdio, but 76596Sbill * is written to using direct read/write, as the temporary file 77596Sbill * is composed of buffers exactly BUFSIZ long. 78596Sbill */ 79596Sbill FILE *tmpfil; /* interpass communication file */ 80596Sbill /* 81596Sbill * a.out is created during the second pass. 82596Sbill * It is opened by stdio, but is filled with the parallel 83596Sbill * block I/O library 84596Sbill */ 85596Sbill char *outfile = "a.out"; 86596Sbill FILE *a_out_file; 87596Sbill off_t a_out_off; /* cumulative offsets for segments */ 88596Sbill /* 89596Sbill * The logical files containing the assembled data for each of 90596Sbill * the text and data segments are 91596Sbill * managed by the parallel block I/O library. 92596Sbill * a.out is logically opened in many places at once to 93596Sbill * receive the assembled data from the various segments as 94596Sbill * it all trickles in, but is physically opened only once 95596Sbill * to minimize file overhead. 96596Sbill */ 97596Sbill BFILE *usefile[NLOC+NLOC]; /* text/data files */ 98596Sbill BFILE *txtfil; /* current text/data file */ 99596Sbill /* 100596Sbill * Relocation information is accumulated seperately for each 101596Sbill * segment. This is required by the old loader (from BTL), 102596Sbill * but not by the new loader (Bill Joy). 103596Sbill * 104596Sbill * However, the size of the relocation information can not be computed 105596Sbill * during or after the 1st pass because the ''absoluteness' of values 106596Sbill * is unknown until all locally declared symbols have been seen. 107596Sbill * Thus, the size of the relocation information is only 108596Sbill * known after the second pass is finished. 109596Sbill * This obviates the use of the block I/O 110596Sbill * library, which requires knowing the exact offsets in a.out. 111596Sbill * 112596Sbill * So, we save the relocation information internally (we don't 113596Sbill * go to internal files to minimize overhead). 114596Sbill * 115596Sbill * Empirically, we studied 259 files composing the system, 116596Sbill * two compilers and a compiler generator: (all of which have 117596Sbill * fairly large source files) 118596Sbill * 119596Sbill * Number of files = 259 120596Sbill * Number of non zero text reloc files: 233 121596Sbill * Number of non zero data reloc files: 53 122596Sbill * Average text relocation = 889 123596Sbill * Average data relocation = 346 124596Sbill * Number of files > BUFSIZ text relocation = 71 125596Sbill * Number of files > BUFSIZ data relocation = 6 126596Sbill * 127596Sbill * For compiled C code, there is usually one text segment and two 128596Sbill * data segments; we see that allocating our own buffers and 129596Sbill * doing our internal handling of relocation information will, 130596Sbill * on the average, not use more memory than taken up by the buffers 131596Sbill * allocated for doing file I/O in parallel to a number of file. 132596Sbill * 133596Sbill * If we are assembling with the -V option, we 134596Sbill * use the left over token buffers from the 2nd pass, 135596Sbill * otherwise, we create our own. 136596Sbill * 137596Sbill * When the 2nd pass is complete, closeoutrel flushes the token 138596Sbill * buffers out to a BFILE. 139596Sbill * 140596Sbill * The internals to relbufdesc are known only in assyms.c 141596Sbill * 142596Sbill * outrel constructs the relocation information. 143596Sbill * closeoutrel flushes the relocation information to relfil. 144596Sbill */ 145596Sbill struct relbufdesc *rusefile[NLOC+NLOC]; 146596Sbill struct relbufdesc *relfil; /* un concatnated relocation info */ 147596Sbill BFILE *relocfile; /* concatnated relocation info */ 148596Sbill /* 149596Sbill * Once the relocation information has been written, 150596Sbill * we can write out the symbol table using the Block I/O 151596Sbill * mechanisms, as we once again know the offsets into 152596Sbill * the a.out file. 153596Sbill * 154596Sbill * We use relfil to output the symbol table information. 155596Sbill */ 156596Sbill 157596Sbill char *tmpdirprefix = 158596Sbill #ifdef UNIX 159596Sbill "/tmp/"; 160596Sbill #else VMS 161596Sbill "/usr/tmp/"; 162596Sbill #endif 163596Sbill 164596Sbill #define TMP_SUFFIX "asXXXXXX" 165596Sbill char tmpn1[TNAMESIZE]; 166596Sbill 167596Sbill int delexit(); 168596Sbill 169596Sbill main(argc, argv) 170596Sbill int argc; 171596Sbill char **argv; 172596Sbill { 173596Sbill 174596Sbill tmpn1[0] = 0; 175596Sbill endcore = (char *)sbrk(0); 176596Sbill 177596Sbill argprocess(argc, argv); /* process argument lists */ 178596Sbill if (anyerrs) exit(1); 179596Sbill 180596Sbill initialize(); 181596Sbill zeroorigins(); /* set origins to zero */ 182596Sbill zerolocals(); /* fix local label counters */ 183596Sbill 184596Sbill i_pass1(); /* open temp files, etc */ 185596Sbill pass1(); /* first pass through .s files */ 186596Sbill testlocals(); /* check for undefined locals */ 187596Sbill if (anyerrs) delexit(); 188596Sbill 189596Sbill pass1_5(); /* resolve jxxx */ 190596Sbill if (anyerrs) delexit(); 191596Sbill 192596Sbill open_a_out(); /* open a.out */ 193596Sbill roundsegments(); /* round segments to FW */ 194596Sbill build_hdr(); /* build initial header, and output */ 195596Sbill 196596Sbill i_pass2(); /* reopen temporary file, etc */ 197596Sbill pass2(); /* second pass through the virtual .s */ 198596Sbill if (anyerrs) delexit(); 199596Sbill 200596Sbill fillsegments(); /* fill segments with 0 to FW */ 201596Sbill reloc_syms(); /* dump relocation and symbol table */ 202596Sbill 203596Sbill delete(); /* remove tmp file */ 204596Sbill bflush(); /* close off block I/O view of a.out */ 205596Sbill fix_a_out(); /* add in text and data reloc counts */ 206596Sbill 207596Sbill if (anyerrs == 0 && orgwarn) 208596Sbill yyerror("Caution: absolute origins.\n"); 209596Sbill exit(anyerrs != 0); 210596Sbill } /*end of UNIX main*/ 211596Sbill 212596Sbill argprocess(argc, argv) 213596Sbill int argc; 214596Sbill char *argv[]; 215596Sbill { 216596Sbill register char *cp; 217596Sbill 218596Sbill ninfiles = 0; 219596Sbill silent = 0; 220596Sbill #ifdef DEBUG 221596Sbill debug = 0; 222596Sbill #endif 223596Sbill dotsname = "<argv error>"; 224596Sbill while (argc > 1) { 225596Sbill if (argv[1][0] == '-'){ 226596Sbill cp = argv[1] + 1; 227596Sbill /* 228596Sbill * We can throw away single minus signs, so 229596Sbill * that make scripts for the PDP 11 assembler work 230596Sbill * on this assembler too 231596Sbill */ 232596Sbill while (*cp){ 233596Sbill switch(*cp++){ 234596Sbill default: 235596Sbill yyerror("Unknown flag: %c", *--cp); 236596Sbill cp++; 237596Sbill break; 238596Sbill case 'd': 239596Sbill d124 = *cp++ - '0'; 240596Sbill if ( (d124 != 1) && (d124 != 2) && 241596Sbill (d124 != 4)){ 242596Sbill yyerror("-d[124] only"); 243596Sbill exit(1); 244596Sbill } 245596Sbill break; 246596Sbill case 'o': 247596Sbill if (argc < 3){ 248596Sbill yyerror("-o what???"); 249596Sbill exit(1); 250596Sbill } 251596Sbill outfile = argv[2]; 252596Sbill bumpone: 253596Sbill argc -= 2; 254596Sbill argv += 2; 255596Sbill goto nextarg; 256596Sbill 257596Sbill case 't': 258596Sbill if (argc < 3){ 259596Sbill yyerror("-t what???"); 260596Sbill exit(1); 261596Sbill } 262596Sbill tmpdirprefix = argv[2]; 263596Sbill goto bumpone; 264596Sbill 265596Sbill case 'V': 266596Sbill useVM = 1; 267596Sbill break; 268596Sbill case 'W': 269596Sbill silent = 1; 270596Sbill break; 271596Sbill case 'L': 272596Sbill savelabels = 1; 273596Sbill break; 274636Shenry case 'J': 275636Shenry jxxxJUMP = 1; 276636Shenry break; 277596Sbill #ifdef DEBUG 278596Sbill case 'D': 279596Sbill debug = 1; 280596Sbill break; 281596Sbill case 'T': 282596Sbill toktrace = 1; 283596Sbill break; 284596Sbill #endif 285*638Sbill case 'R': 286*638Sbill readonlydata = 1; 287*638Sbill break; 288596Sbill } /*end of the switch*/ 289596Sbill } /*end of pulling out all arguments*/ 290596Sbill } /*end of a flag argument*/ 291596Sbill else { /*file name*/ 292596Sbill if (ninfiles > 32){ 293596Sbill yyerror("More than 32 file names"); 294596Sbill exit(3); 295596Sbill } 296596Sbill innames[ninfiles++] = argv[1]; 297596Sbill } 298596Sbill --argc; ++argv; 299596Sbill nextarg:; 300596Sbill } 301596Sbill } 302596Sbill 303596Sbill initialize() 304596Sbill { 305596Sbill if (signal(SIGINT, SIG_IGN) != SIG_IGN) 306596Sbill signal(SIGINT, delexit); 307596Sbill /* 308596Sbill * Install symbols in the table 309596Sbill */ 310596Sbill symtabinit(); 311596Sbill syminstall(); 312596Sbill /* 313596Sbill * Build the expression parser accelerator token sets 314596Sbill */ 315596Sbill buildtokensets(); 316596Sbill } 317596Sbill 318596Sbill zeroorigins() 319596Sbill { 320596Sbill register int locindex; 321596Sbill /* 322596Sbill * Mark usedot: the first NLOC slots are for named text segments, 323596Sbill * the next for named data segments. 324596Sbill */ 325596Sbill for (locindex = 0; locindex < NLOC; locindex++){ 326631Shenry usedot[locindex].e_xtype = XTEXT; 327631Shenry usedot[NLOC + locindex].e_xtype = XDATA; 328631Shenry usedot[locindex].e_xvalue = 0; 329631Shenry usedot[NLOC + locindex].e_xvalue = 0; 330631Shenry usedot[locindex].e_yvalue = 0; 331631Shenry usedot[NLOC + locindex].e_yvalue = 0; 332596Sbill } 333596Sbill } 334596Sbill 335596Sbill zerolocals() 336596Sbill { 337596Sbill register int i; 338596Sbill 339596Sbill for (i = 0; i <= 9; i++) { 340596Sbill lgensym[i] = 1; 341596Sbill genref[i] = 0; 342596Sbill } 343596Sbill } 344596Sbill 345596Sbill i_pass1() 346596Sbill { 347596Sbill if (useVM == 0){ 348596Sbill strcat(tmpn1, tmpdirprefix); 349596Sbill strcat(tmpn1, TMP_SUFFIX); 350596Sbill mktemp(tmpn1); 351596Sbill tmpfil = fopen(tmpn1, "w"); 352596Sbill if (tmpfil==NULL) { 353596Sbill yyerror("Bad pass 1 temporary file for writing %s", tmpn1); 354596Sbill delexit(); 355596Sbill } 356596Sbill } 357596Sbill 358596Sbill inittmpfile(); 359636Shenry initijxxx(); 360596Sbill } 361596Sbill 362596Sbill pass1() 363596Sbill { 364596Sbill register int i; 365596Sbill 366596Sbill passno = 1; 367596Sbill dotp = &usedot[0]; 368596Sbill txtfil = (BFILE *)0; 369596Sbill relfil = (struct relbufdesc *)0; 370596Sbill 371596Sbill if (ninfiles == 0){ /*take the input from stdin directly*/ 372596Sbill lineno = 1; 373596Sbill dotsname = "<stdin>"; 374596Sbill 375596Sbill yyparse(); 376596Sbill } else { /*we have the names tanked*/ 377596Sbill for (i = 0; i < ninfiles; i++){ 378596Sbill new_dot_s(innames[i]); 379596Sbill if (freopen(innames[i], "r", stdin) == NULL) { 380596Sbill yyerror( "Can't open source file %s\n", 381596Sbill innames[i]); 382596Sbill exit(2); 383596Sbill } 384596Sbill /* stdio is NOT used to read the input characters */ 385596Sbill /* we use read directly, into our own buffers */ 386596Sbill yyparse(); 387596Sbill } 388596Sbill } 389596Sbill 390596Sbill closetmpfile(); /*kick out the last buffered intermediate text*/ 391596Sbill } 392596Sbill 393596Sbill testlocals() 394596Sbill { 395596Sbill register int i; 396596Sbill for (i = 0; i <= 9; i++) { 397596Sbill if (genref[i]) 398596Sbill yyerror("Reference to undefined local label %df", i); 399596Sbill lgensym[i] = 1; 400596Sbill genref[i] = 0; 401596Sbill } 402596Sbill } 403596Sbill 404596Sbill pass1_5() 405596Sbill { 406596Sbill sortsymtab(); 407596Sbill #ifdef DEBUG 408596Sbill if (debug) dumpsymtab(); 409596Sbill #endif 410596Sbill jxxxfix(); 411596Sbill #ifdef DEBUG 412596Sbill if (debug) dumpsymtab(); 413596Sbill #endif 414596Sbill } 415596Sbill 416596Sbill open_a_out() 417596Sbill { 418596Sbill /* 419596Sbill * Open up the a.out file now, and get set to build 420596Sbill * up offsets into it for all of the various text,data 421596Sbill * text relocation and data relocation segments. 422596Sbill */ 423596Sbill a_out_file = fopen(outfile, "w"); 424596Sbill if (a_out_file == NULL) { 425596Sbill yyerror("Cannot create %s", outfile); 426596Sbill delexit(); 427596Sbill } 428596Sbill biofd = a_out_file->_file; 429596Sbill a_out_off = 0; 430596Sbill } 431596Sbill 432596Sbill roundsegments() 433596Sbill { 434596Sbill register int locindex; 435596Sbill register long v; 436596Sbill /* 437596Sbill * round and assign text segment origins 438596Sbill * the exec header always goes in usefile[0] 439596Sbill */ 440596Sbill tsize = 0; 441596Sbill for (locindex=0; locindex<NLOC; locindex++) { 442631Shenry v = round(usedot[locindex].e_xvalue, FW); 443631Shenry usedot[locindex].e_xvalue = tsize; 444596Sbill if ((locindex == 0) || (v != 0) ){ 445596Sbill usefile[locindex] = (BFILE *)Calloc(1, sizeof(BFILE)); 446596Sbill bopen(usefile[locindex], a_out_off); 447596Sbill if (locindex == 0) 448596Sbill a_out_off = sizeof (struct exec); 449596Sbill } else { 450596Sbill usefile[locindex] = (BFILE *)-1; 451596Sbill } 452596Sbill tsize += v; 453596Sbill a_out_off += v; 454596Sbill } 455596Sbill /* 456596Sbill * Round and assign data segment origins. 457596Sbill */ 458*638Sbill datbase = round(tsize, FW); 459596Sbill for (locindex=0; locindex<NLOC; locindex++) { 460631Shenry v = round(usedot[NLOC+locindex].e_xvalue, FW); 461631Shenry usedot[NLOC+locindex].e_xvalue = datbase + dsize; 462596Sbill if (v != 0){ 463596Sbill usefile[NLOC + locindex] = (BFILE *)Calloc(1,sizeof(BFILE)); 464596Sbill bopen(usefile[NLOC + locindex], a_out_off); 465596Sbill } else { 466596Sbill usefile[NLOC + locindex] = (BFILE *)-1; 467596Sbill } 468596Sbill dsize += v; 469596Sbill a_out_off += v; 470596Sbill } 471596Sbill /* 472596Sbill * Assign final values to symbols 473596Sbill */ 474596Sbill hdr.a_bss = dsize; 475596Sbill freezesymtab(); /* this touches hdr.a_bss */ 476596Sbill stabfix(); 477596Sbill /* 478596Sbill * Set up the relocation information "files" to 479596Sbill * be zero; outrel takes care of the rest 480596Sbill */ 481596Sbill for (locindex = 0; locindex < NLOC + NLOC; locindex++){ 482596Sbill rusefile[locindex] = (struct relbufdesc *)0; 483596Sbill } 484596Sbill } 485596Sbill 486596Sbill build_hdr() 487596Sbill { 488596Sbill /* 489596Sbill * Except for the text and data relocation sizes, 490596Sbill * calculate the final values for the header 491596Sbill * 492596Sbill * Write out the initial copy; we to come 493596Sbill * back later and patch up a_trsize and a_drsize, 494596Sbill * and overwrite this first version of the header. 495596Sbill */ 496596Sbill hdr.a_magic = MAGIC; 497596Sbill hdr.a_text = tsize; 498596Sbill hdr.a_data = dsize; 499596Sbill hdr.a_bss -= dsize; 500596Sbill hdr.a_syms = sizesymtab(); /* Does not include string pool length */ 501596Sbill hdr.a_entry = 0; 502596Sbill hdr.a_trsize = 0; 503596Sbill hdr.a_drsize = 0; 504596Sbill 505596Sbill bwrite((char *)&hdr, sizeof(hdr), usefile[0]); 506596Sbill } 507596Sbill 508596Sbill i_pass2() 509596Sbill { 510596Sbill if (useVM == 0) { 511596Sbill fclose(tmpfil); 512596Sbill tmpfil = fopen(tmpn1, "r"); 513596Sbill if (tmpfil==NULL) { 514596Sbill yyerror("Bad pass 2 temporary file for reading %s", tmpn1); 515596Sbill delexit(); 516596Sbill } 517596Sbill } 518596Sbill } 519596Sbill 520596Sbill pass2() 521596Sbill { 522596Sbill #ifdef DEBUG 523596Sbill if (debug) 524596Sbill printf("\n\n\n\t\tPASS 2\n\n\n\n"); 525596Sbill #endif DEBUG 526596Sbill passno = 2; 527596Sbill lineno = 1; 528596Sbill dotp = &usedot[0]; 529596Sbill txtfil = usefile[0]; /* already opened (always!) */ 530596Sbill relfil = 0; /* outrel takes care of the rest */ 531596Sbill initoutrel(); 532596Sbill 533596Sbill inittmpfile(); 534596Sbill 535596Sbill yyparse(); 536596Sbill 537596Sbill closetmpfile(); 538596Sbill } 539596Sbill 540596Sbill fillsegments() 541596Sbill { 542596Sbill int locindex; 543596Sbill /* 544596Sbill * Round text and data segments to FW by appending zeros 545596Sbill */ 546596Sbill for (locindex = 0; locindex < NLOC + NLOC; locindex++) { 547596Sbill if (usefile[locindex]) { 548596Sbill txtfil = usefile[locindex]; 549596Sbill dotp = &usedot[locindex]; 550631Shenry while (usedot[locindex].e_xvalue & FW) 551596Sbill outb(0); 552596Sbill } 553596Sbill } 554596Sbill } 555596Sbill 556596Sbill reloc_syms() 557596Sbill { 558596Sbill u_long closerelfil(); 559596Sbill /* 560596Sbill * Move the relocation information to a.out 561596Sbill * a_out_off is the offset so far: 562596Sbill * exec + text segments + data segments 563596Sbill */ 564596Sbill relocfile = (BFILE *)Calloc(1,sizeof(BFILE)); 565596Sbill bopen(relocfile, a_out_off); 566596Sbill a_out_off += closeoutrel(relocfile); 567596Sbill 568596Sbill hdr.a_trsize = trsize; 569596Sbill hdr.a_drsize = drsize; 570*638Sbill if (readonlydata) { 571*638Sbill hdr.a_text += hdr.a_data; 572*638Sbill hdr.a_data = 0; 573*638Sbill hdr.a_trsize += hdr.a_drsize; 574*638Sbill hdr.a_drsize = 0; 575*638Sbill } 576596Sbill /* 577596Sbill * Output the symbol table 578596Sbill * and if FLEXNAMES is set, the string pool 579596Sbill */ 580596Sbill symwrite(relocfile); 581596Sbill } 582596Sbill 583596Sbill fix_a_out() 584596Sbill { 585596Sbill if (lseek(a_out_file->_file, 0L, 0) < 0) 586596Sbill yyerror("Reposition for header rewrite fails"); 587596Sbill if (write(a_out_file->_file, (char *)&hdr, sizeof (struct exec)) < 0) 588596Sbill yyerror("Rewrite of header fails"); 589596Sbill } 590596Sbill 591596Sbill delexit() 592596Sbill { 593596Sbill delete(); 594596Sbill if (passno == 2){ 595596Sbill unlink(outfile); 596596Sbill } 597596Sbill exit(1); 598596Sbill } 599596Sbill 600596Sbill delete() 601596Sbill { 602596Sbill if (useVM == 0 || tmpn1[0]) 603596Sbill unlink(tmpn1); 604596Sbill } 605596Sbill 606596Sbill sawabort() 607596Sbill { 608596Sbill char *fillinbuffer(); 609596Sbill while (fillinbuffer() != (char *)0) 610596Sbill continue; 611596Sbill delete(); 612596Sbill exit(1); /*although the previous pass will also exit non zero*/ 613596Sbill } 614596Sbill 615596Sbill panic(fmt, a1, a2, a3, a4) 616596Sbill char *fmt; 617596Sbill /*VARARGS 1*/ 618596Sbill { 619596Sbill yyerror("Assembler panic: bad internal data structure."); 620596Sbill yyerror(fmt, a1, a2, a3, a4); 621596Sbill delete(); 622596Sbill abort(); 623596Sbill } 624