Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.24
 
1.25
 
MAIN:ragge:20041202213225
 
cc.c
_>121121 char    *pass0 = LIBEXECDIR "/ccom";
 122122 char    *passp = LIBEXECDIR "/cpp";
 123123 char    *sysinc;
<> 124+char *cppadd[] = CPPADD;
  125+char *dynlinker[] = DYNLINKER;
  126+char *crt0file = CRT0FILE;
  127+char *startfiles[] = STARTFILES;
  128+char *endfiles[] = ENDFILES;
  129+char *cppmdadd[] = CPPMDADD;
124130 
 125131 int
 126132 main(argc, argv)
     
 !
162168                 case 'f': /* Ignore -ffreestanding */
 163169                         break;
 164170 
<> 171+                case 'g': /* create debug output */
  172+                        gflag++;
  173+                        break;
  174+
165175                 case 'i':
 166176                         if (strcmp(argv[i], "-isystem") == 0) {
 167177                                 sysinc = argv[++i];
     
 !
200210                 case 'p':
 201211                         proflag++;
 202212                         break;
<>203 -                case 'g':
 204 -                        gflag++;
 205 -                        break;
206213                 case 'E':
 207214                         Eflag++;
 208215                         break;
     
 !
354361                 /*
 355362                  * C compiler
 356363                  */
<>357 -                av[0]= "ccom";
 358 -                av[1] = tmp4;
  364+                na = 0;
  365+                av[na++]= "ccom";
  366+                if (gflag)
  367+                        av[na++] = "-g";
  368+                av[na++] = tmp4;
359369                 tsp = savetsp;
 360370                 if (pflag || exfail)
 361371                         {
     
 !
368378                         else
 369379                                 assource = tmp3 = setsuf(clist[i], 's');
 370380                 }
<>371 -                av[2] = tmp3;
  381+                av[na++] = tmp3;
  382+#if 0
372383                 if (proflag) {
 373384                         av[3] = "-XP";
 374385                         av[4] = 0;
 375386                 } else
 376387                         av[3] = 0;
<>377 -                if (gflag) {
 378 -                        int i;
 379 -                        i = av[3] ? 4 : 3;
 380 -                        av[i++] = "-Xg";
 381 -                        av[i] = 0;
 382 -                }
  388+#endif
  389+                av[na++] = NULL;
<_383390                 if (callsys(pass0, av)) {
 384391                         cflag++;
 385392                         eflag++;
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-08-31 04:15 +0200