]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
invoke.texi (AVR Options): Add documentation about __AVR_DEVICE_NAME__ built-in macro.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Thu, 31 Jul 2014 14:51:02 +0000 (14:51 +0000)
committerDenis Chertykov <denisc@gcc.gnu.org>
Thu, 31 Jul 2014 14:51:02 +0000 (18:51 +0400)
* doc/invoke.texi (AVR Options): Add documentation about
__AVR_DEVICE_NAME__ built-in macro.

From-SVN: r213377

gcc/ChangeLog
gcc/doc/invoke.texi

index 33930dce8298b31b172d06b222c34aa0615f447d..6ad56ff686200f3a060aea1de0385e06fbb5fe53 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * doc/invoke.texi (AVR Options): Add documentation about
+       __AVR_DEVICE_NAME__ built-in macro.
+
 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
 
        PR target/61948
index 89f40d7cb90ad30a52d5de5be2309cd353668d17..28370964ec3d25bf4fb0b6cbdb5a698c0ecf9fff 100644 (file)
@@ -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.