From e01705517ac38e207e8f52610a46ad0c4aca61e0 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Sat, 23 Jul 2011 14:43:33 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4481b4355fd..42bfc5ef3c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-23 Richard Earnshaw + + PR target/49816 + * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure. + 2011-07-22 Jason Merrill * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 6e2b799fe57..a51c87a078f 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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)) { -- 2.30.2