OSDN Git Service

PR target/42957
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Feb 2010 14:05:27 +0000 (14:05 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Feb 2010 14:05:27 +0000 (14:05 +0000)
* arm.c (arm_override_options): Just return if the user has specified
an invalid fpu name.

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

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

index c970912..d1b5fd3 100644 (file)
@@ -1,3 +1,9 @@
+2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
+
+       PR target/42957
+       * arm.c (arm_override_options): Just return if the user has specified
+       an invalid fpu name.
+
 2010-02-03  Jason Merrill  <jason@redhat.com>
 
        PR c++/42870
index 543498e..466981a 100644 (file)
@@ -1639,8 +1639,12 @@ arm_override_options (void)
          break;
        }
     }
+
   if (!arm_fpu_desc)
-    error ("invalid floating point option: -mfpu=%s", target_fpu_name);
+    {
+      error ("invalid floating point option: -mfpu=%s", target_fpu_name);
+      return;
+    }
 
   switch (arm_fpu_desc->model)
     {