From: Georg-Johann Lay Date: Thu, 1 Mar 2012 11:48:00 +0000 (+0000) Subject: avr-c.c (avr_cpu_cpp_builtins): Restore built-in defines for __UINT24_MAX__... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2ef48efce78b78099a0f2162fab0b01fba7ba8d;p=gcc.git avr-c.c (avr_cpu_cpp_builtins): Restore built-in defines for __UINT24_MAX__... * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__ unintentionally removed in r184616. From-SVN: r184692 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 93415e93b0e..04c09f786ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-03-01 Georg-Johann Lay + + * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in + defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__ + unintentionally removed in r184616. + 2012-03-01 Venkataramanan Kumar * doc/invoke.texi: Document AMD bdver2 and remove mentioning diff --git a/gcc/config/avr/avr-c.c b/gcc/config/avr/avr-c.c index 598a340e07e..1babb5372c2 100644 --- a/gcc/config/avr/avr-c.c +++ b/gcc/config/avr/avr-c.c @@ -165,9 +165,8 @@ avr_cpu_cpp_builtins (struct cpp_reader *pfile) } } - /* Define builtin macros so that the user can - easily query if or if not a specific builtin - is available. */ + /* Define builtin macros so that the user can easily query if or + if not a specific builtin is available. */ for (i = 0; avr_builtin_name[i]; i++) { @@ -176,4 +175,10 @@ avr_cpu_cpp_builtins (struct cpp_reader *pfile) cpp_define (pfile, avr_toupper (Name, name)); } + + /* Builtin macros for the __int24 and __uint24 type. */ + + cpp_define (pfile, "__INT24_MAX__=8388607L"); + cpp_define (pfile, "__INT24_MIN__=(-__INT24_MAX__-1)"); + cpp_define (pfile, "__UINT24_MAX__=16777215UL"); }