source: trunk/toolchain/gcc/patches/4.4.6/933-avr32_bug_7435.patch @ 27337

Last change on this file since 27337 was 27337, checked in by kaloz, 5 years ago

[toolchain/gcc]: bump the 4.4 flavour to 4.4.6

File size: 1.3 KB
  • gcc/config/avr32/avr32.c

    a b void 
    243243avr32_override_options (void) 
    244244{ 
    245245  const struct part_type_s *part; 
    246   const struct arch_type_s *arch; 
     246  const struct arch_type_s *arch, *part_arch; 
    247247 
    248248  /*Add backward compability*/ 
    249249  if (strcmp ("uc", avr32_arch_name)== 0) 
    250250    { 
    251251      fprintf (stderr, "Warning: Deprecated arch `%s' specified. " 
    252252                       "Please use '-march=ucr1' instead. " 
    253                        "Converting to arch 'ucr1'\n", 
     253                       "Using arch 'ucr1'\n", 
    254254               avr32_arch_name); 
    255255      avr32_arch_name="ucr1"; 
    256256    } 
    avr32_override_options (void) 
    298298  if (!arch->name) 
    299299    avr32_arch = &avr32_arch_types[avr32_part->arch_type]; 
    300300 
     301   /* When architecture implied by -mpart and one passed in -march are  
     302    * conflicting, issue an error message */ 
     303   part_arch = &avr32_arch_types[avr32_part->arch_type]; 
     304   if (strcmp("none",avr32_part_name) && strcmp("none", avr32_arch_name) && strcmp(avr32_arch_name,part_arch->name)) 
     305     error ("Conflicting architectures implied by -mpart and -march\n"); 
     306 
    301307  /* If optimization level is two or greater, then align start of loops to a 
    302308     word boundary since this will allow folding the first insn of the loop. 
    303309     Do this only for targets supporting branch prediction. */ 
Note: See TracBrowser for help on using the repository browser.