Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/rs6000 Don't enable string...



details:   https://anonhg.NetBSD.org/src/rev/89cb2f098dd8
branches:  trunk
changeset: 335671:89cb2f098dd8
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jan 20 07:12:41 2015 +0000

description:
Don't enable string instructions on NetBSD if -Os is used.

diffstat:

 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 74b434faf4d9 -r 89cb2f098dd8 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Tue Jan 20 01:10:16 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Tue Jan 20 07:12:41 2015 +0000
@@ -3249,10 +3249,14 @@
 
   /* If we are optimizing big endian systems for space and it's OK to
      use instructions that would be microcoded on the Cell, use the
-     load/store multiple and string instructions.  */
+     load/store multiple and string instructions.  Don't use string
+     instructions on NetBSD because the e500 doesn't support them.  */
   if (BYTES_BIG_ENDIAN && optimize_size && rs6000_gen_cell_microcode)
     rs6000_isa_flags |= ~rs6000_isa_flags_explicit & (OPTION_MASK_MULTIPLE
-                                                     | OPTION_MASK_STRING);
+#if !defined (POWERPC_NETBSD)
+                                                     | OPTION_MASK_STRING
+#endif
+                                                     | 0);
 
   /* Don't allow -mmultiple or -mstring on little endian systems
      unless the cpu is a 750, because the hardware doesn't support the



Home | Main Index | Thread Index | Old Index