> -----Original Message----- > From: Georg-Johann Lay > Sent: Monday, January 14, 2013 10:52 AM > To: gcc-patches@gcc.gnu.org > Cc: Denis Chertykov; Weddington, Eric > Subject: [patch,avr]: Minor fixes to some built-in macros > > 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.
I'm not seeing #2 being done in the patch... Am I missing something? Eric > 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.