aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAdrian Straetling <straetling@de.ibm.com>2005-07-07 10:25:37 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2005-07-07 10:25:37 +0000
commit8daf098e468d2943bba4bd4617f5e56e6529a69d (patch)
tree0aa0c05081a913abeb6e91c219ed94de9fc7a30c /gcc
parent9ed929017c682714d2a81f840fbe97a8a56fbe96 (diff)
downloadgcc-8daf098e468d2943bba4bd4617f5e56e6529a69d.zip
gcc-8daf098e468d2943bba4bd4617f5e56e6529a69d.tar.gz
gcc-8daf098e468d2943bba4bd4617f5e56e6529a69d.tar.bz2
s390.c: (optimization_options): Enable TARGET_MVCLE at -Os.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/s390/s390.c4
-rw-r--r--gcc/config/s390/s390.opt2
-rw-r--r--gcc/doc/invoke.texi3
4 files changed, 14 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c54bf1b..f6cee36 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,11 @@
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
defined by back-end.
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index c578533..07022a2 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -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
diff --git a/gcc/config/s390/s390.opt b/gcc/config/s390/s390.opt
index ac27e03..22bbb79 100644
--- a/gcc/config/s390/s390.opt
+++ b/gcc/config/s390/s390.opt
@@ -79,7 +79,7 @@ mtune=
Target RejectNegative Joined
Schedule code for given CPU
-mvcle
+mmvcle
Target Report Mask(MVCLE)
mvcle use
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index f1ce356..a36f179 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -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