OSDN Git Service

2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Sep 2010 15:35:04 +0000 (15:35 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Sep 2010 15:35:04 +0000 (15:35 +0000)
* arm.c (arm_override_options): Correct fall-back code to use
SUBTARGET_CPU_DEFAULT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163782 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 8374634..d415b4d 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 88444db..440995f 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];
        }