Re: [PATCH] abstract away from the 'build-toolchain'-dependent sizeof(...) operator

2012-01-06 Thread Simon Marlow
On 06/01/2012 12:03, Gabor Greif wrote: On 1/6/12, Simon Marlow wrote: On 05/01/2012 18:41, Gabor Greif wrote: The sizes obtained this way do not work on a target system in general. So in a future cross-compilable setup we need another way of obtaining expansions for the macros OFFSET, FIELD_S

Re: [PATCH] abstract away from the 'build-toolchain'-dependent sizeof(...) operator

2012-01-06 Thread Gabor Greif
On 1/6/12, Simon Marlow wrote: > On 05/01/2012 18:41, Gabor Greif wrote: >> The sizes obtained this way do not work on a target system in general. >> So in a future cross-compilable setup we need another way of obtaining >> expansions for the macros OFFSET, FIELD_SIZE and TYPE_SIZE. >> >> Guarded

Re: [PATCH] abstract away from the 'build-toolchain'-dependent sizeof(...) operator

2012-01-06 Thread Simon Marlow
On 05/01/2012 18:41, Gabor Greif wrote: The sizes obtained this way do not work on a target system in general. So in a future cross-compilable setup we need another way of obtaining expansions for the macros OFFSET, FIELD_SIZE and TYPE_SIZE. Guarded against accidental use of 'sizeof' by poisonin

[PATCH] abstract away from the 'build-toolchain'-dependent sizeof(...) operator

2012-01-05 Thread Gabor Greif
The sizes obtained this way do not work on a target system in general. So in a future cross-compilable setup we need another way of obtaining expansions for the macros OFFSET, FIELD_SIZE and TYPE_SIZE. Guarded against accidental use of 'sizeof' by poisoning. Verified that the generated *Constants