Debian Codegraph @

arch/pdp10/local.c

raw symbols SCIP
1 /* $Id: local.c,v 1.80 2022/03/30 14:11:59 ragge Exp $ */
2 /*
3 * Copyright (c) 2003 Anders Magnusson ([email protected]).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27
28 # include "pass1.h"
29
30 #undef NIL
31 #define NIL NULL
32
33 #ifdef LANG_CXX
34 #define P1ND NODE
35 #define p1nfree nfree
36 #define p1fwalk fwalk
37 #define p1tcopy tcopy
38 #else
39 #define NODE P1ND
40 #define nfree p1nfree
41 #define fwalk p1fwalk
42 #define tcopy p1tcopy
43 #endif
44 #define n_sue n_ap
45
46 /* this file contains code which is dependent on the target machine */
47
48 static int pointp(TWORD t);
49 static struct symtab *newfun(char *name, TWORD type);
50
51 #define PTRNORMAL 1
52 #define PTRCHAR 2
53 #define PTRSHORT 3
54 static int xptype(TWORD t);
55
56 NODE *
57 clocal(NODE *p)
58 {
59 /* this is called to do local transformations on
60 an expression tree preparitory to its being
61 written out in intermediate code.
62 */
63
64 /* the major essential job is rewriting the
65 automatic variables and arguments in terms of
66 REG and OREG nodes */
67 /* conversion ops which are not necessary are also clobbered here */
68 /* in addition, any special features (such as rewriting
69 exclusive or) are easily handled here as well */
70
71 register struct symtab *q;
72 register NODE *r, *l, *oop;
73 register int o;
74 register int m, ml;
75 int siz;
76
77 #ifdef PCC_DEBUG
78 if (xdebug) {
79 printf("clocal: %p\n", p);
80 fwalk(p, eprint, 0);
81 }
82 #endif
83
84 switch( o = p->n_op ){
85
86 case NAME:
87 if ((q = p->n_sp) == NULL)
88 return p; /* Nothing to care about */
89
90 switch (q->sclass) {
91
92 case PARAM:
93 /* First 7 parameters are in registers */
94 /* XXX last may be double */
95 if (q->soffset/SZINT < 7) {
96 p->n_op = REG;
97 p->n_rval = q->soffset/SZINT;
98 break;
99 } else
100 q->soffset -= 7*SZINT;
101
102 case AUTO:
103 /* fake up a structure reference */
104 if (q->stype == CHAR || q->stype == UCHAR ||
105 q->stype == SHORT || q->stype == USHORT)
106 r = block(REG, NIL, NIL, PTR+q->stype, 0, 0);
107 else
108 r = block(REG, NIL, NIL, PTR+STRTY, 0, 0);
109 slval(r, 0);
110 r->n_rval = FPREG;
111 p = stref(block(STREF, r, p, 0, 0, 0));
112 break;
113
114 case STATIC:
115 if (q->slevel == 0)
116 break;
117 slval(p, 0);
118 break;
119
120 case REGISTER:
121 p->n_op = REG;
122 slval(p, 0);
123 p->n_rval = q->soffset;
124 break;
125
126 }
127 break;
128
129 case CALL:
130 /* avoid recursive calls */
131 r = tempnode(0, p->n_type, p->n_df, p->n_sue);
132 l = tempnode(regno(r), p->n_type, p->n_df, p->n_sue);
133 ecomp(buildtree(ASSIGN, r, p));
134 p = l;
135 break;
136
137 case PCONV:
138 l = p->n_left;
139 /*
140 * Handle frame pointer directly without conversion,
141 * for efficiency.
142 */
143 if (l->n_op == REG && l->n_rval == 0) {
144 rmpc: l->n_type = p->n_type;
145 l->n_df = p->n_df;
146 l->n_sue = p->n_sue;
147 nfree(p);
148 return l;
149 }
150 /* Convert ICON with name to new type */
151 if (l->n_op == ICON && l->n_sp != NULL &&
152 l->n_type == INCREF(STRTY) &&
153 (p->n_type == INCREF(CHAR) ||
154 p->n_type == INCREF(UCHAR) ||
155 p->n_type == INCREF(SHORT) ||
156 p->n_type == INCREF(USHORT))) {
157 int j = (BTYPE(p->n_type) == CHAR ||
158 BTYPE(p->n_type) == UCHAR ? 4 : 2);
159 slval(l, glval(l) * j);
160 goto rmpc;
161 }
162 /* Convert only address constants, never convert other */
163 if (l->n_op == ICON) {
164 if (l->n_sp == NULL)
165 goto rmpc;
166 if (p->n_type == INCREF(CHAR) ||
167 p->n_type == INCREF(UCHAR) ||
168 p->n_type == INCREF(VOID))
169 slval(l, (glval(l) & 07777777777) |
170 0700000000000LL);
171 else if (p->n_type == INCREF(SHORT) ||
172 p->n_type == INCREF(USHORT))
173 slval(l, (glval(l) & 07777777777) |
174 0750000000000LL);
175 else
176 slval(l, (glval(l) & 07777777777));
177 goto rmpc;
178 }
179
180 /* Remove more conversions of identical pointers */
181 /* Be careful! optim() may do bad things */
182 if (ISPTR(DECREF(p->n_type))) {
183 if (ISPTR(DECREF(l->n_type))) {
184 if ((coptype(l->n_op) == UTYPE ||
185 coptype(l->n_op) == BITYPE) &&
186 (l->n_left->n_op == REG))
187 l->n_left->n_type = p->n_type;
188 goto rmpc;
189 }
190 }
191
192 /* Change PCONV from int to double pointer to right shift */
193 if (ISPTR(p->n_type) && ISPTR(DECREF(p->n_type)) &&
194 (l->n_type == INT || l->n_type == UNSIGNED)) {
195 p->n_op = RS;
196 p->n_right = bcon(2);
197 break;
198 }
199
200 /* Check for cast integral -> pointer */
201 if (BTYPE(l->n_type) == l->n_type)
202 break;
203
204 /* Remove conversions to identical pointers */
205 switch (xptype(p->n_type)) {
206 case PTRNORMAL:
207 if (xptype(l->n_type) == PTRNORMAL)
208 goto rmpc;
209 break;
210
211 case PTRSHORT:
212 if (xptype(l->n_type) == PTRSHORT)
213 goto rmpc;
214 break;
215
216 case PTRCHAR:
217 if (xptype(l->n_type) == PTRCHAR)
218 goto rmpc;
219 break;
220 }
221
222 break;
223
224 case SCONV:
225 l = p->n_left;
226
227 if ((p->n_type & TMASK) == 0 && (l->n_type & TMASK) == 0 &&
228 tsize(p->n_type, p->n_df, p->n_ap) ==
229 tsize(l->n_type, l->n_df, l->n_ap)) {
230 if (p->n_type != FLOAT && p->n_type != DOUBLE &&
231 l->n_type != FLOAT && l->n_type != DOUBLE) {
232 nfree(p);
233 return l;
234 }
235 }
236 /* cast to (void) XXX should be removed in MI code */
237 if (p->n_type == VOID) {
238 nfree(p);
239 return l;
240 }
241 m = p->n_type;
242 ml = l->n_type;
243 if (m == ml) {
244 nfree(p);
245 return l;
246 }
247 o = l->n_op;
248 if (ml == FLOAT || ml == DOUBLE)
249 cerror("SCONV FCON");
250 if (o == ICON) {
251 CONSZ val = glval(l);
252
253 switch (m) {
254 case CHAR:
255 slval(l, val & 0777);
256 if (val & 0400)
257 slval(l, glval(l) | ~((CONSZ)0777));
258 break;
259 case UCHAR:
260 slval(l, val & 0777);
261 break;
262 case USHORT:
263 slval(l, val & 0777777);
264 break;
265 case SHORT:
266 slval(l, val & 0777777);
267 if (val & 0400000)
268 slval(l, glval(l) | ~((CONSZ)0777777));
269 break;
270 case UNSIGNED:
271 slval(l, val & 0777777777777LL);
272 break;
273 case INT:
274 slval(l, val & 0777777777777LL);
275 if (val & 0400000000000LL)
276 slval(l, glval(l) | ~(0777777777777LL));
277 break;
278 case LONGLONG: /* XXX */
279 case ULONGLONG:
280 slval(l, val);
281 break;
282 case VOID:
283 break;
284 default:
285 cerror("unknown type %d", m);
286 }
287 l->n_type = m;
288 l->n_sue = 0;
289 nfree(p);
290 return l;
291 }
292 break;
293
294 case PMCONV:
295 case PVCONV:
296 /* if( p->n_right->n_op != ICON ) cerror( "bad conversion", 0); */
297 nfree(p);
298 return(buildtree(o==PMCONV?MUL:DIV, p->n_left, p->n_right));
299
300 case RS:
301 case RSEQ:
302 /* convert >> to << with negative shift count */
303 /* Beware! constant shifts will be converted back in optim() */
304
305 if (p->n_right->n_op != UMINUS) {
306 p->n_right = buildtree(UMINUS, p->n_right, NIL);
307 } else {
308 r = p->n_right;
309 p->n_right = p->n_right->n_left;
310 nfree(r);
311 }
312 if (p->n_op == RS)
313 p->n_op = LS;
314 else
315 p->n_op = LSEQ;
316 break;
317
318 case UMUL: /* Convert structure assignment to memcpy() */
319 if (p->n_left->n_op == PLUS &&
320 p->n_left->n_left->n_op == PCONV &&
321 p->n_left->n_right->n_op == ICON &&
322 (p->n_type == CHAR || p->n_type == UCHAR ||
323 p->n_type == SHORT || p->n_type == USHORT)) {
324 /* Can remove the left SCONV */
325 l = p->n_left->n_left;
326 p->n_left->n_left = l->n_left;
327 nfree(l);
328 break;
329
330 }
331 if (p->n_left->n_op != STASG)
332 break;
333 oop = p;
334 p = p->n_left;
335 siz = tsize(p->n_type, p->n_df, p->n_ap)/SZCHAR;
336 l = p->n_left;
337 r = p->n_right;
338 if (l->n_type == STRTY || l->n_type == UNIONTY) {
339 if (l->n_op == UMUL) {
340 p->n_left = l->n_left;
341 nfree(l);
342 l = p->n_left;
343 } else {
344 l = block(ADDROF, l, NIL, INCREF(l->n_type),
345 0, 0);
346 }
347 }
348 if ((l->n_type != (STRTY+PTR) && l->n_type != (UNIONTY+PTR)) ||
349 (r->n_type != (STRTY+PTR) && r->n_type != (UNIONTY+PTR)))
350 cerror("bad stasg, l = %o, r = %o", l->n_type, r->n_type);
351 q = newfun("__structcpy", p->n_type);
352
353 /* structure pointer block */
354 l = block(CM, l, r, INT, 0, 0);
355 /* Size block */
356 r = block(CM, l, bcon(siz), INT, 0, 0);
357
358 l = xbcon(0, q, q->stype);
359 p->n_left = l;
360 p->n_right = r;
361 p->n_op = CALL;
362 oop->n_left = p;
363 return oop;
364
365 case FORCE:
366 p->n_op = ASSIGN;
367 p->n_right = p->n_left;
368 p->n_left = block(REG, NIL, NIL, p->n_type, 0, 0);
369 p->n_left->n_rval = RETREG(p->n_type);
370 break;
371
372 }
373
374 return(p);
375 }
376
377 void
378 myp2tree(NODE *p)
379 {
380 NODE *r;
381
382 switch (p->n_op) {
383 case ULT: /* exor sign bit to avoid unsigned comparitions */
384 case ULE:
385 case UGT:
386 case UGE:
387 if (ISLONGLONG(p->n_left->n_type)) {
388 /* XXX */
389 r = xbcon(0x8000000000000000ULL, NULL, LONGLONG);
390 } else
391 r = xbcon(0400000000000LL, NULL, INT);
392 p->n_left = buildtree(ER, p->n_left, r);
393 if (ISUNSIGNED(p->n_left->n_type))
394 p->n_left->n_type = DEUNSIGN(p->n_left->n_type);
395
396 if (ISLONGLONG(p->n_right->n_type)) {
397 /* XXX */
398 r = xbcon(0x8000000000000000ULL, NULL, LONGLONG);
399 } else
400 r = xbcon(0400000000000LL, NULL, INT);
401 p->n_right = buildtree(ER, p->n_right, r);
402 if (ISUNSIGNED(p->n_right->n_type))
403 p->n_right->n_type = DEUNSIGN(p->n_right->n_type);
404
405 p->n_op -= (ULT-LT);
406 break;
407 case FCON:
408 cerror("fix float constants");
409 }
410 }
411
412
413 struct symtab *
414 newfun(char *name, TWORD type)
415 {
416 struct symtab *sp;
417
418 sp = lookup(name, 0);
419 if (sp->stype == VOID) {
420 sp->stype = INCREF(type | FTN);
421 sp->sclass = EXTERN;
422 sp->soffset = 0;
423 }
424 #ifdef notdef
425 else if (!ISFTN(DECREF(sp->stype)))
426 uerror("reserved name '%s' used illegally", name);
427 #endif
428 return sp;
429 }
430
431 /*ARGSUSED*/
432 int
433 andable(NODE *p)
434 {
435 return(1); /* all names can have & taken on them */
436 }
437
438 /*
439 * is an automatic variable of type t OK for a register variable
440 * Everything is trusted to be in register here.
441 */
442 int
443 cisreg(TWORD t)
444 {
445 return(1);
446 }
447
448 int
449 xptype(TWORD t)
450 {
451 int tt = BTYPE(t);
452 int e, rv;
453
454 if (!ISPTR(t))
455 cerror("not a pointer");
456
457 e = t & ~BTMASK;
458 rv = e;
459 while (e) {
460 rv = e;
461 if (DECREF(e) == 0)
462 break;
463 e = DECREF(e);
464 }
465 if (ISFTN(rv))
466 return PTRNORMAL;
467
468 switch (tt) {
469 case INT:
470 case LONG:
471 case LONGLONG:
472 case FLOAT:
473 case DOUBLE:
474 case STRTY:
475 case UNIONTY:
476 case UNSIGNED:
477 case ULONG:
478 case ULONGLONG:
479 return PTRNORMAL;
480 case VOID:
481 case CHAR:
482 case UCHAR:
483 if (DECREF(t) == tt || ISARY(rv))
484 return PTRCHAR;
485 return PTRNORMAL;
486 case SHORT:
487 case USHORT:
488 if (DECREF(t) == tt || ISARY(rv))
489 return PTRSHORT;
490 return PTRNORMAL;
491 default:
492 break;
493 }
494 cerror("unknown type");
495 return PTRNORMAL; /* XXX */
496 }
497
498 /*
499 * Help routine to the one below; return true if it's not a word pointer.
500 */
501 static int
502 pointp(TWORD t)
503 {
504 int rv = 0;
505
506 if (ISPTR(t) && ((t & TMASK1) == 0))
507 return 1;
508
509 t &= ~BTMASK;
510 while (t) {
511 rv = ISARY(t);
512 t = DECREF(t);
513 }
514 return rv;
515 }
516
517 /*
518 * return a node, for structure references, which is suitable for
519 * being added to a pointer of type t, in order to be off bits offset
520 * into a structure
521 * t, d, and s are the type, dimension offset, and sizeoffset
522 * For pdp10, return the type-specific index number which calculation
523 * is based on its size. For example, short a[3] would return 3.
524 * Be careful about only handling first-level pointers, the following
525 * indirections must be fullword.
526 */
527 NODE *
528 offcon(OFFSZ off, TWORD t, union dimfun *d, struct attr *ap)
529 {
530 register NODE *p;
531
532 if (xdebug)
533 printf("offcon: OFFSZ %lld type %x dim %p siz %d\n",
534 off, t, d, 0);
535
536 p = bcon(0);
537 slval(p, off/SZINT); /* Default */
538 if (ISPTR(DECREF(t)))
539 return p; /* Pointer/pointer reference */
540 switch (BTMASK & t) {
541 case INT:
542 case UNSIGNED:
543 case LONG:
544 case ULONG:
545 case STRTY:
546 case UNIONTY:
547 case LONGLONG:
548 case ULONGLONG:
549 case FLOAT:
550 case DOUBLE:
551 break;
552
553 case SHORT:
554 case USHORT:
555 if (pointp(t))
556 slval(p, off/SZSHORT);
557 break;
558
559 case VOID: /* void pointers */
560 case CHAR:
561 case UCHAR:
562 if (pointp(t))
563 slval(p, off/SZCHAR);
564 break;
565
566 default:
567 cerror("offcon, off %llo size %d type %x", off, 0, t);
568 }
569 if (xdebug)
570 printf("offcon return 0%llo\n", glval(p));
571 return(p);
572 }
573
574 /*
575 * Allocate off bits on the stack. p is a tree that when evaluated
576 * is the multiply count for off, t is a NAME node where to write
577 * the allocated address.
578 * Be aware that a pointer conversion may be needed when saving
579 * to node t!
580 */
581 void
582 spalloc(NODE *t, NODE *p, OFFSZ off)
583 {
584 NODE *sp;
585
586 if ((off % SZINT) == 0)
587 p = buildtree(MUL, p, bcon(off/SZINT));
588 else if ((off % SZSHORT) == 0) {
589 p = buildtree(MUL, p, bcon(off/SZSHORT));
590 p = buildtree(PLUS, p, bcon(1));
591 p = buildtree(RS, p, bcon(1));
592 } else if ((off % SZCHAR) == 0) {
593 p = buildtree(MUL, p, bcon(off/SZCHAR));
594 p = buildtree(PLUS, p, bcon(3));
595 p = buildtree(RS, p, bcon(2));
596 } else
597 cerror("roundsp");
598
599 /* save the address of sp */
600 sp = block(REG, NIL, NIL, PTR+INT, t->n_df, t->n_sue);
601 slval(sp, 0);
602 sp->n_rval = STKREG;
603 /* Cast sp to destination type (may be redundant) */
604 sp = buildtree(CAST,
605 block(NAME, NIL, NIL, t->n_type, t->n_df, t->n_ap), sp);
606 nfree(sp->n_left);
607 nfree(sp);
608 sp = sp->n_right;
609 ecomp(buildtree(ASSIGN, t, sp)); /* Emit! */
610
611 /* add the size to sp */
612 sp = block(REG, NIL, NIL, p->n_type, 0, 0);
613 slval(sp, 0);
614 sp->n_rval = STKREG;
615 ecomp(buildtree(PLUSEQ, sp, p));
616 }
617
618 #if 0
619 static int inwd; /* current bit offsed in word */
620 static CONSZ word; /* word being built from fields */
621
622 /*
623 * Generate initialization code for assigning a constant c
624 * to a field of width sz
625 * we assume that the proper alignment has been obtained
626 * inoff is updated to have the proper final value
627 * we also assume sz < SZINT
628 */
629 void
630 incode(NODE *p, int sz)
631 {
632 char *s;
633
634 inoff += sz;
635 if ((sz + inwd) > SZINT)
636 cerror("incode: field > int");
637
638 word |= ((p->n_lval & ((1 << sz) - 1)) << (36 - inwd - sz));
639
640 inwd += sz;
641 if (inoff % SZINT == 0) {
642 s = isinlining ? permalloc(30) : tmpalloc(30);
643 sprintf(s, "\t.long 0%llo\n", word);
644 send_passt(IP_ASM, s);
645 word = inwd = 0;
646 }
647 tfree(p);
648 }
649
650 /* output code to initialize space of size sz to the value d */
651 /* the proper alignment has been obtained */
652 /* inoff is updated to have the proper final value */
653 /* on the target machine, write it out in octal! */
654 void
655 fincode(NODE *p, int sz)
656 {
657 double d = p->n_dcon;
658
659 if(!nerrors)
660 printf(" %s 0%c%.20e\n",
661 sz == SZDOUBLE ? ".double" : ".float",
662 sz == SZDOUBLE ? 'd' : 'f', d);
663 inoff += sz;
664 }
665
666 void
667 cinit(NODE *p, int sz)
668 {
669 NODE *l;
670
671 /*
672 * as a favor (?) to people who want to write
673 * int i = 9600/134.5;
674 * we will, under the proper circumstances, do
675 * a coercion here.
676 */
677 switch (p->n_type) {
678 case INT:
679 case UNSIGNED:
680 l = p->n_left;
681 if (l->n_op != SCONV || l->n_left->n_op != FCON)
682 break;
683 nfree(l);
684 l = l->n_left;
685 l->n_lval = (long)(l->n_dcon);
686 l->n_sp = NULL;
687 l->n_op = ICON;
688 l->n_type = INT;
689 p->n_left = l;
690 break;
691 }
692 /* arrange for the initialization of p into a space of size sz */
693 /* the proper alignment has been opbtained */
694 /* inoff is updated to have the proper final value */
695 ecode( p );
696 inoff += sz;
697 }
698
699 /*
700 * define n bits of zeros in a vfd
701 */
702 void
703 vfdzero(int n)
704 {
705 char *s;
706
707 inoff += n;
708 inwd += n;
709 if (inoff%ALINT ==0) {
710 s = isinlining ? permalloc(30) : tmpalloc(30);
711 sprintf(s, "\t.long 0%llo\n", word);
712 send_passt(IP_ASM, s);
713 word = inwd = 0;
714 }
715 }
716 #endif
717
718 /* make a name look like an external name in the local machine */
719 char *
720 exname(char *p)
721 {
722 if (p == NULL)
723 return "";
724 return p;
725 }
726
727 /*
728 * map types which are not defined on the local machine
729 */
730 TWORD
731 ctype(TWORD type)
732 {
733 switch (BTYPE(type)) {
734 case LONG:
735 MODTYPE(type,INT);
736 break;
737 case ULONG:
738 MODTYPE(type,UNSIGNED);
739 break;
740 case LDOUBLE:
741 MODTYPE(type,DOUBLE);
742 break;
743 }
744 return (type);
745 }
746
747 #if 0
748 /* curid is a variable which is defined but
749 * is not initialized (and not a function );
750 * This routine returns the stroage class for an uninitialized declaration
751 */
752 int
753 noinit()
754 {
755 return(EXTERN);
756 }
757 #endif
758
759 void
760 calldec(NODE *p, NODE *q)
761 {
762 }
763
764 void
765 extdec(struct symtab *q)
766 {
767 }
768
769 /* make a common declaration for id, if reasonable */
770 void
771 defzero(struct symtab *sp)
772 {
773 int off;
774
775 off = tsize(sp->stype, sp->sdf, sp->sap);
776 off = (off+(SZINT-1))/SZINT;
777 printf(" .%scomm ", sp->sclass == STATIC ? "l" : "");
778 if (sp->slevel == 0)
779 printf("%s,0%o\n", getexname(sp), off);
780 else
781 printf(LABFMT ",0%o\n", sp->soffset, off);
782 }
783
784 /*
785 * print out a constant node, may be associated with a label.
786 * Do not free the node after use.
787 * off is bit offset from the beginning of the aggregate
788 * fsz is the number of bits this is referring to
789 */
790 int
791 ninval(CONSZ off, int fsz, NODE *p)
792 {
793 cerror("ninval");
794 return 0;
795 }
796
797
798 /*
799 * Give target the opportunity of handling pragmas.
800 */
801 int
802 mypragma(char *str)
803 {
804 return 0;
805 }
806
807 /*
808 * Called when a identifier has been declared, to give target last word.
809 */
810 void
811 fixdef(struct symtab *sp)
812 {
813 }
814
815 void
816 pass1_lastchance(struct interpass *ip)
817 {
818 }
819