+ register char *cp;
+
+ if (profiling && strncmp(line, "COPTS=", 6) == 0) {
+ fprintf(ofp, "CRT0.EX=/usr/src/libc/csu/crt0.ex\n");
+ cp = index(line, '\n');
+ if (cp)
+ *cp = '\0';
+ cp = line + 6;
+ while (*cp && (*cp == ' ' || *cp == '\t'))
+ cp++;
+ COPTS = malloc(strlen(cp) + 1);
+ if (COPTS == 0) {
+ fprintf(stderr, "config: out of memory\n");
+ exit(1);
+ }
+ strcpy(COPTS, cp);
+ fprintf(ofp, "%s -pg\n", line);
+ continue;
+ }