Date: Fri, 17 Jan 1997 23:05:06 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: rlb@mindspring.com (Ron Bolin) Cc: freebsd-current@freebsd.org Subject: Re: gcc compiler question Message-ID: <Mutt.19970117230506.j@uriah.heep.sax.de> In-Reply-To: <32DFDDF6.41C67EA6@mindspring.com>; from Ron Bolin on Jan 17, 1997 15:15:50 -0500 References: <32DFDDF6.41C67EA6@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
As Ron Bolin wrote:
> In trying to port cprolog to FBSD. I find the the Solaris 2.X
> c compiler can handle the following macro sub, but gcc can't
> on any platform.
I can't seem to realize your problem:
j@uriah 132% /usr/libexec/cpp
#define savepS LSave[NAreas]
#define NAreas 6 /* number of work areas/stacks */
#define LocalId 5
typedef unsigned **PTR;
static PTR *savead, Origin[100];
#define lcl0 (Origin[LocalId])
unsigned LSave[100];
main()
{
savepS = savead-lcl0;
}
^D
# 1 ""
typedef unsigned **PTR;
static PTR *savead, Origin[100];
unsigned LSave[100];
main()
{
LSave[6 ] = savead- (Origin[5 ]) ;
}
--
cheers, J"org
joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970117230506.j>
