[patch,avr] Ad PR54222: Add bitsfx and fxbits to stdint.h

Georg-Johann Lay avr@gjlay.de
Wed Jan 23 15:18:00 GMT 2013


Denis Chertykov wrote:
> 2013/1/21 Georg-Johann Lay:
>> This adds the "Embedded C" bitsfx and fxbits functions to stdfix.h.
>>
>> The original stdfix.h is installed as stdfix-gcc.h and included by the new,
>> avr-specific stdfix.h.
>>
>> The implementation uses __builtin_memcpy to get a no-op implementation.
>>
>> Ok for trunk?
>>
>> Johann
>>
>>         PR target/54222
>>         * config/avr/stdfix.h: New file.
>>         * t-avr (stdfix-gcc.h): New rule to build it.
>>         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
>>
> 
> Approved. Please apply.

Applied with the following change: Use

   #if __SIZEOF_INT == 2

instead of

   #ifdef __INT64_TYPE__

which describes better the intention of the directive: Factor out -mint8.

http://gcc.gnu.org/r195407



More information about the Gcc-patches mailing list