aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2012-03-01 11:48:00 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2012-03-01 11:48:00 +0000
commitb2ef48efce78b78099a0f2162fab0b01fba7ba8d (patch)
treec82bb3b2b531bb976515bf643c75c0ad55a82ed5
parent283b529696df97afe8ce08b14c6d62c42b7f1d28 (diff)
downloadgcc-b2ef48efce78b78099a0f2162fab0b01fba7ba8d.zip
gcc-b2ef48efce78b78099a0f2162fab0b01fba7ba8d.tar.gz
gcc-b2ef48efce78b78099a0f2162fab0b01fba7ba8d.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/avr/avr-c.c11
2 files changed, 14 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 93415e9..04c09f7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-01 Georg-Johann Lay <avr@gjlay.de>
+
+ * 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 <venkataramanan.kumar@amd.com>
* 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 598a340..1babb53 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");
}