re PR target/49816 (arm.c:3999:12: error: converting 'false' to pointer type 'rtx')

PR target/49816
	* arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.

From-SVN: r176687
This commit is contained in:
Richard Earnshaw 2011-07-23 14:43:33 +00:00 committed by Richard Earnshaw
parent 53390685bd
commit e01705517a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-07-23 Richard Earnshaw <rearnsha@arm.com>
PR target/49816
* arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
2011-07-22 Jason Merrill <jason@redhat.com>
* doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.

View File

@ -3996,7 +3996,7 @@ aapcs_vfp_allocate_return_reg (enum arm_pcs pcs_variant ATTRIBUTE_UNUSED,
const_tree type ATTRIBUTE_UNUSED)
{
if (!use_vfp_abi (pcs_variant, false))
return false;
return NULL;
if (mode == BLKmode || (mode == TImode && !TARGET_NEON))
{