8c: missed file from yesterday [rsc] --rw-rw-r-- M 1168567 glenda sys 4120 Mar 25 07:17 sys/src/cmd/8c/8.out.h /n/sourcesdump/2006/0325/plan9/sys/src/cmd/8c/8.out.h:420,426 - /n/sourcesdump/2006/0326/plan9/sys/src/cmd/8c/8.out.h:420,426 T_SYM = 1<<4, T_SCONST = 1<<5, - REGARG = 0, + REGARG = -1, REGRET = D_AX, FREGRET = D_F0, REGSP = D_SP, [rsc] --rw-rw-r-- M 1168567 glenda sys 12189 Mar 25 07:37 sys/src/cmd/cc/cc.h /n/sourcesdump/2006/0325/plan9/sys/src/cmd/cc/cc.h:476,481 - /n/sourcesdump/2006/0326/plan9/sys/src/cmd/cc/cc.h:476,482 EXTERN int fproundflg; EXTERN int profileflg; EXTERN Bits zbits; + EXTERN int little; extern char *onames[], *tnames[], *gnames[]; extern char *cnames[], *qnames[], *bnames[]; [rsc] --rw-rw-r-- M 1168567 glenda sys 24192 Mar 25 07:37 sys/src/cmd/cc/lex.c /n/sourcesdump/2006/0325/plan9/sys/src/cmd/cc/lex.c:7,33 - /n/sourcesdump/2006/0326/plan9/sys/src/cmd/cc/lex.c:7,34 /* * known debug flags - * -o file output file - * -D name define - * -I path include * -a acid declaration output - * -M constant multiplication - * -B non ANSI * -A !B + * -B non ANSI * -d print declarations - * -t print type trees - * -L print every NAME symbol - * -i print initialization + * -D name define * -F format specification check - * -r print registerization - * -v verbose printing - * -X abort on error - * -w print warnings + * -i print initialization + * -I path include + * -l generate little-endian code + * -L print every NAME symbol + * -M constant multiplication * -m print add/sub/mul trees - * -s print structure offsets (with -a or -aa) * -n print acid to file (%.c=%.acid) (with -a or -aa) + * -o file output file * -p use standard cpp ANSI preprocessor (not on windows) + * -r print registerization + * -s print structure offsets (with -a or -aa) + * -t print type trees * -V enable void* conversion warnings + * -v verbose printing + * -w print warnings + * -X abort on error */ void /n/sourcesdump/2006/0325/plan9/sys/src/cmd/cc/lex.c:52,57 - /n/sourcesdump/2006/0326/plan9/sys/src/cmd/cc/lex.c:53,68 c = ARGC(); if(c >= 0 && c < sizeof(debug)) debug[c]++; + break; + + case 'l': /* for little-endian mips */ + if(thechar != 'v'){ + print("can only use -l with vc"); + errorexit(); + } + thechar = '0'; + thestring = "spim"; + little = 1; break; case 'o':