]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390.c: (optimization_options): Enable TARGET_MVCLE at -Os.
authorAdrian Straetling <straetling@de.ibm.com>
Thu, 7 Jul 2005 10:25:37 +0000 (10:25 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 7 Jul 2005 10:25:37 +0000 (10:25 +0000)
2005-07-07  Adrian Straetling  <straetling@de.ibm.com>

* config/s390/s390.c: (optimization_options): Enable
TARGET_MVCLE at -Os.
* doc/invoke.texi: Document changes in default behaviour.
* config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".

From-SVN: r101704

gcc/ChangeLog
gcc/config/s390/s390.c
gcc/config/s390/s390.opt
gcc/doc/invoke.texi

index c54bf1b254b128dfe339b628eb4745270d94af9b..f6cee36729b800ff0bc107d04ba4b561c92e98a8 100644 (file)
@@ -1,3 +1,10 @@
+2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
+       
+       * config/s390/s390.c: (optimization_options): Enable
+       TARGET_MVCLE at -Os.
+       * doc/invoke.texi: Document changes in default behaviour.
+       * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
+
 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
 
        * expr.c: (set_storage_via_setmem): Convert opchar to mode
index c5785337db36373fd43c7d5dc99321d2ca0ea436..07022a2a4631eb813f71640d93209608f71fae58 100644 (file)
@@ -1107,6 +1107,10 @@ optimization_options (int level ATTRIBUTE_UNUSED, int size ATTRIBUTE_UNUSED)
   /* By default, always emit DWARF-2 unwind info.  This allows debugging
      without maintaining a stack frame back-chain.  */
   flag_asynchronous_unwind_tables = 1;
+
+  /* Use MVCLE instructions to decrease code size if requested.  */
+  if (size != 0)
+    target_flags |= MASK_MVCLE;
 }
 
 /* Return true if ARG is the name of a processor.  Set *TYPE and *FLAGS
index ac27e03417d4ace3ef457706664a8ca811b67bde..22bbb7959a97c94fea44335962dfb1c54b29b331 100644 (file)
@@ -79,7 +79,7 @@ mtune=
 Target RejectNegative Joined
 Schedule code for given CPU
 
-mvcle
+mmvcle
 Target Report Mask(MVCLE)
 mvcle use
 
index f1ce356d0d5f7a7df14af3cfe1d1c3c9df2ab5fb..a36f17945b0c762557a8c3949887f4b485614035 100644 (file)
@@ -11433,7 +11433,8 @@ to the GNU/Linux for zSeries ABI, the default is @option{-mzarch}.
 @opindex mno-mvcle
 Generate (or do not generate) code using the @code{mvcle} instruction
 to perform block moves.  When @option{-mno-mvcle} is specified,
-use a @code{mvc} loop instead.  This is the default.
+use a @code{mvc} loop instead.  This is the default unless optimizing for
+size.
 
 @item -mdebug
 @itemx -mno-debug