Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.278
 
1.279
 
MAIN:ragge:20140818184605
 
cc.c
_>271271 int     kflag;  /* generate PIC/pic code */
 272272 #define F_PIC   1
 273273 #define F_pic   2
<>274 -int     Mflag, needM, MDflag;   /* dependencies only */
  274+int     Mflag, needM, MDflag, MMDflag;  /* dependencies only */
275275 int     pgflag;
 276276 int     Xflag;
 277277 int     nostartfiles, Bstatic, shared;
     
 !
739739                                 MDflag++;
 740740                                 needM = 0;
 741741                                 strlist_append(&depflags, "-M");
<> 742+                        } else if (match(argp, "-MMD")) {
  743+                                MMDflag++;
  744+                                needM = 0;
  745+                                strlist_append(&depflags, "-M");
  746+                                strlist_append(&depflags, "-xMMD");
742747                         } else
 743748                                 oerror(argp);
 744749                         break;
     
 !
841846                 errorx(8, "output file will be clobbered");
 842847 #endif
 843848 
<>844 -        if (needM && !Mflag && !MDflag)
  849+        if (needM && !Mflag && !MDflag && !MMDflag)
845850                 errorx(8, "to make dependencies needs -M");
 846851 
 847852 
     
 !
900905                 ascpp = match(suffix, "S");
 901906                 if (ascpp || match(suffix, "c") || cxxsuf(suffix)) {
 902907                         /* find out next output file */
<>903 -                        if (Mflag || MDflag) {
  908+                        if (Mflag || MDflag || MMDflag) {
904909                                 char *Mofile = NULL;
 905910 
 906911                                 if (MFfile)
 907912                                         Mofile = MFfile;
 908913                                 else if (outfile)
 909914                                         Mofile = setsuf(outfile, 'd');
<>910 -                                else if (MDflag)
  915+                                else if (MDflag || MMDflag)
<_911916                                         Mofile = setsuf(ifile, 'd');
 912917                                 if (preprocess_input(ifile, Mofile, 1))
 913918                                         exandrm(Mofile);
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-09-20 22:04 +0200