Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.253
 
1.254
 
MAIN:ragge:20120915103642
 
cc.c
_>224224 char *defproflibs[] = DEFPROFLIBS;
 225225 char *defcxxlibs[] = DEFCXXLIBS;
 226226 
<>227 -char    *outfile, *MFfile;
  227+char    *outfile, *MFfile, *fname;
228228 static char **lav;
 229229 static int lac;
 230230 static char *find_file(const char *file, struct strlist *path, int mode);
     
 !
289289 #endif
 290290 int     cxxflag;
 291291 int     cppflag;
<> 292+int     printprogname, printfilename;
292293 
 293294 #ifdef mach_amd64
 294295 int amd64_i386;
     
 !
675676                                 /* NOTHING YET */;
 676677                         else if (strcmp(argp, "-pedantic") == 0)
 677678                                 /* NOTHING YET */;
<>678 -                        else if (strcmp(argp,
 679 -                            "-print-prog-name=ld") == 0) {
 680 -                                printf("%s\n", LINKER);
 681 -                                return 0;
 682 -#ifdef notdef
 683 -                        /* does not exist in gcc??? */
 684 -                        } else if (strcmp(argp,
 685 -                            "-print-multi-os-directory") == 0) {
 686 -                                printf("%s\n", MULTIOSDIR);
 687 -                                return 0;
 688 -#endif
  679+                        else if ((t = argnxt(argp, "-print-prog-name="))) {
  680+                                fname = t;
  681+                                printprogname = 1;
  682+                        } else if ((t = argnxt(argp, "-print-file-name="))) {
  683+                                fname = t;
  684+                                printfilename = 1;
  685+                        } else if (match(argp, "-print-libgcc-file-name")) {
  686+                                fname = "libpcc.a";
  687+                                printfilename = 1;
689688                         } else
 690689                                 oerror(argp);
 691690                         break;
     
 !
815814                         ninput--;
 816815                 }
 817816         }
<>818 -        if (ninput == 0)
  817+        if (ninput == 0 && !(printprogname || printfilename))
819818                 errorx(8, "no input files");
 820819         if (outfile && (cflag || Sflag || Eflag) && ninput > 1)
 821820                 errorx(8, "-o given with -c || -E || -S and more than one file");
     
 !
848847                 isysroot = sysroot;
 849848         expand_sysroot();
 850849 
<> 850+        if (printprogname) {
  851+                printf("%s\n", find_file(fname, &progdirs, X_OK));
  852+                return 0;
  853+        } else if (printfilename) {
  854+                printf("%s\n", find_file(fname, &crtdirs, R_OK));
  855+                return 0;
  856+        }
  857+
<_851858         msuffix = NULL;
 852859         STRLIST_FOREACH(s, &inputs) {
 853860                 char *suffix;
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:01 +0200