aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr/avr-c.c
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2012-10-17 12:53:22 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2012-10-17 12:53:22 +0000
commiteb5af262af2fa9034ec4fb08b0434ce01458bffb (patch)
tree96feccbe6f5ab295f4b01881b276cb8bef445d7b /gcc/config/avr/avr-c.c
parent3855380a5f5375c21664983af433a5f1b67e738d (diff)
downloadgcc-eb5af262af2fa9034ec4fb08b0434ce01458bffb.zip
gcc-eb5af262af2fa9034ec4fb08b0434ce01458bffb.tar.gz
gcc-eb5af262af2fa9034ec4fb08b0434ce01458bffb.tar.bz2
avr-arch.h (avr_extra_arch_macro): Remove prototype.
* config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype. * config/avr/avr.c (avr_extra_arch_macro): Remove variable. (avr_option_override): Remove setting of avr_extra_arch_macro. * config/avr/avr-c.c (avr_extra_arch_macro): Replace with avr_current_device->macro. From-SVN: r192532
Diffstat (limited to 'gcc/config/avr/avr-c.c')
-rw-r--r--gcc/config/avr/avr-c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/avr/avr-c.c b/gcc/config/avr/avr-c.c
index 6eb0eba..6e7f8c7 100644
--- a/gcc/config/avr/avr-c.c
+++ b/gcc/config/avr/avr-c.c
@@ -88,8 +88,8 @@ 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_extra_arch_macro)
- cpp_define (pfile, avr_extra_arch_macro);
+ if (avr_current_device->macro)
+ cpp_define (pfile, avr_current_device->macro);
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__");