avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
* config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__. From-SVN: r213031
This commit is contained in:
parent
6c43e15e96
commit
5a3040898c
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
|
||||
|
||||
* config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
|
||||
|
||||
2014-07-24 Kyle McMartin <kyle@redhat.com>
|
||||
|
||||
* config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
|
||||
|
|
|
@ -299,7 +299,11 @@ avr_cpu_cpp_builtins (struct cpp_reader *pfile)
|
|||
if (avr_current_arch->macro)
|
||||
cpp_define_formatted (pfile, "__AVR_ARCH__=%s", avr_current_arch->macro);
|
||||
if (avr_current_device->macro)
|
||||
cpp_define (pfile, avr_current_device->macro);
|
||||
{
|
||||
cpp_define (pfile, avr_current_device->macro);
|
||||
cpp_define_formatted (pfile, "__AVR_DEVICE_NAME__=%s",
|
||||
avr_current_device->name);
|
||||
}
|
||||
if (AVR_HAVE_RAMPD) cpp_define (pfile, "__AVR_HAVE_RAMPD__");
|
||||
if (AVR_HAVE_RAMPX) cpp_define (pfile, "__AVR_HAVE_RAMPX__");
|
||||
if (AVR_HAVE_RAMPY) cpp_define (pfile, "__AVR_HAVE_RAMPY__");
|
||||
|
|
Loading…
Add table
Reference in a new issue