Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.80
 
1.81
 
MAIN:gmcgarry:20080220010808
 
cc.c
_>149149 char *cppadd[] = CPPADD;
 150150 char *dynlinker[] = DYNLINKER;
 151151 char *crt0file = CRT0FILE;
<> 152+char *crt0file_profile = CRT0FILE_PROFILE;
152153 char *startfiles[] = STARTFILES;
 153154 char *endfiles[] = ENDFILES;
 154155 char *cppmdadd[] = CPPMDADD;
     
 !
157158 #else
 158159 char *libclibs[] = { "-lc", NULL };
 159160 #endif
<> 161+#ifdef LIBCLIBS_PROFILE
  162+char *libclibs_profile[] = LIBCLIBS_PROFILE;
  163+#else
  164+char *libclibs_profile[] = { "-lc_p", NULL };
  165+#endif
160166 #ifndef STARTLABEL
 161167 #define STARTLABEL "__start"
 162168 #endif
     
 !
250256                                         pgflag++;
 251257                                 else if (strcmp(argv[i], "-pthread") == 0)
 252258                                         pthreads++;
<>253 -                                else
  259+                                else if (strcmp(argv[i], "-pipe") == 0) {
  260+                                } else
254261                                         errorx(1, "unknown option %s", argv[i]);
 255262                                 break;
 256263 
     
 !
450457                 av[na++]= "ccom";
 451458                 if (vflag)
 452459                         av[na++] = "-v";
<> 460+                if (pgflag)
  461+                        av[na++] = "-p";
453462                 if (gflag)
 454463                         av[na++] = "-g";
 455464                 if (kflag)
     
 !
548557                         av[j++] = outfile;
 549558                 }
 550559                 if (!nostartfiles) {
<>551 -                        av[j++] = crt0file;
  560+                        av[j++] = pgflag ? crt0file_profile : crt0file;
552561                         for (i = 0; startfiles[i]; i++)
 553562                                 av[j++] = startfiles[i];
 554563                 }
     
 !
566575 #endif
 567576                 if (pthreads)
 568577                         av[j++] = "-lpthread";
<>569 -                if (!nostdlib)
 570 -                        for (i = 0; libclibs[i]; i++)
 571 -                                av[j++] = libclibs[i];
  578+                if (!nostdlib) {
  579+                        if (pgflag) {
  580+                                for (i = 0; libclibs_profile[i]; i++)
  581+                                        av[j++] = libclibs_profile[i];
  582+                        } else {
  583+                                for (i = 0; libclibs[i]; i++)
  584+                                        av[j++] = libclibs[i];
  585+                        }
  586+                }
<_572587                 if (!nostartfiles) {
 573588                         for (i = 0; endfiles[i]; i++)
 574589                                 av[j++] = endfiles[i];
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-24 00:25 +0200