On May 11, 2005, at 1:41 PM, Ian Lance Taylor wrote:
I actually have a vague recollection that gcc used to implement
something along these lines, but I couldn't find it in five minutes of
searching.
I think you're thinking of the old xref code in the C++ frontend or
the old typeinfo. One could g
> Florian Weimer <[EMAIL PROTECTED]> writes:
>
> > Are there any objections to exporting structure layout from GCC, in a
> > format which can be parsed in a straightforward manner? Such a patch
> > could be used as a GPL circumvention device, but I'm n
* Ian Lance Taylor:
> I actually have a vague recollection that gcc used to implement
> something along these lines, but I couldn't find it in five minutes of
> searching.
There are several patches for (or forks of) GCC which implement
similar functionality.
Florian Weimer <[EMAIL PROTECTED]> writes:
> Are there any objections to exporting structure layout from GCC, in a
> format which can be parsed in a straightforward manner? Such a patch
> could be used as a GPL circumvention device, but I'm not sure how
> relevant this is
* Paolo Bonzini:
>> Additional members are permitted, and the fields can be order. In
>> order to create a portable Ada interface, I have to write a short C
>> program which uses sizeof and offsetof to extract the structure
>> layout. In theory, it is possible to create compile-time-only tests
>
Additional members are permitted, and the fields can be order. In
order to create a portable Ada interface, I have to write a short C
program which uses sizeof and offsetof to extract the structure
layout. In theory, it is possible to create compile-time-only tests
suitable for cross-compilation
expressions,
invalid zero-length arrays, and a binary search), but this is rather
messy. This is probably one of the reason why the GNAT run-time
library currently uses manually translated record definitions, which
reduces its portability.
Are there any objections to exporting structure layout from