From ef79218343c379b07f84790dab47c1f7ea44ccce Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 31 Jul 1998 17:30:57 +0000 Subject: [PATCH] If -Os use load/store multiple instructions From-SVN: r21511 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a58f781f1de..24132f0e705 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 31 20:22:02 1998 Michael Meissner + + * rs6000.c (rs6000_override_options): If big endian and -Os, use + load/store multiple instructions unless user overrides. + Fri Jul 31 17:08:59 1998 Jeffrey A Law (law@cygnus.com) * ns32k/netbsd.h: Fix typo. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d4cb695575b..987c3adeabd 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -276,6 +276,11 @@ rs6000_override_options (default_cpu) } } + /* If we are optimizing big endian systems for space, use the + store multiple instructions. */ + if (BYTES_BIG_ENDIAN && optimize_size) + target_flags |= MASK_MULTIPLE; + /* If -mmultiple or -mno-multiple was explicitly used, don't override with the processor default */ if (TARGET_MULTIPLE_SET) -- 2.30.2