PR gas/3707
authorNick Clifton <nickc@redhat.com>
Thu, 11 Jan 2007 15:22:10 +0000 (15:22 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 11 Jan 2007 15:22:10 +0000 (15:22 +0000)
* config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt variable.

gas/ChangeLog
gas/config/tc-arm.c

index 330b37f6c04bf355b735f4eea992fcee966f2f6d..21c82999659274487b4defdce587138168bb61f1 100644 (file)
@@ -1,5 +1,9 @@
 2007-01-11  Nick Clifton  <nickc@redhat.com>
 
+       PR gas/3707
+       * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
+       variable.
+
        * config/tc-mcore.c (md_number_to_chars): Use
        number_to_chars_{big|little}endian.
 
index 45b8d2e85dfc3dd385bd31cdbb96a6254c9d08ff..6a2756decd76d0fa09db4bdf74bea256a3ec2388 100644 (file)
@@ -19291,9 +19291,9 @@ md_begin (void)
 
   if (!mfpu_opt)
     {
-      if (!mcpu_cpu_opt)
+      if (mcpu_cpu_opt != NULL)
        mfpu_opt = &fpu_default;
-      else if (ARM_CPU_HAS_FEATURE (*mcpu_fpu_opt, arm_ext_v5))
+      else if (mcpu_fpu_opt != NULL && ARM_CPU_HAS_FEATURE (*mcpu_fpu_opt, arm_ext_v5))
        mfpu_opt = &fpu_arch_vfp_v2;
       else
        mfpu_opt = &fpu_arch_fpa;