Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>

* sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
        * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
        mapping from MASK_FPU.

From-SVN: r30215
This commit is contained in:
Rainer Orth 1999-10-27 01:49:39 -07:00 committed by Richard Henderson
parent 8232d28f13
commit 46cc13b3e0
3 changed files with 17 additions and 7 deletions

View file

@ -1,3 +1,9 @@
Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
* sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
mapping from MASK_FPU.
Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
* sparc.md (call): Don't bound structure return size to 0xfff.
@ -614,9 +620,9 @@ Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
1999-10-19 Bruce Korb <autogen@linuxbox.com>
* fixinc/Makefile.in: Change the generation rules to run `genfixes'
in the source tree when the generated targets are out of date
* fixinc/genfixes: Alter it to run individual fixes for make.
* fixinc/Makefile.in: Change the generation rules to run `genfixes'
in the source tree when the generated targets are out of date
* fixinc/genfixes: Alter it to run individual fixes for make.
* fixinc/README: rewrite
* fixinc/inclhack.def: moved initial comments to README

View file

@ -303,9 +303,13 @@ sparc_override_options ()
}
/* If -mfpu or -mno-fpu was explicitly used, don't override with
the processor default. */
the processor default. Clear MASK_FPU_SET to avoid confusing
the reverse mapping from switch values to names. */
if (TARGET_FPU_SET)
target_flags = (target_flags & ~MASK_FPU) | fpu;
{
target_flags = (target_flags & ~MASK_FPU) | fpu;
target_flags &= ~MASK_FPU_SET;
}
/* Use the deprecated v8 insns for sparc64 in 32 bit mode. */
if (TARGET_V9 && TARGET_ARCH32)

View file

@ -569,10 +569,10 @@ extern int target_flags;
#define TARGET_SWITCHES \
{ {"fpu", MASK_FPU | MASK_FPU_SET, "Use hardware fp" }, \
{"no-fpu", -MASK_FPU, "Do not use hardware fp" }, \
{"no-fpu", MASK_FPU_SET, "Do not use hardware fp" }, \
{"no-fpu", MASK_FPU_SET, NULL, }, \
{"hard-float", MASK_FPU | MASK_FPU_SET, "Use hardware fp" }, \
{"soft-float", -MASK_FPU, "Do not use hardware fp" }, \
{"soft-float", MASK_FPU_SET, "Do not use hardware fp" }, \
{"soft-float", MASK_FPU_SET, NULL }, \
{"epilogue", MASK_EPILOGUE, "Use FUNCTION_EPILOGUE" }, \
{"no-epilogue", -MASK_EPILOGUE, "Do not use FUNCTION_EPILOGUE" }, \
{"unaligned-doubles", MASK_UNALIGNED_DOUBLES, "Assume possible double misalignment" },\