re PR target/83335 ([aarch64,ilp32] gcc.target/aarch64/asm-2.c ICEs since 255481)
authorSteve Ellcey <sellcey@cavium.com>
Thu, 22 Feb 2018 17:06:31 +0000 (17:06 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 22 Feb 2018 17:06:31 +0000 (17:06 +0000)
2018-02-22  Steve Ellcey  <sellcey@cavium.com>

PR target/83335
* config/aarch64/aarch64.c (aarch64_print_address_internal):
Change gcc_assert call to output_operand_lossage.

From-SVN: r257907

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

index 2363216b73b50ec50ac6808fb9138c757bc20267..ac6ab859a547aa67ac3c940e4b50a783b57f588f 100644 (file)
@@ -1,3 +1,9 @@
+2018-02-22  Steve Ellcey  <sellcey@cavium.com>
+
+       PR target/83335
+       * config/aarch64/aarch64.c (aarch64_print_address_internal):
+       Change gcc_assert call to output_operand_lossage.
+
 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
 
        * doc/extend.texi (__builtin_extend_pointer): Document builtin.
index 33c90ef02dc135bb2b761a0767d773b1bebce881..ec501b78bdb5fc8228377982a9285090cceaab9d 100644 (file)
@@ -7059,7 +7059,8 @@ aarch64_print_address_internal (FILE *f, machine_mode mode, rtx x,
   unsigned int size;
 
   /* Check all addresses are Pmode - including ILP32.  */
-  gcc_assert (GET_MODE (x) == Pmode);
+  if (GET_MODE (x) != Pmode)
+    output_operand_lossage ("invalid address mode");
 
   if (aarch64_classify_address (&addr, x, mode, true, type))
     switch (addr.type)