This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] SPARC: add mcpu=leon3v7 target
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org, Daniel Hellstrom <daniel at gaisler dot com>
- Cc: Sebastian dot Huber at embedded-brains dot de, joel dot sherrill at oarcorp dot com, software at gaisler dot com
- Date: Tue, 07 Oct 2014 09:26:43 +0200
- Subject: Re: [PATCH] SPARC: add mcpu=leon3v7 target
- Authentication-results: sourceware.org; auth=none
- References: <1408546862-8236-1-git-send-email-daniel at gaisler dot com> <1432899 dot v2JQgYGWXJ at polaris> <543382CA dot 9010907 at gaisler dot com>
> 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