sparc.c (sparc_override_options): Initialize fpu mask correctly.

* config/sparc/sparc.c (sparc_override_options): Initialize
	fpu mask correctly.

From-SVN: r125674
This commit is contained in:
Eric Botcazou 2007-06-13 15:58:31 +02:00 committed by Eric Botcazou
parent eaf7f7e727
commit 06063fa227
4 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/sparc.c (sparc_override_options): Initialize
fpu mask correctly.
2007-06-13 Dave Korn <dave.korn@artimi.com>
* config/i386/i386.c (ix86_eax_live_at_start_p): Use

View File

@ -705,7 +705,7 @@ sparc_override_options (void)
error ("-mcmodel= is not supported on 32 bit systems");
}
fpu = TARGET_FPU; /* save current -mfpu status */
fpu = target_flags & MASK_FPU; /* save current -mfpu status */
/* Set the default CPU. */
for (def = &cpu_default[0]; def->name; ++def)

View File

@ -1,3 +1,7 @@
2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.target/sparc/mfpu.c: New test.
2007-06-12 Geoff Keating <geoffk@apple.com>
* g++.dg/warn/weak1.C: Suppress on Darwin.

View File

@ -0,0 +1,11 @@
/* Reported by Peter A. Krauss <peter.a.krauss@web.de> */
/* { dg-do compile } */
/* { dg-options "-mfpu" } */
float square(float x)
{
return x * x;
}
/* { dg-final { scan-assembler "fmuls" } } */