From: James Greenhalgh Date: Fri, 16 May 2014 09:27:55 +0000 (+0000) Subject: [AArch64 costs 18/18] Dump a message if we are unable to cost an insn. X-Git-Tag: releases/gcc-5.1.0~7536 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88d4fbcf507b3a19905f87310a241d8bc6523836;p=thirdparty%2Fgcc.git [AArch64 costs 18/18] Dump a message if we are unable to cost an insn. gcc/ * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case where we were unable to cost an RTX. From-SVN: r210510 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e7c08502796..1815d4b0defb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-05-16 James Greenhalgh + + * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case + where we were unable to cost an RTX. + 2014-05-16 James Greenhalgh * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF, diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 9eff2fd8e6ad..6eb230349b45 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5787,7 +5787,11 @@ cost_plus: /* Fall through. */ default: - break; + if (dump_file && (dump_flags & TDF_DETAILS)) + fprintf (dump_file, + "\nFailed to cost RTX. Assuming default cost.\n"); + + return true; } return false; }