This is the mail archive of the gcc-patches@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: __SIZE_TYPE__ and friends out of specs


On Wed, May 15, 2002 at 12:17:21AM +0100, Neil Booth wrote:
> This made me want to find a better way of defining the target types
> rather than textually like now (and somehow making the *_TYPE_SIZE
> versions redundant, which they are, at the same time).  However, I
> couldn't immediately think of anything as a replacement that would
> allow us to easily determine its size from the target macros giving
> the sizes of the basic types.

The only thing that comes immediately to mind is that we could
probably have the target #define what c_size_type_node should be, in
terms of the more primitive entities (int_type_node etc).  Then we
could get the textual representation using TYPE_NAME when necessary
(which is rare).

That is effectively what happens now, only with an indirection through
the source-code representation ("[short/long] [unsigned] int")...

zw


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