This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, ARM] Fix override of SUBTARGET_CPU_DEFAULT
- From: Ryan Mansfield <rmansfield at qnx dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 01 Sep 2010 21:12:00 -0400
- Subject: [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