Ticket #17524: patch-avr-config-unknown-mcu.diff

File patch-avr-config-unknown-mcu.diff, 576 bytes (added by lars@…, 14 years ago)

gcc should error out if it encounters an unknown MCU. See gcc bug 45261.

  • gcc/config/avr/avr.c

    old new  
    206206      break;
    207207
    208208  if (!t->name)
    209     {
    210       fprintf (stderr, "unknown MCU '%s' specified\nKnown MCU names:\n",
    211                avr_mcu_name);
    212       for (t = avr_mcu_types; t->name; t++)
    213         fprintf (stderr,"   %s\n", t->name);
    214     }
     209    error ("Unknown MCU %qs specified.  See --target-help for "
     210           "known MCU names.", avr_mcu_name);
    215211
    216212  avr_current_device = t;
    217213  avr_current_arch = &avr_arch_types[avr_current_device->arch];