]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm.c (arm_override_options): Correct fall-back code to use SUBTARGET_CPU_DEFAULT.
authorRyan Mansfield <rmansfield@qnx.com>
Thu, 2 Sep 2010 15:35:04 +0000 (15:35 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 2 Sep 2010 15:35:04 +0000 (15:35 +0000)
2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>

* arm.c (arm_override_options): Correct fall-back code to use
SUBTARGET_CPU_DEFAULT.

From-SVN: r163782

gcc/ChangeLog
gcc/config/arm/arm.c

index 83746347fc287d9954569ec69ae5f770e8b4bcf0..d415b4de45b3424b8ca748533d396156da4beef9 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
+
+       * arm.c (arm_override_options): Correct fall-back code to use
+       SUBTARGET_CPU_DEFAULT.
+
 2010-09-02  Julian Brown  <julian@codesourcery.com>
 
        * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
index 88444dbfc76a36d585a0f735d0da0df0e730472f..440995ff420d6bac81996a18005ee46408bb07f0 100644 (file)
@@ -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];
        }