Re: Volatile magic

Thomas Bogendoerfer (tsbogend@alpha.franken.de)
Sat, 24 Jan 1998 11:42:16 +0100


On Sat, Jan 24, 1998 at 01:52:58AM +0000, Alan Cox wrote:
> It is the right way to do it if your cross C pre-processor is decent. If
> your native and cross build compilers generate different output you have a
> MAJOR bug. So cpp should (and I think does) evaluate maths in the targets
> maths format.

at least plain gcc 2.7 doesn't do it when you compile on a 64bit machine for
a 32bit target. I had to change HOST_WIDE_INT not to be of type long, when
I built the crosscompiler for my Mips machine on my Alpha.

Thomas.

-- 
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
                   [Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]