Commit b761dbe6 by Richard Earnshaw Committed by Richard Earnshaw

re PR target/42957 (ARM: Segfault when invalid -mfpu argument is specified.)

	PR target/42957
	* arm.c (arm_override_options): Just return if the user has specified
	an invalid fpu name.

From-SVN: r156539
parent e984a04e
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> 2010-02-03 Jason Merrill <jason@redhat.com>
PR c++/42870 PR c++/42870
......
...@@ -1639,8 +1639,12 @@ arm_override_options (void) ...@@ -1639,8 +1639,12 @@ arm_override_options (void)
break; break;
} }
} }
if (!arm_fpu_desc) 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) switch (arm_fpu_desc->model)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment