This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Proposal for merging scalar-storage-order branch into mainline
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, Mark Wielaard <mjw at redhat dot com>
- Date: Tue, 09 Jun 2015 12:48:16 +0200
- Subject: Re: Proposal for merging scalar-storage-order branch into mainline
- Authentication-results: sourceware.org; auth=none
- References: <2354857 dot 0uXrE6NL1R at polaris> <1815334 dot 33LqHF3RXV at polaris> <20150609103305 dot GX10247 at tucnak dot redhat dot com>
> Anyway, the DWARF standard doesn't forbid using it on other kinds of DIEs
> and I think emitting it on DW_TAG_member would be natural.
Agreed.
> Not sure why you would want it on DW_TAG_array_type, the endianity for
> arrays should be specified on the element type, shouldn't it?
For the C family of languages where array types are not first-class citizens,
the SSO attribute simply cannot be supported on array types. But for other
languages, like Ada, where they are, it can and it is supported on the branch,
so you can declare an array of 4 integers with big-endian storage order.
--
Eric Botcazou