Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.100
 
1.101
 
MAIN:gmcgarry:20080619081140
 
cc.c
_>145145 char    *xlist[100];
 146146 int     xnum;
 147147 char    *mlist[100];
<> 148+char    *flist[100];
  149+char    *wlist[100];
148150 char    *idirafter;
 149151 int     nm;
<> 152+int     nf;
  153+int     nw;
  154+int     sspflag;
150155 int     Cflag;
 151156 int     dflag;
 152157 int     pflag;
     
 !
165170 int     pgflag;
 166171 int     exfail;
 167172 int     Xflag;
<>168 -int     Werror;
169173 int     nostartfiles, Bstatic, shared;
 170174 int     nostdinc, nostdlib;
 171175 int     onlyas;
     
 !
239243                                 Xflag++;
 240244                                 break;
 241245                         case 'W': /* Ignore (most of) W-flags */
<>242 -                                if (strncmp(argv[i], "-Werror", 7) == 0) {
 243 -                                        Werror = 1;
 244 -                                } else if (strncmp(argv[i], "-Wl,", 4) == 0) {
  246+                                if (strncmp(argv[i], "-Wl,", 4) == 0) {
245247                                         /* options to the linker */
 246248                                         t = &argv[i][4];
 247249                                         while ((u = strchr(t, ','))) {
     
 !
254256                                         /* preprocessor */
 255257                                         if (!strncmp(argv[i], "-Wp,-C", 6))
 256258                                                 Cflag++;
<> 259+                                } else if (strcmp(argv[i], "-Werror") == 0) {
  260+                                        wlist[nw++] = argv[i];
  261+                                } else if (strcmp(argv[i], "-Wshadow") == 0) {
  262+                                        wlist[nw++] = argv[i];
  263+                                } else if (strcmp(argv[i], "-Wall") == 0) {
  264+                                        wlist[nw++] = "-WW";
  265+                                } else if (strcmp(argv[i],
  266+                                    "-Wno-pointer-sign") == 0) {
  267+                                        wlist[nw++] = argv[i];
257268                                 }
 258269                                 break;
 259270 
 260271                         case 'f': /* GCC compatibility flags */
 261272                                 if (strcmp(argv[i], "-fPIC") == 0)
 262273                                         kflag = F_PIC;
<>263 -                                if (strcmp(argv[i], "-fpic") == 0)
  274+                                else if (strcmp(argv[i], "-fpic") == 0)
264275                                         kflag = F_pic;
<> 276+                                else if (strcmp(argv[i],
  277+                                    "-fsigned-char") == 0)
  278+                                        flist[nf++] = argv[i];
  279+                                else if (strcmp(argv[i],
  280+                                    "-fno-signed-char") == 0)
  281+                                        flist[nf++] = argv[i];
  282+                                else if (strcmp(argv[i],
  283+                                    "-funsigned-char") == 0)
  284+                                        flist[nf++] = argv[i];
  285+                                else if (strcmp(argv[i],
  286+                                    "-fno-unsigned-char") == 0)
  287+                                        flist[nf++] = argv[i];
  288+                                else if (strcmp(argv[i],
  289+                                    "-fstack-protector") == 0) {
  290+                                        flist[nf++] = argv[i];
  291+                                        sspflag++;
  292+                                } else if (strcmp(argv[i],
  293+                                    "-fno-stack-protector") == 0) {
  294+                                        flist[nf++] = argv[i];
  295+                                        sspflag = 0;
  296+                                }
265297                                 /* silently ignore the rest */
 266298                                 break;
 267299 
     
 !
484516                 av[na++] = "-D__PCC_MINORMINOR__=" MKS(PCC_MINORMINOR);
 485517                 if (getsuf(clist[i])=='S')
 486518                         av[na++] = "-D__ASSEMBLER__";
<> 519+                if (sspflag)
  520+                        av[na++] = "-D__SSP__=1";
487521                 if (pthreads)
 488522                         av[na++] = "-D_PTHREADS";
 489523                 if (Cflag)
     
 !
529563         com:
 530564                 na = 0;
 531565                 av[na++]= "ccom";
<> 566+                for (j = 0; j < nw; j++)
  567+                        av[na++] = wlist[j];
  568+                for (j = 0; j < nf; j++)
  569+                        av[na++] = flist[j];
532570                 if (vflag)
 533571                         av[na++] = "-v";
 534572                 if (pgflag)
     
 !
542580                 if (kflag)
 543581                         av[na++] = "-k";
 544582 #endif
<>545 -                if (Werror)
 546 -                        av[na++] = "-Werror";
<_547583                 if (Oflag) {
 548584                         av[na++] = "-xtemps";
 549585                         av[na++] = "-xdeljumps";
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-31 22:31 +0100