]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make muser-mode the default for LEON3
authorDaniel Cederman <cederman@gaisler.com>
Mon, 28 Sep 2015 05:46:04 +0000 (05:46 +0000)
committerDaniel Hellstrom <danielh@gcc.gnu.org>
Mon, 28 Sep 2015 05:46:04 +0000 (07:46 +0200)
2015-09-28  Daniel Cederman  <cederman@gaisler.com>

Make muser-mode the default for LEON3

The muser-mode flag causes the CASA instruction for LEON3 to use the
user mode ASI. This is the correct behavior for almost all LEON3 targets.
For this reason it makes sense to make user mode the default.

gcc/
        * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
          and make it inverse to change default
        * config/sparc/sync.md: Only use supervisor ASI for CASA when in
          supervisor mode
        * doc/invoke.texi: Document change of default

From-SVN: r228187

gcc/ChangeLog
gcc/config/sparc/sparc.opt
gcc/config/sparc/sync.md
gcc/doc/invoke.texi

index 0a6302c91e1d3013921adf04f1984cb067c45b6d..de003acb891d33a9002a1ae806804f412ac51774 100644 (file)
@@ -1,3 +1,11 @@
+2015-09-28  Daniel Cederman  <cederman@gaisler.com>
+
+       * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
+         and make it inverse to change default
+       * config/sparc/sync.md: Only use supervisor ASI for CASA when in
+         supervisor mode
+       * doc/invoke.texi: Document change of default
+
 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
 
        * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
index 3cd2b603a8c4c7530d9490695541da9dc281fc9d..a6e94354c141e3c31ae52b23341904c8b2573987 100644 (file)
@@ -114,8 +114,8 @@ Target
 Optimize tail call instructions in assembler and linker
 
 muser-mode
-Target Report Mask(USER_MODE)
-Do not generate code that can only run in supervisor mode
+Target Report InverseMask(SV_MODE)
+Do not generate code that can only run in supervisor mode (default)
 
 mcpu=
 Target RejectNegative Joined Var(sparc_cpu_and_features) Enum(sparc_processor_type) Init(PROCESSOR_V7)
index 98ac0d3d66a0053971a7b475713070862be4a298..f56f6b5666eb9a82bddfd504d47d69a636cdce07 100644 (file)
          UNSPECV_CAS))]
   "TARGET_LEON3"
 {
-  if (TARGET_USER_MODE)
-    return "casa\t%1 0xa, %2, %0"; /* ASI for user data space.  */
-  else
+  if (TARGET_SV_MODE)
     return "casa\t%1 0xb, %2, %0"; /* ASI for supervisor data space.  */
+  else
+    return "casa\t%1 0xa, %2, %0"; /* ASI for user data space.  */
 }
   [(set_attr "type" "multi")])
 
index 23fe7df1372de9c1cb3052045d596f9c93c14f82..f310bf548be0d699bfdfd2fc4074cf290ec2f889 100644 (file)
@@ -21099,8 +21099,8 @@ in a performance loss, especially for floating-point code.
 @opindex muser-mode
 @opindex mno-user-mode
 Do not generate code that can only run in supervisor mode.  This is relevant
-only for the @code{casa} instruction emitted for the LEON3 processor.  The
-default is @option{-mno-user-mode}.
+only for the @code{casa} instruction emitted for the LEON3 processor.  This
+is the default.
 
 @item -mno-faster-structs
 @itemx -mfaster-structs