Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.81
 
1.82
 
MAIN:gmcgarry:20080318044712
 
cc.c
_>136136 int     pgflag;
 137137 int     exfail;
 138138 int     Xflag;
<> 139+int     Werror;
139140 int     nostartfiles, Bstatic;
 140141 int     nostdinc, nostdlib;
 141142 int     onlyas;
     
 !
196197                                 Xflag++;
 197198                                 break;
 198199                         case 'W': /* Ignore (most of) W-flags */
<>199 -                                if (strncmp(argv[i], "-Wl,", 4) == 0) {
  200+                                if (strncmp(argv[i], "-Werror", 7) == 0) {
  201+                                        Werror = 1;
  202+                                } else if (strncmp(argv[i], "-Wl,", 4) == 0) {
200203                                         /* options to the linker */
 201204                                         t = &argv[i][4];
 202205                                         while ((u = strchr(t, ','))) {
     
 !
461464                         av[na++] = "-p";
 462465                 if (gflag)
 463466                         av[na++] = "-g";
<> 467+#ifdef MACHOABI
  468+                /* darwin always wants PIC compilation */
  469+                av[na++] = "-k";
  470+#else
464471                 if (kflag)
 465472                         av[na++] = "-k";
<> 473+#endif
  474+                if (Werror)
  475+                        av[na++] = "-Werror";
466476                 if (Oflag) {
 467477                         av[na++] = "-xtemps";
 468478                         av[na++] = "-xdeljumps";
     
 !
567577                         if (j >= MAXAV)
 568578                                 error("Too many ld options");
 569579                 }
<> 580+#ifndef MACHOABI
  581+                /* darwin assembler doesn't want -g */
570582                 if (gflag)
 571583                         av[j++] = "-g";
<> 584+#endif
<_572585 #if 0
 573586                 if (gflag)
 574587                         av[j++] = "-lg";
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 16:13 +0100