From patchwork Thu Jan 26 22:30:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [rs6000] Correctly set rs6000_always_hint for ppc476 Date: Thu, 26 Jan 2012 12:30:25 -0000 From: Peter Bergner X-Patchwork-Id: 138077 Message-Id: <1327617025.14063.5.camel@otta> To: "gcc-patches@gcc.gnu.org" Cc: David Edelsohn The 476 cpu has dynamic branch prediction, so we don't want to always use static branch prediction hints. Is the following patch ok assuming my currently running bootstrap/regtesting doesn't uncover any regressions? Is this appropriate for the 4.6 and 4.5 branches as well? Peter * config/rs6000/rs6000.c (rs6000_option_override_internal): Set rs6000_always_hint to false for 476. Index: config/rs6000/rs6000.c =================================================================== --- config/rs6000/rs6000.c (revision 183456) +++ config/rs6000/rs6000.c (working copy) @@ -2960,7 +2960,8 @@ rs6000_option_override_internal (bool gl && rs6000_cpu != PROCESSOR_POWER6 && rs6000_cpu != PROCESSOR_POWER7 && rs6000_cpu != PROCESSOR_PPCA2 - && rs6000_cpu != PROCESSOR_CELL); + && rs6000_cpu != PROCESSOR_CELL + && rs6000_cpu != PROCESSOR_PPC476); rs6000_sched_groups = (rs6000_cpu == PROCESSOR_POWER4 || rs6000_cpu == PROCESSOR_POWER5 || rs6000_cpu == PROCESSOR_POWER7);