This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, ARM] Fix override of SUBTARGET_CPU_DEFAULT


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 <rmansfield@qnx.com>
* arm.c (arm_override_options): Use SUBTARGET_CPU_DEFAULT if defined.



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]; }


OK?


Regards,

Ryan Mansfield


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]