CSS/Harvard 2.9BSD bug report #8
Keith Bostic
keith at seismo.CSS.GOV
Thu Sep 19 12:28:00 AEST 1985
Subject: cc doesn't have the M option
Index: bin/cc.c 2.9BSD
Description:
The C compiler front-end doesn't have the 'M' option. Note, this
option is undocumented in 4.2 and 2.9, but many of the makefiles
use it.
Repeat-By:
Enter "cc -M foo.c" and you'll get an error message from ld.
Fix:
Apply the following diff.
*** cc.c.right Wed Sep 18 22:07:07 1985
--- cc.c.wrong Wed Sep 18 22:15:10 1985
***************
*** 35,41
int vflag;
int exflag;
int oflag;
- int Mflag;
int proflag;
#ifdef MENLO_OVLY
int ovlyflag;
--- 35,40 -----
int vflag;
int exflag;
int oflag;
int proflag;
#ifdef MENLO_OVLY
int ovlyflag;
***************
*** 131,140
f20 = 1;
}
break;
- case 'M':
- ++Mflag;
- ++pflag;
- ++exflag; /* fall through */
case 'D':
case 'I':
case 'U':
--- 130,135 -----
f20 = 1;
}
break;
case 'D':
case 'I':
case 'U':
***************
*** 248,254
(tmp4 = copy(tmp0))[8] = '4';
pvt = pv;
for (i=0; i<nc; i++) {
! if ((nc>1 || vflag) && !Mflag)
printf("%s:\n", clist[i]);
if (getsuf(clist[i])=='s') {
assource = clist[i];
--- 243,249 -----
(tmp4 = copy(tmp0))[8] = '4';
pvt = pv;
for (i=0; i<nc; i++) {
! if (nc>1 || vflag)
printf("%s:\n", clist[i]);
if (getsuf(clist[i])=='s') {
assource = clist[i];
More information about the Comp.bugs.2bsd
mailing list