From patchwork Thu Sep 2 01:12:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [ARM] Fix override of SUBTARGET_CPU_DEFAULT From: Ryan Mansfield X-Patchwork-Id: 63436 Message-Id: <4C7EF9E0.3030907@qnx.com> To: gcc-patches@gcc.gnu.org Date: Wed, 01 Sep 2010 21:12:00 -0400 In the case where the user does not select a cpu and one is not configured, the cpu defined by SUBTARGET_CPU_DEFAULT is being overridden by the default of arm6. 2010-09-01 Ryan Mansfield * arm.c (arm_override_options): Use SUBTARGET_CPU_DEFAULT if defined. OK? Regards, Ryan Mansfield Index: config/arm/arm.c =================================================================== --- config/arm/arm.c (revision 163753) +++ config/arm/arm.c (working copy) @@ -1411,7 +1411,7 @@ arm_selected_cpu = &all_cores[SUBTARGET_CPU_DEFAULT]; #endif /* Default to ARM6. */ - if (arm_selected_cpu->name) + if (!arm_selected_cpu->name) arm_selected_cpu = &all_cores[arm6]; }