]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
avr-arch.h (avr_extra_arch_macro): Remove prototype.
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 17 Oct 2012 12:53:22 +0000 (12:53 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 17 Oct 2012 12:53:22 +0000 (12:53 +0000)
* 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

gcc/ChangeLog
gcc/config/avr/avr-arch.h
gcc/config/avr/avr-c.c
gcc/config/avr/avr.c

index 0787f59983ad51e92d381dc871a43fec1d1fc75b..84a1667bb94ff52e9f25261772c7cf82b39a9c89 100644 (file)
@@ -1,3 +1,11 @@
+2012-10-17  Georg-Johann Lay  <avr@gjlay.de>
+
+       * 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.
+
 2012-10-17  Richard Biener  <rguenther@suse.de>
 
        * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
index b28bec9b86b1a3643e7656905f616e79a8b7b83f..a2a1a51c271412ab311670606460aedac6c7f60e 100644 (file)
@@ -149,7 +149,6 @@ struct arch_info_s
 
 /* Preprocessor macros to define depending on MCU type.  */
 
-extern const char *avr_extra_arch_macro;
 extern const struct base_arch_s *avr_current_arch;
 extern const struct mcu_type_s *avr_current_device;
 extern const struct mcu_type_s avr_mcu_types[];
index 6eb0ebaed5a107ad78e322977ab4346b5ce77d1b..6e7f8c7119f8b721e83b776fa0bdf912322e987a 100644 (file)
@@ -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__");
index 1c5bab2baf0325764fa204644473712ebc62c495..9ae52663668e1eecc96c4b6a6190883579ac04c0 100644 (file)
@@ -195,9 +195,6 @@ rtx rampz_rtx;
 static GTY(()) rtx xstring_empty;
 static GTY(()) rtx xstring_e;
 
-/* Preprocessor macros to define depending on MCU type.  */
-const char *avr_extra_arch_macro;
-
 /* Current architecture.  */
 const struct base_arch_s *avr_current_arch;
 
@@ -310,7 +307,6 @@ avr_option_override (void)
 
   avr_current_device = &avr_mcu_types[avr_mcu_index];
   avr_current_arch = &avr_arch_types[avr_current_device->arch];
-  avr_extra_arch_macro = avr_current_device->macro;
   
   /* RAM addresses of some SFRs common to all Devices in respective Arch. */