Re: [rfc][21/37] Eliminate builtin_type_ macros: Platform-neutral builtin_type_void

Daniel Jacobowitz
2008-09-13T15:23:16Z

On Sun, Sep 07, 2008 at 05:58:20PM +0200, Ulrich Weigand wrote:
> 2.) lookup_pointer_type gets an gdbarch argument (or maybe just a
> "size" argument, as that is what we really need)
>
> In this case, we'd probably have to extend the caching mechanims
> to cache pointers of multiple different sizes (note that to some
> extent that exists today via TYPE_CHAIN, see make_qualified_type).
>
> Then, there wouldn't really be any strict reason any more why
> we couldn't allow making pointer types to platform-neutral types ...

I like this idea; maybe pass the gdbarch to lookup_pointer_type, and
let it encapsulate the knowledge that the size is all we need?

There are architectures with differently sized pointers; this might
make them easier to accomodate someday.

--
Daniel Jacobowitz
CodeSourcery