From 08938c896fd1a409bd70218154b7073e81de398e Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Thu, 31 Jul 2014 14:51:02 +0000 Subject: [PATCH] invoke.texi (AVR Options): Add documentation about __AVR_DEVICE_NAME__ built-in macro. * doc/invoke.texi (AVR Options): Add documentation about __AVR_DEVICE_NAME__ built-in macro. From-SVN: r213377 --- gcc/ChangeLog | 5 +++++ gcc/doc/invoke.texi | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 33930dce829..6ad56ff6862 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-30 Senthil Kumar Selvaraj + + * doc/invoke.texi (AVR Options): Add documentation about + __AVR_DEVICE_NAME__ built-in macro. + 2014-07-31 Charles Baylis PR target/61948 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 89f40d7cb90..28370964ec3 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -13115,6 +13115,14 @@ the device name as from the AVR user manual. The difference between If @var{device} is not a device but only a core architecture like @code{avr51}, this macro will not be defined. +@item __AVR_DEVICE_NAME__ +Setting @code{-mmcu=@var{device}} defines this built-in macro to +the device's name. For example, with @code{-mmcu=atmega8} the macro +will be defined to @code{atmega8}. + +If @var{device} is not a device but only a core architecture like +@code{avr51}, this macro will not be defined. + @item __AVR_XMEGA__ The device / architecture belongs to the XMEGA family of devices.