$OpenBSD: patch-gcc_config_rs6000_rs6000_c,v 1.2 2016/09/01 17:30:33 pascal Exp $

Disable code which passes ".machine ppc" to the assembler as it breaks
use of some CPU features. Notably breaks -maltivec which breaks build of
Mozilla ports including xulrunner.

Borrowed from https://github.com/sba1/adtools/commit/b24ae065714a2390d7718d2c348fe5cfa40c2b48

--- gcc/config/rs6000/rs6000.c.orig	Thu Feb  4 14:59:27 2016
+++ gcc/config/rs6000/rs6000.c	Sat Aug  6 19:19:05 2016
@@ -5006,6 +5006,8 @@ rs6000_file_start (void)
   if (rs6000_default_cpu == 0 || rs6000_default_cpu[0] == '\0'
       || !global_options_set.x_rs6000_cpu_index)
     {
+      /* Temporarily disabled as it overrides e.g., -mcpu=440 and -maltivec */
+#if 0
       fputs ("\t.machine ", asm_out_file);
       if ((rs6000_isa_flags & OPTION_MASK_DIRECT_MOVE) != 0)
 	fputs ("power8\n", asm_out_file);
@@ -5021,6 +5023,7 @@ rs6000_file_start (void)
 	fputs ("ppc64\n", asm_out_file);
       else
 	fputs ("ppc\n", asm_out_file);
+#endif
     }
 #endif
 }
