Article View: net.bugs.2bsd
Article #267CSS/Harvard 2.9BSD bug report #8
From: Keith Bostic
Date: Thu, 19 Sep 1985 02:28
Date: Thu, 19 Sep 1985 02:28
69 lines
1998 bytes
1998 bytes
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];
Technical Details
Message-ID:
<226@seismo.CSS.GOV>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!gatech!seismo!keithShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site seismo.CSS.GOV Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!gatech!seismo!keith From: keith@seismo.CSS.GOV (Keith Bostic) Newsgroups: net.bugs.2bsd Subject: CSS/Harvard 2.9BSD bug report #8 Message-ID: <226@seismo.CSS.GOV> Date: Wed, 18-Sep-85 22:28:00 EDT Article-I.D.: seismo.226 Posted: Wed Sep 18 22:28:00 1985 Date-Received: Fri, 20-Sep-85 04:03:33 EDT Organization: Center for Seismic Studies, Arlington, VA Lines: 69 Keywords: C compiler, Mflag, M option