From: Michael Meissner Date: Fri, 31 Jul 1998 17:28:14 +0000 (+0000) Subject: If -Os use load/store multiple instructions X-Git-Tag: prereleases/egcs-1.1-prerelease~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a767371a5d77eb8781d00c333457186d8a2aca3;p=thirdparty%2Fgcc.git If -Os use load/store multiple instructions From-SVN: r21510 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 769ea8cdd446..309c6aa5c475 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 d4cb695575b8..987c3adeabdb 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)