From fe7645b900ca8739f2e6e6ae04fe496e7cf15ea6 Mon Sep 17 00:00:00 2001 From: Ryan Mansfield Date: Thu, 2 Sep 2010 15:35:04 +0000 Subject: [PATCH] arm.c (arm_override_options): Correct fall-back code to use SUBTARGET_CPU_DEFAULT. 2010-09-02 Ryan Mansfield * arm.c (arm_override_options): Correct fall-back code to use SUBTARGET_CPU_DEFAULT. From-SVN: r163782 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83746347fc28..d415b4de45b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-09-02 Ryan Mansfield + + * arm.c (arm_override_options): Correct fall-back code to use + SUBTARGET_CPU_DEFAULT. + 2010-09-02 Julian Brown * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 88444dbfc76a..440995ff420d 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -1411,7 +1411,7 @@ arm_override_options (void) 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]; } -- 2.47.2