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 2363216..ac6ab85 100644 (file)
@@ -1,5 +1,11 @@
 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.
 
 2018-02-22  DJ Delorie  <dj@redhat.com>
index 33c90ef..ec501b7 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)