]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64 costs 18/18] Dump a message if we are unable to cost an insn.
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 16 May 2014 09:27:55 +0000 (09:27 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 16 May 2014 09:27:55 +0000 (09:27 +0000)
gcc/

* config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
where we were unable to cost an RTX.

From-SVN: r210510

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 5e7c085027966610821bafd20a3a90e5bac5209f..1815d4b0defbaa3bdc57f5d48bef52678b1c80d4 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
+       where we were unable to cost an RTX.
+
 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
index 9eff2fd8e6ad332bc239ec353d79917bbfd2ed29..6eb230349b45589699d9b839c21053cfd7f755c6 100644 (file)
@@ -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;
 }