This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bitfields: types vs modes?
- From: DJ Delorie <dj at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: iant at google dot com, gcc at gcc dot gnu dot org
- Date: Thu, 16 Jul 2009 19:15:21 -0400
- Subject: Re: bitfields: types vs modes?
- References: <200903100433.n2A4XKNL011948@greed.delorie.com> <200904010511.n315Ba28010006@greed.delorie.com> <m3ocvhkkew.fsf@google.com> <49DA30F0.1090105@codesourcery.com> <200904062003.n36K3WHc001273@greed.delorie.com> <49DA689F.20400@codesourcery.com> <200905201948.n4KJmv4N017890@greed.delorie.com> <m3eiuj1o9z.fsf@google.com> <4A14715C.6040009@codesourcery.com> <200905202132.n4KLWhUN020072@greed.delorie.com> <4A14EE51.6010804@codesourcery.com> <200907142010.n6EKAWVR013169@greed.delorie.com> <4A5D2C41.8080604@codesourcery.com>
> At the risk of being naive: implement it. I'm not quite sure what
> you're looking for here?
Ok, time to ask for a hint. I started at get_best_mode(), adding a
TREE argument for the type, and worked my way out, adding arguments to
functions as needed to propogate the type information. It's getting
out of hand. Is there some easier way to track the type that an rtx
came from? Perhaps we could call get_best_mode() earlier in the whole
process, and put that mode in the rtx instead of BLKmode ?