This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIMPLE and fat pointers


On Thu, 04 Jul 2002, Steven Bosscher wrote:

> G95 uses "fat pointers" because F95 needs array descriptors, so we use
> the PLACEHOLDER_EXPR and WITH_RECORD_EXPR tree codes. G95 is the second
> front end I know of that uses these nodes to implement unconstrained
> array types (the other is GNAT). G95 tries to translate its AST to
> SIMPLE, and we use the C tree expander to generate RTL.
> 
> The C expander seems to have no problems with PLACEHOLDER_EXPR and
> WITH_RECORD_EXPR nodes. But in the SIMPLE grammar there's no such thing
> as an unconstrained array; SIMPLE doesn't really need these nodes.
> 
I was almost tempted to ask you to simplify these types into
regular ARRAY types, but that would change type information for
G95's unconstrained arrays.  Something which is likely to cause
problems.

> So I'm not sure these nodes will be supported in SIMPLE. But if the
> long-term goal is to make all front ends generate SIMPLE (and from what
> I understand, it is), then support for these nodes is important for all
> languages that support unconstrained arrays.
> 
Do you have a grammar in mind for supporting these types in
SIMPLE?


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]