From patchwork Sat Jul 23 14:46:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [ARM] Fix PR target/49816 Date: Sat, 23 Jul 2011 04:46:41 -0000 From: Richard Earnshaw X-Patchwork-Id: 106474 Message-Id: <4E2ADED1.6030903@buzzard.freeserve.co.uk> To: GCC Patches In C it makes no difference if a function returning a pointer returns false or NULL, but in when bootstrapping in C++ it's another story. Fixed thusly: 2011-07-23 Richard Earnshaw PR target/49816 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 6e2b799..a51c87a 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)) {