mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 08:44:42 +08:00
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:
parent
eaf7f7e727
commit
06063fa227
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
11
gcc/testsuite/gcc.target/sparc/mfpu.c
Normal file
11
gcc/testsuite/gcc.target/sparc/mfpu.c
Normal 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" } } */
|
Loading…
Reference in New Issue
Block a user