This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header
- From: Michael Matz <matz at suse dot de>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 12 May 2014 13:05:36 +0200 (CEST)
- Subject: Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header
- Authentication-results: sourceware.org; auth=none
- References: <87a9ap1k8n dot fsf at talisman dot default> <87fvkhz8js dot fsf at talisman dot default> <alpine dot LNX dot 2 dot 00 dot 1405121226190 dot 23942 at wotan dot suse dot de> <87oaz3dzy7 dot fsf at talisman dot default>
Hi,
On Mon, 12 May 2014, Richard Sandiford wrote:
> > Also I'm idly wondering if the explicit sizing of
> > the fields via a bit-field as originally would be better here or just
> > confusing. I guess unsigned and enums are 32bit for all hosts we care
> > about, but if we ever have one where it's larger the rtx will suddenly
> > contain another hole.
>
> But that'll happen anyway, which is why I thought having bitfields
> was confusing. Since this is a union, you'll always get the full
> "unsigned int" regardless of the bitfield size; the bitfield can't
> be packed with anything else.
Hmm, true. Okay, it'd be premature optimization for hosts which don't
exist anyway :)
Ciao,
Michael.