* cc problem on OSF 4.0B
@ 1997-03-12 5:00 Michel van der List
1997-03-13 5:00 ` John Parks
0 siblings, 1 reply; 2+ messages in thread
From: Michel van der List @ 1997-03-12 5:00 UTC (permalink / raw)
Hi there.
I've used Landon Curt Noll's calc program for while now. I've
never had any problems compiling it under OSF1, but as of
version 4.0B, I can't compile it anymore, unless I use the
-oldc flag. Also, gcc has no problems compiling this program.
The current version can be found at:
http://reality.sgi.com/chongo/calc/2.10.3t5.2.tgz
Any comments?
a d v
Thanks a
e c n Michel
--
-------------------------------------------------------------------
Michel van der List SmithKline Beecham Pharmaceuticals R & D
vanderlistmj@sbphrd.com UW2230, 709 Swedeland Road, P.O. Box 1539
(610) 270-4525 King of Prussia, PA 19406-0939
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cc problem on OSF 4.0B
1997-03-12 5:00 cc problem on OSF 4.0B Michel van der List
@ 1997-03-13 5:00 ` John Parks
0 siblings, 0 replies; 2+ messages in thread
From: John Parks @ 1997-03-13 5:00 UTC (permalink / raw)
Hi Michel,
It was indeed a compiler problem. The compiler refused to
token-paste 0x to 23a252f6 in the SVAL macro. Here's a distilled
testcase
#define SVAL(a,b) 0x ## a ## b
SVAL(23a252f6,0bae4907)
The compiler should expand the SVAL call to 0x23a252f60bae4907.
It didn't because it didn't like the leftmost operand (0x is not
a legitimate hex constant). It shouldn't have cared.
The compiler bug is now fixed.
A simple code workaround would be to rewrite 0x as 0x0. It
should not change the numeric value. Modifying the above
testcase would yield
#define SVAL(a,b) 0x0 ## a ## b
SVAL(23a252f6,0bae4907)
Thanks for letting us know about the problem. Hope the work-
around will help. We can also point you to a fixed compiler
if you'd like.
\John
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-03-13 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-12 5:00 cc problem on OSF 4.0B Michel van der List
1997-03-13 5:00 ` John Parks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox