projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_4 release
[unix-history]
/
usr
/
src
/
old
/
pcc
/
cc
/
cc.c
diff --git
a/usr/src/old/pcc/cc/cc.c
b/usr/src/old/pcc/cc/cc.c
index
09a2246
..
7666319
100644
(file)
--- a/
usr/src/old/pcc/cc/cc.c
+++ b/
usr/src/old/pcc/cc/cc.c
@@
-1,4
+1,4
@@
-static char sccsid[] = "@(#)cc.c 4.
17 %G%
";
+static char sccsid[] = "@(#)cc.c 4.
21 6/30/90
";
/*
* cc - front end for C compiler
*/
/*
* cc - front end for C compiler
*/
@@
-17,7
+17,7
@@
char *as = _PATH_AS;
char *ld = _PATH_LD;
char *crt0 = _PATH_CRT0;
char *ld = _PATH_LD;
char *crt0 = _PATH_CRT0;
-char tmp0[
30]; /* big enough for /tmp/ctm%05.5d */
+char tmp0[
MAXPATHLEN];
char *tmp1, *tmp2, *tmp3, *tmp4, *tmp5;
char *outfile;
char *savestr(), *strspl(), *setsuf();
char *tmp1, *tmp2, *tmp3, *tmp4, *tmp5;
char *outfile;
char *savestr(), *strspl(), *setsuf();
@@
-127,7
+127,7
@@
main(argc, argv)
error("-B overwrites earlier option", 0);
npassname = argv[i]+2;
if (npassname[0]==0)
error("-B overwrites earlier option", 0);
npassname = argv[i]+2;
if (npassname[0]==0)
-
npassname = "/usr/c/o"
;
+
error("-B requires an argument", 0)
;
continue;
case 'd':
if (argv[i][2] == '\0') {
continue;
case 'd':
if (argv[i][2] == '\0') {
@@
-185,7
+185,7
@@
main(argc, argv)
if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
signal(SIGHUP, idexit);
if (pflag==0)
if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
signal(SIGHUP, idexit);
if (pflag==0)
- (void)sprintf(tmp0, "
/tmp/ctm%05.5d"
, getpid());
+ (void)sprintf(tmp0, "
%s/ctm%05.5d", _PATH_TMP
, getpid());
tmp1 = strspl(tmp0, "1");
tmp2 = strspl(tmp0, "2");
tmp3 = strspl(tmp0, "3");
tmp1 = strspl(tmp0, "1");
tmp2 = strspl(tmp0, "2");
tmp3 = strspl(tmp0, "3");
@@
-286,8
+286,6
@@
nocom:
}
while (i < nl)
av[na++] = llist[i++];
}
while (i < nl)
av[na++] = llist[i++];
- if (gflag || Gflag)
- av[na++] = "-lg";
if (proflag)
av[na++] = "-lc_p";
else
if (proflag)
av[na++] = "-lc_p";
else