[2086] in Athena Bugs
Re: (RT/PC) Version 6.0R: /bin/hc
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Tue Apr 18 12:07:29 1989
Date: Tue, 18 Apr 89 12:06:56 EDT
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: Bill Sommerfeld <wesommer@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: Bill Sommerfeld's message of Thu, 16 Mar 89 20:38:06 EST,
Date: Thu, 16 Mar 89 20:38:06 EST
From: Bill Sommerfeld <wesommer@ATHENA.MIT.EDU>
System type, version: (RT/PC) Version 6.0R
System name: portnoy
What's wrong: -B option should allow you to use an alternate
preprocessor.
The man page says you can do this; however, the current implementation
doesn't.
% cd /tmp
% cp /lib/cpp .
% ln -s /usr/lib/hccom .
% echo "main(){}" >foo.c
% hc -v -B/tmp/ foo.c
/lib/cpp -D__HIGHC__ -D__STDC__ foo.c /tmp/pp.018146
/tmp/hccom /tmp/pp.018146 -efile @E -silent -fn -obj foo.o -ipath /usr/include/ -on LONG_ENUMS -anno foo.c -on DOUBLE_MATH_ONLY
/bin/ld -X /lib/crt0.o foo.o -lc -e start
.. note that it invokes "/lib/cpp" instead of "/tmp/cpp".
- Bill
Fixed by hc2, to the extent that the documentation and reality now
agree. (The "inboard" programs are found via the -B path; /lib/cpp,
if executed, is not. The High C compiler appears to be part of
hc1com, which gets run whether /lib/cpp is run or not... bletch.)
/bin/hc is going to stay broke...