diff options
author | Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> | 2014-07-31 14:51:02 +0000 |
---|---|---|
committer | Denis Chertykov <denisc@gcc.gnu.org> | 2014-07-31 18:51:02 +0400 |
commit | 08938c896fd1a409bd70218154b7073e81de398e (patch) | |
tree | c22f99e4025825077bcc80fbe9938289a05aee96 | |
parent | 3290f5e7c7a84ad19ee9fa70ae938f1241ae2cd4 (diff) | |
download | gcc-08938c896fd1a409bd70218154b7073e81de398e.zip gcc-08938c896fd1a409bd70218154b7073e81de398e.tar.gz gcc-08938c896fd1a409bd70218154b7073e81de398e.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 33930dc..6ad56ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 89f40d7..2837096 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. |