From 67c58c8f6b534da04b0bea14f403c8348472845e Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Thu, 22 Feb 2018 17:06:31 +0000 Subject: [PATCH] re PR target/83335 ([aarch64,ilp32] gcc.target/aarch64/asm-2.c ICEs since 255481) 2018-02-22 Steve Ellcey PR target/83335 * config/aarch64/aarch64.c (aarch64_print_address_internal): Change gcc_assert call to output_operand_lossage. From-SVN: r257907 --- gcc/ChangeLog | 6 ++++++ gcc/config/aarch64/aarch64.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2363216b73b..ac6ab859a54 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-02-22 Steve Ellcey + + PR target/83335 + * config/aarch64/aarch64.c (aarch64_print_address_internal): + Change gcc_assert call to output_operand_lossage. + 2018-02-22 Steve Ellcey * doc/extend.texi (__builtin_extend_pointer): Document builtin. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 33c90ef02dc..ec501b78bdb 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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) -- 2.30.2