Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: John Parks <parks@zko.dec.com>
Subject: Re: cc problem on OSF 4.0B
Date: 1997/03/13	[thread overview]
Message-ID: <3328673A.41C6@zko.dec.com> (raw)
In-Reply-To: 5g6dp3$sf5@phunn1.sbphrd.com


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



      reply	other threads:[~1997-03-13  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-12  5:00 cc problem on OSF 4.0B Michel van der List
1997-03-13  5:00 ` John Parks [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox