This is the mail archive of the gcc@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: RFC: target hook to reverse bitfield allocations


On Mar 9, 2011, at 8:52 PM, Ian Lance Taylor wrote:

> DJ Delorie <dj@redhat.com> writes:
> 
>> Except that in this case we want to reverse *only* structures that
>> represent peripherals, *not* other structures.
> 
> I'm sorry, that just seems frigging ridiculous.

I'm tempted to agree.  I thought people had stopped numbering bits in the wrong order since the IBM/360 was retired.  :-)
> 
> 
>>> If you need type attributes for this beyond a simple macro, then I agree
>>> that they should be target independent.
>> 
>> The syntax all the other RX compilers use is:
>> 
>> ... regular structures...
>> #pragma bit_order left
>> ... peripheral structures...
>> #pragma bit_order   /* resets to default */
>> ... regular structures...
> 
> I still kind of think this should be a target independent type
> attribute.  A target hook doesn't seem like the right approach to me.
> There is nothing particularly target specific about this concept.  I
> don't know to map the target specific pragma to a type attribute, but it
> must be possible.

Right.  If it were to be done it should be a general feature.

	paul


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