From: Jan-Benedict Glaw Date: Thu, 30 Oct 2014 12:44:23 +0000 (+0000) Subject: driver-avr.c (avr_set_current_device): Remove. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6327f612fd6631094742bdb4e4999a48bd376382;p=gcc.git driver-avr.c (avr_set_current_device): Remove. 2014-10-30 Jan-Benedict Glaw * config/avr/driver-avr.c (avr_set_current_device): Remove. From-SVN: r216932 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d587890fa73..58e6cd01a64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-10-30 Jan-Benedict Glaw + + * config/avr/driver-avr.c (avr_set_current_device): Remove. + 2014-10-30 Martin Liska PR ipa/63574 @@ -7,7 +11,7 @@ * ipa-icf-gimple.h: Missing comment added. 2014-10-30 Jeff Law - + * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen argument from rtx to rtx_insn *. (compute_movmem_length, compute_clrmem_length): Likewise. diff --git a/gcc/config/avr/driver-avr.c b/gcc/config/avr/driver-avr.c index 24a26d46bed..50de944eab9 100644 --- a/gcc/config/avr/driver-avr.c +++ b/gcc/config/avr/driver-avr.c @@ -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]; -}