From: Bernd Edlinger Date: Fri, 18 Jul 2014 18:11:53 +0000 (+0000) Subject: re PR rtl-optimization/61461 (-fdump-rtl-all-slim causes ICE with fold-const.c) X-Git-Tag: releases/gcc-5.1.0~6206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6742052af4eac19acab2313a82dda5a80bd4c665;p=thirdparty%2Fgcc.git re PR rtl-optimization/61461 (-fdump-rtl-all-slim causes ICE with fold-const.c) 2014-07-18 Bernd Edlinger PR rtl-optimization/61461 * sched-vis.c (print_pattern) : Fixed. From-SVN: r212829 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e9819273c3e2..113783cb2b6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-18 Bernd Edlinger + + PR rtl-optimization/61461 + * sched-vis.c (print_pattern) : Fixed. + 2014-07-18 Uros Bizjak PR target/61794 diff --git a/gcc/sched-vis.c b/gcc/sched-vis.c index 6f89e084b665..b35c137f7c4f 100644 --- a/gcc/sched-vis.c +++ b/gcc/sched-vis.c @@ -611,9 +611,18 @@ print_pattern (pretty_printer *pp, const_rtx x, int verbose) pp_printf (pp, "asm {%s}", XSTR (x, 0)); break; case ADDR_VEC: - /* Fall through. */ + for (int i = 0; i < XVECLEN (x, 0); i++) + { + print_value (pp, XVECEXP (x, 0, i), verbose); + pp_semicolon (pp); + } + break; case ADDR_DIFF_VEC: - print_value (pp, XEXP (x, 0), verbose); + for (int i = 0; i < XVECLEN (x, 1); i++) + { + print_value (pp, XVECEXP (x, 1, i), verbose); + pp_semicolon (pp); + } break; case TRAP_IF: pp_string (pp, "trap_if ");