> You're right. I have attached an updated patch. The new code becomes: > > #ifdef HAVE_AS_LEON > #define AS_LEON_FLAG "-Aleon" > +#define AS_LEONV7_FLAG "-Aleon" > #else > #define AS_LEON_FLAG "-Av8" > +#define AS_LEONV7_FLAG "-Av7" > #endif
The patch is OK for all active branches (trunk, 4.9 and 4.8), modulo nits in the ChangeLog entry: capital letter at the beginning and period at the end of every sentence. * config.gcc (sparc*-*-*): Accept mcpu=leon3v7 processor. * doc/invoke.texi (SPARC options): Add mcpu=leon3v7 comment. * config/sparc/leon.md (leon3_load, leon_store, leon_fp_*): Handle leon3v7 as leon3. * config/sparc/sparc-opts.h (enum processor_type): Add LEON3V7. * config/sparc/sparc.c (sparc_option_override): Add leon3v7 support. * config/sparc/sparc.h (TARGET_CPU_leon3v7): New define. * config/sparc/sparc.md (cpu): Add leon3v7. * config/sparc/sparc.opt (enum processor_type): Add leon3v7. I assume that you have applied for write access so you'll be able to install it yourself. Otherwise let me know if I can lend a hand. -- Eric Botcazou