Module Name:    src
Committed By:   matt
Date:           Tue Jan 20 07:12:41 UTC 2015

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
    src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.9 src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.10
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.9	Sat Jan 10 01:06:42 2015
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c	Tue Jan 20 07:12:41 2015
@@ -3249,10 +3249,14 @@ rs6000_option_override_internal (bool gl
 
   /* 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

Reply via email to