driver-avr.c (avr_set_current_device): Remove.
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Thu, 30 Oct 2014 12:44:23 +0000 (12:44 +0000)
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>
Thu, 30 Oct 2014 12:44:23 +0000 (12:44 +0000)
2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/avr/driver-avr.c (avr_set_current_device): Remove.

From-SVN: r216932

gcc/ChangeLog
gcc/config/avr/driver-avr.c

index d587890fa73998940549d17e96bc596f1ba8eed8..58e6cd01a64ad4b114131ec7f8d855c76ee8e832 100644 (file)
@@ -1,3 +1,7 @@
+2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
+
+       * config/avr/driver-avr.c (avr_set_current_device): Remove.
+
 2014-10-30  Martin Liska  <mliska@suse.cz>
 
        PR ipa/63574
@@ -7,7 +11,7 @@
        * ipa-icf-gimple.h: Missing comment added.
 
 2014-10-30  Jeff Law  <law@redhat.com>
-       
+
        * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
        argument from rtx to rtx_insn *.
        (compute_movmem_length, compute_clrmem_length): Likewise.
index 24a26d46bed00d6ec72ef3413b9f0cfb999aa4ab..50de944eab97d05d63b5d2e6c8232a973c595381 100644 (file)
@@ -28,22 +28,3 @@ const avr_arch_t *avr_current_arch = NULL;
 
 /* Current device.  */
 const avr_mcu_t *avr_current_device = NULL;
-
-/* Initialize avr_current_arch and avr_current_device variables.  */
-
-static void
-avr_set_current_device (const char *name)
-{
- if (NULL != avr_current_arch)
-   return;
-  for (avr_current_device = avr_mcu_types; avr_current_device->name;
-       avr_current_device++)
-    {
-      if (strcmp (avr_current_device->name, name) == 0)
-        break;
-    }
-
-  avr_current_arch = &avr_arch_types[avr_current_device->arch];
-}