Patchwork [SPARC] Fix PR target/52610

login
register
mail settings
Submitter Eric Botcazou
Date March 24, 2012, 6:48 p.m.
Message ID <201203241948.12076.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/148532/
State New
Headers show

Comments

Eric Botcazou - March 24, 2012, 6:48 p.m.
We need to pass -Av8 to the assembler when -mcpu=leon is specified.

Applied on the mainline and 4.7 branch.


2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>

	PR target/52610
	* config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.

Patch

Index: config/sparc/sparc.h
===================================================================
--- config/sparc/sparc.h	(revision 185570)
+++ config/sparc/sparc.h	(working copy)
@@ -329,6 +329,7 @@  extern enum cmodel sparc_cmodel;
 %{mcpu=sparclite86x:-Asparclite} \
 %{mcpu=f930:-Asparclite} %{mcpu=f934:-Asparclite} \
 %{mcpu=v8:-Av8} \
+%{mcpu=leon:-Av8} \
 %{mv8plus:-Av8plus} \
 %{mcpu=v9:-Av9} \
 %{mcpu=ultrasparc:%{!mv8plus:-Av9a}} \