Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.6
 
1.7
 
MAIN:ragge:20030807223614
 
cc.c
_>5252         "-D__NetBSD__", "-D__PCC__=1", "-D__PCC_MINOR__=0",
 5353         "-D__ELF__", "-Asystem(unix)", "-Asystem(NetBSD)", "-Acpu(i386)",
 5454         "-Amachine(i386)", "-D__i386__", "-D__OPTIMIZE__", "-Di386",
<>55 -        "-lang-c", "-nostdinc", NULL,
  55+        "-nostdinc", NULL,
5656 };
 5757 #endif
 5858 
     
 !
8686 char    *llist[MAXLIB];
 8787 char    alist[20];
 8888 int dflag;
<> 89+int     xflag;
8990 int     pflag;
 9091 int     sflag;
 9192 int     cflag;
 9293 int     eflag;
 9394 int     gflag;
 9495 int     vflag;
<> 96+int     tflag;
9597 int     exflag;
 9698 int     Oflag;
 9799 int     proflag;
     
 !
121123                 case 'f': /* Ignore -ffreestanding */
 122124                 case 'n': /* Ignore -nostdinc */
 123125                         break;
<> 126+                case 'x':
  127+                        xflag++;
  128+                        i++; /* skip args */
  129+                        break;
  130+                case 't':
  131+                        tflag++;
  132+                        break;
124133                 case 'S':
 125134                         sflag++;
 126135                         cflag++;
     
 !
234243                         printf("%s:\n", clist[i]);
 235244                 if (getsuf(clist[i])=='s') {
 236245                         assource = clist[i];
<>237 -                        goto assemble;
  246+                        if (!xflag)
  247+                                goto assemble;
238248                 } else
 239249                         assource = tmp3;
 240250                 if (pflag)
 241251                         tmp4 = setsuf(clist[i], 'i');
 242252                 savetsp = tsp;
 243253                 na = 0;
 244254                 av[na++] = "cpp";
<> 255+                av[na++] = xflag ? "-lang-asm" : "-lang-c";
  256+                av[na++] = "-$";
245257                 for (j = 0; cppadd[j]; j++)
 246258                         av[na++] = cppadd[j];
<>247 -                av[na++] = clist[i];
 248 -                av[na++] = exflag ? "-" : tmp4;
  259+                if (tflag)
  260+                        av[na++] = "-traditional";
249261                 for(pv=ptemp; pv <pvt; pv++)
 250262                         av[na++] = *pv;
<> 263+                av[na++] = clist[i];
  264+                av[na++] = exflag ? "-" : tmp4;
251265                 av[na++]=0;
 252266                 if (callsys(passp, av))
 253267                         {exfail++; eflag++;}
<> 268+                if (xflag)
  269+                        goto assemble;
254270                 av[0]= "ccom";
 255271                 av[1] =tmp4;
 256272                 tsp = savetsp;
     
 !
284300                 av[0] = "as";
 285301                 av[1] = "-o";
 286302                 av[2] = setsuf(clist[i], 'o');
<>287 -                av[3] = assource;
  303+                av[3] = xflag ? tmp4 : assource;
288304                 if (dflag) {
 289305                         av[4] = alist;
 290306                         av[5] = 0;
 291307                 } else
 292308                         av[4] = 0;
 293309                 cunlink(tmp1);
 294310                 cunlink(tmp2);
<>295 -                cunlink(tmp4);
296311                 if (callsys("/bin/as", av) > 1) {
 297312                         cflag++;
 298313                         eflag++;
<> 314+                        cunlink(tmp4);
299315                         continue;
 300316                 }
<> 317+                cunlink(tmp4);
301318         }
 302319 nocom:
 303320         if (cflag==0 && nl!=0) {
     
 !
344361 void
 345362 dexit()
 346363 {
<>347 -#if 0
348364         if (!pflag) {
 349365                 cunlink(tmp1);
 350366                 cunlink(tmp2);
     
 !
354370                 cunlink(tmp5);
 355371                 cunlink(tmp0);
 356372         }
<>357 -#endif
<_358373         exit(eflag);
 359374 }
 360375 
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-11-01 04:54 +0100