mips-common.c (TARGET_DEFAULT_TARGET_FLAGS): Remove TARGET_FP_EXCEPTIONS_DEFAULT...
authorSteve Ellcey <sellcey@mips.com>
Mon, 27 Jan 2014 22:38:42 +0000 (22:38 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Mon, 27 Jan 2014 22:38:42 +0000 (22:38 +0000)
2014-01-27  Steve Ellcey  <sellcey@mips.com>

* common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
* config/mips/mips.c (mips_option_override): Change setting
of TARGET_DSP.
* config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
* config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD,
MIPS3D) Change from Mask to Var.

From-SVN: r207154

gcc/ChangeLog
gcc/common/config/mips/mips-common.c
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.opt

index 69f8ba112be7abc9310ce3a7af6234803ef56992..77b462f7281a02ea10514a001e5ecfef972b75aa 100644 (file)
@@ -1,3 +1,13 @@
+2014-01-27  Steve Ellcey  <sellcey@mips.com>
+
+       * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
+       Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
+       * config/mips/mips.c (mips_option_override): Change setting
+       of TARGET_DSP.
+       * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
+       * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD,
+       MIPS3D) Change from Mask to Var.
+
 2014-01-27  Jeff Law  <law@redhat.com>
 
        * ipa-inline.c (inline_small_functions): Fix typo.
index cece4ae3b65f63962cf904bdbc8d9923f9990c91..7dd8d2d56a8fa9123ac7a62f478f8465a89c615b 100644 (file)
@@ -62,9 +62,7 @@ static const struct default_options mips_option_optimization_table[] =
   (TARGET_DEFAULT                              \
    | TARGET_CPU_DEFAULT                                \
    | TARGET_ENDIAN_DEFAULT                     \
-   | TARGET_FP_EXCEPTIONS_DEFAULT              \
-   | MASK_CHECK_ZERO_DIV                       \
-   | MASK_FUSED_MADD)
+   | MASK_CHECK_ZERO_DIV)
 #undef TARGET_HANDLE_OPTION
 #define TARGET_HANDLE_OPTION mips_handle_option
 
index 5bad0f8b12272765b955b379c25be5b2f26dffd8..59c0b26d16eb07ffa4a22256bce95f7aed3882fd 100644 (file)
@@ -17084,9 +17084,9 @@ mips_option_override (void)
       mips_r10k_cache_barrier = R10K_CACHE_BARRIER_NONE;
     }
 
-  /* If TARGET_DSPR2, enable MASK_DSP.  */
+  /* If TARGET_DSPR2, enable TARGET_DSP.  */
   if (TARGET_DSPR2)
-    target_flags |= MASK_DSP;
+    TARGET_DSP = true;
 
   /* .eh_frame addresses should be the same width as a C pointer.
      Most MIPS ABIs support only one pointer size, so the assembler
index bc9d301291c699a27af8ff6bac64da044b6050b1..150cf0c3136963542fcb9d19db5c455d06961ed8 100644 (file)
@@ -588,10 +588,6 @@ struct mips_cpu_info {
 #define TARGET_ENDIAN_DEFAULT MASK_BIG_ENDIAN
 #endif
 
-#ifndef TARGET_FP_EXCEPTIONS_DEFAULT
-#define TARGET_FP_EXCEPTIONS_DEFAULT MASK_FP_EXCEPTIONS
-#endif
-
 #ifdef IN_LIBGCC2
 #undef TARGET_64BIT
 /* Make this compile time constant for libgcc2 */
index 877ec594f56ceec0890dc25fe7f1e1029c1f980d..be551a7a452a80c12932e120620b67eb4a7dc05b 100644 (file)
@@ -116,11 +116,11 @@ Target Report RejectNegative InverseMask(SINGLE_FLOAT, DOUBLE_FLOAT)
 Allow hardware floating-point instructions to cover both 32-bit and 64-bit operations
 
 mdsp
-Target Report Mask(DSP)
+Target Report Var(TARGET_DSP)
 Use MIPS-DSP instructions
 
 mdspr2
-Target Report Mask(DSPR2)
+Target Report Var(TARGET_DSPR2)
 Use MIPS-DSP REV 2 instructions
 
 mdebug
@@ -190,7 +190,7 @@ Target Report Var(TARGET_4300_MUL_FIX)
 Work around an early 4300 hardware bug
 
 mfp-exceptions
-Target Report Mask(FP_EXCEPTIONS)
+Target Report Var(TARGET_FP_EXCEPTIONS) Init(1)
 FP exceptions are enabled
 
 mfp32
@@ -206,7 +206,7 @@ Target RejectNegative Joined Var(mips_cache_flush_func) Init(CACHE_FLUSH_FUNC)
 -mflush-func=FUNC      Use FUNC to flush the cache before calling stack trampolines
 
 mfused-madd
-Target Report Mask(FUSED_MADD)
+Target Report Var(TARGET_FUSED_MADD) Init(1)
 Generate floating-point multiply-add instructions
 
 mabs=
@@ -264,7 +264,7 @@ Target Report RejectNegative Mask(MIPS16)
 Generate MIPS16 code
 
 mips3d
-Target Report RejectNegative Mask(MIPS3D)
+Target Report RejectNegative Var(TARGET_MIPS3D)
 Use MIPS-3D instructions
 
 mllsc
@@ -324,7 +324,7 @@ Target Report RejectNegative InverseMask(MIPS16)
 Generate normal-mode code
 
 mno-mips3d
-Target Report RejectNegative InverseMask(MIPS3D)
+Target Report RejectNegative Var(TARGET_MIPS3D, 0)
 Do not use MIPS-3D instructions
 
 mpaired-single