This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[PATCH 1/1] sparc leon: Use -Aleon assembler switch for -mcpu=leon arch
- From: Konrad Eisele <konrad at gaisler dot com>
- To: ebotcazou at adacore dot com
- Cc: gcc at gcc dot gnu dot org, davem at davemloft dot net, konrad at gaisler dot com
- Date: Tue, 1 Nov 2011 09:21:25 +0100
- Subject: [PATCH 1/1] sparc leon: Use -Aleon assembler switch for -mcpu=leon arch
- References: <4EAFAA30.9030303@gaisler.com>
Use -Aleon to enable binutils sparc-leon architecture. The leon-arch
binutils GAS has umul/smul and casa enabled.
Signed-off-by: Konrad Eisele <konrad@gaisler.com>
---
gcc/config/sparc/sparc.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 65b4527..bbadeb2 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -236,7 +236,7 @@ extern enum cmodel sparc_cmodel;
#if TARGET_CPU_DEFAULT == TARGET_CPU_leon
#define CPP_CPU32_DEFAULT_SPEC "-D__leon__ -D__sparc_v8__"
-#define ASM_CPU32_DEFAULT_SPEC ""
+#define ASM_CPU32_DEFAULT_SPEC "-Aleon"
#endif
#endif
@@ -324,7 +324,7 @@ extern enum cmodel sparc_cmodel;
/* Override in target specific files. */
#define ASM_CPU_SPEC "\
-%{mcpu=sparclet:-Asparclet} %{mcpu=tsc701:-Asparclet} \
+%{mcpu=sparclet:-Asparclet} %{mcpu=leon:-Aleon} %{mcpu=tsc701:-Asparclet} \
%{mcpu=sparclite:-Asparclite} \
%{mcpu=sparclite86x:-Asparclite} \
%{mcpu=f930:-Asparclite} %{mcpu=f934:-Asparclite} \
--
1.6.4.1