Re: Exporting structure layout

2005-05-11 Thread Mike Stump
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

Re: Exporting structure layout

2005-05-11 Thread Joe Buck
> 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

Re: Exporting structure layout

2005-05-11 Thread Florian Weimer
* 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.

Re: Exporting structure layout

2005-05-11 Thread Ian Lance Taylor
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

Re: Exporting structure layout

2005-05-11 Thread Florian Weimer
* 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 >

Re: Exporting structure layout

2005-05-11 Thread 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 suitable for cross-compilation

Exporting structure layout

2005-05-11 Thread Florian Weimer
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