Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.48
 
1.49
 
MAIN:ragge:20061222062309
 
cc.c
_>109109 int     tflag;
 110110 int     Eflag;
 111111 int     Oflag;
<> 112+int     kflag;  /* generate PIC code */
112113 int     proflag;
 113114 int     exfail;
 114115 int     Xflag;
     
 !
166167                         }
 167168                         break;
 168169 
<>169 -                case 'f': /* Ignore -ffreestanding */
  170+                case 'f': /* GCC compatibility flags */
  171+                        if (strcmp(argv[i], "-fPIC") == 0)
  172+                                kflag++;
  173+                        /* silently ignore the rest */
170174                         break;
 171175 
 172176                 case 'g': /* create debug output */
     
 !
180184                                 goto passa;
 181185                         break;
 182186 
<> 187+                case 'k': /* generate PIC code */
  188+                        kflag++;
  189+                        break;
  190+
183191                 case 'n': /* handle -n flags */
 184192                         if (strcmp(argv[i], "-nostdinc") == 0)
 185193                                 nostdinc++;
     
 !
359367                 av[na++]= "ccom";
 360368                 if (gflag)
 361369                         av[na++] = "-g";
<> 370+                if (kflag)
  371+                        av[na++] = "-k";
362372                 if (Oflag) {
 363373                         av[na++] = "-xtemps";
 364374                 }
     
 !
397407                  * Assembler
 398408                  */
 399409         assemble:
<>400 -                av[0] = "as";
 401 -                av[1] = "-o";
  410+                na = 0;
  411+                av[na++] = "as";
  412+                if (kflag)
  413+                        av[na++] = "-k";
  414+                av[na++] = "-o";
402415                 if (outfile && cflag)
<>403 -                        av[2] = outfile;
  416+                        av[na++] = outfile;
404417                 else
<>405 -                        av[2] = setsuf(clist[i], 'o');
 406 -                av[3] = onlyas ? tmp4 : assource;
 407 -                if (dflag) {
 408 -                        av[4] = alist;
 409 -                        av[5] = 0;
 410 -                } else
 411 -                        av[4] = 0;
  418+                        av[na++] = setsuf(clist[i], 'o');
  419+                av[na++] = onlyas ? tmp4 : assource;
  420+                if (dflag)
  421+                        av[na++] = alist;
  422+                av[na++] = 0;
<_412423                 if (callsys("/bin/as", av)) {
 413424                         cflag++;
 414425                         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-10-30 13:14 +0100