[patch,avr]: Minor fixes to some built-in macros
Georg-Johann Lay
avr@gjlay.de
Mon Jan 14 17:52:00 GMT 2013
This patch does:
1) With 8-bit int, __INT24_MAX__ and __UINT24_MAX__ need a long long suffix.
2) Defines like __FLASH that indicate if address space is available should
be like a predicate, i.e. 1 if the space is available.
Obvious and lightly tested.
Ok?
Johann
* config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
etc. to 1 and not to __flash.
Use LL suffix for __INT24_MAX__ with -mint8.
Use ULL suffix for __UINT24_MAX__ with -mint8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtin-def.diff
Type: text/x-patch
Size: 1079 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130114/2523dc92/attachment.bin>
More information about the Gcc-patches
mailing list