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
This commit is contained in:
Richard Earnshaw 2010-02-06 14:05:27 +00:00 committed by Richard Earnshaw
parent e984a04ecc
commit b761dbe6a1
2 changed files with 11 additions and 1 deletions

View 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

View 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)
{